PR middle-end/48973
[official-gcc.git] / gcc / ChangeLog
blob04218110da561ddeb06894550b65c132e0935d1d
1 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
3         PR middle-end/48973
4         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5         failed and the comparison has a single bit signed type, use
6         constm1_rtx instead of const1_rtx for true value.
7         (do_store_flag): If ops->type is single bit signed type, disable
8         signel bit test optimization and pass -1 instead of 1 as last
9         parameter to emit_store_flag_force.
11 2011-05-23  Tom de Vries  <tom@codesourcery.com>
13         PR target/45098
14         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
15         function.
16         (infer_loop_bounds_from_undefined): Use new function.
18 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
20         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
21         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
22         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
23         and -O0 otherwise.
24         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
26 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
28         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
29         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
30         returns true.
32 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
34         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
36 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
38         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
39         UNSPEC_MOVE_PIC pattern.
41 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
43         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
44         (sparc-*-rtems*): Likewise.
45         (sparc64-*-elf*): Likewise.
46         (sparc64-*-rtems*): Likewise.
47         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
48         * config/sparc/t-crtin: New file.
49         * config/sparc/t-sol2 (crti.o): Delete rule.
50         (crtn.o): Likewise.
51         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
52         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
53         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
54         (ENDFILE_SPEC): Add crtn.o.
56 2011-05-22  Tom de Vries  <tom@codesourcery.com>
58         PR middle-end/48689
59         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
60         CODE_CONTAINS_STRUCT (TS_COMMON).
62 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
64         PR middle-end/49029
65         * expmed.c (extract_fixed_bit_field): Test whether target can be used
66         only after deciding which mode to use.
68 2011-05-22  Tom de Vries  <tom@codesourcery.com>
70         PR target/45098
71         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
72         for call to get_shiftadd_cost.
74 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
76         PR target/49104
77         * config/i386/cpuid.h (bit_MMXEXT): New define.
79 2011-05-22  Nick Clifton  <nickc@redhat.com>
81         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
82         initialisation of non-existant args[2] element.  Use args[] array
83         not arg[] array to pass arguments to build_function_type_list.
85 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
87         PR tree-optimization/49087
88         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
90 2011-05-21  Jason Merrill  <jason@redhat.com>
92         PR c++/49092
93         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
94         static storage duration.
96 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
98         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
99         frame pointer.
101 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
103         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
104         false if there are call-saved registers here...
105         (sparc_can_use_return_insn_p): ...but here instead.
106         (save_or_restore_regs): Fix thinko.
107         (sparc_expand_prologue): Use current_function_is_leaf.
108         (sparc_frame_pointer_required): Likewise.
110 2011-05-21  Nick Clifton  <nickc@redhat.com>
112         PR target/49098
113         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
115 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
117         * gengtype.c (walk_type): Implemented "atomic" GTY option.
118         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
120 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
122         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
123         * optc-gen.awk: Move common code to opt-read.awk.
124         * opth-gen.awk: Likewise.
125         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
127 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
129         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
131 2011-05-20  Tom de Vries  <tom@codesourcery.com>
133         PR target/45098
134         * tree-ssa-loop-ivopts.c: Include expmed.h.
135         (get_shiftadd_cost): New function.
136         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
138 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
140         PR bootstrap/49086
141         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
142         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
144 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
146         * Makefile.in: Update comment referring to $(OBJS-common).
148 2011-05-20  Ian Lance Taylor  <iant@google.com>
150         * godump.c (go_output_typedef): Put enum constants in the macro
151         hash table to avoid duplicate Go const definitions.
153 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
155         * Makefile.in (LIBDEPS): Add libcommon.a.
156         (LIBS): Likewise.
157         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
158         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
159         pretty-print.o and version.o.
160         (OBJS-libcommon): New.
161         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
162         (BACKEND): Add libcommon.a.
163         (MOSTLYCLEANFILES): Likewise.
164         (libcommon.a): New.
165         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
166         (cpp$(exeext)): Likewise.
167         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
168         pretty-print.o and input.o.
169         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
170         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
171         (errors.o): Remove.
172         (mips-tfile): Don't explicitly use version.o.
173         (mips-tdump): Likewise.
174         (gcov.o): Depend on $(DIAGNOSTIC_H).
175         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
176         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
177         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
178         * gcov-dump.c: Include intl.h and diagnostic.h.
179         (main): Initialize diagnostics.
180         * gcov.c: Include diagnostic.h.
181         (fnotice): Remove.
182         (main): Initialize diagnostics.
183         * lto-wrapper.c: Include diagnostic.h.
184         (main): Initialize diagnostics.
186 2011-05-20  Michael Matz  <matz@suse.de>
188         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
190 2011-05-20  Michael Matz  <matz@suse.de>
191             Richard Guenther  <rguenther@suse.de>
193         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
194         use lto_streamer_cache_append directly instead of returning a VEC.
195         (preload_common_node): Remove.
196         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
197         track seen nodes.
198         (lto_streamer_cache_create): Call lto_preload_common_nodes.
200 2011-05-20  Richard Guenther  <rguenther@suse.de>
202         PR tree-optimization/49079
203         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
204         MEM_REFs correctly for the trailing array access detection.
205         Special case constants the same way as decls for overall size
206         constraining.
208 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
210         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
211         argument expansion.
213 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
215         PR tree-optimization/49073
216         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
217         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
218         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
220 2011-05-20  Richard Guenther  <rguenther@suse.de>
222         PR middle-end/48849
223         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
224         of pointer types the same way the middle-end does.
226 2011-05-20  Richard Guenther  <rguenther@suse.de>
228         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
229         or pointer-to chains.  Delay all fixup to uniquify_nodes.
231 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
233         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
234         (fma4_fmaddsub): Likewise
236 2011-05-19  Jan Hubicka  <jh@suse.cz>
238         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
239         (GIMPLE_TYPE_PAIR_SIZE): New macro.
240         (type_pair_cache): New static var.
241         (lookup_type_pair): Use fixed sized custom hash; make inline.
242         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
243         calls of lookup_type_pair.
244         (print_gimple_types_stats): Remove cache stats.
245         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
246         and gtc_ob.
248 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
250         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
251         when TARGET_RDRND is active.
252         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
253         Generate dummy SImode target register when target is NULL.
255 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
257         * config/arm/arm-fpus.def: New.
258         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
259         arm-fpus.def.
260         * config/arm/arm-tables.opt: Regenerate.
261         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
262         (arm_option_override): Don't decode FPU name to string here.
263         * config/arm/arm.opt (mfpu=): Use Enum.
264         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
265         Update dependencies.
267 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
269         * collect2.c: Include diagnostic.h.
270         (fatal_perror, fatal, error, fancy_abort): Remove.
271         (main): Set progname.  Call xmalloc_set_program_name and
272         diagnostic_initialize.
273         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
274         scan_libraries, resolve_lib_name): Call fatal_error instead of
275         fatal and fatal_perror.
276         * collect2.h (error, fatal, fatal_perror): Don't declare.
277         * tlink.c: Include diagnostic-core.h.
278         (recompile_files): Call fatal_error instead of fatal_perror.
279         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
280         pretty-print.o and input.o.
281         (collect2.o, tlink.o): Update dependencies.
283 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
285         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
287 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
289         PR target/40483
290         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
291         COMDAT group syntax, both SPARC and x86 variants.
292         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
293         * configure: Regenerate.
294         * config/sol2.h (TARGET_SOLARIS): Define.
295         (PUSHSECTION_FORMAT): Remove.
296         (SECTION_NAME_FORMAT): Define.
297         * config/sol2.c: Include hashtab.h.
298         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
299         expansion, using SECTION_NAME_FORMAT.
300         (solaris_comdat_htab): New variable.
301         (struct comdat_entry): Define.
302         (comdat_hash): New function.
303         (comdat_eq): New function.
304         (solaris_elf_asm_comdat_section): New function.
305         (solaris_define_comdat_signature): New function.
306         (solaris_code_end): New function.
307         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
308         (solaris_code_end): Declare.
309         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
310         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
311         solaris_code_end.
312         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
313         Remove ATTRIBUTE_UNUSED.
314         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
315         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
316         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
317         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
318         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
319         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
320         (PUSHSECTION_FORMAT): Remove.
321         (SECTION_NAME_FORMAT): Redefine.
323 2011-05-19  Kai Tietz  <ktietz@redhat.com>
325         * tree-cfg.c (verify_gimple_assign_binary): Barf on
326         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
327         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
329 2011-05-19  Anatoly Sokolov <aesok@post.ru>
330             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
332         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
334 2011-05-19  Richard Guenther  <rguenther@suse.de>
336         PR middle-end/48985
337         * tree-object-size.c (addr_object_size): If the pointed-to
338         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
340 2011-05-19  Richard Guenther  <rguenther@suse.de>
342         * gimple.c (gimple_types_compatible_p_1): Compare names of
343         the types themselves.
344         (iterative_hash_gimple_type): And hash them that way.
345         (gimple_register_type_1): If we register a main variant properly
346         initialize the leader to ourselves.
348 2011-05-19  Tom de Vries  <tom@codesourcery.com>
350         PR target/45098
351         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
352         get_loop_invariant_expr_id.
353         (get_loop_invariant_expr_id): Use get_expr_id.
354         (parm_decl_cost): New function.
355         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
356         Improve bound cost estimation.  Use different inv_expr_id for elim and
357         express cases.
359 2011-05-19  Tom de Vries  <tom@codesourcery.com>
361         PR target/45098
362         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
363         cost_base.cost == 0.
365 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
367         PR target/49002
368         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
369         Properly handle load cast.
371 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
373         PR tree-optimization/49039
374         * tree-vrp.c (extract_range_from_binary_expr): For
375         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
376         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
378 2011-05-18  Tom de Vries  <tom@codesourcery.com>
380         PR target/45098
381         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
383 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
385         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
386         (*tls_global_dynamic_64): Ditto.
387         (*tls_local_dynamic_base_32_gnu): Ditto.
388         (*tls_local_dynamic_base_64): Ditto.
389         (tls_initial_exec_64_sun): Ditto.
391 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
393         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
394         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
395         bf592-none.
396         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
397         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
398         * config/bfin/bfin.c (bfin_cpus): Add bf592.
399         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
400         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
401         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
402         * config/bfin/elf.h (LIB_SPEC): Add bf592.
404 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
406         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
407         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
408         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
409         target_thread_pointer, arm_structure_size_boundary, struct
410         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
411         struct abi_name, arm_all_abis): Remove.
412         (arm_option_override) Don't process most enumerated option values here.
413         Don't process target_fpe_name here.  Work with integer not string for
414         structure size boundary; use separate diagnostics for each case.
415         * config/arm/arm.h (enum float_abi_type, enum
416         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
417         to arm-opts.h.
418         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
419         arm_structure_size_boundary): Remove.
420         * config/arm/arm.opt (mabi=): Use Enum and Init.
421         (arm_abi_type): New Enum and EnumValue entries.
422         (mfloat-abi=): Use Enum and Init.
423         (float_abi_type): New Enum and EnumValue entries.
424         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
425         (mfp16-format=): Use Enum and Init.
426         (arm_fp16_format_type): New Enum and EnumValue entries.
427         (mstructure-size-boundary=): Use UInteger and Init.
428         (mtp=): Use Enum and Init.
429         (arm_tp_type): New Enum and EnumValue entries.
431 2011-05-18  Richard Guenther  <rguenther@suse.de>
433         PR tree-optimization/49018
434         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
435         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
436         gimple_has_side_effects.
438 2011-05-18  Richard Guenther  <rguenther@suse.de>
440         * gimple.c (gimple_register_type_1): New function, split out from ...
441         (gimple_register_type): ... here.  Avoid infinite recursion.
443 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
445         PR tree-optimization/41881
446         * tree-vectorizer.h (struct _loop_vec_info): Add new field
447         reduction_chains along with a macro for its access.
448         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
449         (destroy_loop_vec_info): Free reduction chains.
450         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
451         (vect_is_slp_reduction): New function.
452         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
453         (vect_create_epilog_for_reduction): Support SLP reduction chains.
454         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
455         definition types for reduction chains.
456         (vect_supported_load_permutation_p): Don't allow permutations for
457         reduction chains.
458         (vect_analyze_slp_instance): Support reduction chains.
459         (vect_analyze_slp): Try to build SLP instance from reduction chains.
460         (vect_get_constant_vectors):  Handle reduction chains.
461         (vect_schedule_slp_instance): Mark the first statement of the
462         reduction chain as reduction.
464 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
466         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
467         names for group elements access.
468         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
469         reduction chains as well.  Remove data reference and interleaving
470         related words from the fields names.
471         * tree-vect-loop.c (vect_transform_loop): Use new names for group
472         elements access.
473         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
474         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
475         vect_update_interleaving_chain, vect_same_range_drs,
476         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
477         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
478         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
479         vect_analyze_group_access, vect_analyze_data_ref_access,
480         vect_create_data_ref_ptr, vect_transform_strided_load,
481         vect_record_strided_load_vectors): Likewise.
482         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
483         vect_model_load_cost, vectorizable_store, vectorizable_load,
484         vect_remove_stores, new_stmt_vec_info): Likewise.
485         * tree-vect-slp.c (vect_build_slp_tree,
486         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
488 2011-05-18  Richard Guenther  <rguenther@suse.de>
490         PR middle-end/48989
491         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
492         operand verification.
493         (verify_gimple_assign_binary): Likewise.
494         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
495         to non-1-precision BOOLEAN_TYPEs.
497 2011-05-18  Tom de Vries  <tom@codesourcery.com>
499         PR target/45098
500         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
502 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
504         PR tree-optimization/49000
505         * tree-ssa.c (execute_update_addresses_taken): Call
506         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
507         be rewritten and decl has been marked for renaming, reset
508         the debug stmt.
510 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
512         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
513         enum_opts_set when testing if attributes have set -mfpmath=.
515 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
517         * config/mips/mips.c (mips_handle_option): Remove unused variable.
519 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
521         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
522         info->entry with 0
523         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
524         id.transform_lang_insert_block with NULL.
526 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
528         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
529         (output_fp_compare): Change args 3 and 4 to bool.
530         (ix86_expand_call): Change arg 6 to bool.
531         (ix86_attr_length_immediate_default): Change arg 2 to bool.
532         (ix86_attr_length_vex_default): Change arg 3 to bool.
533         * config/i386/i386.md: Update all uses.
534         * config/i386/i386.c: Ditto.
535         (ix86_flags_dependent): Change return type to bool.
537 2011-05-17  Richard Guenther  <rguenther@suse.de>
539         * gimple.c (type_hash_pair_compare): Fix comparison.
541 2011-05-17  Richard Guenther  <rguenther@suse.de>
543         * gimple.c (iterative_hash_gimple_type): Simplify singleton
544         case some more, fix final hash value of the non-singleton case.
546 2011-05-17  Richard Guenther  <rguenther@suse.de>
548         PR bootstrap/49013
549         Revert
550         2011-05-16  Richard Guenther  <rguenther@suse.de>
552         * gimple.c (gimple_types_compatible_p_1): Use names of the
553         type itself, not its main variant.
554         (iterative_hash_gimple_type): Likewise.
556 2011-05-17  Richard Guenther  <rguenther@suse.de>
558         * gimple.c (gimple_register_canonical_type): Use the main-variant
559         leader for computing the canonical type.
561 2011-05-17  Nick Clifton  <nickc@redhat.com>
563         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
564         moves.
566         * config/rx/rx.md: Add peephole to remove redundant extensions
567         after loads.
568         (bitset_in_memory): Use rx_restricted_mem_operand.
569         (bitinvert_in_memory): Likewise.
570         (bitclr_in_memory): Likewise.
572 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
573             Nick Clifton  <nickc@redhat.com>
575         * config/rx/rx.md: Add peepholes to match a register move followed
576         by a comparison of the moved register.  Replace these with an
577         addition of zero that does both actions in one instruction.
579 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
581         PR target/48986
582         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
583         predicate to allow CONST_INT.
584         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
586 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
588         * opts-common.c (opt_enum_arg_to_value): New.
589         * opts.h (opt_enum_arg_to_value): Declare.
590         * config/i386/i386.opt (fpmath): Remove.
591         (mfpmath=): Use Enum, Init and Save.
592         (fpmath_unit): New Enum and EnumValue entries.
593         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
594         name for function fpmath state.
595         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
596         * config/i386/i386.c: Include diagnostic.h.
597         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
598         (ix86_target_string): Take enum fpmath_unit value instead of string.
599         (ix86_debug_options): Update call to ix86_target_string.
600         (ix86_option_override_internal): Don't process fpmath strings here.
601         (x86_function_specific_save, ix86_function_specific_restore):
602         Don't handle fpmath state specially.
603         (ix86_function_specific_print): Pass fpmath state to
604         ix86_target_string instead of printing in this function.
605         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
606         Handle enum attributes.
607         (IX86_ATTR_ENUM, ix86_opt_enum): New.
608         (ix86_valid_target_attribute_tree): Update option_strings
609         handling.  Handle fpmath as enum option.
610         (ix86_can_inline_p): Update field names for function fpmath state.
611         (ix86_expand_builtin): Update call to ix86_target_string.
612         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
613         (ix86_fpmath): Remove.
614         * config/i386/t-i386 (i386.o): Update dependencies.
616 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
618         PR preprocessor/48677
619         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
620         from decoded_options[0], not from itself.
622 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
624         * config/i386/constraints.md (z): New constraint.
625         * config/i386/i386.c (c): New mode attribute.
626         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
627         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
628         constraint for operand 0.
629         (*call_vzeroupper): Ditto.
630         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
631         (*call_rex64_ms_sysv_vzeroupper): Ditto.
632         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
633         Use "lzm" constraint for operand 0.
634         (*call_pop_vzeroupper): Ditto.
635         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
636         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
637         constraint for operand 0.
638         (*sibcall_vzeroupper): Ditto.
639         (*sibcall_rex64_ms_sysv): Ditto.
640         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
641         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
642         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
643         (*sibcall_pop_vzeroupper): Ditto.
644         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
645         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
646         mode iterator.  Use "<c>zm" constraint for operand 1.
647         (*call_value_vzeroupper): Ditto.
648         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
649         for operand 1.
650         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
651         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
652         *call_value_pop_1.  Use "lzm" constraint for operand 1.
653         (*call_value_pop_vzeroupper): Ditto.
654         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
655         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
656         mode iterator.  Use "Uz" constraint for operand 1.
657         (*sibcall_value_vzeroupper): Ditto.
658         (*sibcall_value_rex64_ms_sysv): Ditto.
659         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
660         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
661         constraint for operand 1.
662         (*sibcall_value_pop_vzeroupper): Ditto.
663         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
664         and "z" constraint for operand 2.
665         (*tls_global_dynamic_32_gnu): Ditto.
666         (*tls_local_dynamic_base_32_gnu): Ditto.
667         (*tls_local_dynamic_base_64): Ditto.
668         (*tls_local_dynamic_32_once): Ditto.
669         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
670         Update all callers.
671         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
673 2011-05-16  Richard Guenther  <rguenther@suse.de>
675         * gimple.c (gimple_types_compatible_p_1): Use names of the
676         type itself, not its main variant.
677         (iterative_hash_gimple_type): Likewise.
679 2011-05-16  Richard Guenther  <rguenther@suse.de>
681         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
682         always visit pointer target and function result and argument types.
684 2011-05-16  Jason Merrill  <jason@redhat.com>
686         PR c++/48999
687         * tree-inline.c (copy_statement_list): Put back recursion.
689 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
691         PR target/27663
692         PR target/41076
693         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
694         * config/avr/avr.md ("*ior<mode>qi.byte0",
695         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
697 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
699         PR target/45099
700         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
701         register is needed for a function argument.
703 2011-05-16  Richard Guenther  <rguenther@suse.de>
705         * gimple.c (struct type_hash_pair): New type.
706         (type_hash_pair_compare): New function.
707         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
709 2011-05-16  Revital Eres  <revital.eres@linaro.org>
711         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
713 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
715         * config/i386/i386.md (floating point move splitters): Fix
716         usage of standard_80387_constant_p.
717         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
719 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
721         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
723 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
725         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
726         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
727         (tree_ssa_lim_finalize): Likewise.
729 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
731         * config/i386/constraint.md (Yd, Yx): New register constraints.
732         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
733         Yd conditional register constraint.
734         (*movtf_internal): Use standard_sse_constant_opcode.
735         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
736         Yx conditional register constraint.
737         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
738         Yd conditional register constraint.  Use standard_sse_constant_p to
739         check for valid SSE constants and call standard_sse_constant_opcode to
740         output SSE insn.
741         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
742         constants and call standard_sse_constant_opcode to output SSE insn.
743         * config/i386/i386.c (ix86_option_ovverride_internal): Set
744         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
745         optimize_size is set.
746         (standard_sse_constant_opcode): Output conditional AVX insn templates.
748 2011-05-14  Tobias Burnus  <burnus@net-b.de>
750         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
752 2011-05-13  Martin Jambor  <mjambor@suse.cz>
754         * ipa-prop.c (ipa_cst_from_jfunc): New function.
755         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
756         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
757         (evaluate_conditions_for_ipcp_clone): Removed.
758         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
759         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
760         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
762 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
764         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
765         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
766         lieu of MAY_HAVE_DEBUG_STMTS.
767         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
768         debug statements if !MAY_HAVE_DEBUG_STMTS.
770 2011-05-13  Martin Thuresson  <martint@google.com>
772         PR gcov-profile/47793
773         * libgcov.c (gcov_exit): Support relative profile paths.
774         * doc/invoke.texi (-fprofile-dir): Update for above change.
776 2011-05-13  Richard Guenther  <rguenther@suse.de>
778         * gimple.c (gimple_canonical_types_compatible_p): Do not use
779         type-pair caching, do not compare hashes.
781 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
783         PR middle-end/48965
784         * tree-cfg.c (edge_to_cases_cleanup): Return true.
785         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
787 2011-05-13  Kai Tietz  <ktietz@redhat.com>
789         * gimplify.c (gimplify_expr): Make sure operand is boolified.
790         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
791         compatible type for TRUTH_NOT_EXPR.
793 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
795         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
796         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
797         can_create_pseudo_p ().
799 2011-05-13  Richard Guenther  <rguenther@suse.de>
801         PR lto/48978
802         * gimple.c (iterative_hash_gimple_type): Revert change in
803         pointer target and function result and argument hashing.
805 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
807         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
808         (*movxf_internal_nointeger): Ditto.
809         (*movdf_internal_rex64): Ditto.
810         (*movdf_internal): Ditto.
811         (*movdf_internal_nointeger): Ditto.
812         (*movsf_internal): Ditto.
813         (sincos splitters): Use can_create_pseudo ().
815 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
817         * config/i386/i386-opts.h: New.
818         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
819         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
820         ix86_section_threshold): Remove.
821         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
822         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
823         OPT_mbranch_cost_.
824         (ix86_option_override_internal): Don't decode strings for options
825         other than -march=, -mtune= and -mfpmath=.  Don't allow for
826         __attribute__ uses in remaining diagnostics for options with
827         string arguments.  Don't check for integer arguments being negative.
828         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
829         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
830         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
831         ix86_branch_cost, ix86_section_threshold): Remove.
832         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
833         HeaderInclude.
834         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
835         but not Var.
836         (masm=): Use Enum and Init.
837         (asm_dialect): New Enum and EnumValue entries.
838         (mbranch-cost=): Use UInteger.
839         (mlarge-data-threshold=): Use UInteger and Init.
840         (mcmodel=): Use Enum and Init.
841         (cmodel): New Enum and EnumValue entries.
842         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
843         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
844         mregparm=): Use UInteger.
845         (mstringop-strategy=): Use Enum and Init.
846         (stringop_alg): New Enum and EnumValue entries.
847         (mtls-dialect=): Use Enum and Init.
848         (tls_dialect): New Enum and EnumValue entries.
849         (mabi=): Use Enum and Init.
850         (calling_abi): New Enum and EnumValue entries.
851         (mveclibabi=): Use Enum and Init.
852         (ix86_veclibabi): New Enum and EnumValue entries.
854 2011-05-13  Nick Clifton  <nickc@redhat.com>
856         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
857         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
859 2011-05-13  Kai Tietz  <ktietz@redhat.com>
861         PR middle-end/48984
862         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
863         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
864         (gimple_boolify): Check for cast for boolean_type_node instead for
865         BOOLEAN_TYPE.
867 2011-05-13  Richard Guenther  <rguenther@suse.de>
869         PR tree-optimization/48172
870         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
871         multiplying by number of iterations for equal step.
872         (vect_create_cond_for_alias_checks): Likewise.
874 2011-05-13  Andreas Schwab  <schwab@redhat.com>
876         * configure.ac: Use AS_HELP_STRING throughout.
877         * configure: Regenerate.
879 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
881         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
882         (ix86_emit_restore_regs_using_mov): Likewise.
883         (ix86_emit_restore_sse_regs_using_mov): Likewise.
885 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
887         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
888         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
889         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
890         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
891         RTX_OK_FOR_OLO10_P): ...here.
892         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
893         SYMBOLIC_CONST.
895 2011-05-12  Kai Tietz  <ktietz@redhat.com>
897         * gimplify.c (gimple_boolify): Re-boolify expression
898         arguments even if expression type is of kind BOOLEAN_TYPE.
899         (gimplify_boolean_expr): Removed.
900         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
901         and XOR. Additional take care that we keep expression's type.
902         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
903         of TRUTH_AND|OR|XOR_EXPR.
905 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
907         PR tree-optimization/48975
908         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
909         on all bbs here and free and clear ifc_bbs at the end.
911 2011-05-12  Richard Guenther  <rguenther@suse.de>
913         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
914         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
915         until after simple checks.
916         (gimple_types_compatible_p): Likewise.
917         (iterative_hash_gimple_type): Always hash pointer targets
918         and function return and argument types.
919         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
920         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
921         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
922         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
923         completely in the simple compare section.
924         (gimple_register_canonical_type): Query the cache again after
925         registering.
927 2011-05-12  Richard Guenther  <rguenther@suse.de>
929         PR tree-optimization/48172
930         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
931         the number of iterations from the segment size calculation.
932         (vect_create_cond_for_alias_checks): Adjust.
934 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
936         PR debug/48967
937         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
938         if validate_subreg fails.
940 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
942         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
943         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
944         early.
946 2011-05-12  DJ Delorie  <dj@redhat.com>
948         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
949         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
950         created builtin into rx_builtins array.
951         (rx_builtin_decl): New function.
952         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
954 2011-05-12  DJ Delorie  <dj@redhat.com>
955             Nick Clifton  <nickc@redhat.com>
957         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
958         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
959         (rx_is_legitimate_address): Add pre-decrement and post-increment
960         addressing in HImode and QImode.  Fix test for out of range
961         REG+INT addressing.
962         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
963         (rx_align_for_label): Test label before extracting its usage count.
964         (rx_adjust_insn_lengths): Fix selection of insn codes.
965         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
967 2011-05-11  Jason Merrill  <jason@redhat.com>
969         * tree.c (type_hash_canon): Use struct tree_type_non_common.
971 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
973         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
974         reindent the subsequent block.
976 2011-05-11  Satoru Takabayashi  <satorux@google.com>
977             Paul Pluzhnikov  <ppluzhnikov@google.com>
979         * doc/install.texi (Configuration): Document --with-linker-hash-style.
980         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
981         * config.in: Add LINKER_HASH_STYLE.
982         * configure.ac: Add --with-linker-hash-style.
983         * configure: Regenerate.
985 2011-05-11  Richard Guenther  <rguenther@suse.de>
987         PR middle-end/48964
988         * gimple.c (iterative_hash_canonical_type): Fix typo.
990 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
992         * config/i386/i386.c (legitimize_tls_address)
993         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
994         expanders directly for TARGET_GNU2_TLS.  Determine pic and
995         __tls_get_addr symbol reference here.  Update call to
996         gen_tls_global_dynamic_{32,64} for added arguments.
997         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
998         expanders directly for TARGET_GNU2_TLS.  Determine
999         __tls_get_addr symbol reference here.  Update call to
1000         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1001         unique UNSPEC REG_EQUIV to libcall block.
1002         (ix86_tls_get_addr): Declare static.
1003         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1004         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1005         Do not determine pic and __tls_get_addr symbol reference here. Do not
1006         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1007         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1008         (tls_global_dynamic_64): Add operand 2.  Do not determine
1009         __tls_get_addr symbol reference here.  Do not call
1010         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1011         (tls_local_dynamic_base64): Ditto for operand 1.
1013 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1015         * function.c (expand_function_start): Initialize stack_check_probe_note
1016         only if the generic stack checking mechanism is used.
1018 2011-05-11  Richard Guenther  <rguenther@suse.de>
1020         PR tree-optimization/15256
1021         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1022         (A & B) | C, combine (A op CST1) op CST2.
1023         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1024         visit assigns that have uses.
1026 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1028         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1029         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1030         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1031         (unpack_value_fields): Adjust for renaming.
1032         (lto_input_ts_type_tree_pointers): Split into...
1033         (lto_input_ts_type_common_tree_pointer): ...this and...
1034         (lto_input_ts_type_non_common_tree_pointers): ...this.
1035         (lto_input_tree_pointers): Adjust for above split.
1036         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1037         (pack_ts_type_common_value_fields): ...this.  Update comment.
1038         (lto_output_ts_type_tree_pointers): Split into...
1039         (lto_output_ts_type_common_tree_pointers): ...this and...
1040         (lto_output_ts_type_non_common_tree_pointers): ...this.
1041         (lto_output_tree_pointers): Adjust for above split.
1042         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1043         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1044         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1045         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1046         Define.
1047         (struct tree_type): Split into...
1048         (struct tree_type_common: ...this and...
1049         (struct tree_type_with_lang_specific): ...this and...
1050         (struct tree_type_non_common): ...this.  Adjust accessor macros
1051         accordingly.
1052         (TYPE_VALUES_RAW): Define.
1053         (union tree_node): Update for above changes.
1054         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1055         TS_TYPE_NON_COMMON.
1056         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1057         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1058         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1059         * treestructu.def (TS_TYPE): Remove.
1060         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1061         Define.
1063 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1065         PR debug/48159
1066         * tree-ssa.c (reset_debug_uses): New function.
1067         * tree-flow.h (reset_debug_uses): New prototype.
1068         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1069         * tree-loop-distribution.c (generate_loops_for_partition): Call
1070         reset_debug_uses on the stmts that will be removed.  Keep around
1071         all debug stmts, don't count them as bits in partition bitmap.
1072         (generate_builtin): Don't count debug stmts or labels as bits in
1073         partition bitmap.
1075 2011-05-11  Richard Guenther  <rguenther@suse.de>
1077         * gimple.c (gimple_type_hash_1): Merge with ...
1078         (gimple_type_hash): ... this.
1079         (gtc_visit): Remove mode parameter and simplify accordingly.
1080         (gimple_types_compatible_p_1): Likewise.
1081         (gimple_types_compatible_p): Likewise.
1082         (iterative_hash_gimple_type): Likewise.
1083         (visit): Likewise.
1084         (gimple_type_eq): Adjust.
1086 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1088         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1089         enters the branch create an anti edge in the opposite direction
1090         to prevent the creation of reg-moves.
1091         * modulo-sched.c: Adjust comment to reflect the fact we are
1092         scheduling closing branch.
1093         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1094         (stage_count): New field in struct partial_schedule.
1095         (calculate_stage_count): New function.
1096         (normalize_sched_times): Rename to reset_sched_times and handle
1097         incrementing the sched time of the nodes by a constant value
1098         passed as parameter.
1099         (duplicate_insns_of_cycles): Skip closing branch.
1100         (sms_schedule_by_order): Schedule closing branch.
1101         (ps_insn_find_column): Handle closing branch.
1102         (sms_schedule): Call reset_sched_times and adjust the code to
1103         support scheduling of the closing branch.
1104         (ps_insert_empty_row): Update calls to normalize_sched_times
1105         and rotate_partial_schedule functions.
1107 2011-05-11  Richard Guenther  <rguenther@suse.de>
1109         PR middle-end/48953
1110         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1112 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1114         * opts.c (finish_options): Move warning settings from process_options.
1115         * toplev.c (process_options): Move warning settings to finish_options.
1117 2011-05-11  Richard Guenther  <rguenther@suse.de>
1119         PR tree-optimization/18041
1120         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1121         (simplify_bitwise_binary): ... this.  Handle operand conversions
1122         by applying them to the result instead.
1123         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1125 2011-05-11  Richard Guenther  <rguenther@suse.de>
1127         * gimple.c (gimple_canonical_types_compatible_p): Split out
1128         from gimple_types_compatible_p and friends.  Do not recurse
1129         to pointed-to types.
1130         (gimple_canonical_type_eq): Use it.
1131         (iterative_hash_canonical_type): Split out from
1132         iterative_hash_gimple_type and friends.  Do not recurse
1133         to pointed-to types.
1134         (gimple_canonical_type_hash): Use it, allocate the hash here.
1136 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1138         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1139         recognizing doloop.
1141 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1143         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1144         instead of PREV_INSN.
1146 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1148         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1149         * loop-doloop.c (doloop_condition_get): Likewise.
1150         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1151         (doloop_end): New.
1152         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1154 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1156         * tree.def (CASE_LABEL_EXPR): Add an operand.
1157         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1159 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1161         * c-decl.c (c_override_global_bindings_to_false): Remove.
1162         (global_bindings_p): Don't check
1163         c_override_global_bindings_to_false.
1164         * c-tree.h (c_override_global_bindings_to_false): Remove.
1165         * c-typeck.c (composite_type): Don't set
1166         c_override_global_bindings_to_false.
1168 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1170         PR target/48857, 48495
1171         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1172         (VSX_MODE): Ditto.
1173         (VSX_MOVE_MODE): Ditto.
1174         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1175         VSX vector types.  Add V2DImode.
1176         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1177         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1178         (MODES_TIEABLE_P): Ditto.
1180         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1181         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1182         VSX_VECTOR_MODE.
1183         (init_cumulative_args): Ditto.
1184         (rs6000_function_arg_boundary): Ditto.
1185         (rs6000_function_arg_advance_1): Ditto.
1186         (rs6000_function_arg): Ditto.
1187         (rs6000_function_ok_for_sibcall): Ditto.
1188         (emit_frame_save): Ditto.
1189         (rs6000_function_value): Ditto.
1190         (rs6000_libcall_value): Ditto.
1192 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1194         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1195         i386/darwin-lib.h to $libgcc_tm_file.
1196         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1198 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1200         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1202 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1204         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1205         * config/rs6000/rs6000-tables.opt: New file (generated).
1206         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1207         rs6000/rs6000-tables.opt to extra_options.
1208         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1209         * config/rs6000/rs6000.c (rs6000_select): Remove.
1210         (processor_target_table): Move contents to rs6000-cpus.def.
1211         (darwin_rs6000_override_options): Check
1212         global_options_set.x_rs6000_cpu_index instead of
1213         rs6000_select[1].string.
1214         (rs6000_option_override_internal): Likewise.
1215         (rs6000_handle_option): Don't assert that global structures are in
1216         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1217         (rs6000_default_cpu): New variable.
1218         (rs6000_file_start): Set it instead of local default_cpu.  Check
1219         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1220         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1221         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1222         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1223         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1224         rs6000_select): Remove.
1225         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1226         Remove.
1227         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1228         * config/rs6000/t-rs6000
1229         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1230         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1231         global_options_set.x_rs6000_cpu_index instead of
1232         rs6000_select[1].string.
1233         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1234         global_options_set.x_rs6000_cpu_index instead of
1235         rs6000_select[1].string.
1237 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1239         * config.gcc (libgcc_tm_file): Define instead of including files
1240         from ../../libgcc/config/ in tm_file.
1241         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1242         * configure: Regenerate.
1243         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1244         libgcc_tm.h, cs-libgcc_tm.h): New.
1245         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1246         (clean): Remove libgcc_tm.h.
1247         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1248         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1249         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1251 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1253         PR target/48896
1254         * config/avr/avr.c (avr_ret_register): Return unsigned int
1255         instead of int.
1256         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1257         it to avr_libcall_value.
1258         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1259         expand_expr.
1260         (avr_expand_binop_builtin): Ditto.
1261         (avr_expand_unop_builtin): Ditto.
1263 2011-05-10  DJ Delorie  <dj@redhat.com>
1265         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1266         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1267         * config/rx/rx.c (rx_align_for_label): Add label and
1268         uses_threshold parameters.  Do not align when the label is not
1269         used enough.
1270         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1272 2011-05-10  Richard Guenther  <rguenther@suse.de>
1274         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1275         a series of conversions and apply foldings similar to what
1276         fold-const does.
1277         (tree_ssa_forward_propagate_single_use_vars): Call it.
1279 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1281         PR tree-optimization/48611
1282         PR tree-optimization/48794
1283         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1284         referenced from RESX or EH_DISPATCH arguments.
1286         PR debug/48928
1287         * dfp.c (decimal_to_decnumber): Handle conversion from
1288         dconst{1,2,m1,half}.
1290 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1292         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1293         for !flag_prefer_avx128.
1294         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1296 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1298         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1299         (fold_ternary_loc): Use expr_location_or.
1301 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1303         PR debug/48853
1304         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1305         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1306         Pmode and mem_mode is not VOIDmode.
1308 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1310         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1311         TYPE_QUAL_RESTRICT): Convert to enum.
1313 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1315         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1316         (const_pow2_1_to_8_operand): Ditto.
1317         (const_pow2_1_to_128_operand): Ditto.
1318         (const_pow2_1_to_32768_operand): Ditto.
1319         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1320         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1321         in insn constraint to check integer value of operand 3.
1322         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1324         (PINSR_MODE): New mode iterator.
1325         (sse2p4_1): New mode attribute.
1326         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1327         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1328         iterator.  Use const_int_operand instead of
1329         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1330         exact_log2 in insn constraint to check integer value of operand 3.
1332 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1334         * config/i386/sse.md (blendbits): Remove mode attribute.
1335         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1336         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1337         Check integer value of operand 3 in insn constraint.
1339 2011-05-09  Richard Guenther  <rguenther@suse.de>
1341         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1342         for diagnostics.
1343         (lto_symtab_merge): Likewise.  Do not register types here.
1344         (lto_symtab_merge_decls_2): Likewise.
1345         (lto_symtab_merge_decls_1): Likewise.
1346         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1347         * gimple.c (enum gtc_mode): Declare.
1348         (gimple_types_compatible_p): Make static.
1350 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1352         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1353         temporary register to match Pmode.
1355 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1357         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1358         and *vec_concatv4si_1_avx.
1360 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1362         PR rtl-optimization/48927
1363         * ira-conflicts.c (commutative_constraint_p): Use
1364         recog_data.alternative_enabled_p to disable alternatives where
1365         "enabled" attribute is false.
1366         (get_dup_num): Ditto.
1367         * ira-lives.c (single_reg_class): Ditto.
1368         (ira_implicitly_set_insn_hard_regs): Ditto.
1370 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1372         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1373         (dataflow_set_preserve_mem_locs): Likewise.
1375 2011-05-09  Philipp Thomas  <pth@suse.de>
1377         * config/mep/mep.c (mep_validate_vliw): Syntax description
1378         should not be translated.
1380 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1382         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1383         * config/mips/mips-tables.opt: New file (generated).
1384         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1385         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1386         MIPS_ARCH_OPTION_NATIVE): Define.
1387         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1388         mips-cpus.def.
1389         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1390         mips_parse_cpu): Remove.
1391         (mips_cpu_info_from_opt, mips_default_arch): New.
1392         (mips_handle_option): Don't assert that global structures are in
1393         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1394         (mips_option_override): Use new variables and functions to set
1395         state of these options.  Use strcmp to check for individual CPU names.
1396         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1397         definition.
1398         * config/mips/mips.opt (march=): Use ToLower and Enum.
1399         (mips): Use ToLower, Enum and Var.
1400         (mtune=): Use ToLower and Enum.
1401         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1403 2011-05-08  Jan Hubicka  <jh@suse.cz>
1405         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1406         Arrange type pairs to be UID ordered.
1407         (gimple_lookup_type_leader): Make inline.
1409 2011-05-09  Nick Clifton  <nickc@redhat.com>
1411         PR target/48899
1412         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1413         PROCESSOR_DEFAULT.
1415         PR target/48897
1416         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1417         variable 's'.
1419 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1421         * combine.c (simplify_comparison): Abstract out parts into...
1422         (simplify_compare_const): ... new function.
1423         (try_combine): Generalize parallel arithmetic/compare combining
1424         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1426 2011-05-08  Jan Hubicka  <jh@suse.cz>
1428         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1429         (cgraph_create_virtual_clone): Call hooks once virtual clone
1430         is finished.
1431         * cgraph.h (cgraph_clone_node): Update prototype.
1432         * ipa-cp.c (ipcp_estimate_growth): Use
1433         estimate_ipcp_clone_size_and_time.
1434         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1435         * lto-cgraph.c (input_node): Update.
1436         * ipa-inline.c (recursive_inlining): Update.
1437         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1438         (evaluate_conditions_for_known_args): Break out from ...
1439         (evaluate_conditions_for_edge): ... here.
1440         (evaluate_conditions_for_ipcp_clone): New function.
1441         (inline_node_duplication_hook): Update clone summary based
1442         on parameter map.
1443         (estimate_callee_size_and_time): Rename to ...
1444         (estimate_node_size_and_time): take NODE instead of EDGE;
1445         take POSSIBLE_TRUTHS as argument.
1446         (estimate_callee_size_and_time): Update.
1447         (estimate_ipcp_clone_size_and_time): New function.
1448         (do_estimate_edge_time): Update.
1450 2011-05-08  Richard Guenther  <rguenther@suse.de>
1452         PR middle-end/48908
1453         PR middle-end/48905
1454         * expmed.c (expand_shift_1): Compute adjusted constant shift
1455         amount manually.
1457 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1459         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1461 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1463         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1465 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1467         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1469 2011-05-07  Jan Hubicka  <jh@suse.cz>
1471         * ipa-inline-transform.c (inline_call): Account when program size
1472         decreases.
1473         * ipa-inline.c (relative_time_benefit): New function.
1474         (edge_badness): Reorganize to be power 2 based; fix thinko when
1475         computing badness for negative growth; update comments to match
1476         reality; better dumps.
1478 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1480         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1481         type to bool and adjust comment.
1482         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1483         (fold_mathfn_compare): Remove calls to global_bindings_p.
1484         (fold_inf_compare): Likewise.
1485         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1486         * c-tree.h (global_bindings_p): Adjust prototype.
1487         * c-decl.c (global_bindings_p): Return bool and simplify.
1489 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1491         PR tree-optimization/48837
1492         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1493         when accumulator transformation is performed.
1495 2011-05-06  Jan Hubicka  <jh@suse.cz>
1497         * i386.h (ix86_tune_indices): Add
1498         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1499         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1500         * i386.c (initial_ix86_tune_features): Add
1501         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1502         (software_prefetching_beneficial_p): Remove predicate.
1503         (ix86_option_override_internal): Use new macro.
1505 2011-05-06  Jan Hubicka  <jh@suse.cz>
1507         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1509 2011-05-06  Jan Hubicka  <jh@suse.cz>
1511         * cgraph.c (cgraph_add_thunk): Create real function node instead
1512         of alias node; finalize it and mark needed/reachale; arrange visibility
1513         to be right and add it into the corresponding same comdat group list.
1514         (dump_cgraph_node): Dump thunks.
1515         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1516         cgraph_function_with_gimple_body_p,
1517         cgraph_first_function_with_gimple_body,
1518         cgraph_next_function_with_gimple_body): New functions.
1519         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1520         New macros.
1521         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1522         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1523         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1524         devirtualization when optimizing.
1525         (verify_cgraph_node): Verify thunks.
1526         (cgraph_analyze_function): Analyze thunks.
1527         (cgraph_mark_functions_to_output): Output thunks only in combination
1528         with function they are assigned to.
1529         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1530         alias into normal node.
1531         (assemble_thunks): New functoin.
1532         (cgraph_expand_function): Use it.
1533         * lto-cgraph.c (lto_output_node): Stream thunks.
1534         (input_overwrite_node): Stream in thunks.
1535         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1536         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1537         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1538         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1539         (inline_analyze_function): Do not care about thunk jump functions.
1540         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1541         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1542         cgraph_function_with_gimple_body_p.
1543         * passes.c (do_per_function_toporder): Use
1544         cgraph_function_with_gimple_body_p.
1545         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1546         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1547         (function_called_by_processed_nodes_p): Likewise.
1549 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1551         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1552         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1553         entries.
1554         (mabi=): Replace with separate entries for mabi=altivec,
1555         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1556         mabi=ieeelongdouble and mabi=ibmlongdouble.
1557         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1558         check for -mabi=spe without SPE ABI support here.
1559         (rs6000_handle_option): Replace OPT_mabi_ handling with
1560         OPT_mabi_altivec and OPT_mabi_spe handling.
1562 2011-05-06  Cary Coutant  <ccoutant@google.com>
1564         * dwarf2out.c (contains_subprogram_definition): New function.
1565         (should_move_die_to_comdat): Call it.
1567 2011-05-06  Jeff Law  <law@redhat.com>
1569         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1570         remove_ctrl_stmt_and_useless_edges.
1571         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1572         (fixup_template_block, thread_single_edge): Likewise.
1573         (mark_threaded_blocks): Use THREAD_TARGET.
1575 2011-05-06  Alan Modra  <amodra@gmail.com>
1577         PR target/48900
1578         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1579         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1581 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1583         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1584         constraint modifier to "r".
1586 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1588         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1589         fall through for OPT_mcmodel_.
1591 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1593         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1594         instruction sizes.
1595         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1597 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1599         PR target/47930
1600         * config/arm/arm.opt (marm): Document it.
1601         (mthumb): Reject negative variant.
1603 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1605         PR target/48898
1606         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1607         Fix typo in "ccvt" variable name.
1609 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1611         PR target/48895
1612         * config/vms/vms-ar.c (main): Remove cwd variable.
1614 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1616         PR debug/48902
1617         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1619 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1621         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1622         * gimplify.c (gimplify_switch_expr): Likewise.
1623         * omp-low.c (expand_omp_sections): Likewise.
1624         * tree-eh.c (lower_try_finally_switch): Likewise.
1625         (lower_eh_dispatch): Likewise.
1626         * tree.h (build_case_label): Declare.
1627         * tree.c (build_case_label): Define.
1629 2011-05-05  Jason Merrill  <jason@redhat.com>
1631         PR c++/40975
1632         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1633         (copy_statement_list): Don't recurse.
1634         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1635         STATEMENT_LIST.
1637 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1639         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1640         through from -mfpu= handling.
1641         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1643 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1645         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1646         POST_MODIFY.
1648 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1650         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1651         for 11.31.
1652         (hppa[12]*-*-hpux11*): Ditto.
1653         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1654         * config/ia64/hpux-unix2003.h: New.
1655         * config/pa/pa-hpux1131.opt: New.
1656         * config/pa/pa-hpux1131.h: New.
1657         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1658         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1659         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1661 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1663         PR debug/48853
1664         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1665         instead of mode as 3rd argument to recursive call.
1666         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1667         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1668         VOIDmode.
1669         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1670         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1671         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1672         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1674 2011-05-05  Julian Brown  <julian@codesourcery.com>
1676         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1677         parenthesis in D-register case.
1679 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1681         * opt-functions.awk (var_type_struct): Handle Enum options.
1682         * optc-gen.awk: Don't check range of variables of character type.
1683         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1684         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1685         rs6000_sdata_name, rs6000_explicit_options): Remove.
1686         (rs6000_option_override_internal): Check for -malign-power here.
1687         Use global_options_set instead of rs6000_explicit_options.
1688         (rs6000_parse_fpu_option): Remove.
1689         (rs6000_handle_option): Access variables via opts and opts_set
1690         pointers.  Use error_at and warning_at.  Add fall-through
1691         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1692         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1693         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1694         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1695         here.  Don't use rs6000_parse_fpu_option.
1696         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1697         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1698         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1699         (mrecip=): Use Var.
1700         (mspe): Use Var and Save.
1701         (mtraceback=): Use Enum and Var.
1702         (rs6000_traceback_type): New Enum and EnumValue entries.
1703         (mfloat-gprs=): Use Enum, Var and Save.
1704         (rs6000_float_gprs): New Enum and EnumValue entries.
1705         (mlong-double-): use Var and Save.
1706         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1707         (malign-): Use Enum and Var.
1708         (rs6000_alignment_flags): New Enum and EnumValue entries.
1709         (mfpu=): Use Enum.
1710         (fpu_type_t): New Enum and EnumValue entries.
1711         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1712         global_options_set instead of rs6000_explicit_options.
1713         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1714         global_options_set instead of rs6000_explicit_options.
1715         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1716         global_options_set instead of rs6000_explicit_options.
1717         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1718         global_options_set instead of rs6000_explicit_options.
1719         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1720         global_options_set instead of rs6000_explicit_options.
1721         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1722         global_options_set instead of rs6000_explicit_options.
1723         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1724         definition.
1725         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1726         global_options_set instead of rs6000_explicit_options.
1727         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1728         (rs6000_cmodel): New Enum and EnumValue entries.
1729         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1730         global_options_set instead of rs6000_explicit_options.
1731         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1732         (mtls-size=): Use Enum and Var.
1733         (rs6000_tls_size): New Enum and EnumValue entries.
1735 2011-05-05  Michael Matz  <matz@suse.de>
1737         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1738         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1739         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1740         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1741         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1742         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1743         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1744         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1745         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1746         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1747         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1748         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1749         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1750         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1751         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1752         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1754 2011-05-05  Richard Guenther  <rguenther@suse.de>
1756         * expmed.c (expand_variable_shift): Rename to ...
1757         (expand_shift_1): ... this.  Take an expanded shift amount.
1758         For rotates recurse directly not building trees for the shift amount.
1759         (expand_variable_shift): Wrap around expand_shift_1.
1760         (expand_shift): Adjust.
1762 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1764         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1766 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1768         * tree.h (get_pending_sizes): Remove prototype.
1769         (put_pending_size): Likewise.
1770         (put_pending_sizes): Likewise.
1771         * stor-layout.c (pending_sizes): Delete.
1772         (get_pending_sizes): Likewise.
1773         (put_pending_size): Likewise.
1774         (put_pending_sizes): Likewise.
1775         (variable_size): Do not call put_pending_size and tidy up.
1776         * function.h (struct function): Remove dont_save_pending_sizes_p.
1777         * lto-streamer-in.c (input_function): Do not stream it.
1778         * lto-streamer-out.c (output_function): Likewise.
1779         * tree-inline.c (initialize_cfun): Do not copy it.
1780         * c-decl.c (store_parm_decls): Do not set it.
1781         * omp-low.c (create_task_copyfn): Likewise.
1782         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1784 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1786         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1787         conditions.
1788         (*movdf_internal): Ditto.
1789         (*movdf_internal_nointeger): Ditto.
1790         (*movsf_internal): Ditto.
1792 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1794         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1795         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1796         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1797         (c_variable_size): Remove.
1798         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1799         call put_pending_sizes.
1800         (get_parm_info): Add parameter expr.  Use it to set
1801         arg_info->pending_sizes.
1802         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1803         get_pending_sizes.
1804         * c-parser.c (c_parser_parms_declarator): Update call to
1805         c_parser_parms_list_declarator.
1806         (c_parser_parms_list_declarator): Take parameter expr.  Update
1807         call to push_parm_decl.  Update recursive call.  Don't call
1808         get_pending_sizes.  Update calls to get_parm_info.
1809         (c_parser_objc_method_definition): Update calls to
1810         c_parser_objc_method_decl and objc_start_method_definition.
1811         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1812         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1813         grokparm.
1814         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1815         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1816         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1818 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1820         PR pch/45979
1821         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1822         __ARM_EABI__ hosts.
1824 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1826         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1827         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1828         (spu_output_mi_thunk): New function.
1830 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1832         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1833         targetm.asm_out.print_operand.
1834         * config/sol2.c: Include target.h.
1836 2011-05-04  Jan Hubicka  <jh@suse.cz>
1838         * ipa-inline.c (reset_edge_caches): New function.
1839         (update_caller_keys): Add check_inlinablity_for; do not
1840         reset edge caches; remove now unnecesary loop.
1841         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1842         (update_all_callee_keys): Likewise.
1843         (inline_small_functions): Sanity check cache; update code
1844         recomputing it.
1846 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1848         PR rtl-optimization/47612
1849         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1850         as the last insn of the sequence to be moved.
1852 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1854         PR fortran/48864
1855         * doc/invoke.texi (Ofast): Document that it
1856         enables Fortran's -fno-protect-parens.
1858 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1860         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1862 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1864         * stor-layout.c (variable_size): Do not issue errors.
1866 2011-05-04  Richard Guenther  <rguenther@suse.de>
1868         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1869         for array-ref indices.
1870         (tree_coverage_counter_addr): Likewise.
1871         (build_fn_info_type): Use size_int for index types.
1872         (build_gcov_info): Likewise.
1874 2011-05-04  Richard Guenther  <rguenther@suse.de>
1876         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1877         to build_int_cst.
1878         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1879         for constructor indices.
1880         (push_init_level): Likewise.
1882 2011-05-04  Richard Guenther  <rguenther@suse.de>
1884         * explow.c (promote_mode): Move variable declarations before code.
1886 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1888         * tree.h (build_function_type_array): Declare.
1889         (build_varargs_function_type_array): Declare.
1890         (build_function_type_vec, build_varargs_function_type_vec): Define.
1891         * tree.c (build_function_type_array_1): New function.
1892         (build_function_type_array): New function.
1893         (build_varargs_function_type_array): New function.
1895 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1897         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1898         before setting STMT_VINFO_TYPE.
1900 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1902         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1903         instead of spu_pass_by_reference.
1905 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1907         * calls.c (emit_library_call_value_1): Invoke
1908         promote_function_mode hook on libcall arguments.
1909         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1910         argument being NULL.
1911         * targhooks.c (default_promote_function_mode): Lisewise.
1912         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1913         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1915         * doc/tm.texi: Document that TYPE argument might be NULL.
1917 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1919         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1921 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1923         From Bernd Schmidt
1924         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1926 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1928         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1929         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1930         Move ...
1931         * mips-tfile.c: ... here.
1932         Don't include coretypes.h, tm.h, filenames.h.
1933         (saber_stop): Remove definition and all calls.
1934         [__SABER__]: Remove.
1935         (__LINE__): Remove default.
1936         (Size_t, Ptrdiff_t): Remove definitions.
1937         Replace by size_t, ptrdiff_t.
1938         [!MIPS_DEBUGGING_INFO]: Remove.
1939         (SHASH_SIZE, THASH_SIZE): Remove defaults.
1940         (progname): Add const.
1941         (STATIC): Remove.
1942         Replace all uses by static.
1943         (ALIGN_SYMTABLE_OFFSET): Remove default.
1944         * mips-tdump.c: Don't include coretypes.h, tm.h.
1945         Remove !MIPS_IS_STAB guard.
1946         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1947         $(TM_H), filenames.h dependencies.
1948         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1950 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1952         From Jie Zhang
1953         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1954         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1956 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1958         From Bernd Schmidt
1959         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1960         account and save/restore RETS.
1961         (PROFILE_BEFORE_PROLOGUE): Define.
1962         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
1963         the push insn to use predecrement.
1965 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1967         From Jie Zhang
1968         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1970 2011-05-04  Nick Clifton  <nickc@redhat.com>
1972         * config/mn10300/mn10300.c: Include cfgloop.h.
1973         (DUMP): New macro.
1974         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
1975         Lcc or a FLcc insn into the instruction stream.
1976         (mn10300_block_contains_call): New function.  Returns true if the
1977         given basic block contains a CALL insn.
1978         (mn10300_loop_contains_call_insn): New function.  Returns true if
1979         the given loop contains a CALL insn.
1980         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
1981         to use the SETLB and Lcc or FLcc insns.
1982         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1983         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1984         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
1985         disable the SETLB optimization.
1986         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1987         __SETLB__ or __NO_SETLB__.
1988         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1989         (movsf_internal): Handle MDR register.
1990         (cmpsi): Make visible.
1991         (setlb): New pattern.
1992         (Lcc): New pattern.
1993         (FLcc): New pattern.
1995 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1997         PR target/48860
1998         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1999         for reg<->xmm moves.
2000         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2001         (vec_concatv2di_rex64_sse): Ditto.
2002         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2003         (*vec_extractv2di_1_rex64): Ditto.
2005         Revert:
2006         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2008         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2009         reg<->xmm moves.
2010         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2012 2011-05-04  Richard Guenther  <rguenther@suse.de>
2014         * tree.h (int_const_binop): Remove notrunc argument.
2015         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2016         create integer constants that are properly truncated.
2017         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2018         (const_binop): Remove zero notrunc argument to int_const_binop.
2019         (size_binop_loc): Likewise.
2020         (fold_div_compare): Likewise.
2021         (maybe_canonicalize_comparison_1): Likewise.
2022         (fold_comparison): Likewise.
2023         (fold_binary_loc): Likewise.
2024         (multiple_of_p): Likewise.
2025         * expr.c (store_constructor): Likewise.
2026         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2027         (maybe_fold_stmt_addition): Likewise.
2028         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2029         * stor-layout.c (layout_type): Likewise.
2030         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2031         * tree-sra.c (build_ref_for_offset): Likewise.
2032         (build_user_friendly_ref_for_offset): Likewise.
2033         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2034         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2035         * tree-ssa-loop-niter.c (inverse): Likewise.
2036         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2037         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2038         * tree-switch-conversion.c (check_range): Likewise.
2039         (build_constructors): Likewise.
2040         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2041         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2042         (extract_range_from_assert): Likewise.
2043         (vrp_int_const_binop): Likewise.
2044         (extract_range_from_binary_expr): Likewise.
2045         (extract_range_from_unary_expr): Likewise.
2046         (check_array_ref): Likewise.
2047         (find_case_label_range): Likewise.
2048         (simplify_div_or_mod_using_ranges): Likewise.
2049         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2050         comparing case labels for merging.
2052 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2054         * dwarf2out.c (debug_str_hash_forced): Removed.
2055         (gen_label_for_indirect_string): Removed.
2056         (get_debug_string_label): Removed.
2057         (AT_string_form): Generate label directly.
2058         (output_indirect_string): Test indirect_string_node for
2059         DW_FORM_strp instead of checking label and refcount.
2060         (prune_indirect_string): Removed.
2061         (prune_unused_types): Don't check debug_str_hash_forced or
2062         call prune_indirect_string.
2064 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2066         PR other/48093
2067         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2069 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2071         PR debug/47994
2072         PR debug/47919
2073         * combine.c (try_combine): Skip debug insns at m_split tests.
2075 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2077         PR42288
2078         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2079         when info_section_emitted.
2081 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2083         * config/mips/mips-opts.h: New.
2084         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2085         to mips-opts.h.
2086         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2087         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2088         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2089         via opts pointer.
2090         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2091         mips-opts.h.
2092         (mips_abi, mips_code_readable): Don't declare.
2093         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2094         (mabi=): Use Enum and Var.
2095         (mips_abi): New Enum and EnumValue entries.
2096         (mcode-readable=): Use Enum and Var.
2097         (mips_code_readable_setting): New Enum and EnumValue entries.
2098         (mr10k-cache-barrier=): Use Enum and Var.
2099         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2101 2011-05-03  Jan Hubicka  <jh@suse.cz>
2103         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2104         replace hash by pointer map.
2105         (cgraph_node_set_element_def, cgraph_node_set_element,
2106         const_cgraph_node_set_element, varpool_node_set_element_def,
2107         varpool_node_set_element, const_varpool_node_set_element): Remove.
2108         (free_cgraph_node_set, free_varpool_node_set): New function.
2109         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2110         * tree-emutls.c: Free varpool node set.
2111         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2112         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2113         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2114         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2115         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2116         Move here from ipa.c; implement using pointer_map
2117         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2118         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2119         debug_cgraph_node_set, varpool_node_set_new,
2120         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2121         dump_varpool_node_set, debug_varpool_node_set):
2122         Move to ipa-uitls.c.
2123         * passes.c (ipa_write_summaries): Update.
2125 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2127         From Mike Frysinger:
2128         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2129         bf542/bf544/bf547/bf548/bf549.
2131 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2133         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2135 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2137         From Bernd Schmidt:
2138         * config/bfin/bfin.md (MOVCC): New mode_macro.
2139         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2140         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2141         comments from generated assembly.
2143 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2145         From Bernd Schmidt
2146         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2147         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2148         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2149         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2150         * config/bfin/lib1funcs.asm (___muldi3): New function.
2152 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2154         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2155         build_function_type_list instead of build_function_type.
2156         Rearrange initialization of `args' to do so.
2158 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2160         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2161         instead of build_function_type.
2163 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2165         * config/rs6000/rs6000.c (spe_init_builtins): Call
2166         build_function_type_list instead of build_function_type.
2167         (paired_init_builtins, altivec_init_builtins): Likewise.
2168         (builtin_function_type): Likewise.
2170 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2172         * config/sh/sh.c (sh_media_init_builtins): Call
2173         build_function_type_list instead of build_function_type.
2175 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2177         * config/sparc/sparc.c (sparc_file_end): Call
2178         build_function_type_list instead of build_function_type.
2180 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2182         * config/alpha/alpha.c (alpha_init_builtins): Call
2183         build_function_type_list instead of build_function_type.
2185 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2187         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2188         build_function_type_list instead of build_function_type.
2190 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2192         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2193         build_function_type_list instead of build_function_type.
2194         Delete `endlink' variable.
2196 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2198         * config/avr/avr.c (avr_init_builtins): Call
2199         build_function_type_list instead of build_function_type.
2201 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2203         * config/picochip/picochip.c (picochip_init_builtins): Call
2204         build_function_type_list instead of build_function_type.
2205         Delete `endlink' variable.
2207 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2209         * config/bfin/bfin.c (bfin_init_builtins): Call
2210         build_function_type_list instead of build_function_type.
2212 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2214         From Bernd Schmidt
2215         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2216         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2218 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2220         From Jie Zhang:
2221         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2222         libbffastfp overrides libgcc when -mfast-fp.
2224 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2226         Originally from Bernd Schmidt
2227         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2228         * config/bfin/bfin.c (override_options): Test it and error if
2229         TARGET_FDPIC.
2231 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2233         Originally From Bernd Schmidt
2234         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2235         FD-PIC.
2237 2011-05-03  Jeff Law  <law@redhat.com>
2239         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2240         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2241         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2242         than accessing AUX field directly.  Free the AUX field before
2243         clearing it.
2244         (thread_block, thread_through_loop_header): Likewise.
2245         (thread_single_edge, mark_threaded_blocks): Likewise.
2246         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2247         (register_jump_thread): Do not attempt to thread to a NULL edge.
2249 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2251         * function.c (init_function_start): Call decide_function_section.
2252         * varasm.c (decide_function_section): New function.
2253         (assemble_start_function): When not using
2254         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2255         or first_function_block_is_cold.
2256         * rtl.h (decide_function_section): Declare.
2258 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2259             Jakub Jelinek  <jakub@redhat.com>
2261         PR target/48774
2262         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2263         only succeed if req_mode is the same as set_mode.
2265 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2267         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2268         * genemit.c (gen_exp): Handle RETURN.
2269         * emit-rtl.c (verify_rtx_sharing): Likewise.
2270         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2271         * rtl.c (copy_rtx): RETURN is shared.
2272         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2273         (ret_rtx): New.
2274         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2275         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2276         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2277         * config/cris/cris.c (cris_expand_return): Likewise.
2278         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2279         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2280         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2281         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2282         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2283         Likewise.
2284         * config/v850/v850.c (expand_epilogue): Likewise.
2285         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2286         * config/arm/arm.md (epilogue): Likewise.
2287         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2288         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2289         variable to ret_reg.
2291 2011-05-03  Richard Guenther  <rguenther@suse.de>
2293         PR lto/48846
2294         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2295         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2296         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2298 2011-05-03  Richard Guenther  <rguenther@suse.de>
2300         * c-decl.c (grokdeclarator): Instead of looking at
2301         TREE_OVERFLOW check if the constant fits in the index type.
2303 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2305         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2306         (vec_store_lanes<mode><mode>): Likewise.
2308 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2310         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2311         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2312         convert_optab_index values.
2313         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2314         * genopinit.c (optabs): Initialize the new optabs.
2315         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2316         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2317         (expand_STORE_LANES): New functions.
2318         * tree.h (build_array_type_nelts): Declare.
2319         * tree.c (build_array_type_nelts): New function.
2320         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2321         (vect_model_load_cost): Likewise.
2322         (vect_store_lanes_supported, vect_load_lanes_supported)
2323         (vect_record_strided_load_vectors): Declare.
2324         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2325         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2326         (vect_transform_strided_load): Split out statement recording into...
2327         (vect_record_strided_load_vectors): ...this new function.
2328         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2329         (write_vector_array, create_array_ref): New functions.
2330         (vect_model_store_cost): Add store_lanes_p argument.
2331         (vect_model_load_cost): Add load_lanes_p argument.
2332         (vectorizable_store): Try to use store-lanes functions for
2333         interleaved stores.
2334         (vectorizable_load): Likewise load-lanes and loads.
2335         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2336         to vect_model_store_cost.
2337         (vect_build_slp_tree): Likewise vect_model_load_cost.
2339 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2341         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2342         * hooks.c (hook_bool_mode_uhwi_false): New function.
2343         * target.def (array_mode_supported_p): New hook.
2344         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2345         * doc/tm.texi: Regenerate.
2346         * stor-layout.c (mode_for_array): New function.
2347         (layout_type): Use it.
2348         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2349         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2351 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2353         PR target/48723
2354         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2355         for -fstack-check if the size to allocate is negative.
2357 2011-05-02  Lawrence Crowl  <crowl@google.com>
2359         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2360         (timevar_cond_start): New for starting a timer only when it is not
2361         already running.
2362         (timevar_cond_stop): New for stopping a timer when it was not already
2363         running.
2365         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2366         (timevar_cond_start): New as above.
2367         (timevar_cond_stop): New as above.
2369         * timevar.def: Add start/stop timers for compiler phases,
2370         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2371         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2372         and TV_PHASE_FINALIZE.
2373         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2374         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2375         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2376         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2377         Make unused TV_OVERLOAD into a start/stop timer.
2379         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2380         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2381         to indicate that they are start/stop timers.
2383         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2384         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2385         Move initialization to do_compile.
2386         (do_compile): Add initialization from above.
2387         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2389         * c-decl.c (c_write_global_declarations): Add start/stop of
2390         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2392         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2393         or TV_PARSE_INLINE, as appropriate.
2394         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2395         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2397 2011-05-02  Jason Merrill  <jason@redhat.com>
2399         PR c++/40975
2400         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2402 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2404         PR c/35445
2405         * c-decl.c (finish_decl): Only create a composite if the types are
2406         compatible.
2408 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2410         * config/fr30/fr30-protos.h (Mmode): Don't define.
2411         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2412         definition where used.
2413         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2414         define.  Expand definitions where used.
2415         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2416         Expand definitions where used.
2417         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2418         rx_function_arg, rx_function_arg_advance,
2419         rx_function_arg_boundary): Expand definitions of those macros.
2420         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2421         definition where used.
2423 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2425         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2426         reg<->xmm moves.
2427         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2428         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2429         with *movv2sf_internal_rex64_avx.
2430         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2431         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2432         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2433         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2434         "vex" in "prefix" attribute calculation.
2435         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2437 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2439         PR target/47951
2440         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2441         inputs match the output.
2443 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2445         PR target/47955
2446         * config/m68k/m68k.c (m68k_expand_prologue): Set
2447         current_function_static_stack_size.
2449 2011-05-02   Jan Hubicka  <jh@suse.cz>
2451         * lto-streamer.c (lto_streamer_cache_insert_1,
2452         lto_streamer_cache_lookup, lto_streamer_cache_create,
2453         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2454         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2456 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2458         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2459         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2460         config/m68k/t-opts: New files.
2461         * config/m68k/m68k-tables.opt: New file (generated).
2462         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2463         extra_options and m68k/t-opts to tmake_file.
2464         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2465         (all_isas): Initialize using m68k-isas.def.
2466         (all_microarchs): Initialize using m68k-microarchs.def.
2467         (m68k_find_selection): Remove.
2468         (m68k_handle_option): Don't assert that global structures are in
2469         use.  Use error_at.  Access variables via opts pointer.  Don't
2470         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2471         directly for -m68020-40 and -m68020-60.
2472         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2473         m68k_tune_entry here.
2474         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2475         to m68k-opts.h.
2476         (m68k_library_id_string): Remove declaration.
2477         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2478         (m68k_library_id_string): New Variable.
2479         (march=, mcpu=, mtune=): Use Enum and Var.
2481 2011-05-02  Richard Guenther  <rguenther@suse.de>
2483         * varasm.c (output_constructor_regular_field): Compute zero-based
2484         index with double-ints.  Make sure to ICE instead of producing
2485         wrong code.
2486         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2487         in asserts.  Properly use a signed type.
2489 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2491         * config/i386/sse.md (V): New mode iterator.
2492         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2493         TARGET_SSE2.
2494         (V_256): Rename from AVX256MODE.
2495         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2496         condition to all users.
2497         (VF1): Ditto.
2498         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2499         condition to all users.
2500         (VF_128): Make V4SF mode unconditional.
2501         (VF_256): Rename from AVX256MODEF2P.
2502         (VI4F_128): Rename from SSEMODE4S.
2503         (VI8F_128): Rename from SSEMODE2D.
2504         (VI4F_256): Rename from AVX256MODE8P.
2505         (VI8F_256): Rename from AVX256MODE4P.
2506         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2507         (ssescalarmodesuffix): Remove SF and DF modes.
2508         (SSEMODE124): Remove.
2509         (SSEMODE1248): Ditto.
2510         (SSEMODEF2P): Ditto.
2511         (AVXMODEF2P): Ditto.
2512         (AVXMODEFDP): Ditto.
2513         (AVXMODEFSP): Ditto.
2514         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2515         unconditional.
2516         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2517         unconditional.
2518         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2519         xop_pcmov_<mode>256.  Use V mode iterator.
2521         Adjust RTX patterns globally for renamed mode attributes.
2523 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2525         * haifa-sched.c (sched_emit_insn): Emit insn before first
2526         non-scheduled insn.  Inform back-end about new insn.  Add
2527         new insn to scheduled_insns list.
2529 2011-05-02  Richard Guenther  <rguenther@suse.de>
2531         PR tree-optimization/48822
2532         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2533         (process_scc): Indicate which iteration we start.
2535 2011-05-02  Jan Hubicka  <jh@suse.cz>
2537         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2538         (lto_section_overrun): New.
2539         * lto-section-out.c (append_block): Rename to ...
2540         (lto_append_block): ... this one; export.
2541         (lto_output_1_stream): Move lto lto-streamer.h
2542         (lto_output_data_stream): Update.
2543         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2544         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2545         functions.
2547 2011-05-02  Richard Guenther  <rguenther@suse.de>
2549         * tree.c (tree_code_counts): New global array.
2550         (record_node_allocation_statistics): Count individual tree codes.
2551         (dump_tree_statistics): Dump individual code stats.
2553 2011-05-01  Jan Hubicka  <jh@suse.cz>
2555         * ipa-inline.c (caller_growth_limits): Fix thinko when
2556         looking for largest stack frame.
2557         * ipa-inline.h (dump_inline_summary): Declare.
2558         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2559         on stack usage.
2560         (dump_inline_summary): Export.
2561         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2563 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2565         * reginfo.c (memory_move_cost): Change rclass argument type form
2566         'enum reg_class' to reg_class_t.
2567         * reload.h (memory_move_cost): Update prototype.
2568         * postreload.c reload_cse_simplify_set): Change type dclass var to
2569         reg_class_t.
2570         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2571         Update prototype.
2572         (ira_allocate_and_set_costs): Change aclass argument type form
2573         'enum reg_class' to reg_class_t.
2574         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2575         Change aclass argument type to reg_class_t.
2576         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2577         to reg_class_t.
2578         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2579         memory_move_cost call.
2581         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2582         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2583         Change type tmp var to reg_class_t.
2585 2011-04-30  Jan Hubicka  <jh@suse.cz>
2587         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2588         inlining into function with flatten attribute.
2589         (want_inline_small_function_p): Be more realistic about inlining
2590         cold calls where callee size grows.
2592 2011-04-30  Jan Hubicka  <jh@suse.cz>
2594         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2595         flags.
2597 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2599         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2600         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2601         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2602         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2603         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2604         (print_operand): Rename to...
2605         (sparc_print_operand): ...this. Make static. Adjust
2606         sparc_print_operand function call.
2607         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2608         functions.
2610 2011-04-30  Jan Hubicka  <jh@suse.cz>
2612         PR middle-end/48752
2613         * ipa-inline.c (early_inliner): Disable when doing late
2614         addition of function.
2616 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2618         * dwarf2out.c (get_address_mode): New inline.
2619         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2620         if not dwarf_strict emit
2621         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2622         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2623         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2624         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2625         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2626         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2627         mem_loc_descriptor callers.
2628         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2629         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2630         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2631         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2632         (base_types): New variable.
2633         (get_base_type_offset, calc_base_type_die_sizes,
2634         base_type_for_mode, mark_base_types, base_type_cmp,
2635         move_marked_base_types): New functions.
2636         (calc_die_sizes): Assert that die_offset is 0 or equal to
2637         next_die_offset.
2638         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2639         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2640         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2641         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2642         (gen_subprogram_die): Don't give up on call site parameters
2643         with non-integral or large integral modes.  Adjust
2644         mem_loc_descriptor callers.
2645         (prune_unused_types): Call prune_unused_types_mark on base_types
2646         vector entries.
2647         (resolve_addr): Call mark_base_types.
2648         (dwarf2out_finish): Call move_marked_base_types.
2650         PR tree-optimization/48809
2651         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2652         type.
2653         (gen_inbound_check): Don't compute index_expr - range_min in utype
2654         again, instead reuse SSA_NAME initialized in build_arrays.
2655         Remove two useless gsi_for_stmt calls.
2657 2011-04-29  Jeff Law  <law@redhat.com>
2659         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2661 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2663         * cgraph.h (cgraph_postorder): Remove declaration.
2664         * ipa-utils.h (ipa_free_postorder_info): Declare.
2665         (ipa_reverse_postorder): Likewise.
2666         * cgraphunit.c: Include ipa-utils.h.
2667         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2668         * ipa-inline.c: Include ipa-utils.h.
2669         (ipa_inline): Update call to ipa_reverse_postorder.
2670         * ipa-pure-const.c (propagate_pure_const): Update call to
2671         ipa_reduced_postorder and ipa_print_order.  Call
2672         ipa_free_postorder_info to clean up.
2673         (propagate_nothrow): Likewise.
2674         * ipa-reference.c (propagate): Removed a useless call to
2675         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2676         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2677         * ipa.c: Include ipa-utils.h.
2678         (ipa_profile): Update call to ipa_reverse_postorder.
2679         (cgraph_postorder): Moved to...
2680         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2681         (ipa_utils_print_order): Renamed to ipa_print_order.
2682         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2683         comments.
2684         (ipa_free_postorder_info): New function.
2685         * passes.c: Include ipa-utils.h.
2686         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2687         (ipa_write_summaries): Likewise.
2688         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2689         (cgraphunit.o): Likewise.
2690         (ipa.o): Likewise.
2691         (ipa-inline.o): Likewise.
2693 2011-04-29  Jan Hubicka  <jh@suse.cz>
2695         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2696         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2697         * ipa-inline.h (clause_t): Turn into unsigned int.
2698         * ipa-inline-analysis.c (add_clause): Do more simplification.
2699         (and_predicates): Shortcut more cases.
2700         (predicates_equal_p): Move forward; check that clauses are properly
2701         ordered.
2702         (or_predicates): Shortcut more cases.
2703         (edge_execution_predicate): Rewrite as...
2704         (set_cond_stmt_execution_predicate): ... this function; handle
2705         __builtin_constant_p.
2706         (set_switch_stmt_execution_predicate): New .
2707         (compute_bb_predicates): New.
2708         (will_be_nonconstant_predicate): Update TODO.
2709         (estimate_function_body_sizes): Use compute_bb_predicates
2710         and free them later, always try to estimate if stmt is constant.
2711         (estimate_time_after_inlining, estimate_size_after_inlining):
2712         Gracefully handle optimized out edges.
2713         (read_predicate): Fix off by one error.
2715 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2717         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2719 2011-04-27  Xinliang David Li  <davidxl@google.com>
2721         * tree-profile.c (init_ic_make_global_vars): Set
2722         tls attribute on ic vars.
2723         * coverage.c (coverage_end_function): Initialize
2724         function_list with zero.
2726 2011-04-29  Richard Guenther  <rguenther@suse.de>
2728         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2729         for the type of the result.
2730         (fold_builtin_isascii): Likewise.
2731         (fold_builtin_toascii): Use integer_type_node where appropriate.
2732         (fold_builtin_logb): Likewise.
2733         (fold_builtin_frexp): Likewise.
2734         (fold_builtin_strstr): Likewise.
2735         (fold_builtin_strpbrk): Likewise.
2736         (fold_builtin_fputs): Likewise.
2737         (fold_builtin_sprintf): Likewise.
2738         (fold_builtin_snprintf): Likewise.
2739         (fold_builtin_printf): Likewise.
2740         (do_mpfr_remquo): Use a proper type for the assigned constant.
2741         (do_mpfr_lgamma_r): Likewise.
2742         * dwarf2out.c (resolve_one_addr): Use size_int.
2743         * except.c (init_eh): Likewise.
2744         (assign_filter_values): Use integer_type_node for filter values.
2745         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2746         indices.
2747         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2748         for EH region numbers.
2749         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2750         for the shift amount.
2752 2011-04-29  Richard Guenther  <rguenther@suse.de>
2754         * expr.h (expand_shift): Rename to ...
2755         (expand_variable_shift): ... this.
2756         (expand_shift): Take a constant shift amount.
2757         * expmed.c (expand_shift): Rename to ...
2758         (expand_variable_shift): ... this.
2759         (expand_shift): New wrapper around expand_variable_shift.
2760         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2761         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2762         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2763         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2764         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2765         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2766         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2767         emit_store_flag_1, emit_store_flag): Likewise.
2768         * builtins.c (expand_builtin_signbit): Likewise.
2769         * calls.c (load_register_parameters): Likewise.
2770         * function.c (assign_parm_setup_block): Likewise.
2771         * lower-subreg.c (resolve_shift_zext): Likewise.
2772         * optabs.c (widen_bswap, expand_abs_nojump,
2773         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2774         * spu/spu.c (spu_expand_extv): Likewise.
2775         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2777 2011-04-29  Richard Guenther  <rguenther@suse.de>
2779         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2780         for the remapped region number.
2781         * predict.c (build_predict_expr): Use integer_type_node for the
2782         predict kind.
2783         * fold-const.c (fold_binary_loc): Use integer_type_node for
2784         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2786 2011-04-29  Michael Matz  <matz@suse.de>
2788         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2789         other trees that just builtins.
2790         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2792 2011-04-29  Richard Guenther  <rguenther@suse.de>
2794         * tree-nested.c (get_trampoline_type): Use size_int.
2795         (get_nl_goto_field): Likewise.
2796         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2797         for all indexes.
2798         (lower_eh_constructs_2): Likewise.
2799         (lower_resx): Likewise.
2800         (lower_eh_dispatch): Likewise.
2801         * tree-mudflap.c (mf_build_string): Use size_int.
2802         (mudflap_register_call): Use integer_type_node for the flag.
2803         (mudflap_enqueue_constant): Use size_int.
2804         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2805         instead of rebuilding it.
2807 2011-04-29  Richard Guenther  <rguenther@suse.de>
2809         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2810         Handle OBJ_TYPE_REF.
2811         (find_func_aliases_for_call): Use it more consistently.
2813 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2815         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2816         (rank_for_schedule): Use it.
2817         (schedule_block): Set it.
2819 2011-04-28  David Li  <davidxl@google.com>
2821         * tree.c (crc32_string): Use crc32_byte.
2822         (crc32_byte): New function.
2823         * tree.h (crc32_byte): New function.
2824         * gcov.c (read_graph_file): Handle new cfg_cksum.
2825         (read_count_file): Ditto.
2826         * profile.c (instrument_values): Ditto.
2827         (get_exec_counts): Ditto.
2828         (read_profile_edge_counts): Ditto.
2829         (compute_branch_probabilities): Ditto.
2830         (compute_value_histograms): Ditto.
2831         (branch_prob): Ditto.
2832         (end_branch_prob): Ditto.
2833         * coverage.c (read_counts_file): Ditto.
2834         (get_coverage_counts): Ditto.
2835         (tree_coverage_counter_addr): Ditto.
2836         (coverage_checksum_string): Ditto.
2837         (coverage_begin_output): Ditto.
2838         (coverage_end_function): Ditto.
2839         (build_fn_info_type): Ditto.
2840         (build_fn_info_value): Ditto.
2841         * libgcov.c (gcov_exit): Ditto.
2842         * gcov-dump.c (tag_function): Ditto.
2843         (compute_checksum): Remove.
2845 2011-04-29  Alan Modra  <amodra@gmail.com>
2847         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2848         unspec plus offset.  Tidy macho code.
2850 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2852         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2853         node instead of a decl.  Update all callers.
2854         * cgraph.h: Update declaration.
2856 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2858         PR tree-optimization/48765
2859         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2860         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2861         to indicate if loop aware SLP is being used.  Scan the statements
2862         and update the vectorization factor according to the type of
2863         vectorization before statement analysis.
2864         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2865         pass it to vect_analyze_loop_operations.
2866         (vectorizable_reduction): Set number of copies to 1 in case of pure
2867         SLP statement.
2868         * tree-vect-stmts.c (vectorizable_conversion,
2869         vectorizable_assignment, vectorizable_shift,
2870         vectorizable_operation, vectorizable_type_demotion,
2871         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2872         Likewise.
2873         (vectorizable_condition): Move the check that it is not SLP
2874         vectorization before the number of copies check.
2875         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2876         to vectorize the loop using SLP.
2878 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2880         PR middle-end/48597
2881         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2882         inline asm.
2884 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2886         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2887         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2888         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2889         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2890         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2891         linux*.h headers.
2892         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2893         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2894         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2895         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2896         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2897         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2898         REG_NAME.
2899         * config/i386/linux.h (REG_NAME): Don't define.
2900         * config/i386/linux64.h (REG_NAME): Don't define.
2901         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2902         Undefine before defining.
2904 2011-04-28  Jan Hubicka  <jh@suse.cz>
2906         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2907         nonconstant_names array.
2908         (estimate_function_body_sizes): Build nonconstant_names array; handle
2909         BUILT_IN_CONSTANT_P.
2911 2011-04-28  Richard Guenther  <rguenther@suse.de>
2913         PR bootstrap/48804
2914         Revert
2915         2011-04-28  Richard Guenther  <rguenther@suse.de>
2917         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2918         as late as possible.
2920 2011-04-28  Richard Guenther  <rguenther@suse.de>
2922         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2923         (debug_constraint): Do it here.
2924         (dump_constraints): And here.
2925         (rewrite_constraints): And here.
2926         (dump_constraint_edge): Remove.
2927         (dump_constraint_graph): Rewrite to produce DOT output.
2928         (solve_constraints): Build succ graph as late as possible.
2929         Dump constraint graphs before and after solving.
2931 2011-04-28  Richard Guenther  <rguenther@suse.de>
2933         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2934         New function split out from ...
2935         (find_func_aliases): ... here.  Call it.
2936         (find_func_aliases_for_call): Likewise.
2938 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2940         * internal-fn.h (internal_fn_name_array): Declare.
2941         (internal_fn_flags_array): Likewise.
2943 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
2945         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
2946         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2947         Move from sse.md.
2948         (ssemodefsuffix): Remove.
2949         (ssevecmodesuffix): New mode attribute.
2950         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2951         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2952         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2953         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2954         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2955         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2956         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2957         ssemodesuffix mode attribute.
2958         (float splitters): Use ssevecmodesuffix mode attribute.
2959         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2960         (sseinsmode): Rename from avxvecmode.
2961         (avxsizesuffix): Rename from avxmodesuffix.
2962         (sseintvecmode): Rename from avxpermvecmode.
2963         (ssedoublevecmode): Rename from ssedoublesizemode.
2964         (ssehalfvecmode): Rename from avxhalfvecmode.
2965         (ssescalarmode): Rename from avxscalarmode.
2966         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2967         templates for ssemodesuffix mode attribute.
2968         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2969         mode attribute.
2971         Adjust RTX patterns globally for renamed mode attributes.
2973 2011-04-27  Jan Hubcika  <jh@suse.cz>
2975         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2976         * ipa-inline-analysis.c: Include alloc-pool.h.
2977         (edge_predicate_pool): New.
2978         (trye_predicate_p): New function
2979         (false_predicate_p): New function.
2980         (add_clause): Sanity check that false clauses are "optimized";
2981         never add clauses to predicate that is already known to be false.
2982         (and_predicate): Use flase_predicate_p.
2983         (evaulate_predicate): Rename to ...
2984         (evaluate_predicate): ... this one; update all callers; assert
2985         that false is not listed among possible truths.
2986         (dump_predicate): Use true_predicate_p.
2987         (account_size_time): Use false_predicate_p.
2988         (evaulate_conditions_for_edge): Rename to ...
2989         (evaluate_conditions_for_edge) ... this one.
2990         (edge_set_predicate): New function.
2991         (inline_edge_duplication_hook): Duplicate edge predicates.
2992         (inline_edge_removal_hook): Free edge predicates.
2993         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
2994         (dump_inline_summary): Update.
2995         (estimate_function_body_sizes): Set edge predicates.
2996         (estimate_calls_size_and_time): Handle predicates.
2997         (estimate_callee_size_and_time): Update.
2998         (remap_predicate): Add toplev_predicate; update comment.
2999         (remap_edge_predicates): New function.
3000         (inline_merge_summary): Compute toplev predicate; update.
3001         (read_predicate): New function.
3002         (read_inline_edge_summary): Use it.
3003         (inline_read_section): Likewise.
3004         (write_predicate): New function.
3005         (write_inline_edge_summary): Use it.
3006         (inline_write_summary): Likewise.
3007         (inline_free_summary): Free alloc pool and edge summary vec.
3009 2011-04-27  Richard Guenther  <rguenther@suse.de>
3011         * tree-ssa-structalias.c (changed_count): Remove.
3012         (changed): Use a bitmap.
3013         (unify_nodes): Adjust.
3014         (do_sd_constraint): Likewise.
3015         (do_ds_constraint): Likewise.
3016         (do_complex_constraint): Likewise.
3017         (solve_graph): Likewise.
3019 2011-04-27  Jan Hubicka  <jh@suse.cz>
3021         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3023 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3025         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3026         (avx_vperm2f128_*_operand): Ditto.
3027         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3028         Use avx_vpermilp_parallel in insn condition.
3029         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3030         Use avx_vperm2f128_parallel in insn condition.
3032 2011-04-27  Richard Guenther  <rguenther@suse.de>
3034         * Makefile.in (tree-ssa-structalias.o): Remove
3035         gt-tree-ssa-structalias.h dependency.
3036         (GTFILES): Remove tree-ssa-structalias.c.
3037         * tree.c (allocate_decl_uid): New function.
3038         (make_node_stat): Use it.
3039         (copy_node_stat): Likewise.
3040         * tree.h (allocate_decl_uid): Declare.
3041         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3042         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3043         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3044         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3045         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3046         (struct heapvar_map): Likewise.
3047         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3048         heapvar_insert): Likewise.
3049         (make_heapvar_for): Rename to ...
3050         (make_heapvar): ... this.  Simplify.
3051         (fake_var_decl_obstack): New global var.
3052         (build_fake_var_decl): New function.
3053         (make_constraint_from_heapvar): Adjust.
3054         (handle_lhs_call): Likewise.
3055         (create_function_info_for): Likewise.
3056         (intra_create_variable_infos): Likewise.
3057         (init_alias_vars): Allocate fake_var_decl_obstack.
3058         (init_alias_heapvars, delete_alias_heapvars): Remove.
3059         (compute_points_to_sets): Do not call init_alias_heapvars.
3060         (ipa_pta_execute): Likewise.
3061         (delete_points_to_sets): Free fake_var_decl_obstack.
3063 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3065         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3066         (si_from_UTItype, si_to_UTItype): New functions.
3067         (__udivmodti4): Use them to implement type-punning.
3068         * config/spu/multi3.c (union qword_TItype): New data type.
3069         (si_from_TItype, si_to_TItype): New functions.
3070         (__multi3): Use them to implement type-punning.
3072 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3074         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3076 2011-04-27  Jan Hubicka  <jh@suse.cz>
3078         * ipa-prop.c (function_insertion_hook_holder): New holder.
3079         (ipa_add_new_function): New function.
3080         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3081         Register/deregister holder.
3083 2011-04-27  Richard Guenther  <rguenther@suse.de>
3085         PR tree-optimization/48772
3086         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3088 2011-04-27  Richard Guenther  <rguenther@suse.de>
3090         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3091         TARGET_MEM_REF handling.
3093 2011-04-27  Nick Clifton  <nickc@redhat.com>
3095         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3096         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3097         (REG_CLASS_NAMES): Likewise.
3098         (REG_CLASS_CONTENTS): Likewise.
3099         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3100         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3101         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3102         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3103         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3104         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3105         duplicate register classes.
3106         (frv_class_likely_spilled_p): Likewise.
3107         (frv_register_move_cost): Likewise.
3109         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3110         end of the regno_reg_class array.
3112 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3114         PR c/48742
3115         * c-typeck.c (build_binary_op): Don't wrap arguments if
3116         int_operands is true.
3118 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3120         PR target/48767
3121         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3122         targetm.calls.must_pass_in_stack for void type.
3124 2011-04-26  Jan Hubicka  <jh@suse.cz>
3126         * cgraphbuild.c (build_cgraph_edges): Update call
3127         of cgraph_create_edge and cgraph_create_indirect_edge.
3128         * cgraph.c (cgraph_create_edge_including_clones,
3129         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3130         cgraph_update_edges_for_call_stmt_node): Do not take nest
3131         argument; do not initialize call_stmt_size/time.
3132         (dump_cgraph_node): Do not dump nest.
3133         (cgraph_clone_edge): Do not take loop_nest argument;
3134         do not propagate it; do not clone call_stmt_size/time.
3135         (cgraph_clone_node): Likewise.
3136         (cgraph_create_virtual_clone): Update.
3137         * cgraph.h (struct cgraph_edge): Remove
3138         call_stmt_size/call_stmt_time/loop_nest.
3139         (cgraph_create_edge, cgraph_create_indirect_edge,
3140         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3141         prototype.
3142         * tree-emutls.c (gen_emutls_addr): Update.
3143         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3144         loop_nest; handle indirect calls, too.
3145         (clone_inlined_nodes): Do not care about updating inline summaries.
3146         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3147         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3148         stream call_stmt_size/call_stmt_time/loop_nest.
3149         * ipa-inline.c (edge_badness): Update.
3150         (ipa_inline): dump summaries after inlining.
3151         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3152         New.
3153         (inline_edge_summary): New function.
3154         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3155         (inline_edge_removal_hook): Handle edge summaries.
3156         (inline_edge_duplication_hook): New hook.
3157         (inline_summary_alloc): Alloc hooks.
3158         (initialize_growth_caches): Do not register removal hooks.
3159         (free_growth_caches); Do not free removal hook.
3160         (dump_inline_edge_summary): New function.
3161         (dump_inline_summary): Use it.
3162         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3163         (inline_update_callee_summaries): New function.
3164         (inline_merge_summary): Use it.
3165         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3166         (read_inline_edge_summary): New function.
3167         (inline_read_section): Use it.
3168         (write_inline_edge_summary): New function.
3169         (inline_write_summary): Use it.
3170         (inline_free_summary): Free edge new holders.
3171         * tree-inline.c (copy_bb): Update.
3173 2011-04-26  Jason Merrill  <jason@redhat.com>
3175         * tree-eh.c (lower_try_finally_switch): Create the label along with
3176         the CASE_LABEL_EXPR.
3178 2011-04-26  David S. Miller  <davem@davemloft.net>
3179             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3181         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3182         * configure: Regenerate.
3184 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3186         PR target/48258
3187         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3188         reduction.
3189         (VEC_reduc): New code iterator and splitters for vector reduction.
3190         (VEC_reduc_name): Ditto.
3191         (VEC_reduc_rtx): Ditto.
3192         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3193         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3195         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3196         support for extracting SF on VSX.
3198         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3199         generating xscvspdp.
3200         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3201         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3202         double add, minimum, maximum vector reduction.
3203         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3204         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3205         optimize double vector reduction.
3206         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3208 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3210         * config/fr30/fr30.h (inhibit_libc): Don't define.
3211         * config/m32r/m32r-protos.h: Correct comment.
3212         * config/v850/v850.h (GHS_default_section_names,
3213         GHS_current_section_names): Use tree, not union tree_node *.
3215 2011-04-26  Xinliang David Li  <davidxl@google.com>
3217         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3218         * c-family/c-opts.c (c_common_handle_option): Set
3219         warn_maybe_uninitialized.
3220         * opts.c (common_handle_option): Ditto.
3221         * common.opt:  New option.
3222         * tree-ssa.c (warn_uninit): Add one more parameter.
3223         (warn_uninitialized_var): Pass warning code.
3224         * tree-flow.h: Interface change.
3227 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3229         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3230         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3231         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3233 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3235         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3236         * config/mips/mips.opt (mmips-tfile): Remove.
3238         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3239         mips-tdump reference to ...
3240         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3241         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3242         reference by Tru64 UNIX.
3244 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3246         PR debug/48768
3247         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3248         is error_mark_node, set value to NULL.
3250         PR tree-optimization/48734
3251         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3252         if return value from maybe_fold_*_comparsions isn't something
3253         the code is prepared to handle.
3255 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3257         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3258         mode check.
3259         (ext_QIreg_nomode_operands): Remove.
3260         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3261         (*andsi_1): Ditto.
3262         (*andhi_1): Ditto.
3264 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3266         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3268 2011-04-26  Richard Guenther  <rguenther@suse.de>
3270         * c-typeck.c (build_unary_op): Do not expand array-refs via
3271         pointer arithmetic.  Only adjust qualifiers for function types.
3273 2011-04-26  Richard Guenther  <rguenther@suse.de>
3275         PR middle-end/48694
3276         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3277         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3278         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3279         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3281 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3283         * doc/extend.texi: Document __underlying_type.
3285 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3287         * config/rs6000/titan.md (automata_option "progress"): Remove.
3289 2011-04-25  Jeff Law  <law@redhat.com>
3291         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3293 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3295         * system.h (ENUM_BITFIELD): Remove.
3297 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3298             Eric Botcazou  <ebotcazou@adacore.com>
3300         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3301         for STORE_FLAG_VALUE==-1 case.
3303 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3305         PR target/43804
3306         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3307         LEGITIMATE_PIC_OPERAND_P.
3309 2011-04-24  Jan Hubicka  <jh@suse.cz>
3311         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3312         WPA hack.
3313         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3314         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3315         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3316         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3317         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3318         Sanity check predicate length.
3319         (remap_predicate): Likewise; sanity check jump functions.
3320         (inline_read_section, inline_write_summary): Sanity check
3321         predicate length.
3323 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3325         PR other/48748
3326         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3327         __is_literal_type, and __is_trivial; update throughout about
3328         possibly cv-qualified void types.
3330 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3332         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3333         testsuite and make it version agnostic.
3335 2011-04-22  Jan Hubicka  <jh@suse.cz>
3337         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3339 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3341         PR c/48685
3342         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3343         to VOID_TYPE even around MODIFY_EXPR.
3345 2011-04-22  Mike Stump  <mikestump@comcast.net>
3347         * gensupport.c (read_md_rtx): Fix typo in comment.
3348         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3349         comment.
3351 2011-04-22  Jan Hubicka  <jh@suse.cz>
3353         * gengtype.c (open_base_files): Add ipa-inline.h include.
3354         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3355         ipa-prop.c; update all uses.
3356         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3357         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3358         merge summary of inlined function into former caller.
3359         * ipa-inline.c (max_benefit): Remove.
3360         (edge_badness): Compensate for removal of benefits.
3361         (update_caller_keys): Use
3362         reset_node_growth_cache/reset_edge_growth_cache.
3363         (update_callee_keys): Likewise.
3364         (update_all_callee_keys): Likewise.
3365         (inline_small_functions): Do not collect max_benefit; do not reset
3366         estimated_growth; call free_growth_caches and initialize_growth_caches.
3367         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3368         struct size_time_entry): New structures.
3369         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3370         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3371         and estimated_growth.
3372         (edge_growth_cache_entry): New structure.
3373         (node_growth_cache, edge_growth_cache): New global vars.
3374         (estimate_growth): Turn into inline.
3375         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3376         initialize_growth_caches, free_growth_caches): Declare.
3377         (estimate_edge_growth): Rewrite.
3378         (estimate_edge_time): Implement as inline cache lookup.
3379         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3380         functions.
3381         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3382         (NUM_CONDITIONS): New constant.
3383         (predicate_conditions): New enum.
3384         (IS_NOT_CONSTANT): New constant.
3385         (edge_removal_hook_holder): New var.
3386         (node_growth_cache, edge_growth_cache): New global vars.
3387         (true_predicate, single_cond_predicate, false_predicate,
3388         not_inlined_predicate, add_condition, add_clause, and_predicates,
3389         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3390         dump_clause, dump_predicate, account_size_time,
3391         evaulate_conditions_for_edge): New functions.
3392         (inline_summary_alloc): Move to heap.
3393         (inline_node_removal_hook): Clear condition and entry vectors.
3394         (inline_edge_removal_hook): New function.
3395         (initialize_growth_caches, free_growth_caches): New function.
3396         (dump_inline_summary): Update.
3397         (edge_execution_predicate): New function.
3398         (will_be_nonconstant_predicate): New function.
3399         (estimate_function_body_sizes): Compute BB and constantness predicates.
3400         (compute_inline_parameters): Do not clear estimated_growth.
3401         (estimate_edge_size_and_time): New function.
3402         (estimate_calls_size_and_time): New function.
3403         (estimate_callee_size_and_time): New function.
3404         (remap_predicate): New function.
3405         (inline_merge_summary): New function.
3406         (do_estimate_edge_time): New function based on...
3407         (estimate_edge_time): ... this one.
3408         (do_estimate_edge_growth): New function.
3409         (do_estimate_growth): New function based on....
3410         (estimate_growth): ... this one.
3411         (inline_analyze_function): Analyze after deciding on jump functions.
3412         (inline_read_section): New function.
3413         (inline_read_summary): Use it.
3414         (inline_write_summary): Write all the new data.
3415         * ipa-prop.c (ipa_get_param_decl_index): Export.
3416         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3417         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3418         Declare.
3419         (ipa_get_lattice): Move here from ipa-cp.c
3420         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3421         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3422         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3423         cgraph_edge_inlinable_p): Remove.
3424         * cgraphunit.c: Include ipainline.h
3425         (cgraph_process_new_functions): Update call of
3426         compute_inline_parameters.
3428 2011-04-22  Richard Guenther  <rguenther@suse.de>
3430         * tree.c (build_int_cst): Properly create canonicalized integer
3431         constants.
3432         (build_int_cst_type): Remove scary comments.
3434 2011-04-22  Xinliang David Li  <davidxl@google.com>
3436         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3437         by default when -Wno-error is not specified.
3438         * opts-global.c (decode_options): Remove call to
3439         control_warning_options.
3441 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3443         PR tree-optimization/48717
3444         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3445         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3447 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3449         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3450         definition where used.
3452 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3454         PR c/48716
3455         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3456         TREE_STATIC variables declared inside of some OpenMP construct.
3458 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3460         PR middle-end/48585
3461         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3463 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3465         PR c/36750
3466         * c-typeck.c (pop_init_level): Do not warn about initializing
3467         with ` = {0}'.
3469 2011-04-22  Alan Modra  <amodra@gmail.com>
3471         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3472         when returning call_cookie.
3473         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3474         pointers, to functions with no more vector args than the current
3475         function, and some non-local calls for ABI_V4.
3476         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3477         sibcall_nonlocal_aix64): Combine to ..
3478         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3479         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3480         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3481         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3482         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3483         operand.
3484         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3485         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3486         sibcall_value_symbolic_64): Delete.
3488 2011-04-21  Xinliang David Li  <davidxl@google.com>
3490         * cgraph.h: Remove pid.
3491         * cgraph.c: Remove pid.
3492         * value-prof.c (init_node_map): New function.
3493         (del_node_map): New function.
3494         (find_func_by_funcdef_no): New function.
3495         (gimple_ic_transform): Call new function.
3496         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3497         * function.c (get_last_funcdef_no): New function.
3498         * function.h (get_last_funcdef_no): New function.
3499         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3500         to libgcov function.
3501         (tree-profiling): Call node map init and delete function.
3503 2011-04-21  Ian Lance Taylor  <iant@google.com>
3505         * godump.c (go_format_type): Use exported Go name for anonymous
3506         field name.
3508 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3510         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3511         Call builtin_function_type_list instead of builtin_function_type.
3512         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3514 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3516         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3517         build_function_type_list instead of build_function_type.
3518         Delete variable `endlink'.
3520 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3522         * config/s390/s390.c (s390_init_builtins): Call
3523         build_function_type_list instead of build_function_type.
3525 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3527         * config/ia64/ia64.c (ia64_init_builtins): Call
3528         build_function_type_list instead of builtin_function_type.
3530 2011-04-21  Easwaran Raman  <eraman@google.com>
3532         * cfgexpand.c (stack_var): Remove OFFSET...
3533         (add_stack_var): ...and its reference here...
3534         (expand_stack_vars): ...and here.
3535         (stack_var_cmp): Sort by descending order of size.
3536         (partition_stack_vars): Change heuristic.
3537         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3538         (dump_stack_var_partition): Add newline after each partition.
3540 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3541             Jeff Law  <law@redhat.com>
3543         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3544         * gengtype.c (matching_file_name_substitute): Likewise.
3546 2011-04-21  Richard Guenther  <rguenther@suse.de>
3548         PR lto/48703
3549         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3551 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3553         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3555 2011-04-21  Richard Guenther  <rguenther@suse.de>
3557         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3558         file name.
3560 2011-04-21  Richard Guenther  <rguenther@suse.de>
3562         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3563         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3564         Use DECL_P, not SSA_VAR_P.
3565         (ptr_derefs_may_alias_p): Likewise.
3566         (ptr_deref_may_alias_ref_p_1): Likewise.
3567         (decl_refs_may_alias_p): Likewise.
3568         (refs_may_alias_p_1): Likewise.
3569         (ref_maybe_used_by_call_p_1): Likewise.
3570         (call_may_clobber_ref_p_1): Likewise.
3571         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3572         are either MEM_REF or TARGET_MEM_REF.
3573         (indirect_refs_may_alias_p): Likewise.
3574         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3575         for MEM_EXPR of indirect calls.
3577 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3579         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3580         (dst_file_info_struct): Remove flen field.
3581         (lookup_filename): Remove code that set flen field.
3583 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3585         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3587 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3589         PR target/48708
3590         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3591         vec_extract and vec_concat for non-SSE4_1 targets.
3593 2011-04-21  Richard Guenther  <rguenther@suse.de>
3595         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3596         return statements.
3598 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3600         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3601         undefine.
3602         (FILE): Don't undefine.
3604 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3606         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3607         struct rtx_def *.
3608         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3609         struct rtx_def *.
3610         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3611         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3612         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3613         rtx_def *.
3614         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3615         definitions where used.
3616         * config/microblaze/microblaze.h (struct microblaze_args): Use
3617         rtx, not struct rtx_def *.
3618         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3619         rtx_def *.
3620         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3621         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3622         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3623         not struct rtx_def *.
3624         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3625         struct rtx_def *.
3626         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3627         rtx_def *.
3628         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3630 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3632         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3633         operand_equal_p to compare DR_BASE_ADDRESSes.
3634         (vect_check_interleaving): Likewise.
3636 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3638         PR target/46329
3639         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3640         for all Neon struct constants.
3642 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3644         * target.def (legitimate_constant_p): New hook.
3645         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3646         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3647         * doc/tm.texi: Regenerate.
3648         * hooks.h (hook_bool_mode_rtx_true): Declare.
3649         * hooks.c (hook_bool_mode_rtx_true): Define.
3650         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3651         * calls.c (precompute_register_parameters): Replace uses of
3652         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3653         (emit_library_call_value_1): Likewise.
3654         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3655         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3656         * ira-costs.c (scan_one_insn): Likewise.
3657         * recog.c (general_operand, immediate_operand): Likewise.
3658         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3659         * reload1.c (init_eliminable_invariants): Likewise.
3661         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3662         mode argument.
3663         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3664         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3665         argument.
3666         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3667         * config/alpha/predicates.md (input_operand): Update call to
3668         alpha_legitimate_constant_p.
3670         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3671         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3672         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3673         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3674         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3675         (arm_legitimate_constant_p): New functions.
3676         (arm_cannot_force_const_mem): Make static.
3678         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3680         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3681         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3682         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3683         instead of bfin_legitimate_constant_p.
3684         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3685         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3687         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3689         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3691         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3692         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3693         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3694         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3696         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3697         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3698         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3700         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3701         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3702         * config/i386/i386.c (legitimate_constant_p): Rename to...
3703         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3704         argument.
3705         (ix86_cannot_force_const_mem): Update accordingly.
3706         (ix86_legitimate_address_p): Likewise.
3707         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3708         * config/i386/i386.md: Update commentary.
3710         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3711         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3712         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3713         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3715         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3717         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3718         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3719         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3720         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3722         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3723         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3724         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3726         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3727         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3728         (m32r_legitimate_constant_p): New function.
3730         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3731         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3732         LEGITIMATE_CONSTANT_P.
3733         (LEGITIMATE_CONSTANT_P): Delete.
3734         * config/m68k/m68k.c (m68k_expand_prologue): Call
3735         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3736         (m68k_legitimate_constant_p): New function.
3737         * config/m68k/m68k.md: Update comments.
3739         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3740         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3741         (mcore_legitimate_constant_p): New function.
3743         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3744         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3745         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3746         Add a mode argument.
3747         (mep_legitimate_address): Update accordingly.
3748         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3750         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3751         Delete.
3752         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3753         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3754         static.  Check OP's mode for VOIDmode.
3755         (microblaze_legitimate_constant_p): New function.
3756         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3758         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3759         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3760         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3761         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3762         * config/mips/predicates.md: Update comments.
3764         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3765         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3766         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3767         (mmix_legitimate_constant_p): Make static, return a bool, and take
3768         a mode argument.
3769         (mmix_print_operand_address): Update accordingly.
3771         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3772         Delete.
3773         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3774         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3775         static.  Add a mode argument.
3776         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3778         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3780         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3781         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3782         (pa_legitimate_constant_p): New function.
3784         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3786         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3787         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3788         (pdp11_legitimate_constant_p): New function.
3790         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3791         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3792         (rs6000_legitimate_constant_p): New function.
3794         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3795         (rx_legitimate_constant_p): ...this.
3796         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3797         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3798         (rx_legitimate_constant_p): ...this.
3799         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3800         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3802         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3803         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3804         * config/s390/s390.c (legitimate_constant_p): Rename to...
3805         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3806         and add a mode argument.
3807         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3809         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3811         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3812         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3813         (sh_legitimate_constant_p): New function.
3815         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3816         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3817         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3818         (legitimate_constant_p): Rename to...
3819         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3820         argument.
3821         (constant_address_p): Update accordingly.
3823         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3824         argument and return a bool.
3825         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3826         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3827         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3828         (spu_rtx_costs): Update accordingly.
3829         * config/spu/predicates.md (vec_imm_operand): Likewise.
3831         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3833         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3834         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3835         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3837         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3838         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3839         * config/vax/vax.c (legitimate_constant_p): Likewise.
3841         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3842         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3843         (xtensa_legitimate_constant_p): New function.
3845 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3847         * target.def (cannot_force_const_mem): Add a mode argument.
3848         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3849         * doc/tm.texi: Regenerate.
3850         * hooks.h (hook_bool_mode_rtx_false): Declare.
3851         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3852         (hook_bool_mode_const_rtx_true): Likewise.
3853         (hook_bool_mode_rtx_false): New function.
3854         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3855         to be non-VOID.  Update call to cannot_force_const_mem.
3856         (find_reloads): Update accordingly.
3857         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3858         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3859         argument.
3860         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3861         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3862         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3863         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3864         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3865         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3866         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3867         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3868         (m68k_cannot_force_const_mem): ...this new function.
3869         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3870         argument.
3871         (mips_const_insns, mips_legitimize_const_move): Update calls.
3872         (mips_secondary_reload_class): Likewise.
3873         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3874         (pa_cannot_force_const_mem): ...this new function.
3875         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3876         (rs6000_cannot_force_const_mem): ...this new function.
3877         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3878         argument.
3879         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3880         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3881         to...
3882         (xtensa_cannot_force_const_mem): ...this new function.
3884 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3886         * config/mips/mips.c (mips16_build_function_stub): Call
3887         build_function_type_list instead of build_function_type.
3888         (mips16_build_call_stub): Likewise.
3890 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3892         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3893         instead of build_function_type.
3895 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3897         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3898         instead of build_function_type.
3900 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3902         PR target/48678
3903         * config/i386/i386.md (insv): Change operand 0 constraint to
3904         "register_operand".  Change operand 1 and 2 constraint to
3905         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3906         * config/i386/sse.md (sse4_1_pinsrb): Export.
3907         (sse2_pinsrw): Ditto.
3908         (sse4_1_pinsrd): Ditto.
3909         (sse4_1_pinsrq): Ditto.
3910         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3911         * config/i386/i386.c (ix86_expand_pinsr): New.
3913 2011-04-20  Easwaran Raman  <eraman@google.com>
3915         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3916         containing union type only with -fstrict-aliasing.
3918 2011-04-20  Jim Meyering  <meyering@redhat.com>
3920         Remove useless if-before-free tests.
3921         * calls.c (expand_call, save_area): Likewise.
3922         * cfgcleanup.c (try_forward_edges): Likewise.
3923         * collect2.c (collect_execute): Likewise.
3924         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3925         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3926         * coverage.c (coverage_checksum_string): Likewise.
3927         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3928         * cselib.c (cselib_init): Likewise.
3929         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3930         (df_set_clean_cfg): Likewise.
3931         * function.c (free_after_compilation): Likewise.
3932         * gcc.c (do_spec_1, main): Likewise.
3933         * gcov.c (create_file_names): Likewise.
3934         * gensupport.c (identify_predicable_attribute): Likewise.
3935         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3936         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3937         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3938         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3939         * ipa-pure-const.c (local_pure_const): Likewise.
3940         * ipa-reference.c (propagate): Likewise.
3941         * ira-costs.c (free_ira_costs): Likewise.
3942         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3943         * matrix-reorg.c (mat_free): Likewise.
3944         * prefix.c (get_key_value): Likewise.
3945         * profile.c (compute_value_histograms): Likewise.
3946         * reload1.c (free_reg_equiv): Likewise.
3947         * sched-deps.c (free_deps): Likewise.
3948         * sel-sched-ir.c (fence_clear): Likewise.
3949         * sese.c (set_rename, if_region_set_false_region): Likewise.
3950         * tree-data-ref.c (free_rdg): Likewise.
3951         * tree-eh.c (lower_try_finally): Likewise.
3952         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3953         * tree-ssa-live.c (delete_var_map): Likewise.
3954         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3955         * tree-ssa-pre.c (phi_trans_add): Likewise.
3957 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
3959         PR tree-optimization/48611
3960         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3961         beyond ERT_MUST_NOT_THROW region.
3963 2011-04-20  Catherine Moore  <clm@codesourcery.com>
3965         * config/mips/mips.opt (mfix-24k): New.
3966         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3967         * config/mips/mips.md (length): Increase by 4 for stores if
3968         fixing 24K errata.
3969         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3970         all noreorder if fixing 24K errata.
3971         * doc/invoke.texi: Document mfix-24k.
3973 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
3975         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
3976         quad-word modes, reduce to 9-bit index range when above 1016 limit.
3978 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3980         * config/arm/arm.c (arm_gen_constant): Move movw support ....
3981         (const_ok_for_op): ... to here.
3983 2011-04-20  Kai Tietz  <ktietz@redhat.com>
3985         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3986         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
3988 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
3990         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3992 2011-04-20  Richard Guenther  <rguenther@suse.de>
3994         PR tree-optimization/47892
3995         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3996         are if-convertible.
3998 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4000         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4002 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4004         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4006 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4008         PR target/18145
4010         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4011         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4012         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4013         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4014         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4016         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4017         New prototype.
4019         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4020         (avr_asm_named_section, avr_asm_output_aligned_common,
4021         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4022         New functions to update...
4023         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4024         (avr_asm_init_sections): Overwrite section callbacks for
4025         data_section, bss_section.
4026         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4027         from here to...
4028         (avr_file_end): ...here.
4030 2011-04-20  Richard Guenther  <rguenther@suse.de>
4032         PR middle-end/48695
4033         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4034         objects and types here.  Adjust for their offset before comparing.
4036 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4038         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4039         statement per copy.
4041 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4043         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4044         (GIMPLE_H): Include $(INTERNAL_FN_H).
4045         (OBJS-common): Add internal-fn.o.
4046         (internal-fn.o): New rule.
4047         * internal-fn.def: New file.
4048         * internal-fn.h: Likewise.
4049         * internal-fn.c: Likewise.
4050         * gimple.h: Include internal-fn.h.
4051         (GF_CALL_INTERNAL): New gf_mask.
4052         (gimple_statement_call): Put fntype into a union with a new
4053         internal_fn field.
4054         (gimple_build_call_internal): Declare.
4055         (gimple_build_call_internal_vec): Likewise.
4056         (gimple_call_same_target_p): Likewise.
4057         (gimple_call_internal_p): New function.
4058         (gimple_call_internal_fn): Likewise.
4059         (gimple_call_fntype): Return null for internal calls.
4060         (gimple_call_set_fntype): Assert that the function is not internal.
4061         (gimple_call_set_fn): Likewise.
4062         (gimple_call_set_fndecl): Likewise.
4063         (gimple_call_set_internal_fn): New function.
4064         (gimple_call_addr_fndecl): Handle null functions.
4065         (gimple_call_return_type): Likewise null types.
4066         * gimple.c (gimple_build_call_internal_1): New function.
4067         (gimple_build_call_internal): Likewise.
4068         (gimple_build_call_internal_vec): Likewise.
4069         (gimple_call_same_target_p): Likewise.
4070         (gimple_call_flags): Handle calls to internal functions.
4071         (gimple_call_fnspec): New function.
4072         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4073         (gimple_has_side_effects): Handle null functions.
4074         (gimple_rhs_has_side_effects): Likewise.
4075         (gimple_call_copy_skip_args): Handle calls to internal functions.
4076         * cfgexpand.c (expand_call_stmt): Likewise.
4077         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4078         * gimple-fold.c (gimple_fold_call): Handle null functions.
4079         (gimple_fold_stmt_to_constant_1): Don't fold
4080         calls to internal functions.
4081         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4082         functions.
4083         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4084         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4085         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4086         (do_warn_unused_result): Likewise.
4087         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4088         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4089         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4090         the target of a call.
4091         (initialize_hash_element): Update accordingly.
4092         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4093         (iterative_hash_hashable_expr): Handle calls to internal functions.
4094         (print_expr_hash_elt): Likewise.
4095         * tree-ssa-pre.c (can_value_number_call): Likewise.
4096         (eliminate): Handle null functions.
4097         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4098         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4099         (find_func_aliases): Likewise.
4100         * value-prof.c (gimple_ic_transform): Likewise.
4101         (gimple_indirect_call_to_profile): Likewise.
4102         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4103         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4105 2011-04-19  Jan Hubicka  <jh@suse.cz>
4107         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4108         * ipa-inline.c (inline_small_functions): Compute summaries first,
4109         populate heap later.
4111 2011-04-19  Jan Hubicka  <jh@suse.cz>
4113         * cgraph.h (save_inline_function_body): Remove.
4114         * ipa-inline-transform.c: New file, broke out of...
4115         * ipa-inline.c: ... this one; Update toplevel comment.
4116         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4117         make global.
4118         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4119         (cgraph_mark_inline_edge): Rename to inline_call; move to
4120         ipa-inline-transform.c.
4121         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4122         move to ipa-inline-transform.c
4123         (recursive_inlining, inline_small_functions, flatten_function,
4124         ipa_inline, inline_always_inline_functions,
4125         early_inline_small_functions): Update.
4126         (inline_transform): Move to ipa-inline-transform.c.
4127         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4128         Declare.
4129         * Makefile.in (ipa-inline-transform.o): New file.
4130         * cgraphunit.c (save_inline_function_body): Move to
4131         ipa-inline-transform.c
4133 2011-04-19  DJ Delorie  <dj@redhat.com>
4135         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4136         registers if we already know there aren't any.
4137         (m32c_emit_epilogue): Don't emit a barrier here.
4138         (m32c_emit_eh_epilogue): Likewise.
4139         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4140         operands at expand time.
4141         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4142         int" wchar type.
4143         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4144         duplicates.  Provide aliases instead.
4145         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4146         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4147         the compiler.
4149 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4151         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4152         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4153         (general_or_i64_p, sparc_register_move_cost): New function.
4155 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4157         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4158         Add lynx, mipssde.  Sort table.
4160 2011-04-19  Xinliang David Li  <davidxl@google.com>
4162         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4163         not negative.
4165 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4167         PR target/48678
4168         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4169         is a SUBREG with non-MODE_INT mode inside of it.
4171 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4173         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4174         also according to actual contants.
4175         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4176         (gimple_fold_call): Use it.
4177         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4179 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4181         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4182         non-pointer assignments.
4184 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4186         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4187         account anc_offset and otr_type from the indirect edge info.
4188         * ipa-prop.c (get_ancestor_addr_info): New function.
4189         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4190         get_ancestor_addr_info, call it.
4191         (ipa_note_param_call): Do not initialize information about polymorphic
4192         calls, return the indirect call graph edge.  Remove the last
4193         parameter, adjust all callers.
4194         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4195         parameters.  Initialize polymorphic information in the indirect edge.
4197 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4199         PR lto/48148
4200         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4201         the types if they have different enumeration identifiers.
4203 2011-04-19  Jan Hubicka  <jh@suse.cz>
4205         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4206         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4207         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4208         (optimize_function_for_size_p) ... here.
4210 2011-04-19  Richard Guenther  <rguenther@suse.de>
4212         PR lto/48207
4213         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4214         langhook.
4216 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4218         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4219         if DECL_NO_INLINE_WARNING_P is set on the function.
4221 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4223         PR fortran/47976
4224         * reload1.c (inc_for_reload): Return void. All callers changed.
4225         (emit_input_reload_insns): Don't try to delete previous output
4226         reloads to a register, or record spill_reg_store for autoincs.
4228 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4230         * gengtype.h: Updated copyright year.
4231         (struct input_file_st): Add inpisplugin field.
4232         (type_fileloc): New function.
4233         * gengtype.c
4234         (write_typed_struct_alloc_def): Add gcc_assert.
4235         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4236         (write_typed_alloc_defns): Don't output for plugin files.
4237         (input_file_by_name): Clear inpisplugin field.
4238         (main): Set inpisplugin field for plugin files.
4240 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4242         * gengtype-state.c (string_eq): New.
4243         (read_state): Use string_eq instead of strcmp when creating the
4244         state_ident_tab.
4246 2011-04-19  Wei Guozhi  <carrot@google.com>
4248         PR target/47855
4249         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4250         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4251         linkage.
4252         * config/arm/constraints.md (Uu): New constraint.
4253         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4255 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4257         * config.gcc (-*-*-*vms): Added.
4258         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4259         definitions moved.
4260         * config/vms/vms-ld.c: New file.
4261         * config/vms/vms-ar.c: New file.
4262         * config/vms/t-vmsnative: New file.
4264 2011-04-18  Xinliang David Li  <davidxl@google.com>
4266         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4268 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4270         PR middle-end/48661
4271         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4272         if TREE_TYPE (v) is non-NULL.
4274         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4275         gimple_get_virt_mehtod_for_binfo.
4276         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4277         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4278         callers.
4279         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4281 2011-04-18  Michael Matz  <matz@suse.de>
4282             Steve Ellcey  <sje@cup.hp.com>
4284         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4285         use its mode as source mode if it isn't VOIDmode.
4287 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4289         * doc/passes.texi: Fill crossref nodes.
4291 2011-04-18  Jim Meyering  <meyering@redhat.com>
4293         Fix doubled-word typos in comments and strings
4294         * config/alpha/vms-unwind.h: s/for for/for/
4295         * config/arm/unwind-arm.h: Likewise.
4296         * config/microblaze/microblaze.c: Likewise.
4297         * config/sh/constraints.md: s/in in/in/
4298         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4300 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4302         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4303         (AVX_FLOAT_MODE_P): Ditto.
4304         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4305         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4306         (AVX_VEC_FLOAT_MODE_P): Ditto.
4307         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4308         (UNSPEC_MASKSTORE): Ditto.
4309         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4310         Merge from <sse>_movmsk<ssemodesuffix> and
4311         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4312         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4313         iterator.
4314         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4315         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4316         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4318 2011-04-18  Jan Hubicka  <jh@suse.cz>
4320         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4322         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4323         (want_inline_function_called_once_p): Break out the logic from
4324         ipa_inline.
4325         (edge_badness): Ensure that profile is not misupdated.
4326         (lookup_recursive_calls): Prioritize by call frequencies.
4327         (inline_small_functions): Move program size estimates here;
4328         actually process whole queue even when unit growth has been
4329         met. (to properly compute inline_failed reasons and for the
4330         case unit size decrease.) Revisit comments on recursive inlining.
4331         (ipa_inline): Remove unit summary code; first inline hot calls
4332         of functions called once, cold calls next.
4333         (order, nnodes): Remove unused variables.
4334         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4335         (GTFILES): Remove ipa-inline.c
4336         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4338 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4340         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4342 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4343             Richard Earnshaw  <rearnsha@arm.com>
4345         * arm.c (neon_builtin_type_bits): Remove.
4346         (typedef enum neon_builtin_mode): New.
4347         (T_MAX): Don't define.
4348         (typedef enum neon_builtin_datum): Remove bits, codes[],
4349         num_vars and base_fcode.  Add mode, code and fcode.
4350         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4351         VAR10): Change accordingly.
4352         (neon_builtin_data[]): Change accordingly
4353         (arm_init_neon_builtins): Change accordingly.
4354         (neon_builtin_compare): Remove.
4355         (locate_neon_builtin_icode): Remove.
4356         (arm_expand_neon_builtin): Change accordingly.
4358         * arm.h (enum arm_builtins): Move to ...
4359         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4361         * arm.c (arm_builtin_decl): Declare.
4362         (TARGET_BUILTIN_DECL): Define.
4363         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4364         (arm_builtin_decls[]): New.
4365         (arm_init_neon_builtins): Store builtin declarations in
4366         arm_builtin_decls[].
4367         (arm_init_tls_builtins): Likewise.
4368         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4369         (arm_builtin_decl): New.
4371 2011-04-18  Richard Guenther  <rguenther@suse.de>
4373         * tree.c (upper_bound_in_type): Build properly canonicalized
4374         INTEGER_CSTs.
4375         (lower_bound_in_type): Likewise.
4377 2011-04-18  Richard Guenther  <rguenther@suse.de>
4379         * gimple.h (gimple_call_addr_fndecl): New function.
4380         (gimple_call_fndecl): Use it.
4381         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4382         for direct calls.
4383         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4384         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4386 2011-04-18  Richard Guenther  <rguenther@suse.de>
4388         PR middle-end/48650
4389         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4391 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4393         PR lto/48492
4394         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4395         DECL_IN_CONSTANT_POOL without RTL.
4397 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4398             Ira Rosen  <ira.rosen@linaro.org>
4400         PR target/48252
4401         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4402         to match neon_vzip/vuzp/vtrn_internal.
4403         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4404         outputs explicitly dependent on both inputs.
4405         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4407 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4409         PR tree-optimization/48616
4410         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4411         whether the shift is by scalar or vector based on whether all SLP
4412         scalar stmts have the same rhs.
4414 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4416         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4417         memory operands.
4419 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4421         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4422         registers.
4424 2011-04-17  Jan Hubicka  <jh@suse.cz>
4426         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4427         * cgrpahunit.c (cgraph_finalize_function): Do not set
4428         finalized_by_frontend.
4429         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4430         finalized_by_frontend.
4432 2011-04-17  Jan Hubicka  <jh@suse.cz>
4434         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4435         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4436         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4437         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4438         method.
4439         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4440         gimple-fold.c
4441         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4443 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4445         PR lto/48538
4446         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4447         is non-null before accessing it.
4448         (input_cgraph): Remove trailing spaces.
4450 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4452         * params.def (sms-min-sc): New param flag.
4453         * modulo-sched.c (sms_schedule): Use it.
4454         * doc/invoke.texi (sms-min-sc): Document it.
4456 2011-04-17  Jan Hubicka  <jh@suse.cz>
4458         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4459         present, also set gimple_call_set_cannot_inline.
4460         * ipa-inline.c: Update toplevel comment.
4461         (MAX_TIME): Remove.
4462         (cgraph_clone_inlined_nodes): Fix linebreaks.
4463         (cgraph_check_inline_limits): Restructure to ...
4464         (caller_growth_limits): ... this one; be more tolerant
4465         on growth in nested inline chains; add explanatory comment;
4466         fix stack accounting thinko introduced by previous patch.
4467         (cgraph_default_inline_p): Remove.
4468         (report_inline_failed_reason): New function.
4469         (can_inline_edge_p): New function.
4470         (can_early_inline_edge_p): New function.
4471         (leaf_node_p): Move upwards in file.
4472         (want_early_inline_function_p): New function.
4473         (want_inline_small_function_p): New function.
4474         (want_inline_self_recursive_call_p): New function.
4475         (cgraph_edge_badness): Rename to ...
4476         (edge_badness) ... this one; fix linebreaks.
4477         (update_edge_key): Update call of edge_baddness; add
4478         detailed dump about queue updates.
4479         (update_caller_keys): Use can_inline_edge_p and
4480         want_inline_small_function_p.
4481         (cgraph_decide_recursive_inlining): Rename to...
4482         (recursive_inlining): Use can_inline_edge_p and
4483         want_inline_self_recursive_call_p; simplify and remove no longer
4484         valid FIXME.
4485         (cgraph_set_inline_failed): Remove.
4486         (add_new_edges_to_heap): Use can_inline_edge_p and
4487         want_inline_small_function_p.
4488         (cgraph_decide_inlining_of_small_functions): Rename to ...
4489         (inline_small_functions): ... this one; cleanup; use
4490         can/want predicates; cleanup debug ouput; work edges till fibheap
4491         is exhausted and do not stop once unit growth is reached; remove
4492         later loop processing remaining edges.
4493         (cgraph_flatten): Rename to ...
4494         (flatten_function): ... this one; use can_inline_edge_p
4495         and can_early_inline_edge_p predicates.
4496         (cgraph_decide_inlining): Rename to ...
4497         (ipa_inline): ... this one; remove unreachable nodes before
4498         inlining functions called once; simplify the pass.
4499         (cgraph_perform_always_inlining): Rename to ...
4500         (inline_always_inline_functions): ... this one; use
4501         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4502         (cgraph_decide_inlining_incrementally): Rename to ...
4503         (early_inline_small_functions): ... this one; simplify
4504         using new predicates; cleanup; make dumps prettier.
4505         (cgraph_early_inlining): Rename to ...
4506         (early_inliner): newer inline regular functions into always-inlines;
4507         fix updating of call stmt summaries.
4508         (pass_early_inline): Update for new names.
4509         (inline_transform): Fix formating.
4510         (gate_cgraph_decide_inlining): Rename to ...
4511         (pass_ipa_inline): ... this one.
4512         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4513         * ipa-inline-analysis.c (dump_inline_summary): Update.
4514         (compute_inline_parameters): Do not compute disregard_inline_limits;
4515         look for mismatching arguments.
4516         (estimate_growth): Fix handlig of non-trivial self recursion.
4517         (inline_read_summary): Do not read info->disregard_inline_limits.
4518         (inline_write_summary): Do not write info->disregard_inline_limits.
4519         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4520         and move all checks into can_inline_edge_p predicate; re-enable code
4521         comparing optimization levels.
4522         (expand_call_inline): Do not test inline_forbidden_into_p.
4523         * Makefile.in (ipa-inline.o): Update arguments.
4525 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4527         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4529 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4531         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4533 2011-04-17  Michael Matz  <matz@suse.de>
4535         PR tree-optimization/48622
4536         PR lto/48645
4537         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4538         in same order as they're written.
4540 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4542         * config/pa/predicates.md: Reorganize and simplify predicates.
4543         Eliminate duplicate code checks.
4544         (arith_operand): Rename to arith14_operand
4545         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4546         * config/pa/pa.md: Use renamed operands.
4547         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4548         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4549         arith11_operand, adddi3_operand, indexed_memory_operand,
4550         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4551         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4552         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4553         move_dest_operand, move_src_operand, prefetch_cc_operand,
4554         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4555         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4556         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4557         div_operand, int5_operand, movb_comparison_operator,
4558         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4559         arith_double_operand, ireg_operand, lhs_lshift_operand,
4560         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4561         integer_store_memory_operand): Likewise.
4562         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4563         (integer_store_memory_operand, read_only_operand,
4564         function_label_operand, borx_reg_operand,
4565         non_hard_reg_operand): Likewise.
4566         (eq_neq_comparison_operator): Delete unused operator.
4567         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4568         function_label_operand.
4569         (emit_move_sequence): Likewise.
4571 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4573         * config/i386/sse.md (sseunpackmode): New mode attribute.
4574         (ssepackmode): Ditto.
4575         (vec_pack_trunc_<mode>): Macroize expander from
4576         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4577         (vec_unpacks_lo_<mode>): Macroize expander from
4578         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4579         (vec_unpacks_hi_<mode>): Macroize expander from
4580         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4581         (vec_unpacku_lo_<mode>): Macroize expander from
4582         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4583         (vec_unpacku_hi_<mode>): Macroize expander from
4584         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4585         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4586         ix86_expand_sse4_unpack.
4587         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4589 2011-04-16  Jan Hubicka  <jh@suse.cz>
4591         * cgraphbuild.c: Include ipa-inline.h.
4592         (reset_inline_failed): Use initialize_inline_failed.
4593         * cgraph.c: Include ipa-inline.h.
4594         (cgraph_create_node_1): Do not initialize estimated_growth.
4595         (initialize_inline_failed): More to ipa-inline-analysis.c
4596         (dump_cgraph_node): Do not dump inline flags.
4597         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4598         and disregard_inline_limits flags.
4599         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4600         time, size, estimated_growth.
4601         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4602         Update.
4603         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4604         DECL_DISREGARD_INLINE_LIMITS.
4605         (cgraph_analyze_function): Do not initialize
4606         node->local.disregard_inline_limits.
4607         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4608         inlinable, versionable and disregard_inline_limits.
4609         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4610         cgraph_check_inline_limits, cgraph_default_inline_p,
4611         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4612         add_new_edges_to_heap): Update.
4613         (cgraph_decide_inlining_of_small_function): Update; set
4614         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4615         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4616         cgraph_decide_inlining_incrementally): Update.
4617         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4618         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4619         time, size and estimated_growth parameters.
4620         (estimate_edge_growth): Update.
4621         (initialize_inline_failed): Declare.
4622         * ipa-split.c: Include ipa-inline.h
4623         (execute_split_functions): Update.
4624         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4625         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4626         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4627         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4628         estimated_growth to INT_MIN.
4629         (inline_node_duplication_hook): Likewise.
4630         (dump_inline_summary): Dump new fields.
4631         (compute_inline_parameters): Update.
4632         (estimate_edge_time, estimate_time_after_inlining,
4633         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4634         inline_write_summary):
4635         (initialize_inline_failed): Move here from cgraph.c.
4636         * tree-sra.c: Include ipa-inline.h.
4637         (ipa_sra_preliminary_function_checks): Update.
4638         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4639         ipa-inline.h.
4641 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4643         * config/i386/sse.md (V16): New mode iterator.
4644         (VI1, VI8): Ditto.
4645         (AVXMODEQI, AVXMODEDI): Remove.
4646         (sse2, sse3): New mode attribute.
4647         (mov<mode>): Use V16 mode iterator.
4648         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4649         (push<mode>1): Use V16 mode iterator.
4650         (movmisalign<mode>): Ditto.
4651         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4652         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4653         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4654         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4655         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4656         avx_movdqu<avxmodesuffix>.
4657         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4658         *avx_movdqu<avxmodesuffix>.
4659         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4660         avx_lddqu<avxmodesuffix>.
4661         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4662         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4663         avx_movnt<AVXMODEDI:mode>.
4664         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4665         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4667 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4669         PR target/48629
4670         * haifa-sched.c (prune_ready_list, schedule_block): Use
4671         sched_pressure_p rather than flag_sched_pressure.
4673 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4675         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4676         cgraph_get_node instead of cgraph_get_create_node.
4678 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4680         * cfgexpand.c (expand_debug_expr): Use
4681         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4683 2011-04-15  Michael Matz  <matz@suse.de>
4685         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4686         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4687         * function.c (gimplify_parameters): Ditto.
4688         * gimplify.c (gimplify_vla_decl): Ditto.
4690         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4691         (gimple_call_set_alloca_for_var): New inline function.
4692         (gimple_call_alloca_for_var_p): Ditto.
4693         * gimple.c (gimple_build_call_from_tree): Remember
4694         CALL_ALLOCA_FOR_VAR_P state.
4695         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4697         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4698         calls if they were for VLA objects.
4700 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4702         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4703         of ADR_EXPRs.
4705 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4707         PR middle-end/48601
4708         * tree-emutls.c (lower_emutls_function_body): Call
4709         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4710         result is non-NULL.
4712 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4714         * c-decl.c (detect_field_duplicates): Call
4715         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4717 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4719         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4720         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4721         * ipa-pure-const.c (check_stmt): Call it.
4722         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4724 2011-04-15  Richard Guenther  <rguenther@suse.de>
4726         PR tree-optimization/48290
4727         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4728         Properly decide inhibiting propagation based on the valueized
4729         operand.  Do loop-closed SSA form preserving here ...
4730         (init_copy_prop): ... not here.
4732 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4734         PR target/48612
4735         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4736         (*ieee_smax<mode>3): Likewise.
4738 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4740         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4741         Replace match_operand with match_dup for the third operand in
4742         these expanders.
4744 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4746         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4747         to track processing of conditionals.  Update all callers.
4748         (try_combine, simplify_if_then_else): Update.
4750 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4752         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4753         -fsched-pressure.
4755 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4757         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4758         instead of match_operand for operand 3.
4760 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4762         * recog.h (insn_operand_data): Add an "allows_mem" field.
4763         * genoutput.c (output_operand_data): Initialize it.
4764         * optabs.c (maybe_legitimize_operand_same_code): New function.
4765         (maybe_legitimize_operand): Use it when matching the original
4766         op->value.
4768 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4770         * gimplify.c: Fix issues in comments throughout.
4771         (voidify_wrapper_expr): Fix long line.
4772         (build_stack_save_restore): Likewise.
4773         (gimplify_loop_expr): Likewise.
4774         (gimplify_compound_lval): Likewise.
4775         (gimplify_init_ctor_eval): Likewise.
4776         (gimplify_modify_expr_rhs): Likewise.
4777         (omp_notice_threadprivate_variable): Likewise.
4779 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4781         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4782         original one if this is not a builtin function.
4784 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4786         PR target/48605
4787         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4788         offset it as needed based on top 2 bits in operands[3], change
4789         MEM mode to SFmode and mask those 2 bits away from operands[3].
4791 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4793         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4794         change from objc_declare_protocols() to objc_declare_protocol().
4796 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4798         * config/i386/sse.md (sse4_1): New mode attribute.
4799         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4800         avx_blend<ssemodesuffix><avxmodesuffix> and
4801         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4802         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4803         avx_blendv<ssemodesuffix><avxmodesuffix> and
4804         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4805         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4806         avx_dp<ssemodesuffix><avxmodesuffix> and
4807         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4808         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4809         (sse4_1_packusdw): Merge with *avx_packusdw.
4810         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4811         (sse4_1_pblendw): Merge with *avx_pblendw.
4812         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4813         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4814         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4815         VF mode iterator.
4816         (sse4_1_round<ssescalarmodesuffix>): Merge with
4817         *avx_round<ssescalarmodesuffix>.
4818         (aesenc): Merge with *avx_aesenc.
4819         (aesenclast): Merge with *avx_aesenclast.
4820         (aesdec): Merge with *avx_aesdec.
4821         (aesdeclast): Merge with *avx_aesdeclast.
4822         (pclmulqdq): Merge with *pclmulqdq.
4823         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4824         New predicate.
4825         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4827 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4829         PR middle-end/48608
4830         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4831         (align_local_variable): This.  Update DECL_ALIGN.
4832         (add_stack_var): Updated.
4833         (expand_one_stack_var): Likewise.
4835 2011-04-14  Richard Guenther  <rguenther@suse.de>
4837         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4838         Remove.
4839         (dse_initialize_block_local_data, dse_leave_block,
4840         record_voperand_set, get_stmt_uid): Likewise.
4841         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4842         (dse_optimize_stmt): Remove voperand set handling code.
4843         Simplify and improve to handle any kind of killing stmt.
4844         (dse_record_phi): Remove.
4845         (dse_enter_block): Simplify.
4846         (tree_ssa_dse): Likewise.
4847         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4849 2011-04-14  Jan Hubicka  <jh@suse.cz>
4851         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4852         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4853         (cgraph_local_info): Remove inline_summary.
4854         * ipa-cp.c: Include ipa-inline.h.
4855         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4856         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4857         accesor.
4858         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4859         (input_overwrite_node): Do not set inline summary.
4860         (input_node): Do not stream inline summary.
4861         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4862         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4863         growth; we do not have inline parameters computed for that anyway.
4864         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4865         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4866         (inline_summary_t): New type and VECtor.
4867         (debug_inline_summary, dump_inline_summaries): Declare.
4868         (inline_summary): Use VOCtor.
4869         (estimate_edge_growth): Kill hack computing call stmt size directly.
4870         * lto-section-in.c (lto_section_name): Add inline section.
4871         * ipa-inline-analysis.c: Include lto-streamer.h
4872         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4873         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4874         (inline_summary_vec): Define.
4875         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4876         dump_inline_summaries): New functions.
4877         (estimate_function_body_sizes): Properly compute size/time of outgoing
4878         calls.
4879         (compute_inline_parameters): Alloc inline_summary; do not compute
4880         size/time of incomming calls.
4881         (estimate_edge_time): Avoid missing time summary hack.
4882         (inline_read_summary): Read inline summary info.
4883         (inline_write_summary): Write inline summary info.
4884         (inline_free_summary): Free all hooks and inline summary vector.
4885         * lto-streamer.h: Add LTO_section_inline_summary section.
4886         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4887         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4889 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4891         * tree-vectorizer.h (vect_strided_store_supported): Add a
4892         HOST_WIDE_INT argument.
4893         (vect_strided_load_supported): Likewise.
4894         (vect_permute_store_chain): Return void.
4895         (vect_transform_strided_load): Likewise.
4896         (vect_permute_load_chain): Delete.
4897         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4898         count argument.  Check that the count is a power of two.
4899         (vect_strided_load_supported): Likewise.
4900         (vect_permute_store_chain): Return void.  Update after above changes.
4901         Assert that the access is supported.
4902         (vect_permute_load_chain): Likewise.
4903         (vect_transform_strided_load): Return void.
4904         * tree-vect-stmts.c (vectorizable_store): Update calls after
4905         above interface changes.
4906         (vectorizable_load): Likewise.
4907         (vect_analyze_stmt): Don't check for strided powers of two here.
4909 2011-04-14  Richard Guenther  <rguenther@suse.de>
4911         PR tree-optimization/48590
4912         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4913         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4914         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4915         BUILT_IN_STACK_SAVE.
4916         * tree-ssa-dce.c (propagate_necessity): Handle
4917         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4919 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4921         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4922         objc_declare_class.
4924 2011-04-14  Richard Guenther  <rguenther@suse.de>
4926         * tree.h (get_object_alignment_1): Declare.
4927         * builtins.c (get_object_alignment_1): Split out worker from ...
4928         (get_object_alignment): ... here.
4929         * fold-const.c (get_pointer_modulus_and_residue): Use
4930         get_object_alignment_1.
4932 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4934         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4935         type parameter.
4936         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4937         parameter.  Generalise code to handle arrays as well as vectors.
4938         (vect_setup_realignment): Update accordingly.
4939         * tree-vect-stmts.c (vectorizable_store): Likewise.
4940         (vectorizable_load): Likewise.
4942 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4944         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4945         within the per-copy loop.
4947 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4949         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4950         in the dump file.
4952 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4954         * doc/options.texi (Negative): Explicitly mention that the
4955         Negative chain must be circular.
4957 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
4959         * function.h (block_chainon): Declare.
4960         * function.c (block_chainon): Define.
4962 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
4963             Eric Weddington  <eric.weddington@atmel.com>
4964             Georg-Johann Lay  <avr@gjlay.de>
4966         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
4967         New Includes
4968         (avr_init_builtins, avr_expand_builtin,
4969         avr_expand_delay_cycles, avr_expand_unop_builtin,
4970         avr_expand_binop_builtin ): New functions.
4971         (avr_builtin_id): New enum
4972         (struct avr_builtin_description): New struct
4973         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4974         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4976         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
4977         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
4978         UNSPECV_DELAY_CYCLES): new enumeration values
4979         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4980         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4981         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4982         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4983         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4984         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4985         "fmulsu"): New insns
4987         * config/avr/avr-c.c: fix line endings
4988         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4989         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4990         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4991         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4992         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
4994         * doc/extend.texi (AVR Built-in Functions): New node
4995         (Target Builtins): Add documentation of AVR
4996         built-in functions.
4998 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5000         PR target/44643
5001         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5002         alone. Error if non-const data has attribute progmem.
5004 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5006         * tree.h (struct tree_constructor): Include tree_typed instead of
5007         tree_common.
5008         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5009         TS_TYPED instead of TS_COMMON.
5011 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5013         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5014         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5015         (sse2_psadbw): Merge with *avx_psadbw.
5016         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5017         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5018         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5019         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5020         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5021         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5022         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5023         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5024         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5025         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5026         (ssse3_palignrti): Merge with *avx_palignrti.
5028 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5030         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5031         * tree-ssanames.c (fini_ssanames): VEC_free it.
5032         (make_ssa_name_fn): Update for VECness of free_ssanames.
5033         (release_ssa_name, release_dead_ssa_names): Likewise.
5034         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5035         tree_common.
5036         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5037         TS_TYPED instead of TS_COMMON.
5039 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5041         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5042         statistics_counter_event.
5043         * tree-ssa-copyrename.c (stats): Define.
5044         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5045         statistics_counter_event.
5046         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5047         (bswap_stats, widen_mul_stats): Define.
5048         (insert_reciprocals): Increment rdivs_inserted.
5049         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5050         rfuncs_inserted.  Add calls to statistics_counter_event.
5051         (execute_cse_sincos_1): Increment inserted.
5052         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5053         statistics_counter_event.
5054         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5055         of bswap_stats.  Add calls to statistics_counter_event.
5056         (convert_mult_to_widen): Increment widen_mults_inserted.
5057         (convert_plusminus_to_widen): Increment maccs_inserted.
5058         (convert_mult_to_fma): Increment fmas_inserted.
5059         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5060         calls to statistics_counter_event.
5062 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5064         PR rtl-optimization/48455
5065         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5066         `temp_costs->mem_cost'.
5068 2011-04-13  Jan Hubicka  <jh@suse.cz>
5070         * ipa-inline.h: New file.
5071         * ipa-inline-analysis.c: New file. Broken out of ...
5072         * ipa-inline.c: ... this file; update toplevel comment;
5073         include ipa-inline.h
5074         (inline_summary): Move to ipa-inline.h
5075         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5076         ipa-inline-analysis.c.
5077         (cgraph_estimate_time_after_inlining): Rename to
5078         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5079         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5080         to estimate_edge_growth.
5081         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5082         rename to estimate_size_after_inlining.
5083         (cgraph_mark_inline_edge): Update for new naming convention.
5084         (cgraph_check_inline_limits): Likewise.
5085         (cgraph_edge_badness): Likewise.
5086         (cgraph_decide_recursive_inlining): Likewise.
5087         (cgraph_decide_inlining_of_small_functions): Likewise.
5088         (cgraph_decide_inlining_incrementally): Likewise.
5089         (cgraph_estimate_growth): Rename to estimate_growth; move to
5090         ipa-inline-analysis.c.
5091         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5092         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5093         (compute_inline_parameters): Likewise.
5094         (compute_inline_parameters_for_current): Likewise.
5095         (pass_inline_parameters): Likewise.
5096         (inline_indirect_intraprocedural_analysis): Likewise.
5097         (analyze_function): Rename to inline_analyze_function; likewise.
5098         (add_new_function): Move to ipa-inline-analysis.c.
5099         (inline_generate_summary): Likewise.
5100         (inline_read_summary): Likewise.
5101         (inline_write_summary): Likewise.
5102         * Makefile.in (ipa-inline-analysis.c): New file.
5104 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5106         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5107         * configure: Regenerate.
5109 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5111         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5112         instead of tree_common.
5113         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5114         Likewise.
5115         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5116         TS_TYPED rather than TS_COMMON.
5117         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5119 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5121         PR target/45263
5122         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5123         r20 around calls of __tablejump_elpm__
5125 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5127         PR middle-end/48591
5128         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5129         NULL.
5130         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5132 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5134         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5135         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5136         (cfi_vec): New typedef.
5137         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5138         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5139         (cie_cfi_vec): New static variable.
5140         (cie_cfi_head): Delete.
5141         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5142         declaration changed. Use vector rather than list operations.
5143         (new_cfi): Don't initialize the dw_cfi_next field.
5144         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5145         rather than list operations.
5146         (lookup_cfa): Use vector rather than list operations.
5147         (output_cfis): New argument upto. Accept a cfi_vec rather than
5148         a dw_cfi_ref list head as argument. All callers changed.
5149         Iterate over the vector using upto as a maximum index.
5150         (output_all_cfis): New static function.
5151         (output_fde): Use vector rather than list operations. Use the
5152         new upto argument for output_cfis rather than manipulating a
5153         list.
5154         (dwarf2out_begin_prologue): Change initializations to match
5155         new struct members.
5156         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5157         from the vector length rather than searching for the end of a list.
5158         Use output_all_cfis.
5159         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5161 2011-04-13  Nick Clifton  <nickc@redhat.com>
5163         * config/rx/rx.md (movmemsi): Do not use this pattern when
5164         volatile pointers are involved.
5166 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5168         * config/i386/sse.md (pinsrbits): Remove.
5169         (sse2_packsswb): Merge with *avx_packsswb.
5170         (sse2_packssdw): Merge with *avx_packssdw.
5171         (sse2_packuswb): Merge with *avx_packuswb.
5172         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5173         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5174         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5175         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5176         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5177         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5178         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5179         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5180         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5181         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5182         (sse2_loadld): Merge with *avx_loadld.
5183         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5184         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5185         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5186         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5187         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5189 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5191         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5192         calling TREE_CHAIN.
5193         * print-tree.c (print_node): Likewise.
5194         * tree-inline.c (copy_tree_r): Likewise.
5195         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5196         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5197         instead of TS_COMMON.
5198         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5199         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5200         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5201         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5202         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5203         ...and these...
5204         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5205         * tree.h: ...here.
5206         (TREE_CHAIN): Check for a TS_COMMON structure.
5207         (TREE_TYPE): Check for a TS_TYPED structure.
5209 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5211         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5212         cgraph_get_create_node instead of cgraph_node.
5214 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5216         * c-parser.c (c_parser_initelt): Updated call to
5217         objc_build_message_expr.
5218         (c_parser_postfix_expression): Likewise.
5220 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5222         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5223         MASK_MS_BITFIELD_LAYOUT bit.
5225 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5227         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5228         assert it is always true.
5229         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5230         moves.
5232 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5234         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5235         compiling Objective-C to be more efficient.
5237 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5239         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5240         argv_copied.
5242 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5244         * recog.h, genoutput.c, optabs.c: Revert last patch.
5246 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5248         PR target/48090
5249         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5251 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5253         * recog.h (insn_operand_data): Add an "allows_mem" field.
5254         * genoutput.c (output_operand_data): Initialize it.
5255         * optabs.c (maybe_legitimize_operand_same_code): New function.
5256         (maybe_legitimize_operand): Use it when matching the original
5257         op->value.
5259 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5261         * genpreds.c (process_define_predicate): Move most processing
5262         to gensupport.c.  Continue to validate the expression.
5263         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5264         (process_define_predicate): Move processing to gensupport.c.
5265         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5266         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5267         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5268         argument.
5269         (valid_predicate_name_p): New function, split out from old
5270         genpreds.c:process_define_predicate.
5271         (process_define_predicate): New function, combining code from
5272         old genpreds.c and genrecog.c functions.
5273         (process_rtx): Call it for DEFINE_PREDICATE and
5274         DEFINE_SPECIAL_PREDICATE.
5276 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5278         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5279         size of a '%A' memory reference.
5280         (T_DREG, T_QREG): New neon_builtin_type_bits.
5281         (arm_init_neon_builtins): Assert that the load and store operands
5282         are neon_struct_operands.
5283         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5284         (NEON_ARG_MEMORY): New builtin_arg.
5285         (neon_dereference_pointer): New function.
5286         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5287         Handle NEON_ARG_MEMORY.
5288         (arm_expand_neon_builtin): Update after above interface changes.
5289         Use NEON_ARG_MEMORY for loads and stores.
5290         * config/arm/predicates.md (neon_struct_operand): New predicate.
5291         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5292         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5293         (V_four_elem): Tweak formatting.
5294         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5295         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5296         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5297         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5298         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5299         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5300         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5301         Use %A in the output template.
5302         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5303         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5304         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5305         the width of the memory access.  Remove post-increment.
5306         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5308 2011-04-12  Nick Clifton  <nickc@redhat.com>
5310         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5311         instruction for interrupt handlers if the target is the basic V850
5312         architecture.
5313         (expand_epilogue): Likewise.
5315 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5317         PR rtl-optimization/48549
5318         * combine.c (propagate_for_debug): Also stop after BB_END of
5319         this_basic_block.  Process LAST and just stop processing after it.
5320         (combine_instructions): If last_combined_insn has been deleted,
5321         set last_combined_insn to its PREV_INSN.
5323 2011-04-12  Richard Guenther  <rguenther@suse.de>
5325         PR tree-optimization/46076
5326         * gimple.h (struct gimple_statement_call): Add fntype field.
5327         (gimple_call_fntype): Adjust.
5328         (gimple_call_set_fntype): New function.
5329         * gimple.c (gimple_build_call_1): Set the call function type.
5330         * gimplify.c (gimplify_call_expr): Preserve the function
5331         type the frontend used for the call.
5332         (gimplify_modify_expr): Likewise.
5333         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5334         function type.
5335         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5336         function type.
5337         * tree-ssa.c (useless_type_conversion_p): Function pointer
5338         conversions are useless.
5340 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5342         * cgraph.h (cgraph_node): Remove function declaration.
5343         (cgraph_create_node): Declare.
5344         (cgraph_get_create_node): Likewise.
5345         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5346         Updated all callers.
5347         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5348         the decl does not already exist.  Call cgraph_get_create_node instead
5349         of cgraph_node.
5350         (cgraph_get_create_node): New function.
5351         (cgraph_same_body_alias): Update comment.
5352         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5353         assert it does not return NULL.
5354         (cgraph_update_edges_for_call_stmt): Likewise.
5355         (cgraph_clone_edge): Likewise.
5356         (cgraph_create_virtual_clone): Likewise.
5357         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5358         instead of cgraph_node.
5359         (cgraph_add_new_function): Call cgraph_create_node or
5360         cgraph_get_create_node instead of cgraph_node.
5361         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5362         instead of cgraph_node.
5363         (record_eh_tables): Likewise.
5364         (mark_address): Likewise.
5365         (mark_load): Likewise.
5366         (build_cgraph_edges): Call cgraph_get_create_node instead
5367         of cgraph_node.
5368         (rebuild_cgraph_edges): Likewise.
5369         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5370         instead of cgraph_node.
5371         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5372         cgraph_node.
5373         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5374         cgraph_create_node instead of cgraph_node.
5375         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5376         of cgraph_node.
5377         * lto-cgraph.c (input_node): Likewise.
5378         * lto-streamer-in.c (input_function): Likewise.
5379         * varasm.c (mark_decl_referenced): Likewise.
5380         (assemble_alias): Likewise.
5382 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5384         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5385         instead of cgraph_node and assert it does not return NULL.
5386         * lto-streamer-in.c (lto_read_body): Likewise.
5387         * omp-low.c (new_omp_context): Likewise.
5388         (create_task_copyfn): Likewise.
5389         * tree-emutls.c (lower_emutls_function_body): Likewise.
5390         * matrix-reorg.c (transform_allocation_sites): Likewise.
5392 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5394         PR c/48552
5395         * c-typeck.c (build_asm_expr): Error out on attempts to use
5396         void type outputs or inputs for constraints that allow reg or
5397         don't allow memory.
5399 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5400             Richard Earnshaw  <rearnsha@arm.com>
5402         PR target/48250
5403         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5404         to use sign-magnitude offsets. Reject unsupported unaligned
5405         cases. Add detailed description in comments.
5406         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5407         condition from TARGET_32BIT to TARGET_ARM.
5409 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5411         * tree.h (struct typed_tree): New.
5412         (struct tree_common): Include it instead of tree_base.
5413         (TREE_TYPE): Update for new location of type field.
5414         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5415         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5416         (union tree_node): Add typed field.
5417         * treestruct.def (TS_TYPED): New.
5418         * lto-streamer.c (check_handled_ts_structures): Handle it.
5419         * tree.c (MARK_TS_TYPED): New macro.
5420         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5422 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5424         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5425         (force_nonfallthru): Do not alter the loop nest if no basic block
5426         was created.
5428 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5430         * config/i386/sse.md (VI): New mode iterator.
5431         (SSEMODEI): Remove.
5432         (AVX256MODEI): Ditto.
5433         (AVXMODEF4P): Ditto.
5434         (avxvecpsmode): Ditto.
5435         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5436         (sse2_andnot<mode>3): New expander.
5437         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5438         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5439         (<any_logic:code><mode>3): Use VI mode iterator.
5440         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5441         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5442         (*andnottf3): Handle AVX three-operand constraints.
5443         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5445 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5446             Robert Millan  <rmh@gnu.org>
5448         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5449         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5450         GNU_USER_DYNAMIC_LINKER64): Define.
5451         (REG_NAME): Don't undefine.
5452         (MD_UNWIND_SUPPORT): Undefine.
5453         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5454         (REG_NAME): Don't undefine.
5455         (MD_UNWIND_SUPPORT): Undefine.
5456         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5458 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5460         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5461         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5463 2011-04-11  Xinliang David Li  <davidxl@google.com>
5465         * value-profile.c (check_ic_target): New function.
5466         (gimple_ic_transform): Sanity check indirect call target.
5467         * gimple-low.c (gimple_check_call_args): Interface change.
5468         (gimple_check_call_matching_types): New function.
5469         * tree-inline.c (tree_can_inline_p): Call new function.
5471 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5473         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5474         tree-pretty-print.h & realmpfr.h.
5476 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5478         PR middle-end/48464
5479         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5480         (setup_allocno_and_important_classes): Ditto.
5482 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5484         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5485         GNU_USER_DYNAMIC_LINKER.
5486         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5487         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5488         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5489         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5490         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5491         GNU_USER_TARGET_OS_CPP_BUILTINS.
5492         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5493         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5494         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5495         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5496         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5497         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5498         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5499         GNU_USER_TARGET_OS_CPP_BUILTINS.
5500         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5501         GNU_USER_DYNAMIC_LINKER.
5502         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5503         GNU_USER_TARGET_OS_CPP_BUILTINS.
5504         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5505         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5506         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5507         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5508         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5509         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5510         GNU_USER_DYNAMIC_LINKER64): Remove.
5511         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5512         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5513         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5514         GNU_USER_DYNAMIC_LINKER.
5515         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5516         GNU_USER_TARGET_OS_CPP_BUILTINS.
5517         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5518         GNU_USER_TARGET_OS_CPP_BUILTINS.
5519         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5520         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5521         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5522         GNU_USER_TARGET_OS_CPP_BUILTINS.
5523         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5524         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5525         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5526         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5527         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5528         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5529         GNU_USER_DYNAMIC_LINKER.
5530         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5531         GNU_USER_TARGET_OS_CPP_BUILTINS.
5532         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5533         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5534         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5535         GNU_USER_DYNAMIC_LINKER.
5536         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5537         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5538         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5539         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5540         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5541         GNU_USER_DYNAMIC_LINKER.
5542         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5543         GNU_USER_DYNAMIC_LINKERN32.
5544         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5545         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5546         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5547         GNU_USER_DYNAMIC_LINKER32.
5548         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5549         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5550         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5551         GNU_USER_DYNAMIC_LINKER.
5552         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5553         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5554         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5555         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5556         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5557         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5558         GNU_USER_DYNAMIC_LINKER32.
5559         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5560         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5561         GNU_USER_DYNAMIC_LINKER.
5562         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5563         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5564         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5565         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5566         GNU_USER_DYNAMIC_LINKER64.
5567         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5568         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5569         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5570         GNU_USER_DYNAMIC_LINKER.
5571         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5572         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5573         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5574         GNU_USER_DYNAMIC_LINKER.
5575         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5576         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5577         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5578         GNU_USER_DYNAMIC_LINKER32.
5579         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5580         GNU_USER_DYNAMIC_LINKER64.
5581         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5582         GNU_USER_DYNAMIC_LINKER64.
5583         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5584         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5585         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5586         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5587         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5589 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5591         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5592         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5593         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5594         GNU_USER_DYNAMIC_LINKER.
5595         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5596         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5597         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5598         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5599         GNU_USER_DYNAMIC_LINKER64.
5600         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5601         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5602         GNU_USER_LINK_EMULATION.
5603         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5604         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5605         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5606         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5607         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5608         CPP_SPEC, CC1_SPEC): Remove.
5609         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5610         (GNU_USER_DYNAMIC_LINKER): Define.
5611         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5612         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5613         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5614         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5615         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5616         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5617         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5618         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5619         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5620         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5621         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5622         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5623         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5624         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5625         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5626         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5627         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5628         GNU_USER_DYNAMIC_LINKER.
5629         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5630         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5631         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5632         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5633         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5634         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5635         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5636         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5637         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5638         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5640 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5642         PR target/9601
5643         PR target/11772
5644         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5645         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5646         comment.
5647         (ix86_is_msabi_thiscall): Removed.
5648         (ix86_is_type_thiscall): Likewise.
5649         (ix86_get_callcvt): New function.
5650         (ix86_comp_type_attributes): Simplify check.
5651         (ix86_function_regparm): Use ix86_get_callcvt for calling
5652         convention attribute checks.
5653         (ix86_return_pops_args): Likewise.
5654         (ix86_static_chain): Likewise.
5655         (x86_this_parameter): Likewise.
5656         (x86_output_mi_thunk): Likewise.
5657         (ix86_function_type_abi): Optimize check for types without attributes.
5658         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5659         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5660         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5661         by flag-values.
5662         (IX86_BASE_CALLCVT): Helper macro.
5663         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5664         Use ix86_get_callcvt for calling convention attribute checks and avoid
5665         symbol-decoration for stdcall in TARGET_RTD case.
5666         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5667         Likewise.
5668         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5669         for declaration.
5671 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5673         * config/i386/sse.md (VI_128): New mode iterator.
5674         (VI12_128): Rename from SSEMODE12.
5675         (VI14_128): Rename from SSEMODE14.
5676         (VI124_128): New mode iterator.
5677         (VI24_128): Rename from SSEMODE248.
5678         (VI248_128): Rename from SSEMODE248.
5679         (SSEMODE124C8): Remove.
5680         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5681         (*sse2_<plusminus_insn><mode>3): Merge with
5682         *avx_<plusminus_insn><mode>3.
5683         (*mulv8hi3): Merge with *avx_mulv8hi3.
5684         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5685         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5686         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5687         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5688         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5689         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5690         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5691         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5692         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5693         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5694         (*<smaxmin:code>v8hi3): Ditto.
5695         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5696         (*<smaxmin:code>v16qi3): Ditto.
5697         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5698         (*sse2_eq<mode>3): Ditto.
5699         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5700         (*sse2_gt<mode>3): Ditto.
5701         (vcondv2di): Split out of vcond<mode>.
5702         (vconduv2di): Split out of vcondu<mode>.
5704 2011-04-11  Richard Guenther  <rguenther@suse.de>
5706         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5707         before calling tree_low_cst.
5709 2011-04-11  Richard Guenther  <rguenther@suse.de>
5711         * stor-layout.c (layout_type): Compute all array index size operations
5712         in the original type.
5713         (initialize_sizetypes): Add comment.
5714         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5716 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5718         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5720 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5722         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5723         of cgraph_node, handle NULL return value.
5724         (cgraph_global_info): Likewise.
5725         (cgraph_rtl_info): Likewise.
5726         * tree-inline.c (estimate_num_insns): Likewise.
5727         * gimplify.c (unshare_body): Likewise.
5728         (unvisit_body): Likewise.
5729         (gimplify_body): Likewise.
5730         * predict.c (optimize_function_for_size_p): Likewise.
5731         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5732         (call_may_clobber_ref_p_1): Likewise.
5733         * varasm.c (function_section_1): Likewise.
5734         (assemble_start_function): Likewise.
5736 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5738         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5739         of cgraph_node.
5740         * final.c (rest_of_clean_state): Likewise.
5741         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5742         * passes.c (pass_init_dump_file): Likewise.
5743         (execute_all_ipa_transforms): Likewise.
5744         (function_called_by_processed_nodes_p): Likewise.
5745         * predict.c (maybe_hot_frequency_p): Likewise.
5746         (probably_never_executed_bb_p): Likewise.
5747         (compute_function_frequency): Likewise.
5748         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5749         (unnest_nesting_tree_1): Likewise.
5750         (lower_nested_functions): Likewise.
5751         * tree-optimize.c (execute_fixup_cfg): Likewise.
5752         (tree_rest_of_compilation): Likewise.
5753         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5754         * tree-sra.c (ipa_early_sra): Likewise.
5755         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5756         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5757         * ipa.c (record_cdtor_fn): Likewise.
5758         * ipa-inline.c (cgraph_early_inlining): Likewise.
5759         (compute_inline_parameters_for_current): Likewise.
5760         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5761         * ipa-pure-const.c (local_pure_const): Likewise.
5762         * ipa-split.c (split_function): Likewise.
5763         (execute_split_functions): Likewise.
5764         * cgraphbuild.c (build_cgraph_edges): Likewise.
5765         (rebuild_cgraph_edges): Likewise.
5766         (cgraph_rebuild_references): Likewise.
5767         (remove_cgraph_callee_edges): Likewise.
5768         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5769         (verify_cgraph_node): Likewise.
5770         (cgraph_analyze_functions): Likewise.
5771         (cgraph_preserve_function_body_p): Likewise.
5772         (save_inline_function_body): Likewise.
5773         (save_inline_function_body): Likewise.
5774         * tree-inline.c (copy_bb): Likewise.
5775         (optimize_inline_calls): Likewise.
5777 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5779         PR tree-optimization/48195
5780         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5781         ipa_check_create_edge_args.
5782         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5783         ipa_check_create_edge_args.
5784         * ipa-inline.c (inline_generate_summary): Do not call
5785         ipa_check_create_node_params and ipa_check_create_edge_args.
5786         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5787         ipa_check_create_edge_args.
5789 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5791         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5792         instead of loop.
5793         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5794         * function.c (record_hard_reg_sets): Likewise.
5795         * ira.c (compute_regs_asm_clobbered): Likewise.
5796         * sched-deps.c (sched_analyze_1): Likewise.
5797         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5799 2011-04-09  Xinliang David Li  <davidxl@google.com>
5801         PR tree-optimization/PR48484
5802         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5803         has_valid_pred lazily
5805 2011-04-09  Duncan Sands  <baldrick@free.fr>
5807         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5809 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5811         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5812         cost of I0 to zero at the end, if any.
5814 2011-04-08  Xinliang David Li  <davidxl@google.com>
5816         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5817         to insane profile data.
5819 2011-04-08  Xinliang David Li  <davidxl@google.com>
5821         * ipa-cp.c (ipcp_update_profiling): Correct
5822          negative scale factor due to insane profile data.
5824 2011-04-08  Xinliang David Li  <davidxl@google.com>
5826         * final.c (dump_basic_block_info): New function.
5827         (final): Dump basic block.
5828         (final_scan_insn): Remove old dump.
5830 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5832         PR target/47829
5833         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5834         crtbegin/crtend.
5836 2011-04-08  Michael Matz  <matz@suse.de>
5838         PR middle-end/48389
5839         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5840         functions.
5841         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5842         * rtl.h (rebuild_jump_labels_chain): Declare.
5843         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5844         insns inserted on edges.
5846 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5848         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5849         * config/arm/arm-arches.def: New.
5850         * config/arm/arm-opts.h: New.
5851         * config/arm/genopt.sh: New.
5852         * config/arm/arm-tables.opt: New (generated).
5853         * config/arm/arm.c (arm_handle_option, arm_target_help,
5854         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5855         (all_architectures): Get most table contents from arm-arches.def.
5856         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5857         arm_selected_tune here.
5858         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5859         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5860         (march=, mcpu=, mtune=): Use Enum and Var.
5861         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5862         (arm.o): Update dependencies.
5864 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5866         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5867         of header_file.
5868         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5869         (write_typed_alloc_defns): Likewise.
5870         (main): Calls write_typed_alloc_defns with output_header.
5872 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5874         PR inline-asm/48435
5875         * ira-color.c (setup_profitable_hard_regs): Add comments.
5876         Don't take prohibited hard regs into account.
5877         (setup_conflict_profitable_regs): Rename to
5878         get_conflict_profitable_regs.
5879         (check_hard_reg_p): Check prohibited hard regs.
5881 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5883         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5884         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5885         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5887 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5889         PR target/48366
5890         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5891         move from floating point to shift amount register.
5892         (emit_move_sequence): Remove secondary reload support for floating
5893         point to shift amount amount register copies.
5894         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5895         amount register copies.
5896         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5897         register, return false if mode isn't a scalar integer mode.
5898         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5900 2011-04-08  Richard Guenther  <rguenther@suse.de>
5902         * gimple.c (gimple_call_flags): Remove kludge.
5904 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5906         * sel-sched.c (sel_region_init): Move call to
5907         sel_setup_region_sched_flags after setup_current_loop_nest.
5909 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5911         PR rtl-optimization/48272
5912         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5913         init_insn_reg_pressure_info.  Adjust a caller.
5914         * sched-int.h (init_insn_reg_pressure_info): Declare.
5915         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5916         when sched-pressure is enabled.
5918 2011-04-08  Richard Guenther  <rguenther@suse.de>
5920         * gimple.c (gimple_set_modified): Do not queue calls to
5921         MODIFIED_NORETURN_CALLS here ...
5922         * tree-ssa-operands.c (update_stmt_operands): ... but here.
5924 2011-04-08  Richard Guenther  <rguenther@suse.de>
5926         PR lto/48467
5927         * toplev.c (lang_dependent_init): Do not open asm_out_file
5928         in WPA mode, nor perform debug machinery initialization.
5929         (finalize): Do not unlink asm_out_file in WPA mode.
5931 2011-04-08  Richard Guenther  <rguenther@suse.de>
5933         * gimple.h (gimple_call_fntype): New function.
5934         (gimple_call_return_type): Use it.
5935         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5936         * gimple-low.c (gimple_check_call_args): Likewise.
5937         * gimple.c (gimple_call_flags): Likewise.
5938         (gimple_call_arg_flags): Likewise.
5939         (gimple_call_return_flags): Likewise.
5940         * tree-cfg.c (verify_gimple_call): Likewise.
5941         (do_warn_unused_result): Likewise.
5942         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5943         * value-prof.c (gimple_ic_transform): Fix fndecl check.
5945 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
5947         PR rtl-optimization/48235
5948         * sel-sched.c (code_motion_process_successors): Recompute the last
5949         insn in basic block if control flow changed.
5950         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
5951         Update condition for ilist_remove.
5953 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5955         PR rtl-optimization/48302
5956         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5957         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
5958         it to record added preheader blocks.
5959         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
5960         on to sel_add_loop_preheaders.
5961         (sel_region_init): Move call to setup_current_loop_nest after
5962         sel_init_bbs.
5964 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5966         PR target/48273
5967         * cfgloop.h (loop_has_exit_edges): New helper.
5968         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5969         non-clonable.
5970         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5971         that have no exit edges.
5973 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5975         PR rtl-optimization/48442
5976         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
5977         all callers.  Adjust assert.
5979 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
5981         PR tree-optimization/48377
5982         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5983         is_packed to true even for types with smaller TYPE_ALIGN than
5984         TYPE_SIZE.
5986 2011-04-08  Richard Guenther  <rguenther@suse.de>
5988         PR bootstrap/48513
5989         * doc/tm.texi: Re-generate.
5991 2011-04-08  Wei Guozhi  <carrot@google.com>
5993         PR target/47855
5994         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5995         * config/arm/arm.c (arm_attr_length_push_multi): New function.
5996         * config/arm/arm.md (*push_multi): Change the length computation to
5997         call a C function.
5999 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6001         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6002         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6003         * doc/tm.texi: Regenerate.
6004         * system.h (ASM_OUTPUT_BSS): Poison.
6005         * varasm.c (asm_output_bss): Remove function.
6006         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6008         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6009         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6010         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6011         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6012         Likewise.
6013         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6014         Likewise.
6015         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6016         Likewise.
6017         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6019 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6021         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6022         EnumValue lines.
6024 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6026         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6027         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6028         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6029         OPT_mcpu32.
6030         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6031         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6032         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6033         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6034         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6035         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6036         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6037         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6038         options.  Don't map other m68k options manually.  Don't handle
6039         old-style options as canonical.
6040         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6041         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6043 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6045         * basic-block.h (force_nonfallthru): Move to...
6046         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6047         (force_nonfallthru): ...here.
6048         * cfghooks.c (force_nonfallthru): New function.
6049         * cfgrtl.c (force_nonfallthru): Rename into...
6050         (rtl_force_nonfallthru): ...this.
6051         (commit_one_edge_insertion): Do not set AUX field.
6052         (commit_edge_insertions): Do not discover new basic blocks.
6053         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6054         (cfg_layout_rtl_cfg_hooks): Likewise.
6055         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6056         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6057         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6059 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6061         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6062         Remove macros.
6064 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6066         * config/i386/sse.md: Update copyright year.
6067         (avxcvtvecmode): Remove.
6068         (sse_movhlps): Merge with *avx_movhlps.
6069         (sse_movlhps): Merge with *avx_movlhps.
6070         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6071         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6072         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6073         (sse_loadhps): Merge with *avx_loadhps.
6074         (sse_storelps): Merge with *avx_storelps.
6075         (sse_loadlps): Merge with *avx_loadlps.
6076         (sse_movss): Merge with *avx_movss.
6077         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6078         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6079         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6080         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6081         (vec_set<mode>_0): Ditto.
6082         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6083         (sse4_1_insertps): Merge with *avx_insertps.
6084         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6085         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6086         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6087         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6088         (sse2_storehpd): Merge with *avx_storehpd.
6089         (sse2_loadhpd): Merge with *avx_loadhpd.
6090         (sse2_loadlpd): Merge with *avx_loadlpd.
6091         (sse2_movsd): Merge with *avx_movsd.
6092         (*vec_concatv2df): Merge with *vec_concatv2df.
6094 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6096         PR debug/48343
6097         * combine.c (combine_instructions): Add last_combined_insn,
6098         update it if insn is after it, pass it to all try_combine calls.
6099         (try_combine): Add last_combined_insn parameter, pass it instead of
6100         i3 to propagate_for_debug.
6102 2011-04-07  Nick Clifton  <nickc@redhat.com>
6104         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6105         to handle MDR <-> data register transfers.
6106         (movhi_internal): Likewise.
6108 2011-04-07  Alan Modra  <amodra@gmail.com>
6110         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6111         previous stack info.
6113 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6115         PR target/43920
6116         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6117         flow_find_cross_jump.  Swap variables to implement backward replacement.
6118         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6120 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6122         PR target/43920
6123         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6124         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6125         and bb2.
6126         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6127         src1 or src2.  Redirect edges to the last basic block.  Update
6128         frequency and count on multiple basic blocks in case of fallthru.
6130 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6132         PR target/43920
6133         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6134         function.
6135         (old_insns_match_p): Change return type.  Replace return false/true
6136         with return dir_none/dir_both.  Use can_replace_by.
6137         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6138         direction from dir_p.  Register replacement direction in dir, last_dir
6139         and afterlast_dir.  Handle new return type of old_insns_match_p using
6140         merge_dir.  Return replacement direction in dir_p.
6141         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6142         return type of old_insns_match_p.
6143         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6144         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6145         flow_find_cross_jump.
6146         * basic-block.h (enum replace_direction): New type.
6147         (flow_find_cross_jump): Add parameter to declaration.
6149 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6151         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6152         (AVXMODEDCVTPS2DQ): Ditto.
6153         (VEC_FLOAT_MODE): Ditto.
6154         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6155         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6156         (<any_logic:code><mode>3): Use VF mode iterator.
6157         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6158         Use VF mode iterator.
6159         (copysign<mode>3): Use VF mode iterator.
6160         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6161         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6162         (*<any_logic:code><MODEF:mode>3): Merge with
6163         *avx_<any_logic:code><MODEF:mode>3.
6164         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6165         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6166         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6167         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6168         (sse2_cvtdq2ps): Use %v modifier.
6169         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6170         (avx_cvtps2dq<avxmodesuffix>): Remove.
6171         (sse2_cvtps2dq): Use %v modifier.
6172         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6173         (avx_cvttps2dq<avxmodesuffix>): Remove.
6174         (sse2_cvttps2dq): Use %v modifier.
6175         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6176         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6177         (sse2_cvtsd2siq): Fix insn template.
6178         (sse2_cvtsd2siq_2): Ditto.
6179         (sse2_cvttsd2siq): Ditto.
6180         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6181         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6183 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6185         * gcov-io.c: Use GCC Runtime Library Exception.
6187 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6189         PR debug/48466
6190         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6191         as base_reg whatever register reg has been eliminated to, instead
6192         of hardcoding STACK_POINTER_REGNUM.
6194 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6196         * doc/tm.texi.in: Document C target hooks as separate from general
6197         target hooks.
6198         * doc/tm.texi: Regenerate.
6199         * genhooks.c (struct hook_desc): Add docname field.
6200         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6201         docname field.
6202         (hook_array): Include c-target.def.
6203         (emit_documentation): Use docname field in output.
6204         (emit_init_macros): Take docname argument.  Only emit definitions
6205         for hooks matching docname.
6206         (main): Expect additional arguments in all cases.  Pass argument
6207         to emit_init_macros.
6208         * target.def: Move initial macro definitions and comments to
6209         target-hooks-macros.h.
6210         (gcc_targetcm): Move to c-family/c-target.def.
6211         * target.h (targetcm): Move declaration to c-family/c-target.h.
6212         * targhooks.c (default_handle_c_option): Move to
6213         c-family/c-opts.c.
6214         * targhooks.h (default_handle_c_option): Move declaration to
6215         c-family/c-common.h.
6216         * target-hooks-macros.h: New file.
6217         * config.gcc (target_has_targetcm): Define and use to add to
6218         c_target_objs and cxx_target_objs.
6219         * config/default-c.c: New file.
6220         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6221         of target.h and target-def.h.
6222         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6223         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6224         darwin_check_cfstring_format_arg): Make static.
6225         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6226         TARGET_STRING_OBJECT_REF_TYPE_P,
6227         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6228         * config/darwin-protos.h (darwin_objc_construct_string,
6229         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6230         declare.
6231         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6232         TARGET_STRING_OBJECT_REF_TYPE_P,
6233         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6234         * config/t-darwin (darwin-c.o): Update dependencies.
6235         * system.h (TARGET_HAS_TARGETCM): Poison.
6236         * Makefile.in (TARGET_H): Update.
6237         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6238         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6239         (default-c.o): New target.
6240         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6241         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6242         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6243         c-target.def.
6244         (build/genhooks.o): Update dependencies.
6246 2011-04-06  Richard Guenther  <rguenther@suse.de>
6248         * ipa-inline.c (enum inlining_mode): Remove.
6249         (cgraph_flatten): Use some other token.
6250         (cgraph_edge_early_inlinable_p): New function, split out from ...
6251         (cgraph_perform_always_inlining): New function, split out from ...
6252         (cgraph_decide_inlining_incrementally): ... here.
6253         (cgraph_mark_inline_edge): Adjust.
6254         (cgraph_early_inlining): Re-structure.
6255         (pass_early_inline): Require SSA form.
6257 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6258             Julian Brown  <julian@codesourcery.com>
6259             Mark Shinwell  <shinwell@codesourcery.com>
6261         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6262         LO_REGS only for Thumb-1.
6263         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6264         be used in short instructions when optimising for size on Thumb-2.
6266 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6268         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6269         associated with user returns to be preserved.
6271 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6273         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6274         symbol_queue_size, DBXOUT_DECR_NESTING,
6275         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6276         if XCOFF_DEBUGGING_INFO.
6278 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6280         * config/i386/i386.md (attribute isa): New.
6281         (attribute enabled): New.
6282         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6283         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6284         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6285         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6286         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6287         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6288         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6289         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6291         * config/i386/sse.md (VF): New mode iterator.
6292         (VF1): Ditto.
6293         (VF2): Ditto.
6294         (VF_128): Ditto.
6295         (SSEMODEF4): Remove.
6296         (attribute sse): Handle V8SF and V4DF modes.
6297         (<absneg:code><mode>2): Use VF mode iterator.
6298         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6299         mode iterator.
6300         (<plusminus_insn><mode>3): Use VF mode iterator.
6301         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6302         Use VF mode iterator.
6303         (<sse>_vm<plusminus_insn><mode>3): Merge with
6304         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6305         (mul<mode>3): Use VF mode iterator.
6306         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6307         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6308         mode iterator.
6309         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6310         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6311         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6312         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6313         mode iterator.
6314         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6315         Use VF1 mode iterator.
6316         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6317         (sqrt<VF2:mode>2): New expander.
6318         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6319         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6320         and sqrtv2df2.  Use VF mode iterator.
6321         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6322         mode iterator.
6323         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6324         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6325         Use VF1 mode iterator.
6326         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6327         (<smaxmin:code><mode>3): Use VF mode iterator.
6328         (*<smaxmin:code><mode>3_finite): Merge with
6329         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6330         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6331         (<sse>_vm<smaxmin:code><mode>2): Merge with
6332         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6333         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6334         mode iterator.
6335         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6336         mode iterator.
6337         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6338         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6339         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6340         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6341         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6342         VF mode iterator.
6343         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6344         Use VF_128 mode iterator.
6345         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6346         mode iterator.
6347         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6348         VF_128 mode iterator.
6349         (vcond<mode>): Use VF mode iterator.
6350         * config/i386/predicates.md (sse_comparison_operator): Merge with
6351         avx_comparison_float_operator.  Do not declare as special_predicate.
6352         * config/i386/i386.c (struct builtin_description): Update for renamed
6353         compare patterns.
6354         (ix86_expand_args_builtin): Ditto.
6355         (ix86_expand_sse_compare_mask): Ditto.
6357 2011-04-06  Richard Guenther  <rguenther@suse.de>
6359         * tree-inline.c (estimate_num_insns): For calls simply account
6360         for all passed arguments and a used return value.
6362 2011-04-06  Richard Guenther  <rguenther@suse.de>
6364         PR tree-optimization/47663
6365         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6366         call_stmt_time fields.
6367         (cgraph_edge_inlinable_p): Declare.
6368         (cgraph_edge_recursive_p): New inline function.
6369         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6370         (cgraph_clone_edge): Copy it.
6371         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6372         Account for call stmt time.
6373         (cgraph_estimate_time_after_inlining): Take edge argument.
6374         (cgraph_estimate_edge_growth): Account call stmt size.
6375         (cgraph_estimate_size_after_inlining): Take edge argument.
6376         (cgraph_mark_inline_edge): Adjust.
6377         (cgraph_check_inline_limits): Likewise.
6378         (cgraph_recursive_inlining_p): Remove.
6379         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6380         (cgraph_decide_recursive_inlining): Take edge argument and
6381         adjust.
6382         (cgraph_decide_inlining_of_small_functions): Do not avoid
6383         diags for recursive inlining here.
6384         (cgraph_flatten): Adjust.
6385         (cgraph_decide_inlining_incrementally): Likewise.
6386         (estimate_function_body_sizes): Remove call cost handling.
6387         (compute_inline_parameters): Initialize caller edge call costs.
6388         (cgraph_estimate_edge_growth): New function.
6389         (cgraph_estimate_growth): Use it.
6390         (cgraph_edge_badness): Likewise.
6391         (cgraph_check_inline_limits): Take an edge argument.
6392         (cgraph_decide_inlining_of_small_functions): Adjust.
6393         (cgraph_decide_inlining): Likewise.
6394         * tree-inline.c (estimate_num_insns): Only account for call
6395         return value if it is used.
6396         (expand_call_inline): Avoid diagnostics on recursive inline
6397         functions here.
6398         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6399         (input_edge): Input edge call costs.
6401 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6403         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6405 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6407         * doc/invoke.texi (Spec Files): Fix typo.
6409 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6411         * profile.c (branch_prob): Move declaration of local variable.  Remove
6412         obsolete ??? comment.  Expand the location explicitly instead of using
6413         the LOCATION_FILE and LOCATION_LINE macros.
6415 2011-04-06  Wei Guozhi  <carrot@google.com>
6417         PR target/47855
6418         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6419         (arm_cond_branch): Likewise.
6420         (arm_cond_branch_reversed): Likewise.
6421         (arm_jump): Likewise.
6422         (push_multi): Likewise.
6423         * config/arm/constraints.md (Py): New constraint.
6425 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6427         PR bootstrap/48471
6428         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6429         Move these...
6430         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6431         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6432         #ifdef DBX_DEBUGGING_INFO.
6434 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6436         PR bootstrap/48403
6437         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6438         if old and new states differ.
6440 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6442         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6443         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6444         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6445         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6446         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6447         mcfv4e): Use Alias.
6448         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6449         ColdFire options to -mcpu= options.
6451 2011-04-05  Jeff Law  <law@redhat.com>
6453         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6454         check if BB is a successor of LOOP->header and return
6455         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6457 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6459         * cprop.c (struct reg_use): Remove.
6460         (reg_use_table): Make an array of RTX.
6461         (find_used_regs, constprop_register, local_cprop_pass,
6462         bypass_block): Simplify users of reg_use_table.
6463         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6464         on one of the uses found by find_used_regs.
6466 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6468         PR bootstrap/48469
6469         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6470         declaration.
6472 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6474         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6475         as an rtx.
6476         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6478 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6480         PR middle-end/48441
6481         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6483 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6485         * combine.c: Include obstack.h.
6486         (struct insn_link): Define.
6487         (uid_log_links): Adjust type.
6488         (FOR_EACH_LOG_LINK): New macro.
6489         (insn_link_obstack): Declare.
6490         (alloc_insn_link): Define.
6491         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6492         type of link variables.
6493         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6494         (try_combine, record_promoted_values, distribute_notes): Likewise.
6495         (distribute_links): Likewise.  Tweak prototype.
6496         (clear_log_links): Delete.
6497         (adjust_for_new_dest): Call alloc_insn_link.
6498         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6500 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6502         * gcse.c (modify_mem_list): Convert to an array of VECs.
6503         (canon_modify_mem_list, compute_transp): Tweak formatting.
6504         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6505         (load_killed_in_block_p): Likewise.
6506         (record_last_mem_set_info): Likewise.
6507         (clear_modify_mem_tables): Likewise.
6509 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6511         PR middle-end/48461
6512         * function.c (emit_use_return_register_into_block): Only define if
6513         HAVE_return.
6515 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6517         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6519 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6521         * config/rx/rx-opts.h: New.
6522         * config/rx/rx.c (rx_cpu_type): Remove.
6523         (rx_handle_option): Don't assert that global structures are in
6524         use.  Access variables via opts pointer.  Defer most handling of
6525         OPT_mint_register_.  Use error_at.
6526         (rx_option_override): Handle deferred OPT_mint_register_ here.
6527         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6528         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6529         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6530         (rx_cpu_types): New Enum and EnumValue entries.
6531         (mint-register=): Use Defer and use Var accordingly.
6533 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6535         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6536         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6537         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6538         Move these...
6539         (debug_free_queue, debug_nesting, symbol_queue_index):
6540         ...and these...
6541         * dbxout.c: ...to here.  Make static.
6543 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6545         * gcse.c (modify_pair): Define.  Define a VEC of it.
6546         (canon_modify_mem_list): Convert to an array of VECs.
6547         (free_insn_expr_list_list): Delete.
6548         (clear_modify_mem_tables): Call VEC_free instead.
6549         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6550         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6551         (canon_list_insert, compute_transp): Likewise.
6553 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6555         PR target/43920
6556         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6557         for size.
6559 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6561         PR target/43920
6562         * function.c (emit_use_return_register_into_block): New function.
6563         (thread_prologue_and_epilogue_insns): Use
6564         emit_use_return_register_into_block.
6566 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6568         PR target/43920
6569         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6570         insn.
6572 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6574         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6576 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6578         * config/arm/arm.md (define_constants for unspec): Replace with
6579         define_c_enum.
6580         (define_constants for unspecv): Replace with define_c_enum.
6581         * config/arm/neon.md (define_constants for unspec): Replace with
6582         define_c_enum.
6584 2011-04-04  Richard Henderson  <rth@redhat.com>
6586         PR bootstrap/48400
6587         * dwarf2out.c (output_line_info): Always emit line info from
6588         at least one section.
6589         (dwarf2out_init): Create text_section_line_info here ...
6590         (set_cur_line_info_table): ... not here.
6592 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6594         PR target/48380
6595         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6596         not called.
6598         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6600 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6602         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6603         (expr_equiv_p): Remove.
6604         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6605         (hash_scan_set): Update call to insert_set_in_table.
6606         (dump_hash_table): Dump <dest, src> pair.
6607         (lookup_set): Simplify.  Lookup <dest, src> pair.
6608         (compute_transp): Remove, fold heavily simplified code into...
6609         (compute_local_properties): ...here.  Expect COMP and TRANSP
6610         unconditionally.
6611         (find_avail_set): Take set directly from struct expr.
6612         (find_bypass-set): Likewise.
6613         (bypass_block): Likewise.
6614         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6616         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6617         checks on form of COND from find_implicit_sets to here.
6618         (find_implicit_sets): Cleanup control flow. Split critical edges
6619         if it exposes implicit sets.  Allocate/resize implicit_sets as
6620         necessary.
6621         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6622         changed something.  Run df_analyze after find_implicit_sets if any
6623         edges were split.  Do not allocate implicit_sets here.
6625         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6626         (gcse_obstack): Renamed to cprop_obstack.
6627         (GNEW, GNEWVEC, GNEWVAR): Remove.
6628         (gmalloc): Remove.
6629         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6630         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6631         (gcse_alloc): Likewise, and rename to cprop_alloc.
6632         (alloc_gcse_men, free_gcse_mem): Remove.
6633         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6634         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6635         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6637         * cprop.c (oprs_not_set_p): Remove.
6638         (mark_set, mark_clobber): Remove.
6639         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6640         (reg_not_set_p): New function.
6641         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6642         (cprop_insn): Likewise.
6643         (cprop_jump): Use FOR_EACH_EDGE.
6645 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6647         PR bootstrap/48403
6648         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6649         (rank_for_schedule): Use scheduled_insns vector instead of
6650         last_scheduled_insn.
6651         (ok_for_early_queue_removal): Likewise.
6652         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6653         we have a dbg_cnt.
6654         (choose_ready): Likewise.
6655         (commit_schedule): Use VEC_iterate.
6656         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6657         a dbg_cnt, use it and ensure the first insn is in the ready list.
6658         (haifa_sched_init): Allocate scheduled_insns.
6659         (sched_extend_ready_list): Don't allocate it; reserve space.
6660         (haifa_sched_finish): Free it.
6662 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6664         * optc-gen.awk: Always remove type from Variable entry before
6665         recording in var_seen.
6667 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6669         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6670         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6671         call to tidy_fallthru_edges.
6673 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6675         * doc/options.texi (ToLower): Document.
6676         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6677         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6678         * opts.h (cl_option): Add cl_tolower field.
6679         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6680         arguments with lowercase strings.
6681         * config/rx/rx.opt (mcpu=): Add ToLower.
6682         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6683         argument.
6685 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6687         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6689 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6691         * config/vax/vax.c: Include reload.h.
6693 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6695         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6696         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6697         (sparc_preferred_reload_class): New function.
6699 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6701         PR debug/48401
6702         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6703         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6705 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6707         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6708         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6710 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6712         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6713         (ASM_OUTPUT_ALIGNED_BSS): Define.
6715 2011-04-03  Michael Matz  <matz@suse.de>
6717         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6718         and next_slot members.
6719         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6720         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6721         (lto_streamer_cache_append): Declare.
6722         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6723         unsigned index, remove offset parameter, ensure that we append
6724         or update existing entries.
6725         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6726         parameter, update next_slot for append.
6727         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6728         parameter.
6729         (lto_streamer_cache_insert_at): Likewise.
6730         (lto_streamer_cache_append): New function.
6731         (lto_streamer_cache_lookup): Use unsigned index.
6732         (lto_streamer_cache_get): Likewise.
6733         (lto_record_common_node): Don't test tree_node_can_be_shared.
6734         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6735         (lto_streamer_cache_delete): Don't free offsets member.
6736         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6737         (lto_output_string_with_length): Use lto_output_data_stream.
6738         (lto_output_tree_header): Remove ix parameter, don't write it.
6739         (lto_output_builtin_tree): Likewise.
6740         (lto_write_tree): Adjust callers to above, don't track and write
6741         offset, write unsigned index.
6742         (output_unreferenced_globals): Don't emit all global vars.
6743         (write_global_references): Use unsigned indices.
6744         (lto_output_decl_state_refs): Likewise.
6745         (write_symbol): Likewise.
6746         * lto-streamer-in.c (lto_input_chain): Move earlier.
6747         (input_function): Use unsigned index.
6748         (input_alias_pairs): Don't read and then ignore all global vars.
6749         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6750         don't pass it back, use lto_streamer_cache_append.
6751         (lto_register_var_decl_in_symtab): Use unsigned index.
6752         (lto_register_function_decl_in_symtab): Likewise.
6753         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6754         index.
6755         (lto_get_builtin_tree): Don't read index, use
6756         lto_streamer_cache_append.
6757         (lto_read_tree): Adjust call to lto_materialize_tree.
6759         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6760         don't use function calls in arguments to MIN.
6762         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6763         twice.
6765         * gimple.c (gimple_type_leader_entry): Mark deletable.
6767 2011-04-03  Alan Modra  <amodra@gmail.com>
6769         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6771 2011-04-03  Michael Matz  <matz@suse.de>
6773         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6774         an integer.
6775         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6777 2011-04-03  Michael Matz  <matz@suse.de>
6779         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6780         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6781         without function context.
6782         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6783         current_function_decl and cfun.
6785 2011-04-03  Michael Matz  <matz@suse.de>
6787         * tree.c (decl_init_priority_insert): Don't create entry for
6788         default priority.
6789         (decl_fini_priority_insert): Ditto.
6790         (fields_compatible_p, find_compatible_field): Remove.
6791         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6792         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6794 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6796         * combine.c (try_combine): Remove useless local variable.
6798 2011-04-03  Richard Guenther  <rguenther@suse.de>
6799             Ira Rosen  <ira.rosen@linaro.org>
6801         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6802         non-variable offsets and compare the remaining bases of the two
6803         accesses instead of looking for exact same data-ref.
6805 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6807         PR target/48416
6808         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6810         * i386.c (ix86_is_msabi_thiscall): New helper function.
6811         (ix86_is_type_thiscall): New helper function.
6812         (ix86_comp_type_attributes): Handle thiscall for method-functions
6813         special.
6814         (init_cumulative_args): Likewise.
6815         (find_drap_reg): Likewise.
6816         (ix86_static_chain): Likewise.
6817         (x86_this_parameter): Likewise.
6818         (x86_output_mi_thunk): Likewise.
6820 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6821             Nicolas Setton  <setton@adacore.com>
6822             Eric Botcazou  <ebotcazou@adacore.com>
6824         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6825         (add_gnat_descriptive_type_attribute): New function.
6826         (gen_array_type_die): Call it.
6827         (gen_enumeration_type_die): Likewise.
6828         (gen_struct_or_union_type_die): Likewise.
6829         (modified_type_die): Likewise.
6830         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6831         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6832         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6834 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6836         PR bootstrap/48148
6837         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6838         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6840         Revert:
6841         2011-03-17  Richard Guenther  <rguenther@suse.de>
6843         PR bootstrap/48148
6844         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6845         origin for decls in other ltrans units.
6846         (input_varpool_node): Likewise.
6848 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6850         PR middle-end/48335
6851         * expr.c (expand_assignment): Handle all possibilities
6852         if TO_RTX is CONCAT.
6853         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6854         (store_split_bit_field): If SUBREG_REG (op0) or
6855         op0 itself has smaller mode than word, return it
6856         for offset 0 and const0_rtx for out-of-bounds stores.
6857         If word is const0_rtx, skip it.
6859 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6861         * config/h8300/h8300.c (print_operand_address): Rename to...
6862         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6863         Call h8300_print_operand and h8300_print_operand_address instead of
6864         print_operand and print_operand_address. Declare.
6865         (print_operand): Renake to...
6866         (h8300_print_operand): ...this. Make static. Adjust comments.
6867         Call h8300_print_operand instead of print_operand. Declare.
6868         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6869         (h8300_register_move_cost): Likewise.
6870         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6871         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6872         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6873         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6874         * config/h8300/h8300-protos.h (print_operand): Delete.
6875         (print_operand_address): Delete.
6877 2011-04-01  Richard Henderson  <rth@redhat.com>
6879         PR 48400
6880         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6881         in strict mode before dwarf4.  Re-order tests to early out
6882         before switching sections.
6884 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6886         * config/h8300/constraints.md: New file.
6887         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6888         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6889         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6890         * config/h8300/predicates.md (bit_operand): Likewise.
6891         (incdec_operand): Use satisfies_constraint_M and
6892         satisfies_constraint_O.  Don't use C code block.
6893         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6894         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6895         (compute_mov_length): Use satisfies_constraint_G.
6896         (fix_bit_operand): Use satisfies_constraint_U.
6897         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6898         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6899         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6900         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6901         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6902         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6903         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6904         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6905         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6906         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6907         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6908         (EXTRA_MEMORY_CONSTRAINT): Delete.
6910 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6911             Michael Meissner  <meissner@linux.vnet.ibm.com>
6913         PR target/48262
6914         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6915         operands, as per the specifications.
6917         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6918         (vec_extract_evenv4sf): Ditto.
6919         (vec_extract_evenv8hi): Ditto.
6920         (vec_extract_evenv16qi): Ditto.
6921         (vec_extract_oddv4si): Ditto.
6923 2011-03-31  Mark Wielaard  <mjw@redhat.com>
6925         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6926         high_pc attribute if the CU has no associated code. Only output
6927         DW_AT_entry_pc for CU if not generating strict dwarf and
6928         dwarf_version < 4.
6930 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
6932         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6933         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6934         out of ...
6935         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6936         * final.c (final_start_function): Call the new function rather
6937         than using a NULL argument for dwarf2out_frame_debug.
6939         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6940         that contains the prologue.
6942         * haifa-sched.c (queue_insn): New arg REASON.  All callers
6943         changed.  Print it in debugging output.
6945         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6947         * sched-ebb.c (begin_schedule_ready): Remove second argument.
6948         Split most of the code into...
6949         (begin_move_insn): ... here.  New function.
6950         (ebb_sched_info): Add a pointer to it.
6951         * haifa-sched.c (scheduled_insns): New static variable.
6952         (sched_extend_ready_list): Allocate it.
6953         (schedule_block): Use it to record the order of scheduled insns.
6954         Perform RTL changes to move insns only after all scheduling
6955         decisions have been made.
6956         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6957         begin_move_insn field.
6958         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6959         * sched-int.h (struct haifa_sched_info): Remove second argument
6960         from begin_schedule_ready hook.  Add new member begin_move_insn.
6961         * sched-rgn.c (begin_schedule_ready): Remove second argument.
6962         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6964         * haifa-sched.c (prune_ready_list): New function, broken out of
6965         schedule_block.
6966         (schedule_block): Use it.
6968 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6970         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6972 2011-04-01  Kai Tietz  <ktietz@redhat.com>
6974         * config.gcc (*-*-mingw*): Allow as option the
6975         posix threading model.
6976         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
6977         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6978         definition.
6979         (CPP_SPEC): Add pthread/no-pthread handling.
6980         (LIB_SPEC): Likewise.
6981         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6982         (LIB_SPEC): Likewise.
6983         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6984         flag to pass -pthread option for shared libgcc build.
6985         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6986         for shared libgcc build.
6987         * config/i386/t-mingw-pthread: New file.
6988         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6989         New define to enable use of library pthread by default.
6990         * config/i386/mingw.opt (pthread): New driver option.
6991         (no-pthread): New driver option.
6992         * config/i386/cygming.opt: Make sure trailing empty line is retained.
6993         * config/i386/mingw-w64.opt: Likewise.
6995 2011-04-01  Gary Funck  <gary@intrepid.com>
6997         * c-decl.c (grokdeclarator): Fix formatting.
6999 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7001         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7002         instead of n_operands.
7003         (set_storage_via_setmem): Likewise.
7004         * optabs.c (maybe_gen_insn): Likewise.
7005         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7006         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7007         (mips_expand_builtin_direct): Likewise.
7008         * config/spu/spu.c (expand_builtin_args): Likewise.
7010 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7012         * recog.h (insn_data_d): Add n_generator_args.
7013         * genoutput.c (data): Likewise.
7014         (output_insn_data): Print it.
7015         (max_opno, num_dups): Delete.
7016         (scan_operands): Just fill in "d->operand[...]".
7017         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7019 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7021         * gensupport.h (pattern_stats): New structure.
7022         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7023         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7024         (max_operand_1, max_operand_vec): Delete.
7025         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7027 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7029         * emit-rtl.c (emit_pattern_after_setloc): New function.
7030         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7031         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7032         (emit_pattern_after): New function.
7033         (emit_insn_after, emit_jump_insn_after): Call it.
7034         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7035         (emit_pattern_before_setloc): New function.
7036         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7037         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7038         Likewise.
7039         (emit_pattern_before): New function.
7040         (emit_insn_before, emit_jump_insn_before): Call it.
7041         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7043 2011-03-31  Richard Henderson  <rth@redhat.com>
7045         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7046         (dw_separate_line_info_entry): Remove.
7047         (enum dw_line_info_opcode): New.
7048         (dw_line_info_entry): Use it.
7049         (dw_line_info_table, dw_line_info_table_p): New.
7050         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7051         (line_info_table, line_info_label_num): Remove.
7052         (line_info_table_in_use): Remove.
7053         (separate_line_info_table): Remove.
7054         (separate_line_info_table_allocated): Remove.
7055         (separate_line_info_table_in_use): Remove.
7056         (LINE_INFO_TABLE_INCREMENT): Remove.
7057         (line_info_label_num): New.
7058         (cur_line_info_table): New.
7059         (text_section_line_info, cold_text_section_line_info): New.
7060         (separate_line_info): New.
7061         (SEPARATE_LINE_CODE_LABEL): Remove.
7062         (print_dwarf_line_table): Remove.
7063         (debug_dwarf): Don't dump it.
7064         (output_one_line_info_table): New.
7065         (output_line_info): Use it.
7066         (new_line_info_table): New.
7067         (set_cur_line_info_table): New.
7068         (dwarf2out_switch_text_section): Use it.
7069         (dwarf2out_begin_function): Likewise.
7070         (push_dw_line_info_entry): New.
7071         (dwarf2out_source_line): Rewrite for new line info tables.
7072         (dwarf2out_init): Remove dead initailizations.
7074 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7076         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7077         various flags.
7078         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7079         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7080         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7081         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7082         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7083         * opt-functions.awk (flag_init, switch_bit_fields): New.
7084         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7085         generate CL_MISSING_OK or CL_SAVE.
7086         * optc-gen.awk: Update to generate bit-field output as well as
7087         flags field.
7088         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7089         bit-field instead of CL_REJECT_DRIVER flag.
7090         * opts-common.c (generate_canonical_option,
7091         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7092         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7093         instead of CL_REJECT_NEGATIVE flag.
7094         * toplev.c (print_switch_values): Use cl_report bit-field instead
7095         of CL_REPORT flag.
7097 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7099         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7100         a zero minimum index only if it is redundant.
7102 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7104         PR rtl-optimization/48381
7105         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7106         instead of ira_class_hard_reg_index for calculating conflicting
7107         hard registers.
7109 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7111         * cprop.c: Clean up hash table building.
7112         (reg_avail_info): Remove.
7113         (oprs_available_p): Remove.
7114         (record_last_reg_set_info): Remove.
7115         (record_last_set_info): Remove.
7116         (reg_available_p): New function.
7117         (gcse_constant_p): Do not treat unfolded conditions as constants.
7118         (make_set_regs_unavailable): New function.
7119         (hash_scan_set): Simplify with new reg_available_p.
7120         (compute_hash_table_work): Traverse insns stream only once.
7121         Do not compute reg_avail_info. Traverse insns in reverse order.
7122         Record implicit sets after recording explicit sets from the block.
7124 2011-03-31  Michael Matz  <matz@suse.de>
7126         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7128 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7130         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7131         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7132         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7133         (h8300_mode_dependent_address_p): New function.
7134         (h8300_get_index): Make static.
7136 2011-03-31  Jeff Law  <law@redhat.com>
7138         * reload1.c (elimination_effects): Fix typo in recent change.
7140         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7141         typo potentially leading to null pointer dereference.
7143         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7144         (setup_save_areas): Corresponding changes to avoid useless
7145         assignments.
7147         * jump.c (reversed_comparison_code_parts): Avoid successive return
7148         statements when REVERSE_CONDITION is defined.
7150         * expr.c (expand_assignment): Avoid useless assignments.
7151         (expand_expr_real_1): Likewise.
7152         (expand_expr_real_2): Avoid useless statements.
7154         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7156         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7158         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7159         statements.
7161         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7163 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7165         PR target/47109
7166         * doc/tm.texi.in (TARGET_VERSION): Remove.
7167         * doc/tm.texi: Regenerate.
7168         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7169         * collect2.c (main): Don't use TARGET_VERSION.
7170         * mips-tdump.c (main): Don't use TARGET_VERSION.
7171         * mips-tfile.c (main): Don't use TARGET_VERSION.
7172         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7173         * config/rs6000/vxworksae.h: Remove.
7174         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7175         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7176         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7177         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7178         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7179         * config/arm/arm.h (TARGET_VERSION): Remove.
7180         * config/arm/coff.h (TARGET_VERSION): Remove.
7181         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7182         * config/arm/elf.h (TARGET_VERSION): Remove.
7183         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7184         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7185         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7186         * config/arm/pe.h (TARGET_VERSION): Remove.
7187         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7188         * config/arm/semi.h (TARGET_VERSION): Remove.
7189         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7190         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7191         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7192         * config/avr/avr.h (TARGET_VERSION): Remove.
7193         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7194         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7195         * config/frv/frv.h (TARGET_VERSION): Remove.
7196         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7197         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7198         * config/i386/darwin.h (TARGET_VERSION): Remove.
7199         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7200         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7201         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7202         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7203         * config/i386/gnu.h (TARGET_VERSION): Remove.
7204         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7205         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7206         * config/i386/linux.h (TARGET_VERSION): Remove.
7207         * config/i386/linux64.h (TARGET_VERSION): Remove.
7208         * config/i386/lynx.h (TARGET_VERSION): Remove.
7209         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7210         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7211         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7212         * config/i386/netware.h (TARGET_VERSION): Remove.
7213         * config/i386/nto.h (TARGET_VERSION): Remove.
7214         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7215         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7216         * config/ia64/elf.h (TARGET_VERSION): Remove.
7217         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7218         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7219         * config/ia64/linux.h (TARGET_VERSION): Remove.
7220         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7221         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7222         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7223         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7224         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7225         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7226         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7227         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7228         * config/m68k/linux.h (TARGET_VERSION): Remove.
7229         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7230         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7231         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7232         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7233         * config/mep/mep.h (TARGET_VERSION): Remove.
7234         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7235         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7236         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7237         * config/mips/linux.h (TARGET_VERSION): Remove.
7238         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7239         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7240         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7241         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7242         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7243         * config/pa/pa.h (TARGET_VERSION): Remove.
7244         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7245         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7246         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7247         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7248         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7249         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7250         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7251         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7252         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7253         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7254         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7255         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7256         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7257         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7258         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7259         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7260         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7261         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7262         * config/s390/linux.h (TARGET_VERSION): Remove.
7263         * config/s390/s390.h (TARGET_VERSION): Remove.
7264         * config/s390/tpf.h (TARGET_VERSION): Remove.
7265         * config/score/score.h (TARGET_VERSION): Remove.
7266         * config/sh/linux.h (TARGET_VERSION): Remove.
7267         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7268         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7269         * config/sh/sh.h (TARGET_VERSION): Remove.
7270         * config/sh/sh64.h (TARGET_VERSION): Remove.
7271         * config/sh/superh.h (TARGET_VERSION): Remove.
7272         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7273         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7274         * config/sparc/linux.h (TARGET_VERSION): Remove.
7275         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7276         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7277         TARGET_NAME32, TARGET_NAME): Remove.
7278         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7279         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7280         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7281         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7282         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7283         * config/spu/spu.h (TARGET_VERSION): Remove.
7284         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7285         * config/v850/v850.h (TARGET_VERSION): Remove.
7286         * config/vax/linux.h (TARGET_VERSION): Remove.
7287         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7288         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7289         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7291 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7293         PR target/48142
7294         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7295         frame-related from frame-unrelated adjustments to the stack pointer.
7297 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7299         * common.opt (fdebug-types-section): Move earlier.
7300         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7302 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7304         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7305         var.
7307 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7309         * tree.h (CASE_CHAIN): Define.
7310         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7311         (gimple_redirect_edge_and_branch): Likewise.
7313 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7315         PR middle-end/48367
7316         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7317         calculation.
7319 2011-03-30  Jeff Law  <law@redhat.com>
7321         * PR bootstrap/48371
7322         * reload1.c (reload): Fix botch in last change.
7324         * reload.h (struct reload): Fix typo introduced in last change.
7326 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7328         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7329         Undocumented.  Remove help text.
7330         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7331         -mhard-float.
7333 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7335         * doc/options.texi (NegativeAlias): Document.
7336         (Alias): Mention NegativeAlias.
7337         * opt-functions.awk: Handle NegativeAlias.
7338         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7339         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7340         * opts.h (CL_NEGATIVE_ALIAS): Define.
7341         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7342         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7343         OPT_mspe_.
7344         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7345         Alias entries.
7346         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7347         mno-spe and mno-isel instead of mspe=no and -misel=no.
7349 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7351         * common.opt (fdebug-types-section): New flag.
7352         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7353         * dwarf2out.c (use_debug_types): New define.
7354         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7355         (print_die): Guard output of type unit signatures using
7356         use_debug_types.
7357         (build_abbrev_table): Replace assert of dwarf_version >= 4
7358         with assert on use_debug_types.
7359         (size_of_die): Likewise.
7360         (unmark_dies): Likewise.
7361         (value_format): Decide AT_ref_external form on use_debug_types.
7362         (output_die): Replace dwarf_version version check guard with
7363         use_debug_types where appropriate.
7364         (modified_type_die): Likewise.
7365         (gen_reference_type_die): Likewise.
7366         (dwarf2out_start_source_file): Likewise.
7367         (dwarf2out_end_source_file): Likewise.
7368         (prune_unused_types_walk_attribs): Likewise.
7369         (dwarf2out_finish): Likewise.
7371 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7373         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7375 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7377         PR rtl-optimization/48332
7378         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7379         mode of input operand N and modeN to its actual mode.
7381 2011-03-30  Jeff Law  <law@redhat.com>
7383         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7384         define accessor macro.
7385         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7386         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7387         (reg_equiv_init): Likewise.
7388         (reg_equivs_size): New variable.
7389         (reg_equiv_init_size): Remove.
7390         (allocate_initial_values): Move prototype to here from....
7391         * integrate.h (allocate_initial_values): Remove prototype.
7392         * integrate.c: Include reload.h.
7393         (allocate_initial_values): Corresponding changes.
7394         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7395         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7396         (update_equiv_regs): Corresponding changes.
7397         (ira): Corresponding changes.
7398         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7399         (push_secondary_reload): Corresponding changes.
7400         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7401         (make_memloc, find_reloads_address): Corresponding changes.
7402         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7403         (find_reloads_address_1): Corresponding changes.
7404         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7405         (refers_to_regno_for_reload_p): Corresponding changes.
7406         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7407         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7408         * reload1.c: Include ggc.h.
7409         (grow_reg_equivs): New function.
7410         (replace_pseudos_in, reload): Corresponding changes.
7411         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7412         (eliminate_regs_1, elimination_effects): Corresponding changes.
7413         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7414         (delete_output_reload): Likewise.
7415         * caller-save.c (mark_referenced_regs): Corresponding changes.
7416         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7417         * frv/predicates.md (frv_load_operand): Corresponding changes.
7418         * microblaze/microblaze.c (double_memory_operand): Corresponding
7419         changes.
7420         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7421         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7422         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7423         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7424         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7425         changes.
7426         * pa/pa.c (emit_move_sequence): Corresponding changes.
7427         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7429 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7431         PR target/47551
7432         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7433         structure modes.  Don't check neon_vector_mem_operand for
7434         vector or structure modes.
7436 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7437             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7439         PR target/43590
7440         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7441         operand 1 and reshuffle the operands to match.
7442         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7444 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7446         PR driver/48208
7447         * config/c.opt (F): Added 'Driver' to -F option.
7449         PR driver/48260
7450         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7451           handler function.
7452         * config/darwin.opt: Added '-arch' option.
7454 2011-03-30  Nick Clifton  <nickc@redhat.com>
7456         * config/rx/rx.md: Add peepholes and patterns to combine
7457         extending loads and simple arithmetic instructions.
7458         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7459         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7460         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7461         modes to use pre-decrement and post-increment addressing.
7462         (rx_is_restricted_memory_address): Add range checking of REG+INT
7463         addresses.
7464         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7465         (rx_memory_move_cost): Adjust cost of stores.
7466         (rx_adjust_insn_length): New function.
7468 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7470         PR c/48305
7471         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7472         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7473         matching arg00/arg01 types.
7475 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7477         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7478         last_location to UNKNOWN_LOCATION.
7480 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7482         PR target/48349
7483         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7484         FLOAT_SSE_REGS.
7486 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7487             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7489         PR bootstrap/48337
7490         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7491         Init(PROCESSOR_V7).
7492         (sparc_cpu): Likewise.
7493         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7494         PROCESSOR_V7.
7496 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7498         PR target/48336
7499         PR middle-end/48342
7500         PR rtl-optimization/48345
7501         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7502         hard regs for given mode from profitable regs when doing secondary
7503         allocation.
7505 2011-03-29  Jeff Law  <law@redhat.com>
7507         PR bootstrap/48327
7508         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7509         do_not_duplicate field.
7510         (lookup_redirection_data): Corresponding changes.
7511         (create_duplicates): Always create a template block.
7512         (redirect_edges): Remove code which reused the original block
7513         when it was going to become unreachable code.
7514         (thread_block): Don't set do_not_duplicate field.
7516 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7518         * lto-opts.c (register_user_option_p, lto_register_user_option):
7519         Make type argument unsigned.
7520         * lto-streamer.h (lto_register_user_option): Make type argument
7521         unsigned.
7522         * opth-gen.awk: Make CL_* macros unsigned.
7523         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7524         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7525         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7526         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7527         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7528         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7529         (find_opt): Make lang_mask argument unsigned.
7531 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7533         PR rtl-optimization/48331
7534         PR rtl-optimization/48334
7535         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7536         for any used algorithm.
7538 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7540         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7541         to parent_max.
7543 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7545         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7546         (alpha_option_override): Don't set alpha_sr_alias_set.
7547         (emit_frame_store_1): Use gen_frame_mem rather than calling
7548         set_mem_alias_set.
7549         (alpha_expand_epilogue): Ditto.
7551 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7553         PR tree-optimization/48290
7554         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7555         vectorization, check that relevant phis in the basic block after
7556         the inner loop are really inner loop's exit phis.
7558 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7560         PR debug/48190
7561         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7562         (cached_dw_loc_list_def): New structure.
7563         (cached_dw_loc_list): New typedef.
7564         (cached_dw_loc_list_table): New variable.
7565         (cached_dw_loc_list_table_hash): New function.
7566         (cached_dw_loc_list_table_eq): Likewise.
7567         (add_location_or_const_value_attribute): Take a bool cache_p.
7568         Cache the list when the parameter is true.
7569         (gen_formal_parameter_die): Update caller.
7570         (gen_variable_die): Likewise.
7571         (dwarf2out_finish): Likewise.
7572         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7573         while generating debug info for the decl.
7574         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7575         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7576         (resolve_addr): Cache the result of resolving a chain of
7577         location lists.
7579 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7581         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7582         conflict object hard regset nodes have intersecting hard reg sets.
7584         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7585         after regstat_init_n_sets_and_refs.
7587         * ira.c: Add more comments at the top.
7588         (setup_stack_reg_pressure_class, setup_pressure_classes):
7589         Add comments how we compute the register pressure classes.
7590         (setup_allocno_and_important_classes): Add more comments.
7591         (setup_class_translate_array, reorder_important_classes)
7592         (setup_reg_class_relations): Add comments.
7594         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7595         start of the file.
7597         * ira-color.c: Add 2011 to the Copyright line.
7598         (assign_hard_reg):  Add more comments.
7599         (improve_allocation): Ditto.
7601         * ira-costs.c: Add 2011 to the Copyright line.
7602         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7603         comments.
7604         (setup_regno_cost_classes_by_mode): Ditto.
7606         Initial patches from ira-improv branch:
7608         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7610         * ira-build.c (ira_create_object): Remove initialization of
7611         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7612         (ira_create_allocno): Remove initialization of
7613         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7614         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7615         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7616         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7617         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7618         Initialize ALLOCNO_ADD_DATA.
7619         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7620         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7621         ALLOCNO_REG.
7622         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7623         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7625         * ira.c (ira_reallocate): Remove.
7626         (setup_pressure_classes): Call
7627         ira_init_register_move_cost_if_necessary.  Use
7628         ira_register_move_cost instead of ira_get_register_move_cost.
7629         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7630         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7632         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7633         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7634         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7635         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7636         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7637         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7638         Fix formatting.
7639         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7640         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7641         (struct allocno_color_data): New.
7642         (allocno_color_data_t): New typedef.
7643         (allocno_color_data): New definition.
7644         (ALLOCNO_COLOR_DATA): New macro.
7645         (struct object_color_data): New.
7646         (object_color_data_t): New typedef.
7647         (object_color_data): New definition.
7648         (OBJECT_COLOR_DATA): New macro.
7649         (update_copy_costs, calculate_allocno_spill_cost): Call
7650         ira_init_register_move_cost_if_necessary.  Use
7651         ira_register_move_cost instead of ira_get_register_move_cost.
7652         (move_spill_restore, update_curr_costs): Ditto.
7653         (allocno_spill_priority): Make it inline.
7654         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7655         (struct coalesce_data, coalesce_data_t): New.
7656         (allocno_coalesce_data): New definition.
7657         (ALLOCNO_COALESCE_DATA): New macro.
7658         (merge_allocnos, coalesced_allocno_conflict_p): Use
7659         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7660         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7661         (coalesce_allocnos): Ditto.
7662         (setup_coalesced_allocno_costs_and_nums): Ditto.
7663         (collect_spilled_coalesced_allocnos): Ditto.
7664         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7665         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7666         (coalesce_spill_slots): Ditto.
7667         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7668         free allocno_coalesce_data.
7670         * ira-conflicts.c: Fix formatting.
7671         (process_regs_for_copy): Call
7672         ira_init_register_move_cost_if_necessary.  Use
7673         ira_register_move_cost instead of ira_get_register_move_cost.
7674         (build_object_conflicts): Optimize.
7676         * ira-costs.c (record_reg_classes): Optimize.  Call
7677         ira_init_register_move_cost_if_necessary.  Use
7678         ira_register_move_cost, ira_may_move_in_cost, and
7679         ira_may_move_out_cost instead of ira_get_register_move_cost and
7680         ira_get_may_move_cost.
7681         (record_address_regs): Ditto.
7682         (scan_one_insn): Optimize.
7683         (find_costs_and_classes): Optimize.
7684         (process_bb_node_for_hard_reg_moves): Call
7685         ira_init_register_move_cost_if_necessary.  Use
7686         ira_register_move_cost instead of ira_get_register_move_cost.
7688         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7689         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7690         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7691         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7692         definitions.
7693         (ira_initiate_emit_data, ira_finish_emit_data)
7694         (create_new_allocno): New functions.
7695         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7696         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7697         Use ira_register_move_cost instead of ira_get_register_move_cost.
7699         * ira-int.h: Fix some comments.
7700         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7701         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7702         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7703         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7704         add_data.
7705         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7706         bitfield after mode.  Make hard_regno a short int.  Make
7707         hard_regno short.  Remove first_coalesced_allocno and
7708         next_coalesced_allocno.  Move mem_optimized_dest_p,
7709         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7710         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7711         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7712         temp, colorable_p.  Add new member add_data.
7713         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7714         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7715         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7716         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7717         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7718         (ALLOCNO_ADD_DATA): New macro.
7719         (ira_emit_data_t): New typedef.
7720         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7721         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7722         from struct ira_allocno.
7723         (ALLOCNO_EMIT_DATA): New macro.
7724         (ira_allocno_emit_data, allocno_emit_reg): New.
7725         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7726         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7727         (OBJECT_ADD_DATA): New macro.
7728         (ira_reallocate): Remove.
7729         (ira_initiate_emit_data, ira_finish_emit_data): New.
7730         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7731         (ira_init_register_move_cost_if_necessary): New.
7732         (ira_object_conflict_iter_next): Merge into
7733         ira_object_conflict_iter_cond.
7734         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7736         * ira-live.c (process_single_reg_class_operands): Call
7737         ira_init_register_move_cost_if_necessary.  Use
7738         ira_register_move_cost instead of ira_get_register_move_cost.
7740         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7742         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7744         * ira-costs.c: Fix formatting.
7745         (cost_classes, cost_classes_num): Remove.
7746         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7747         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7748         (cost_classes_del, cost_classes_htab): New.
7749         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7750         (initiate_regno_cost_classes, setup_cost_classes): New.
7751         (setup_regno_cost_classes_by_aclass): New.
7752         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7753         (record_reg_classes): Use regno_cost_classes instead of
7754         cost_classes.  Move checking opposite operand up.
7755         (record_address_regs): Use regno_cost_classes
7756         instead of cost_classes.
7757         (scan_one_insn): Ditto.  Use always general register.
7758         (print_allocno_costs): Use regno_cost_classes instead of
7759         cost_classes.
7760         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7761         (find_costs_and_classes): Set up cost classes for each registers.
7762         Use also their mode for this.  Use regno_cost_classes instead of
7763         cost_classes.
7764         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7765         cost_classes.
7766         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7767         (ira_costs, ira_set_pseudo_classes): Call
7768         initiate_regno_cost_classes and finish_regno_cost_classes.
7770         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7772         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7774         * target.def (ira_cover_classes): Remove.
7776         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7778         * doc/tm.texi.in: Ditto.
7780         * ira-conflicts.c: Remove mentioning cover classes from the file.
7781         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7782         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7784         * targhooks.c (default_ira_cover_classes): Remove.
7786         * targhooks.h (default_ira_cover_classes): Ditto.
7788         * haifa-sched.c: Remove mentioning cover classes from the file.
7789         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7790         ira_pressure_classes and ira_pressure_classes_num instead of
7791         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7792         sched_regno_pressure_class instead of sched_regno_cover_class.
7793         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7794         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7796         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7797         classes from the file.
7798         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7799         (struct object_hard_regs, struct object_hard_regs_node): New.
7800         (struct ira_object): New members profitable_hard_regs,
7801         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7802         (struct ira_allocno): Rename cover_class to aclass.  Rename
7803         cover_class_cost and updated_cover_class_cost to class_cost and
7804         updated_class_cost.  Remove splay_removed_p and
7805         left_conflict_size.  Add new members colorable_p.
7806         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7807         (ALLOCNO_COLORABLE_P): New macro.
7808         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7809         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7810         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7811         (OBJECT_...): Rename parameter C to O.
7812         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7813         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7814         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7815         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7816         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7817         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7818         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7819         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7820         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7821         x_ira_reg_class_subunion.
7822         (ira_max_memory_move_cost, ira_max_register_move_cost)
7823         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7824         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7825         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7826         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7827         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7828         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7829         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7830         (ira_tune_allocno_costs_and_cover_classes): Rename to
7831         ira_tune_allocno_costs.
7832         (ira_debug_hard_regs_forest): New.
7833         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7834         (ira_object_conflict_iter_next): Fix comments.
7835         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7836         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7837         cover_class to aclass.
7838         (ira_allocate_and_accumulate_costs): Ditto.
7839         (ira_allocate_and_set_or_copy_costs): Ditto.
7841         * opts.c (decode_options): Remove ira_cover_class check.
7843         * ira-color.c: Remove mentioning cover classes from the file.  Use
7844         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7845         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7846         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7847         (splay-tree.h): Remove include.
7848         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7849         before copy_freq_compare_func.
7850         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7851         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7852         New definitions.
7853         (hard_regs_roots, hard_regs_node_vec): Ditto.
7854         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7855         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7856         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7857         (create_new_object_hard_regs_node): Ditto.
7858         (add_new_object_hard_regs_node_to_forest): Ditto.
7859         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7860         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7861         Ditto.
7862         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7863         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7864         (remove_unused_object_hard_regs_nodes): Ditto.
7865         (enumerate_object_hard_regs_nodes): Ditto.
7866         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7867         (object_hard_regs_subnode_t): Ditto.
7868         (struct object_hard_regs_subnode): Ditto.
7869         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7870         (setup_object_hard_regs_subnode_index): Ditto.
7871         (get_object_hard_regs_subnodes_num): Ditto.
7872         (form_object_hard_regs_nodes_forest): Ditto.
7873         (finish_object_hard_regs_nodes_tree): Ditto.
7874         (finish_object_hard_regs_nodes_forest): Ditto.
7875         (allocnos_have_intersected_live_ranges_p): Rename to
7876         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7877         (pseudos_have_intersected_live_ranges_p): Rename to
7878         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7879         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7880         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7881         (update_copy_costs): Remove assert.  Skip cost update if the hard
7882         reg does not belong the class.
7883         (assign_hard_reg): Process only profitable hard regs.
7884         (uncolorable_allocnos_num): Make it scalar.
7885         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7886         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7887         and ira_reg_class_max_nregs.
7888         (bucket_allocno_compare_func): Check frequency first.
7889         (sort_bucket): Add compare function as a parameter.
7890         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7891         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7892         (push_allocno_to_stack): Rewrite for checking new allocno
7893         colorability.
7894         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7895         (push_only_colorable): Pass new parameter to sort_bucket.
7896         (push_allocno_to_spill): Remove.
7897         (allocno_spill_priority_compare): Make it inline and rewrite.
7898         (splay_tree_allocate, splay_tree_free): Remove.
7899         (allocno_spill_sort_compare): New function.
7900         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7901         build and use splay tree.  Choose first allocno in uncolorable
7902         allocno bucket to spill.  Remove setting spill cost.
7903         (all_conflicting_hard_regs): Remove.
7904         (setup_allocno_available_regs_num): Check only profitable hard
7905         regs.  Print info about hard regs nodes.
7906         (setup_allocno_left_conflicts_size): Remove.
7907         (put_allocno_into_bucket): Don't call
7908         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7909         (improve_allocation): New.
7910         (color_allocnos): Call setup_profitable_hard_regs,
7911         form_object_hard_regs_nodes_forest, improve_allocation,
7912         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7913         (print_loop_title): Use pressure classes.
7914         (color_allocnso): Ditto.
7915         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7916         and allocnos_for_spilling.
7917         (ira_sort_regnos_for_alter_reg): Don't setup members
7918         {first,next}_coalesced_allocno.
7919         (color): Remove allocating and freeing removed_splay_allocno_vec.
7920         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7921         prohibited_class_mode_regs.
7923         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
7924         formatting.
7925         (update_allocno_pressure_excess_length): Use pressure classes.
7926         (inc_register_pressure, dec_register_pressure): Check for pressure
7927         class.
7928         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7929         pressure class.  Use ira_reg_class_nregs instead of
7930         ira_reg_class_max_nregs.
7931         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7932         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7933         (single_reg_class): Use ira_reg_class_nregs instead of
7934         ira_reg_class_max_nregs.
7935         (process_bb_node_lives): Use pressure classes.
7937         * ira-emit.c: Remove mentioning cover classes from the file.  Use
7938         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7939         (change_loop): Use pressure classes.
7940         (modify_move_list): Call ira_set_allocno_class instead of
7941         ira_set_allocno_cover_class.
7943         * ira-build.c: Remove mentioning cover classes from the file.  Use
7944         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7945         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
7946         ALLOCNO_UPDATED_CLASS_COST instead of
7947         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7948         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7949         (ira_create_allocno): Remove initialization of
7950         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
7951         ALLOCNO_COLORABLE_P.
7952         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7953         Update conflict regs for the objects.
7954         (create_cap_allocno): Remove assert.  Don't propagate
7955         ALLOCNO_AVAILABLE_REGS_NUM.
7956         (ira_free_allocno_costs): New function.
7957         (finish_allocno): Change a part of code into call of
7958         ira_free_allocno_costs.
7959         (low_pressure_loop_node_p): Use pressure classes.
7960         (object_range_compare_func): Don't compare classes.
7961         (setup_min_max_conflict_allocno_ids): Ditto.
7963         * loop-invariant.c: Remove mentioning cover classes from the file.
7964         Use ira_pressure_classes and ira_pressure_classes_num instead of
7965         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
7966         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7967         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7968         Use reg_allocno_class instead of reg_cover_class.
7969         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7970         STACK_REG_COVER_CLASS.
7971         (get_regno_cover_class): Rename to get_regno_pressure_class.
7972         (move_loop_invariants): Initialize and finalize regstat.
7974         * ira.c: Remove mentioning cover classes from the file.  Add
7975         comments about coloring without cover classes.  Use ALLOCNO_CLASS
7976         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
7977         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7978         setup_class_subset_and_memory_move_costs.
7979         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7980         (setup_cover_and_important_classes): Rename to
7981         setup_allocno_and_important_classes.
7982         (setup_class_translate_array): New.
7983         (setup_class_translate): Call it for allocno and pressure classes.
7984         (cover_class_order): Rename to allocno_class_order.
7985         (comp_reg_classes_func): Use ira_allocno_class_translate instead
7986         of ira_class_translate.
7987         (reorder_important_classes): Set up ira_important_class_nums.
7988         (setup_reg_class_relations): Set up ira_reg_class_superunion.
7989         (print_class_cover): Rename to print_classes.  Add parameter.
7990         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7991         Print pressure classes too.
7992         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
7993         setup_reg_subclasses.
7994         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
7995         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7996         (setup_prohibited_class_mode_regs): Use
7997         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
7998         (clarify_prohibited_class_mode_regs): New function.
7999         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8000         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8001         (ira_init_once): Initialize them.
8002         (free_register_move_costs): Process them.
8003         (ira_init): Move calls of find_reg_classes and
8004         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8005         Call clarify_prohibited_class_mode_regs.
8006         (ira_no_alloc_reg): Remove.
8007         (too_high_register_pressure_p): Use pressure classes.
8009         * sched-deps.c: Remove mentioning cover classes from the file.
8010         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8011         ira_pressure_classes and ira_pressure_classes_num instead of
8012         ira_reg_class_cover_size and ira_reg_class_cover.
8013         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8014         sched_regno_pressure_class instead of sched_regno_cover_class.
8015         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8016         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8018         * ira.h: Add 2010 to Copyright.
8019         (ira_no_alloc_reg): Remove external.
8020         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8021         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8022         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8023         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8024         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8025         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8026         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8027         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8028         x_ira_no_alloc_regs.
8029         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8030         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8031         ira_allocno_classes_num and ira_allocno_classes.
8032         (ira_class_translate): Rename to ira_allocno_class_translate.
8033         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8034         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8035         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8036         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8037         (ira_no_alloc_regs): New.
8039         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8040         classes from the file.  Use ALLOCNO_CLASS instead of
8041         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8042         ALLOCNO_COVER_CLASS_COST.
8043         (regno_cover_class): Rename to regno_aclass.
8044         (record_reg_classes): Use ira_reg_class_subunion instead of
8045         ira_reg_class_union.
8046         (record_address_regs): Check overflow.
8047         (scan_one_insn): Ditto.
8048         (print_allocno_costs): Print total mem cost fore regional allocation.
8049         (print_pseudo_costs): Use REG_N_REFS.
8050         (find_costs_and_classes): Use classes intersected with them on the
8051         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8052         ira_reg_class_union.  Use ira_allocno_class_translate and
8053         regno_aclass instead of ira_class_translate and regno_cover_class.
8054         Modify code for finding regno_aclass.  Setup preferred classes for
8055         the next pass.
8056         (setup_allocno_cover_class_and_costs): Rename to
8057         setup_allocno_class_and_costs.  Use regno_aclass instead of
8058         regno_cover_class.  Use ira_set_allocno_class instead of
8059         ira_set_allocno_cover_class.
8060         (init_costs, finish_costs): Use regno_aclass instead of
8061         regno_cover_class.
8062         (ira_costs): Use setup_allocno_class_and_costs instead of
8063         setup_allocno_cover_class_and_costs.
8064         (ira_tune_allocno_costs_and_cover_classes): Rename to
8065         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8066         by processing objects.  Use ira_reg_class_max_nregs instead of
8067         ira_reg_class_nregs.
8069         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8071         * sched-int.h: Remove mentioning cover classes from the file.
8072         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8074         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8075         classes from the file.
8076         (struct reg_pref): Rename coverclass into allocnoclass.
8077         (reg_cover_class): Rename to reg_allocno_class.
8079         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8081         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8083         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8085         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8087         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8089         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8091         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8093         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8095         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8097         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8099         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8100         (i386_ira_cover_classes): Ditto.
8102         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8104         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8106         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8108         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8110         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8112         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8114         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8115         (mips_ira_cover_classes): Ditto.
8117         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8119         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8121         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8123         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8125         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8127         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8128         (IRA_COVER_CLASSES_VSX): Ditto.
8130         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8131         (rs6000_ira_cover_classes): Ditto.
8133         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8135         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8137         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8139         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8141         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8143         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8145         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8147         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8149         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8151         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8153 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8155         PR debug/48253
8156         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8157         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8158         dw_fde_unlikely_section_end_label, cold_in_std_section,
8159         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8160         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8161         fields.
8162         (output_fde): Use dw_fde_second_{begin,end} if second is
8163         true, otherwise dw_fde_{begin,end}.
8164         (output_call_frame_info): Test dw_fde_second_begin != NULL
8165         instead of dw_fde_switched_sections.
8166         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8167         fields, initialize new fields.  Initialize in_std_section
8168         unconditionally from the first partition.
8169         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8170         dw_fde_second_begin is non-NULL.
8171         (dwarf2out_switch_text_section): Stop initializing removed
8172         dw_fde_struct fields, initialize new fields, initialize
8173         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8174         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8175         (struct var_loc_list_def): Add last_before_switch field.
8176         (arange_table, arange_table_allocated, arange_table_in_use,
8177         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8178         (size_of_aranges): Count !in_std_section and !second_in_std_section
8179         hunks in fdes, instead of looking at arange_table_in_use.
8180         (output_aranges): Add aranges_length argument, don't call
8181         size_of_aranges here.  Instead of using aranges_table*
8182         emit ranges for fdes when !in_std_section resp.
8183         !second_in_std_section.
8184         (dw_loc_list): Break ranges crossing section switch.
8185         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8186         use dw_fde_second_end instead of dw_fde_end as end of last range.
8187         (gen_subprogram_die): Don't call add_arange.  Use
8188         dw_fde_{begin,end} for first partition and if switched
8189         section dw_fde_second_{begin,end} for the second.
8190         (var_location_switch_text_section_1,
8191         var_location_switch_text_section): New functions.
8192         (dwarf2out_begin_function): Initialize cold_text_section even
8193         when function_section () isn't text_section.
8194         (prune_unused_types): Don't walk arange_table.
8195         (dwarf2out_finish): Don't needlessly test
8196         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8197         If info_section_emitted, call size_of_aranges and if it indicates
8198         non-empty .debug_aranges, call output_aranges with the computed
8199         size.  Stop using removed dw_fde_struct fields, use
8200         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8201         for second.
8203         PR debug/48203
8204         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8205         create ENTRY_VALUE if incoming or address of incoming's MEM
8206         is a hard REG.
8207         * dwarf2out.c (mem_loc_descriptor): Don't emit
8208         DW_OP_GNU_entry_value of DW_OP_fbreg.
8209         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8210         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8211         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8212         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8213         ENTRY_VALUE_EXPs.
8214         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8215         is a REG_P or MEM_P with REG_P address, compute hash directly
8216         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8217         (preserve_only_constants): Don't clear VALUES forwaring
8218         ENTRY_VALUE to some other VALUE.
8220 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8222         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8223         instead of GEN_INT.
8225 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8227         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8228         block before expanding the statement.
8229         (expand_gimple_stmt_1): Likewise.  Set them here...
8230         (expand_gimple_stmt): ...and not here.  Tidy.
8231         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8232         unknown.
8234 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8236         * Makefile.in: New rule for cprop.o.
8237         * gcse.c: Move constant/copy propagation to cprop.c.
8238         (compute_local_properties): Only handle expression tables.
8239         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8240         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8241         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8242         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8243         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8244         compute_cprop_data, find_used_regs, try_replace_reg,
8245         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8246         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8247         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8248         find_bypass_set, reg_killed_on_edge, bypass_block,
8249         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8250         execute_rtl_cprop, pass_rtl_cprop): Move to...
8251         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8252         moved from gcse.c to here with minor cleanups in duplicated code.
8254 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8256         * config/i386/i386.c (flag_opts): Fix a typo in
8257         -mavx256-split-unaligned-store.
8259 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8261         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8262         LIBCALL_VALUE): Remove macros.
8263         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8264         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8265         (h8300_function_value, h8300_libcall_value,
8266         h8300_function_value_regno_p): New functions.
8268 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8270         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8272 2011-03-28  Jeff Law  <law@redhat.com>
8274         * tree-ssa-threadupdate.c (redirect_edges): Call
8275         create_edge_and_update_destination_phis as needed.
8276         (create_edge_and_update_destination_phis): Accept new BB argument.
8277         All callers updated.
8278         (thread_block): Do not update the profile when threading around
8279         intermediate blocks.
8280         (thread_single_edge): Likewise.
8281         (determine_bb_domination_status): If BB is not a successor of the
8282         loop header, return NONDOMINATING.
8283         (register_jump_thread): Note when we register a jump thread around
8284         an intermediate block.
8285         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8286         (thread_across_edge): Use it.
8288 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8290         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8291         when for_return is 2.
8293 2011-03-28  Jeff Law  <law@redhat.com>
8295         * var-tracking.c (canonicalize_values_mark): Delete unused
8296         lhs assignment.
8297         (canonicalize_values_star, set_variable_part): Likewise.
8298         (clobber_variable_part, delete_variable_part): Likewise.
8300 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8302         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8304 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8306         * tree-inline.c (expand_call_inline): Do not check that destination
8307         node is analyzed.
8308         (optimize_inline_calls): Assert that destination node is analyzed.
8309         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8310         not call tree_lowering_passes.
8311         * cgraph.h (cgraph_analyze_function): Declare.
8312         * cgraphunit.c (cgraph_analyze_function): Make public.
8314 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8316         * config/sparc/sparc-opts.h: New.
8317         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8318         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8319         (sparc_option_override): Store processor_type enumeration rather
8320         than string in cpu_default.  Remove name and enumeration from
8321         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8322         without using sparc_select.  Use target_flags_explicit instead of
8323         fpu_option_set.
8324         * config/sparc/sparc.h (enum processor_type): Move to
8325         sparc-opts.h.
8326         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8327         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8328         HeaderInclude entry.
8329         (mcpu=, mtune=): Use Var and Enum.
8330         (sparc_processor_type): New Enum and EnumValue entries.
8332 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8333             Iain Sandoe  <iains@gcc.gnu.org>
8335         PR target/48245
8336         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8338 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8340         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8341         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8342         Insert new statements at it in lieu of STMT.
8343         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8344         * tree-vect-stmts.c (vectorizable_store): Likewise.
8345         (vectorizable_load): Likewise.
8347 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8349         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8350         (divtf3): Ditto.
8351         (multf3): Ditto.
8352         (subtf3): Ditto.
8354 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8356         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8357         unaligned 256bit load/store.
8358         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8359         (*avx_movdqu<avxmodesuffix>): Likewise.
8361 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8363         PR target/48288
8364         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8365         * config/pa/pa.md (iordi3): Use new predicate in expander.
8366         (iorsi3): Likewise.
8368 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8370         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8371         FUNCTION_VALUE_REGNO_P): Remove macros.
8372         * config/mips/mips-protos.h (mips_function_value): Remove.
8373         * config/mips/mips.c (mips_function_value): Rename to...
8374         (mips_function_value_1): ... this. Make static.  Handle receiving
8375         the function type in 'fn_decl_or_type' argument.
8376         (mips_function_value, mips_libcall_value,
8377         mips_function_value_regno_p): New function.
8378         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8379         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8381 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8383         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8384         and -mavx256-split-unaligned-store.
8385         (ix86_option_override_internal): Split 32-byte AVX unaligned
8386         load/store by default.
8387         (ix86_avx256_split_vector_move_misalign): New.
8388         (ix86_expand_vector_move_misalign): Use it.
8390         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8391         -mavx256-split-unaligned-store.
8393         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8394         256bit load/store.  Generate unaligned store on misaligned memory
8395         operand.
8396         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8397         256bit load/store.
8398         (*avx_movdqu<avxmodesuffix>): Likewise.
8400         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8401         -mavx256-split-unaligned-store.
8403 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8405         PR target/38598
8406         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8407         Update commentary.
8409 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8411         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8412         opno arguments with an expand_operand.  Use create_input_operand.
8413         (mips_prepare_builtin_target): Delete.
8414         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8415         functions.
8416         (mips_expand_builtin_direct): Use create_output_operand and
8417         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8418         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8419         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8421 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8423         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8424         function.
8425         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8427 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8429         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8430         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8431         basic blocks and call commit_edge_insertions directly.
8432         (fixup_abnormal_edges): Move from here to...
8433         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8434         on the edges and return whether some have actually been inserted.
8435         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8436         compensation code.
8438 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8440         PR rtl-optimization/48144
8441         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8442         (merge_expr_data): ... here.
8443         (av_set_intersect): Rename to av_set_code_motion_filter.
8444         Update all callers.  Call merge_history_vect when an expression
8445         is found in both sets.
8446         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8448 2011-03-26  Alan Modra  <amodra@gmail.com>
8450         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8451         cmodel medium addresses.
8452         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8453         64-bit gpr loads and stores.
8454         (rs6000_secondary_reload_ppc64): New function.
8455         * config/rs6000/rs6000-protos.h: Declare it.
8456         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8458 2011-03-26  Alan Modra  <amodra@gmail.com>
8460         PR target/47487
8461         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8462         GNU Go in traceback table.
8464 2011-03-25  Richard Henderson  <rth@redhat.com>
8466         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8467         if there are exactly 6 operands.
8468         (set_storage_via_setmem): Similarly.
8470 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8472         * collect2.c (write_c_file_stat): Handle backslash
8473         as right-hand directory separator.
8474         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8475         checking just for slash.
8476         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8477         instead of checking for trailing slash.
8478         * gcc.c (record_temp_file): Use filename_cmp instead
8479         of strcmp.
8480         (do_spec_1): Likewise.
8481         (replace_outfile_spec_function): Likewise.
8482         (is_directory): Use filename_ncmp instead of strncmp.
8483         (print_multilib_info): Likewise.
8484         * gcov.c (find_source): Use filename_cmp instead
8485         instead of strcmp.
8486         (make_gcov_file_name): Fix order of slash/backslash
8487         checks.
8488         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8489         (add_standard_paths): Likewise.
8490         * mips-tfile.c (saber_stop): Handle backslash.
8491         * prefix.c (update_path): Use filename_ncmp instead of
8492         strncmp.
8493         * profile.c (output_location): Use filename_cmp instead
8494         of strcmp.
8495         * read-md.c (handle_toplevel_file): Handle backslash.
8496         * tlink.c (frob_extension):  Likewise.
8497         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8498         strcmp.
8499         * tree-dump.c (dequeue_and_dump): Handle backslash.
8500         * tree.c (get_file_function_name): Likewise.
8501         * gengtype.c (read_input_list): Likewise.
8502         (get_file_realbasename): Likewise.
8503         (get_output_file_with_visibility): Use filename_cmp
8504         instead of strcmp.
8506 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8508         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8509         case to VFPv1.
8511 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8513         * fold-const.c (expr_location_or): New function.
8514         (fold_truth_not_expr): Call it.
8516 2011-03-25  Jeff Law  <law@redhat.com>
8518         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8519         va_end.
8520         * c-family/c-common.c (def_fn_type): Likewise.
8521         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8522         * emit-rtl.c (gen_rtvec): Likewise.
8523         * lto/lto-lang.c (def_fn_type): Likewise.
8525 2011-03-25  Richard Guenther  <rguenther@suse.de>
8527         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8528         also generate copies.
8529         (fini_copy_prop): Handle constant values properly.
8531 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8533         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8534         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8535         (hash_loc_operands, compare_loc_operands): Handle
8536         DW_OP_GNU_entry_value.
8538 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8540         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8541         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8542         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8543         comment and use macro TARGET_64BIT_MS_ABI instead.
8544         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8545         and change default behavior for 32-bit MS_ABI.
8546         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8547         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8548         32-bit, too.
8549         (ix86_cfun_abi): Likewise.
8550         (ix86_maybe_switch_abi): Adjust comment.
8551         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8552         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8553         instead of checking for SYSV_ABI.
8554         (ix86_nsaved_sseregs): Likewise.
8555         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8556         to 16 bytes.
8557         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8558         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8559         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8560         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8561         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8563 2011-03-25  Richard Guenther  <rguenther@suse.de>
8565         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8566         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8567         (verify_gimple): Remove.
8568         * tree-cfg.c (verify_gimple_call): Merge verification
8569         from verify_stmts.
8570         (verify_gimple_phi): Merge verification from verify_stmts.
8571         (verify_gimple_label): New function.
8572         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8573         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8574         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8575         (verify_stmts): Rename to verify_gimple_in_cfg.
8576         (verify_gimple_in_cfg): New function.
8577         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8578         * tree-ssa.c (verify_ssa): Likewise.
8579         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8581 2011-03-25  Richard Guenther  <rguenther@suse.de>
8583         * passes.c (init_optimization_passes): Add FRE pass after
8584         early SRA.
8586 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8587             Andrew Stubbs  <ams@codesourcery.com>
8589         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8590         for Cortex-A8.
8591         (arm_movdi_vfp_cortexa8): New pattern.
8592         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8593         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8594         instructions when tuning for Cortex-A8.  Set attribute "arch".
8595         * config/arm/arm.md: Move include arm-tune.md up a bit.
8596         (define_attr "arch"): Add "onlya8" and "nota8" values.
8597         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8599 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8601         PR bootstrap/48282
8602         Revert:
8603         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8605         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8606         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8607         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8608         * passes.c (init_optimization_passes): Move
8609         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8611 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8613         * c-typeck.c (comptypes_internal): Replace target
8614         hook call of comp_type_attributes by version in tree.c file.
8615         * gimple.c (gimple_types_compatible_p_1): Likewise.
8616         * tree-ssa.c (useless_type_conversion_p): Likewise.
8617         * tree.c (build_type_attribute_qual_variant): Likewise.
8618         (attribute_value_equal): New static helper function.
8619         (comp_type_attributes): New function.
8620         (merge_attributes): Use attribute_value_equal for comparison.
8621         (attribute_list_contained): Likewise.
8622         * tree.h (comp_type_attributes): New prototype.
8624 2011-03-25  Richard Guenther  <rguenther@suse.de>
8626         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8627         of complex types at -O0.
8628         (verify_gimple_assign_binary): Likewise.
8629         (verify_gimple_assign_ternary): Likewise.
8631 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8633         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8634         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8636 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8638         PR debug/48041
8639         * dwarf2out.c (output_abbrev_section): Only write table when
8640         abbrev_die_table_in_use > 1.
8642 2011-02-24  Richard Henderson  <rth@redhat.com>
8644         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8645         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8646         (alpha_expand_unaligned_load_words): Use extql.
8647         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8648         (emit_insxl): Handle all modes for consistency.
8650 2011-02-24  Richard Henderson  <rth@redhat.com>
8652         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8653         (alpha_expand_unaligned_load): Likewise.
8654         (alpha_expand_unaligned_store): Likewise.
8655         (alpha_expand_unaligned_load_words): Likewise.
8656         (alpha_expand_unaligned_store_words): Likewise.
8657         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8658         (alpha_split_lock_test_and_set_12): Likewise.
8659         (print_operand, alpha_fold_builtin_extxx): Likewise.
8660         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8661         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8662         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8663         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8664         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8665         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8666         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8667         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8668         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8669         (extwl, extll, extql): Similarly.
8670         (inswh, inslh, insqh): Similarly.
8671         (mskbl, mskwl, mskll, mskql): Similarly.
8672         (mskwh, msklh, mskqh): Similarly.
8674 2011-02-24  Richard Henderson  <rth@redhat.com>
8676         * config/alpha/alpha.md (attribute isa): Add er, ner.
8677         (attribute enabled): Handle them.
8678         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8680 2011-02-24  Richard Henderson  <rth@redhat.com>
8682         * config/alpha/alpha.md (attribute isa): Add vms.
8683         (attribute enabled): Handle it.
8684         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8685         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8686         (*movtf): Rename from *movtf_internal for consistency.
8687         (*movsi): Merge with *movsi_nt_vms.
8688         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8689         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8690         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8691         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8693 2011-02-24  Richard Henderson  <rth@redhat.com>
8695         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8696         (extendqisi2, extendhisi2): Likewise.
8697         (extendqidi2): Simplify BWX/non-BWX expansions.
8698         (extendhidi2): Similarly.
8700 2011-02-24  Richard Henderson  <rth@redhat.com>
8702         * config/alpha/alpha.md (attribute isa): New.
8703         (attribute enabled): New.
8704         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8705         (zero_extendqisi2, zero_extendqidi2): Similarly.
8706         (zero_extendhisi2, zero_extendhidi2): Similarly.
8707         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8709 2011-02-24  Richard Henderson  <rth@redhat.com>
8711         * config/alpha/predicates.md (input_operand): Revert last change;
8712         update comment to mention 32-bit VMS rather than Windows.
8714 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8716         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8717         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8718         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8719         * passes.c (init_optimization_passes): Move
8720         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8722 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8724         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8726 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8728         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8729         correctly.
8731 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8733         PR debug/48204
8734         * simplify-rtx.c (simplify_const_unary_operation): Call
8735         real_convert when changing mode class with FLOAT_EXTEND.
8737 2011-03-24  Nick Clifton  <nickc@redhat.com>
8739         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8740         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8741         * config/rx/rx.c (rx_option_override): Set align_jumps,
8742         align_loops and align_labels if not set by the user.
8743         (rx_align_for_label): New function.
8744         (rx_max_skip_for_label): New function.
8745         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8746         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8747         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8748         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8749         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8751 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8753         PR rtl-optimization/48263
8754         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8755         and original commutative_p handling.  Use maybe_gen_insn.
8757 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8759         * reload.c (find_reloads_subreg_address): Add address_reloaded
8760         parameter and return true there if the full address has been
8761         reloaded.
8762         (find_reloads_toplev): Pass address_reloaded flag.
8763         (find_reloads_address_1): Don't use address_reloaded parameter.
8765 2011-03-24  Jeff Law  <law@redhat.com>
8767         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8768         unused variable "ann".
8769         (remove_unused_locals): Likewise.
8771         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8772         statement.
8774         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8775         after it is freed.
8777 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8779         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8780         for invalid symbolic addresses.
8781         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8782         larl operands.
8784 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8786         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8787         the argument in calls to fold_truth_not_expr.
8789 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8791         * tree.c (record_node_allocation_statistics): New function.
8792         (make_node_stat, copy_node_stat, build_string): Call it.
8793         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8794         (build1_stat, build_omp_clause): Likewise.
8796 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8798         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8799         last commit.
8801 2011-03-24  Richard Guenther  <rguenther@suse.de>
8803         PR tree-optimization/48271
8804         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8805         blocks that still exist.
8807 2011-03-24  Richard Guenther  <rguenther@suse.de>
8809         PR tree-optimization/48270
8810         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8811         not free datarefs before ddrs.
8813 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8815         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8816         from the address built for a reference with variable offset.
8818 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8820         PR target/48237
8821         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8822         alternatives that can be handled with movq or movabsq insn.
8823         (*movdf_internal): Disable for !TARGET_64BIT.
8824         (*movdf_internal_nointeger): Ditto.
8825         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8827 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8829         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8830         (FUNCTION_ARG_ADVANCE): Likewise.
8831         * tm.texi.in: Change references to them to hook references.
8832         * tm.texi: Regenerate.
8833         * targhooks.c (default_function_arg): Eliminate check for target macro.
8834         (default_function_incoming_arg): Likewise.
8835         (default_function_arg_advance): Likewise.
8836         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8837         (function_arg_advance): Likewise.
8838         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8840 2011-03-24  Richard Guenther  <rguenther@suse.de>
8842         PR middle-end/48269
8843         * tree-object-size.c (addr_object_size): Do not double-account
8844         for MEM_REF offsets.
8846 2011-03-24  Diego Novillo  <dnovillo@google.com>
8848         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8849         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8850         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8851         Update all users.
8852         (lto_input_string): Rename from input_string.  Make extern.
8853         Update all users.
8854         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8855         output_string_with_length.
8856         Output 0 to indicate a non-NULL string.  Update all callers to
8857         not emit 0.
8858         (lto_output_string): Rename from output_string.  Make extern.
8859         Update all users.
8860         (lto_output_decl_state_streams): Make extern.
8861         (lto_output_decl_state_refs): Make extern.
8862         * lto-streamer.h (lto_input_string): Declare.
8863         (lto_input_data_block): Declare.
8864         (lto_output_string): Declare.
8865         (lto_output_string_with_length): Declare.
8866         (lto_output_decl_state_streams): Declare.
8867         (lto_output_decl_state_refs): Declare.
8869 2011-03-24  Richard Guenther  <rguenther@suse.de>
8871         PR tree-optimization/46562
8872         * tree.c (build_invariant_address): New function.
8873         * tree.h (build_invariant_address): Declare.
8874         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8875         a renamed function moved ...
8876         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8877         Take valueization callback parameter.
8878         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8879         * gimple-fold.h: New file.
8880         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8881         (ccp_fold, fold_const_aggregate_ref,
8882         fold_ctor_reference, fold_nonarray_ctor_reference,
8883         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8884         get_base_constructor): Move ...
8885         * gimple-fold.c: ... here.
8886         (gimple_fold_stmt_to_constant_1): New function
8887         split out from ccp_fold.  Take a valueization callback parameter.
8888         Valueize all operands.
8889         (gimple_fold_stmt_to_constant): New wrapper function.
8890         (fold_const_aggregate_ref_1): New function split out from
8891         fold_const_aggregate_ref.  Take a valueization callback parameter.
8892         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8893         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8894         invariant POINTER_PLUS_EXPRs to invariant form.
8895         (vn_valueize): New function.
8896         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8897         * tree-vrp.c (vrp_valueize): New function.
8898         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8899         to fold statements to constants.
8900         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8901         function declarations.
8902         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8903         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8905 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8907         * config/h8300/predicates.md (jump_address_operand): Fix register
8908         mode check.
8910 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8912         * doc/invoke.texi (max-stores-to-sink): Document.
8913         * params.h (MAX_STORES_TO_SINK): Define.
8914         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8915         if either vectorization or if-conversion is disabled.
8916         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8917         tree-vect-data-refs.c vect_equal_offsets.
8918         (dr_equal_offsets_p): New function.
8919         (find_data_references_in_bb): Remove static.
8920         * tree-data-ref.h (find_data_references_in_bb): Declare.
8921         (dr_equal_offsets_p): Likewise.
8922         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8923         (vect_drs_dependent_in_basic_block): Update calls to
8924         vect_equal_offsets.
8925         (vect_check_interleaving): Likewise.
8926         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8927         (cond_if_else_store_replacement): Rename to...
8928         (cond_if_else_store_replacement_1): ... this.  Change arguments and
8929         documentation.
8930         (cond_if_else_store_replacement): New function.
8931         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8932         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8934 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
8936         PR target/46934
8937         * config/arm/arm.md (casesi): Use the gen_int_mode() function
8938         to subtract lower bound instead of GEN_INT().
8940 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
8942         PR other/48179
8943         PR other/48221
8944         PR other/48234
8945         * doc/extend.texi (Alignment): Move section to match order in TOC.
8946         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8947         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8949 2011-03-23  Jeff Law  <law@redhat.com>
8951         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8952         before removing the edge.
8954         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8955         it may have been freed by redirect_branch_edge or
8956         redirect_edge_succ_nodup.
8958 2011-03-23  Richard Guenther  <rguenther@suse.de>
8960         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
8961         (check_va_list_escapes): Likewise.
8962         (check_all_va_list_escapes): Likewise.
8964 2011-03-23  Richard Guenther  <rguenther@suse.de>
8966         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8967         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8968         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8969         (alias.o): Likewise.
8970         (ipa-type-escape.o): Remove.
8971         (ipa-struct-reorg.o): Likewise.
8972         (GTFILES): Remove ipa-struct-reorg.c.
8973         * alias.c: Do not include ipa-type-escape.h.
8974         * tree-ssa-alias.c: Likewise.
8975         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8976         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8977         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8978         and ipa-type-escape passes.
8979         * tree-pass.h (pass_ipa_type_escape): Remove.
8980         (pass_ipa_struct_reorg): Likewise.
8981         * ipa-struct-reorg.h: Remove.
8982         * ipa-struct-reorg.c: Likewise.
8983         * ipa-type-escape.h: Likewise.
8984         * ipa-type-escape.c: Likewise.
8985         * doc/invoke.texi (-fipa-struct-reorg): Remove.
8986         (--param struct-reorg-cold-struct-ratio): Likewise.
8987         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8988         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8989         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8991 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8993         * config/s390/2084.md: Enable all insn reservations also for z9_ec
8994         cpu attribute value.
8995         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8996         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8997         * config/s390/s390.c (processor_flags_table): New constant array.
8998         (s390_handle_arch_option): Remove.
8999         (s390_handle_option): Remove s390_handle_arch_option invocations
9000         and OPT_mwarn_framesize_ handling.
9001         (s390_option_override): Remove s390_handle_arch_option invocation.
9002         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9003         warnings.
9004         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9005         * config/s390/s390.opt (s390_tune, s390_arch)
9006         (march=): Replace s390_arch_option enum and values with
9007         processor_type.  Set variable name to s390_arch.  Set
9008         initialization value.
9009         (mtune=): Replace s390_arch_option with processor_type.  Set
9010         variable name to s390_tune.  Set initialization value.
9012 2011-03-23  Julian Brown  <julian@codesourcery.com>
9014         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9015         accesses which are not naturally aligned.
9017 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9019         PR target/47553
9020         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9022 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9024         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9025         parameter from "int" to "enum insn_code".
9026         (expand_operand_type): New enum.
9027         (expand_operand): New structure.
9028         (create_expand_operand): New function.
9029         (create_fixed_operand, create_output_operand): Likewise
9030         (create_input_operand, create_convert_operand_to): Likewise.
9031         (create_convert_operand_from, create_address_operand): Likewise.
9032         (create_integer_operand): Likewise.
9033         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9034         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9035         (expand_insn, expand_jump_insn): Likewise.
9036         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9037         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9038         (expand_movstr, expand_builtin___clear_cache): Likewise.
9039         (expand_builtin_lock_release): Likewise.
9040         * explow.c (allocate_dynamic_stack_space): Likewise.
9041         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9042         and use the default handling in that case.
9043         * expmed.c (check_predicate_volatile_ok): Delete.
9044         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9045         (emit_cstore): Likewise.
9046         * expr.c (emit_block_move_via_movmem): Likewise.
9047         (set_storage_via_setmem, expand_assignment): Likewise.
9048         (emit_storent_insn, try_casesi): Likewise.
9049         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9050         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9051         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9052         (expand_twoval_unop, expand_twoval_binop): Likewise.
9053         (expand_unop_direct, emit_indirect_jump): Likewise.
9054         (emit_conditional_move, vector_compare_rtx): Likewise.
9055         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9056         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9057         (expand_sync_lock_test_and_set): Likewise.
9058         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9059         (emit_unop_insn): Likewise.
9060         (expand_copysign_absneg): Change icode to an insn_code.
9061         (create_convert_operand_from_type): New function.
9062         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9063         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9064         (expand_insn, expand_jump_insn): Likewise.
9065         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9066         than const_int_operand for operand 2.
9068 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9070         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9071         if possible.
9073 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9075         * emit-rtl.c (emit_pattern_before_noloc): New function.
9076         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9077         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9078         (emit_pattern_after_noloc): New function.
9079         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9080         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9082 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9084         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9085         (__ffsDI2): Likewise.
9087 2011-03-22  Richard Henderson  <rth@redhat.com>
9089         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9090         of !TARGET_ABI_OPEN_VMS.
9091         (alpha_trampoline_init, alpha_start_function): Likewise.
9092         (alpha_expand_epilogue, alpha_file_start): Likewise.
9093         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9094         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9095         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9096         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9097         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9099 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9101         * config/s390/s390-opts.h: New.
9102         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9103         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9104         s390_stack_guard): Remove.
9105         (s390_handle_arch_option): Return void.  Take enum
9106         s390_arch_option value instead of string and searching array.
9107         (s390_handle_option): Don't assert that global structures are in
9108         use.  Access variables via opts pointer.  Use error_at.  Don't use
9109         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9110         s390_handle_arch_option.
9111         (s390_option_override): Update call to s390_handle_arch_option.
9112         (s390_emit_prologue): Use %d format for s390_stack_size in
9113         diagnostic.  Use %wd for HOST_WIDE_INT.
9114         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9115         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9116         * config/s390/s390.opt (config/s390/s390-opts.h): New
9117         HeaderInclude entry.
9118         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9119         s390_arch_flags, s390_warn_framesize): New Variable entries.
9120         (s390_arch_option): New Enum and EnumValue entries.
9121         (march=): Use Enum instead of Var.
9122         (mstack-guard=, mstack-size=): Use UInteger and Var.
9123         (mtune=): Use Enum.
9125 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9127         * config/score/score.c (score_handle_option): Don't assert that
9128         global structures are in use.  Access target_flags via opts
9129         pointer.  Use value of -march= option to determine target_flags
9130         settings.
9131         * config/score/score.opt (march=): Use Enum.
9132         (score_arch): New Enum and EnumValue entries.
9134 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9136         * config/mep/mep.c (option_mtiny_specified): Remove.
9137         (mep_option_override): Move register handling for -mivc2 from
9138         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9139         instead of option_mtiny_specified.
9140         (mep_handle_option): Access target_flags via opts pointer.  Don't
9141         assert that global structures are in use.  Defer part of -mivc2
9142         handling and move it to mep_option_override.
9143         * config/mep/mep.opt (IVC2): New Mask entry.
9144         (mivc2): Use Var and Defer instead of Mask.
9146 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9148         * config/v850/v850-opts.h: New.
9149         * config/v850/v850.c (small_memory): Replace with
9150         small_memory_physical_max array.  Make that array static const.
9151         (v850_handle_memory_option): Take integer value of argument.  Take
9152         gcc_options pointer, option text and location.  Return void.
9153         Update for changes to small memory structures.
9154         (v850_handle_option): Access target_flags via opts pointer.  Don't
9155         assert that global structures are in use.  Update calls to
9156         v850_handle_memory_option.
9157         (v850_encode_data_area): Update references to small memory settings.
9158         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9159         (enum small_memory_type): Move to v850-opts.h.
9160         * config/v850/v850.opt (config/v850/v850-opts.h): New
9161         HeaderInclude entry.
9162         (small_memory_max): New Variable entry.
9163         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9164         (mtda, mzda): Likewise.
9166 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9168         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9169         pointer.  Don't assert that global structures are in use.
9171 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9173         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9174         via opts pointer.  Don't assert that global structures are in use.
9176 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9178         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9179         (munix=93): Use Var.
9180         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9181         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9182         * config/pa/pa-opts.h: New.
9183         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9184         (pa_handle_option): Don't assert that global structures are in
9185         use.  Access target_flags via opts pointer.  Don't handle
9186         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9187         OPT_munix_98 here.
9188         (pa_option_override): Handle deferred OPT_mfixed_range_.
9190 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9192         * config/mn10300/mn10300-opts.h: New.
9193         * config/mn10300/mn10300.c (mn10300_processor,
9194         mn10300_tune_string): Remove.
9195         (mn10300_handle_option): Don't assert that global structures are
9196         in use.  Access mn10300_processor via opts pointer.  Don't handle
9197         OPT_mtune_ here.
9198         * config/mn10300/mn10300.h (enum processor_type): Move to
9199         mn10300-opts.h.
9200         (mn10300_processor): Remove.
9201         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9202         HeaderInclude entry.
9203         (mn10300_processor): New Variable entry.
9204         (mtune=): Use Var.
9206 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9208         * config/microblaze/microblaze.c: Don't include opts.h.
9209         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9210         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9211         (mno-clearbss): Use Var and Warn.
9213 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9215         * config/m32r/m32r-opts.h: New.
9216         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9217         (m32r_handle_option): Don't assert that global structures are in
9218         use.  Access target_flags and m32r_cache_flush_func via opts
9219         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9220         OPT_mno_flush_trap here.
9221         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9222         include of m32r-opts.h.
9223         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9224         HeaderInclude entry.
9225         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9226         (mmodel=): Use Enum and Var.
9227         (m32r_model): New Enum and EnumValue entries.
9228         (mno-flush-trap): Use Var.
9229         (msdata=): Use Enum and Var.
9230         (m32r_sdata): New Enum and EnumValue entries.
9232 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9234         * config/m32c/m32c.c: Don't include opts.h.
9235         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9236         m32c_handle_option): Remove.
9237         (m32c_option_override): Check global_options_set.x_target_memregs
9238         instead of target_memregs_set.
9239         * config/m32c/m32c.h (target_memregs): Remove.
9240         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9241         variable.
9243 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9245         * config/iq2000/iq2000-opts.h: New.
9246         * config/iq2000/iq2000.c: Don't include opts.h.
9247         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9248         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9249         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9250         HeaderInclude entry.
9251         (iq2000_tune): New Variable entry.
9252         (march=): Add comment.  Use Enum.
9253         (iq2000_arch): New Enum and EnumValue entries.
9254         (mcpu=): Use Enum and Var.
9255         (iq2000_tune): New Enum and EnumValue entries.
9257 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9259         * config/ia64/ia64-opts.h: New.
9260         * config/ia64/ia64.c (ia64_tune): Remove.
9261         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9262         here.  Use error_at.
9263         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9264         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9265         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9266         HeaderInclude entry.
9267         (ia64_tune): New Variable entry.
9268         (mfixed-range=): Use Defer and Var.
9269         (mtune=): Use Enum and Var.
9270         (ia64_tune): New Enum and EnumValue entries.
9272 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9274         * config/frv/frv-opts.h: New.
9275         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9276         frv-opts.h.
9277         (frv_cpu_type): Remove.
9278         * config/frv/frv.c: Don't include opts.h.
9279         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9280         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9281         (frv_cpu_type): New Variable entry.
9282         (frv_cpu): New Enum and EnumValue entries.
9284 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9286         * config/cris/cris.c (cris_handle_option): Access target_flags via
9287         opts pointer.  Don't assert that global structures are in use.
9288         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9289         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9291 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9293         * config/bfin/bfin-opts.h: New.
9294         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9295         bfin_si_revision, bfin_workarounds): Remove.
9296         (bfin_cpus): Make static const.
9297         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9298         not bfin_lib_id_given.
9299         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9300         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9301         pointer. Use error_at.  Don't assert that global structures are in use.
9302         * config/bfin/bfin.h: Include bfin-opts.h.
9303         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9304         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9305         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9306         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9307         entries.
9309 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9311         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9312         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9313         or -msoft-float here.
9314         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9315         -msoft-float and -mhard-float.
9316         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9317         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9318         msoft-float.
9319         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9320         -msoft-float.
9321         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9322         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9323         not mhard-float.
9324         (LIBGCC_SPEC): Don't handle -msoft-float.
9325         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9326         -mhard-float.
9327         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9328         msoft-float.
9329         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9330         -mfloat-abi=*, not -msoft-float and -mhard-float.
9331         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9332         -msoft-float.
9333         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9334         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9335         mhard-float and msoft-float.
9336         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9337         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9338         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9339         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9340         mhard-float.
9341         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9342         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9343         msoft-float.
9344         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9345         not mhard-float.
9346         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9347         not msoft-float.
9349 2011-03-22  Richard Henderson  <rth@redhat.com>
9351         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9352         TARGET_ABI_WINDOWS_NT.
9353         (alpha_output_function_end_prologue): Likewise.
9354         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9355         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9356         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9357         (trap, *movsi_nt_vms): Likewise.
9358         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9359         (*tablejump_osf_nt_internal): Remove.
9360         * config/alpha/predicates.md (input_operand): Only test Pmode.
9362 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9364         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9365         via opts pointer.  Use error_at.  Don't assert that global
9366         structures are in use.
9368 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9370         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9371         (ix86_handle_option): Access ix86_isa_flags and
9372         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9373         global structures are in use.
9374         (ix86_function_specific_save, ix86_function_specific_restore):
9375         Update ix86_isa_flags_explicit field name.
9376         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9377         (ix86_isa_flags_explicit): Rename TargetSave entry to
9378         x_ix86_isa_flags_explicit.
9380 2011-03-22  Richard Henderson  <rth@redhat.com>
9382         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9383         (alpha_option_override, direct_return): Likewise.
9384         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9385         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9386         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9387         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9388         (alpha_expand_epilogue, alpha_end_function): Likewise.
9389         (alpha_init_libfuncs): Likewise.
9390         (struct machine_function): Remove unicosmk members.
9391         (print_operand) ['t']: Remove.
9392         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9393         unicosmk_output_module_name, unicosmk_output_common,
9394         current_section_align, unicosmk_output_text_section_asm_op,
9395         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9396         unicosmk_section_type_flags, unicosmk_unique_section,
9397         unicosmk_asm_named_section, unicosmk_insert_attributes,
9398         unicosmk_output_align, unicosmk_defer_case_vector,
9399         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9400         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9401         unicosmk_output_ssib, unicosmk_add_call_info_word,
9402         unicosmk_extern_head, unicosmk_output_default_externs,
9403         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9404         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9405         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9406         * config/alpha/alpha-protos.h: Update.
9407         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9408         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9409         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9410         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9411         (*mulsi_se, mulvsi3): Likewise.
9412         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9413         (*divmodsi_internal, call, call_value, realign): Likewise.
9414         (moddi3, umoddi3): Likewise; remove duplicate expander.
9415         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9416         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9417         (*movdi_nofix): Remove r/U alternative.
9418         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9419         * config/alpha/constraints.md ("U"): Remove.
9420         * config/alpha/predicates.md (call_operand"): Don't test
9421         TARGET_ABI_UNICOSMK.
9423 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9425         * target.def (handle_option): Take gcc_options and
9426         cl_decoded_option pointers and location_t.
9427         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9428         * doc/tm.texi: Regenerate.
9429         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9430         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9431         * lto-opts.c (lto_reissue_options): Generate option structure for
9432         targetm.handle_option call.
9433         * opts.c (target_handle_option): Update call to
9434         targetm.handle_option.  Remove assertions about values now passed
9435         down to hook.
9436         * targhooks.c (default_target_handle_option): New.
9437         * targhooks.h (default_target_handle_option): Declare.
9438         * config/alpha/alpha.c: Include opts.h.
9439         (alpha_handle_option): Update to new hook interface.
9440         * config/arm/arm.c: Include opts.h.
9441         (arm_handle_option): Update to new hook interface.
9442         * config/arm/t-arm (arm.o): Update dependencies.
9443         * config/bfin/bfin.c: Include opts.h.
9444         (bfin_handle_option): Update to new hook interface.
9445         * config/cris/cris.c: Include opts.h.
9446         (cris_handle_option): Update to new hook interface.
9447         * config/frv/frv.c: Include opts.h.
9448         (frv_handle_option): Update to new hook interface.
9449         * config/i386/i386.c: Include opts.h.
9450         (ix86_handle_option): Update to new hook interface.
9451         (ix86_valid_target_attribute_inner_p): Generate option structure
9452         for call to ix86_handle_option.
9453         * config/i386/t-i386 (i386.o): Update dependencies.
9454         * config/ia64/ia64.c: Include opts.h.
9455         (ia64_handle_option): Update to new hook interface.
9456         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9457         * config/iq2000/iq2000.c: Include opts.h.
9458         (iq2000_handle_option): Update to new hook interface.
9459         * config/m32c/m32c.c: Include opts.h.
9460         (m32c_handle_option): Update to new hook interface.
9461         * config/m32r/m32r.c: Include opts.h.
9462         (m32r_handle_option): Update to new hook interface.
9463         * config/m68k/m68k.c: Include opts.h.
9464         (m68k_handle_option): Update to new hook interface.
9465         * config/mep/mep.c: Include opts.h.
9466         (mep_handle_option): Update to new hook interface.
9467         * config/microblaze/microblaze.c: Include opts.h.
9468         (microblaze_handle_option): Update to new hook interface.
9469         * config/mips/mips.c: Include opts.h.
9470         (mips_handle_option): Update to new hook interface.
9471         * config/mn10300/mn10300.c: Include opts.h.
9472         (mn10300_handle_option): Update to new hook interface.
9473         * config/pa/pa.c: Include opts.h.
9474         (pa_handle_option): Update to new hook interface.
9475         * config/pdp11/pdp11.c: Include opts.h.
9476         (pdp11_handle_option): Update to new hook interface.
9477         * config/rs6000/rs6000.c: Include opts.h.
9478         (rs6000_handle_option): Update to new hook interface.
9479         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9480         * config/rx/rx.c: Include opts.h.
9481         (rx_handle_option): Update to new hook interface.
9482         * config/s390/s390.c: Include opts.h.
9483         (s390_handle_option): Update to new hook interface.
9484         * config/score/score.c: Include opts.h.
9485         (score_handle_option): Update to new hook interface.
9486         * config/sh/sh.c: Include opts.h.
9487         (sh_handle_option): Update to new hook interface.
9488         * config/sparc/sparc.c: Include opts.h.
9489         (sparc_handle_option): Update to new hook interface.
9490         * config/v850/v850.c: Include opts.h.
9491         (v850_handle_option): Update to new hook interface.
9493 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9495         * gcc.c (driver_unknown_option_callback): Only permit and save
9496         unknown -Wno- options.
9497         (driver_wrong_lang_callback): Save options directly instead of via
9498         driver_unknown_option_callback.
9500 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9502         * combine.c (simplify_set): Try harder to find the best CC mode when
9503         simplifying a nested COMPARE on the RHS.
9505 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9507         * config/alpha/gnu.h: Remove.
9508         * config/arc: Remove directory.
9509         * config/arm/netbsd.h: Remove.
9510         * config/arm/t-pe: Remove.
9511         * config/crx: Remove directory.
9512         * config/i386/netbsd.h: Remove.
9513         * config/m68hc11: Remove directory.
9514         * config/m68k/uclinux-oldabi.h: Remove.
9515         * config/mcore/mcore-pe.h: Remove.
9516         * config/mcore/t-mcore-pe: Remove.
9517         * config/netbsd-aout.h: Remove.
9518         * config/rs6000/gnu.h: Remove.
9519         * config/sh/sh-symbian.h: Remove.
9520         * config/sh/symbian-base.c: Remove.
9521         * config/sh/symbian-c.c: Remove.
9522         * config/sh/symbian-cxx.c: Remove.
9523         * config/sh/symbian-post.h: Remove.
9524         * config/sh/symbian-pre.h: Remove.
9525         * config/sh/t-symbian: Remove.
9526         * config/svr3.h: Remove.
9527         * config/vax/netbsd.h: Remove.
9528         * config.build: Don't handle i[34567]86-*-pe.
9529         * config.gcc: Remove handling of deprecations for most deprecated
9530         targets.
9531         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9532         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9533         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9534         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9535         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9536         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9537         Remove cases.
9538         * config.host: Don't handle i[34567]86-*-pe.
9539         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9540         (ASM_SPEC32): Don't handle -mcall-gnu.
9541         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9542         -mcall-gnu.
9543         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9544         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9545         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9546         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9547         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9548         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9549         conditional on SYMBIAN.
9550         * configure.ac: Don't handle powerpc*-*-gnu*.
9551         * configure: Regenerate.
9552         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9553         * doc/install-old.texi (m6811, m6812): Don't mention.
9554         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9555         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9556         (m68k-uclinuxoldabi): Don't mention.
9557         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9558         Remove.
9559         (-mcall-gnu): Remove.
9560         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9561         families): Remove constraint documentation.
9563 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9565         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9566         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9567         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9569 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9571         PR target/48226
9572         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9573         vector when peeking at the next token for vector, don't expand the
9574         keywords.
9576 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9578         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9579         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9580         * config/avr/avr.c (init_cumulative_args)
9581         (avr_function_arg_advance): Use it.
9582         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9583         sibcall epilogues.
9584         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9585         (avr_function_ok_for_sibcall): ...this new function.
9586         (avr_lookup_function_attribute1): New static Function.
9587         (avr_naked_function_p, interrupt_function_p)
9588         (signal_function_p, avr_OS_task_function_p)
9589         (avr_OS_main_function_p): Use it.
9590         * config/avr/avr.md ("sibcall", "sibcall_value")
9591         ("sibcall_epilogue"): New expander.
9592         ("*call_insn", "*call_value_insn"): New insn.
9593         ("call_insn", "call_value_insn"): Remove
9594         ("call", "call_value", "epilogue"): Change expander to handle
9595         sibling calls.
9597 2011-03-21  Nick Clifton  <nickc@redhat.com>
9599         * doc/invoke.texi (Overall Options): Move closing brace to end of
9600         options list.
9601         (Optimization Options): Add missing @gol.
9602         (Directory Options): Likewise.
9603         (i386 and x86-64 Options): Likewise.
9604         (RS6000 and PowerPC Options): Likewise.
9605         (i386 and x86-64 Windows Options): Likewise.
9606         (V850 Options): Add text missing from descriptions.
9608 2011-03-22  Richard Henderson  <rth@redhat.com>
9610         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9611         (avr_incoming_return_addr_rtx): New.
9612         (emit_push_byte): New.
9613         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9614         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9615         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9616         (emit_pop_byte): New.
9617         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9618         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9619         (INCOMING_RETURN_ADDR_RTX): New.
9620         (INCOMING_FRAME_SP_OFFSET): New.
9621         (ARG_POINTER_CFA_OFFSET): New.
9622         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9623         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9624         (pophi): Remove.
9626         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9628 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9630         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9631         (FUNCTION_ARG_ADVANCE): Likewise.
9632         * tm.texi.in: Change references to them to hook references.
9633         * tm.texi: Regenerate.
9634         * targhooks.c (default_function_arg): Eliminate check for target
9635         macro.
9636         (default_function_incoming_arg): Likewise.
9637         (default_function_arg_advance): Likewise.
9638         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9639         (function_arg_advance): Likewise.
9640         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9642 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9644         * tree.c (build_call_1): New function.
9645         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9647 2011-03-22  Richard Guenther  <rguenther@suse.de>
9649         PR tree-optimization/48228
9650         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9651         for single-arg PHIs.
9653 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9655         PR rtl-optimization/48143
9656         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9657         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9658         sse2_cvtps2pd): Likewise.
9660 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9662         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9664 2011-03-22  Richard Guenther  <rguenther@suse.de>
9666         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9667         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9668         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9669         and REALIGN_LOAD_EXPR.
9670         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9671         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9672         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9673         DOT_PROD_EXPR case ...
9674         (expand_expr_real_2): ... here.
9675         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9676         and REALIGN_LOAD_EXPR.
9677         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9678         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9679         (vect_create_epilog_for_reduction): Likewise.
9680         (vectorizable_reduction): Likewise.
9681         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9682         * tree-vect-stmts.c (vectorizable_load): Likewise.
9684 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9686         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9688 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9690         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9691         handling for PLTOFF/GOTOFF.
9693 2011-03-22  Nick Clifton  <nickc@redhat.com>
9695         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9696         trailing backslash from the end of the macro definition.
9698 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9700         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9701         and PLT unspecs.
9703 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9705         * expr.h (prepare_operand): Move to...
9706         * optabs.h (prepare_operand): ...here and change the insn code
9707         parameter from "int" to "enum insn_code".
9708         (insn_operand_matches): Declare.
9709         * expr.c (init_expr_target): Use insn_operand_matches.
9710         (compress_float_constant): Likewise.
9711         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9712         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9713         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9714         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9715         Likewise.
9716         (gen_cond_trap): Likewise.
9717         (prepare_operand): Likewise.  Change icode to an insn_code.
9718         (insn_operand_matches): New function.
9719         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9720         * reload1.c (gen_reload): Likewise.
9721         * targhooks.c (default_secondary_reload): Likewise.
9723 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9725         * config/alpha/alpha.md (unspec): New define_c_enum.
9726         (unspecv): Ditto.
9728 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9730         PR debug/48214
9731         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9732         between a call and its CALL_ARG_LOCATION note.
9734 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9736         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9738 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9740         PR c/42544
9741         PR c/48197
9742         * c-common.c (shorten_compare): If primopN is first sign-extended
9743         to opN and then zero-extended to result type, set primopN to opN.
9745 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9747         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9748         for barrier handlers.
9750 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9752         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9753         UNSPEC constants to be in the unspec enumeration, and redefine
9754         all UNSPECV constants to be in the unspecv enumeration, so that
9755         dumps print which unspec/unspec_volatile this is.
9756         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9757         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9758         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9759         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9760         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9762         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9763         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9764         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9765         * config/rs6000/sync.md (isync, lwsync): Ditto.
9767 2011-03-21  Richard Guenther  <rguenther@suse.de>
9769         * params.def (lto-min-partition): Fix typo.
9771 2011-03-21  Richard Guenther  <rguenther@suse.de>
9773         PR c/47939
9774         * c-decl.c (grokdeclarator): Drop to the main variant only
9775         for array types.  Drop flag_gen_aux_info check.
9777 2011-03-21  Richard Guenther  <rguenther@suse.de>
9779         PR translation/47911
9780         * params.def (lto-partitions): Fix typo.
9781         (lto-min-partition): Fix wording.
9783 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9785         * config/rs6000/t-freebsd: Remove duplication from file.
9787 2011-03-21  Richard Guenther  <rguenther@suse.de>
9789         PR middle-end/47661
9790         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9792 2011-03-21  Richard Guenther  <rguenther@suse.de>
9794         PR lto/48210
9795         * params.def (lto-partitions): Require at least 1 partition.
9797 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9799         * gthr-solaris.h: Remove.
9800         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9801         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9802         (LIB_SPEC): Likewise.
9803         * config/sol2.opt (threads): Remove.
9804         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9805         (sparc*-*-solaris2*): Likewise.
9806         * configure.ac (enable_threads): Enable solaris support.
9807         * configure: Regenerate.
9808         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9809         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9810         solaris.
9812 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9814         * config.gcc: Obsolete *-*-solaris2.8*.
9815         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9817 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9819         PR bootstrap/48135
9820         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9821         reference.  Solaris 8 perl works.
9823 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9825         PR bootstrap/48135
9826         * doc/install.texi (Prerequisites): Move jar etc. up.
9827         Explain support library version requirements.
9829 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9831         PR bootstrap/48135
9832         * doc/install.texi (Prerequisites): Move Perl to build
9833         requirements.  Always necessary on Solaris 2 with Sun ld.
9835 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9837         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9838         binutils 2.21.
9839         (Specific, i?86-*-solaris2.[89]): Likewise.
9840         (Specific, i?86-*-solaris2.10): Likewise.
9841         (Specific, mips-sgi-irix6): Likewise.
9842         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9843         Update for binutils 2.21.
9845 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9847         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9848         Allow -fuse-linker-plugin for non-default plugin linker.
9849         * configure: Regenerate.
9851 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9853         PR bootstrap/48167
9854         * gengtype.c (files_rules): Added rule for cp/parser.h.
9856 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9858         PR target/48213
9859         * config/s390/s390.c (s390_delegitimize_address): Don't call
9860         lowpart_subreg if orig_x has BLKmode.
9862 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9864         PR target/12171
9865         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9866         * tree.h (attribute_spec): Add new member affects_type_identity.
9867         * attribs.c (empty_attribute_table): Adjust attribute_spec
9868         initializers.
9869         * config/alpha/alpha.c: Likewise.
9870         * config/arc/arc.c: Likewise.
9871         * config/arm/arm.c: Likewise.
9872         * config/avr/avr.c: Likewise.
9873         * config/bfin/bfin.c: Likewise.
9874         * config/crx/crx.c: Likewise.
9875         * config/darwin.h: Likewise.
9876         * config/h8300/h8300.c: Likewise.
9877         * config/i386/cygming.h: Likewise.
9878         * config/i386/i386.c: Likewise.
9879         * config/ia64/ia64.c: Likewise.
9880         * config/m32c/m32c.c: Likewise.
9881         * config/m32r/m32r.c: Likewise.
9882         * config/m68hc11/m68hc11.c: Likewise.
9883         * config/m68k/m68k.c: Likewise.
9884         * config/mcore/mcore.c: Likewise.
9885         * config/mep/mep.c: Likewise.
9886         * config/microblaze/microblaze.c: Likewise.
9887         * config/mips/mips.c: Likewise.
9888         * config/rs6000/rs6000.c: Likewise.
9889         * config/rx/rx.c: Likewise.
9890         * config/sh/sh.c: Likewise.
9891         * config/sol2.h: Likewise.
9892         * config/sparc/sparc.c: Likewise.
9893         * config/spu/spu.c: Likewise.
9894         * config/stormy16/stormy16.c: Likewise.
9895         * config/v850/v850.c: Likewise.
9897 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9899         * simplify-rtx.c (simplify_binary_operation_1): Handle
9900         (xor (and A B) C) case when B and C are both constants.
9902 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9904         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9906 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9908         PR bootstrap/48168
9909         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9911 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9913         PR rtl-optimization/48156
9914         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9915         assume df and df_lr are not NULL.
9917 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9919         PR debug/48023
9920         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9921         between a call and its CALL_ARG_LOCATION note.
9923 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
9925         PR debug/48178
9926         * config/sh/sh.c (find_barrier): Don't emit a constant pool
9927         between a call and its corresponding CALL_ARG_LOCATION note.
9929 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
9931         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9932         instead of loop. Use HARD_REGISTER_NUM_P predicate.
9933         * haifa-sched.c (setup_ref_regs): Ditto.
9934         * caller-save.c (add_used_regs_1): Ditto.
9935         * dse.c (look_for_hardregs): Ditto.
9936         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9937         * sched-rgn.c (check_live_1): Ditto.
9939 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9941         * c-decl.c (diagnose_mismatched_decls): Give an error for
9942         redefining a typedef with variably modified type.
9944 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
9946         * c-decl.c (grokfield): Don't allow typedefs for structures or
9947         unions with no tag by default.
9948         * doc/extend.texi (Unnamed Fields): Update.
9950 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
9952         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9953         Rewrite using indirect functions.
9954         (lwp_slwpcb): Ditto.
9955         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9956         (avx_vinsertf128<mode>): Ditto.
9958 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9960         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9961         unspecs.
9963 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9965         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9966         splitting between a call and its corresponding CALL_ARG_LOCATION note.
9968 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
9970         PR rtl-optimization/48170
9971         * gcse.c (hoist_code): Remove bogus asserts.
9973 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
9975         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9976         computation for prologue/epilogue.
9978 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9980         * Makefile.in (check-consistency): Remove.
9982 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
9984         PR debug/48176
9985         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9986         arange_table_in_use is 0, but either text_section_used or
9987         cold_text_section_used is true.  Don't call it if
9988         !info_section_emitted.
9990 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
9992         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9993         FUNCTION_VALUE_REGNO_P): Remove.
9994         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9995         Remove.
9996         * config/avr/avr.c (avr_ret_register): Make static inline.
9997         (avr_function_value_regno_p): New function.
9998         (avr_libcall_value): Make static. Add 'func' argument.
9999         (avr_function_value): Make static. Rename 'func' argument to
10000         'fn_decl_or_type', forward it to avr_libcall_value. Call
10001         avr_ret_register function instead of RET_REGISTER macro.
10002         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10004 2011-03-18  Jason Merrill  <jason@redhat.com>
10006         PR c++/23372
10007         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10009 2011-03-18  Richard Guenther  <rguenther@suse.de>
10011         * doc/install.texi (--enable-gold): Remove.
10012         (--with-plugin-ld): Document.
10013         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10015 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10017         PR middle-end/47790
10018         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10019         again after expansion changes.
10021 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10023         * combine.c (try_combine): Do simplification only call of
10024         subst() on i2 even when i1 is present. Update comments.
10026 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10028         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10029         and UNSPEC_PCREL_SYMOFF.
10031 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10033         * config/s390/s390.md: Use define_c_enum for the unspec constant
10034         definitions.
10036 2011-03-18  Richard Henderson  <rth@redhat.com>
10037             Jakub Jelinek  <jakub@redhat.com>
10039         PR bootstrap/48161
10040         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10041         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10043 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10045         PR middle-end/47725
10046         * combine.c (cant_combine_insn_p): Don't check zero/sign
10047         extended hard registers.
10049 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10051         PR middle-end/47725
10052         * combine.c (cant_combine_insn_p): Check zero/sign extended
10053         hard registers.
10055 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10057         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10058         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10059         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10060         Change return type to bool.
10061         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10063 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10065         PR debug/48163
10066         * var-tracking.c (prepare_call_arguments): If CALL target
10067         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10068         pc instead of looking it up using cselib_lookup and use
10069         Pmode for it if x has VOIDmode.
10070         * dwarf2out.c (gen_subprogram_die): If also both first and
10071         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10073         PR debug/48163
10074         * function.c (assign_parms): For data.passed_pointer parms
10075         use MEM of data.entry_parm instead of data.entry_parm itself
10076         as DECL_INCOMING_RTL.
10077         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10078         also when passed and declared mode is the same, DECL_RTL
10079         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10080         a MEM too.
10082 2011-03-16  Jeff Law  <law@redhat.com>
10084         PR rtl-optimization/37273
10085         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10086         handle them like argument loads from stack slots.  Do not double
10087         count memory for memory constants and argument loads from stack slots.
10089 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10091         PR debug/48160
10092         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10094 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10096         PR target/48171
10097         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10099 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10101         PR bootstrap/48153
10102         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10103         if dwarf_strict.
10104         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10105         Clear call_arg_locations and call_arg_loc_last always.
10107         PR middle-end/48152
10108         * var-tracking.c (prepare_call_arguments): If argument needs to be
10109         passed by reference, adjust argtype and mode.
10111 2011-03-17  Richard Guenther  <rguenther@suse.de>
10113         PR middle-end/48134
10114         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10115         a value make sure to fold the statement.
10117 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10119         PR target/43872
10120         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10121         return condition with !cfun->calls_alloca.
10123 2011-03-17  Richard Guenther  <rguenther@suse.de>
10125         PR bootstrap/48148
10126         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10127         origin for decls in other ltrans units.
10128         (input_varpool_node): Likewise.
10130 2011-03-17  Richard Guenther  <rguenther@suse.de>
10132         PR middle-end/48165
10133         * tree-object-size.c (compute_object_offset): Properly return
10134         the offset operand of MEM_REFs as sizetype.
10136 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10138         PR rtl-optimization/48141
10139         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10140         * dse.c: Include params.h.
10141         (active_local_stores_len): New variable.
10142         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10143         to NULL.
10144         (record_store, check_mem_read_rtx): Decrease it when removing
10145         from the chain.
10146         (scan_insn): Likewise.  Increase it when adding to chain, if it
10147         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10148         set active_local_stores to NULL before the addition.
10149         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10151         PR rtl-optimization/48141
10152         * dse.c (record_store): If no positions are needed in an insn
10153         that cannot be deleted, at least unchain it from active_local_stores.
10155 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10157         PR debug/47510
10158         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10159         (lookup_type_die_strip_naming_typedef): ... here.
10160         (get_context_die): Use it.
10161         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10162         the anonymous struct named by the naming typedef.
10164 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10166         PR target/48154
10167         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10168         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10170 2011-03-16  Jeff Law  <law@redhat.com>
10172         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10173         check for operands of conditional.  Allow type to be a pointer.
10175 2011-03-16  Richard Guenther  <rguenther@suse.de>
10177         PR tree-optimization/48149
10178         * fold-const.c (fold_binary_loc): Fold
10179         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10181 2011-03-16  Richard Guenther  <rguenther@suse.de>
10183         PR tree-optimization/26134
10184         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10185         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10186         (non_rewritable_mem_ref_base): Handle complex type component
10187         accesses, constrain offsets for vector and complex extracts
10188         more properly.
10190 2011-03-16  Richard Guenther  <rguenther@suse.de>
10192         PR tree-optimization/48146
10193         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10194         operands avoiding the need for renaming.
10196 2011-03-16  Richard Guenther  <rguenther@suse.de>
10198         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10199         constant folding.  Move MEM_REF canonicalization first.
10200         Rely on fold_const_aggregate_ref for initializer folding.
10201         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10203 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10205         PR middle-end/48136
10206         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10207         arg0/arg1 or their arguments are always fold converted to matching
10208         types.
10210         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10211         to nargs.
10213 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10215         PR lto/46944
10216         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10217         Handle in-tree gold.
10218         (ld_vers): Extract binutils version for gold.
10219         (gcc_cv_ld_hidden): Handle gold here.
10220         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10221         * configure: Regenerate.
10222         * config.in: Regenerate.
10223         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10224         -fuse-linker-plugin otherwise.
10225         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10226         (LINK_COMMAND_SPEC): Use it.
10227         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10229 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10231         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10232         * calls.c: Remove debug.h include.
10233         (emit_call_1): Don't call virtual_call_token debug hook.
10234         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10235         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10236         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10237         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10238         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10239         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10240         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10241         dwarf2out_virtual_call): Remove.
10242         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10243         copy_call_info and virtual_call hooks.
10244         (dwarf2out_init): Don't initialize vcall_insn_table,
10245         debug_dcall_section and debug_vcall_section.
10246         (prune_unused_types): Don't mark nodes from dcall_table.
10247         (dwarf2out_finish): Don't output dcall or vcall tables.
10248         * final.c (final_scan_insn): Don't call direct_call or
10249         virtual_call debug hooks.
10250         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10251         virtual_call_token, copy_call_info and virtual_call hooks.
10252         (debug_nothing_uid): Remove prototype.
10253         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10254         copy_call_info and virtual_call hooks.
10255         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10256         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10257         * debug.c (do_nothing_debug_hooks): Likewise.
10258         (debug_nothing_uid): Remove.
10259         * doc/invoke.texi (-fenable-icf-debug): Remove.
10260         * common.opt (-fenable-icf-debug): Likewise.
10262         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10263         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10264         call's MEM.  Handle functions returning aggregate through a hidden
10265         first pointer.  For virtual calls add clobbered pc to call arguments
10266         chain.
10267         * dwarf2out.c (gen_subprogram_die): Emit
10268         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10269         can't be emitted.
10271         PR debug/45882
10272         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10273         * rtl.h (ENTRY_VALUE_EXP): Define.
10274         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10275         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10276         * print-rtl.c (print_rtx): Likewise.
10277         * gengtype.c (adjust_field_rtx_def): Likewise.
10278         * var-tracking.c (vt_add_function_parameter): Adjust
10279         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10280         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10281         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10282         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10283         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10285         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10286         Call var_location debug hook even on CALL_INSNs.
10287         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10288         * rtl.def (ENTRY_VALUE): New.
10289         * dwarf2out.c: Include cfglayout.h.
10290         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10291         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10292         (struct call_arg_loc_node): New type.
10293         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10294         tail_call_site_count): New variables.
10295         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10296         DW_TAG_GNU_call_site_parameter.
10297         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10298         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10299         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10300         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10301         and DW_AT_GNU_all_source_call_sites.
10302         (mem_loc_descriptor): Handle ENTRY_VALUE.
10303         (add_src_coords_attributes): Don't add enything if
10304         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10305         (dwarf2out_abstract_function): Save and clear call_arg_location,
10306         call_site_count and tail_call_site_count around dwarf2out_decl call.
10307         (gen_call_site_die): New function.
10308         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10309         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10310         (dwarf2out_function_decl): Clear call_arg_locations,
10311         call_arg_loc_last, set call_site_count and tail_call_site_count
10312         to -1 and free block_map.
10313         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10314         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10315         followed by any real instructions.
10316         (dwarf2out_begin_function): Set call_site_count and
10317         tail_call_site_count to 0.
10318         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10319         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10320         attempt to force a DIE for it and worst case remove the attribute.
10321         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10322         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10323         the decl itself.
10324         * var-tracking.c: Include tm_p.h.
10325         (vt_stack_adjustments): For calls call note_register_arguments.
10326         (argument_reg_set): New variable.
10327         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10328         ensure the VALUE is resolved.
10329         (call_arguments): New variable.
10330         (prepare_call_arguments): New function.
10331         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10332         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10333         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10334         always use the best expression.
10335         (vt_expand_loc): Add ignore_cur_loc argument.
10336         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10337         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10338         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10339         note for all calls.
10340         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10341         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10342         argument.  Don't call cselib_preserve_only_values and
10343         cselib_reset_table.
10344         (note_register_arguments): New function.
10345         (vt_initialize): Compute argument_reg_set.  Call
10346         vt_add_function_parameters before processing basic blocks instead of
10347         afterwards.  For calls call prepare_call_arguments before calling
10348         cselib_process_insn.
10349         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10350         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10351         (var-tracking.o): Depend on $(TM_P_H).
10352         * cfglayout.h (insn_scope): New prototype.
10353         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10354         * cfglayout.c (insn_scope): No longer static.
10355         * insn-notes.def (CALL_ARG_LOCATION): New.
10356         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10357         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10358         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10359         nothing for DECL_EXTERNAL BLOCK_VARS.
10361 2011-03-16  Alan Modra  <amodra@gmail.com>
10363         PR target/45844
10364         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10365         create invalid offset address for vsx splat insn.
10366         * config/rs6000/predicates.md (splat_input_operand): New.
10367         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10369 2011-03-15  Xinliang David Li  <davidxl@google.com>
10371         PR c/47837
10372         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10373         (normalize_preds): New function.
10374         (is_use_properly_guarded): Normalize def predicates.
10376 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10378         PR target/46788
10379         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10380         in the output template.
10382 2011-03-15  Richard Guenther  <rguenther@suse.de>
10384         PR middle-end/47650
10385         * tree-pretty-print.c (dump_function_declaration): Properly
10386         dump unprototyped and varargs function types.
10388 2011-03-15  Richard Guenther  <rguenther@suse.de>
10390         PR tree-optimization/13954
10391         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10392         and friends.
10394 2011-03-15  Richard Guenther  <rguenther@suse.de>
10396         PR tree-optimization/48037
10397         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10398         selects into BIT_FIELD_REFs.
10399         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10400         vector select.
10402 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10404         PR tree-optimization/48129
10405         * builtins.c (fold_builtin_snprintf): Convert to type of
10406         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10407         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10409 2011-03-15  Richard Guenther  <rguenther@suse.de>
10411         PR tree-optimization/41490
10412         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10413         value but with VUSE.
10414         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10415         return statements.
10416         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10417         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10418         * tree-tailcall.c (find_tail_calls): Ignore returns.
10420 2011-03-15  Richard Guenther  <rguenther@suse.de>
10422         PR middle-end/48031
10423         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10424         or variable-indexed array accesses when in gimple form.
10426 2011-03-15  Richard Guenther  <rguenther@suse.de>
10428         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10430 2011-03-15  Alan Modra  <amodra@gmail.com>
10432         PR target/48032
10433         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10434         presume symbol_refs without a symbol_ref_decl are suitably
10435         aligned, nor other trees we may see here.  Handle anchor symbols.
10436         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10437         Check cmodel=medium addresses.  Adjust all calls.
10438         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10439         creating cmodel=medium optimized access to locals.
10440         * config/rs6000/constraints.md (R): Pass QImode to
10441         legitimate_constant_pool_address_p.
10442         * config/rs6000/predicates.md (input_operand): Pass mode to
10443         legitimate_constant_pool_address_p.
10444         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10445         Update prototype.
10447 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10449         PR target/48053
10450         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10451         64-bit constants being loaded into registers other than GPRs such
10452         as loading 0 into a VSX register.
10454 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10456         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10458 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10460         PR middle-end/47917
10461         * builtins.c (fold_builtin_snprintf): New function.
10462         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10463         (fold_builtin_4): Likewise.
10465         PR middle-end/38878
10466         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10467         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10468         and C - X == X also strip nops from +/-/p+ operand.
10469         When optimizing -X == C, fold C to arg0's type.
10471         PR debug/47946
10472         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10473         emit it as add_AT_int instead of add_AT_unsigned.
10475 2011-03-14  Tom Tromey  <tromey@redhat.com>
10477         * unwind-dw2.c: Include sys/sdt.h if it exists.
10478         (_Unwind_DebugHook): Use STAP_PROBE2.
10479         * config.in, configure: Rebuild.
10480         * configure.ac: Check for sys/sdt.h.
10482 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10484         * config/i386/i386.md (ROUND_FLOOR): New constant.
10485         (ROUND_CEIL): Ditto.
10486         (ROUND_TRUNC): Ditto.
10487         (ROUND_MXCSR): Ditto.
10488         (ROUND_NO_EXC): Ditto.
10489         (rint<mode>2): Use new defines instead of numerical constants.
10490         (floor<mode>2): Ditto.
10491         (ceil<mode>2): Ditto.
10492         (btrunc<mode>2): Ditto.
10493         * config/i386/i386-builtin-types.def: Define ROUND function type
10494         aliases.
10495         * config/i386/i386.c (enum ix86_builtins): Add
10496         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10497         (struct builtin_description): Add
10498         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10499         (ix86_expand_sse_round): New static function.
10500         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10501         function types.
10502         (ix86_builtin_vectorized_function): Handle
10503         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10505 2011-03-14  Tom Tromey  <tromey@redhat.com>
10507         * c-parser.c (c_parser_asm_string_literal): Clear
10508         warn_overlength_strings.
10510 2011-03-14  Tom Tromey  <tromey@redhat.com>
10512         * c-parser.c (disable_extension_diagnostics): Save
10513         warn_overlength_strings.
10514         (restore_extension_diagnostics): Restore warn_overlength_strings.
10516 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10518         * BASE-VER: Change to 4.7.0.
10520 2011-03-14  Richard Guenther  <rguenther@suse.de>
10522         PR middle-end/48098
10523         * tree.c (build_vector_from_val): Adjust assert to requirements
10524         and reality.
10526 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10528         PR bootstrap/48102
10529         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10531 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10533         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10534         terms of target_flags_explicit. Adjust copyright year.
10536         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10537         * config/rs6000/t-freebsd: New file. Add override for
10538         LIB2FUNCS_EXTRA.
10540 2011-03-13  Chris Demetriou  <cgd@google.com>
10542         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10543         (-fno-diagnostics-show-option): this, to reflect current default.
10544         (-Werror=): Update text about -fno-diagnostics-show-option.
10546 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10548         PR target/48053
10549         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10550         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10551         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10552         mode is not V2DImode or V2DFmode.
10553         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10554         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10555         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10556         registers to 0.
10557         (movdi_internal64): Likewise.
10559 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10561         PR tree-optimization/47127
10562         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10563         parameter.
10564         (set_cloog_options): Same.
10565         (scop_to_clast): Same.
10566         (print_clast_stmt): Do not call cloog_state_malloc and
10567         cloog_state_free.
10568         (print_generated_program): Same.
10569         (gloog): Same.
10570         * graphite-clast-to-gimple.h (cloog_state): Declared.
10571         (scop_to_clast): Adjust declaration.
10572         * graphite.c (cloog_state): Defined here.
10573         (graphite_initialize): Call cloog_state_malloc.
10574         (graphite_finalize): Call cloog_state_free.
10576 2011-03-11  Jason Merrill  <jason@redhat.com>
10578         * attribs.c (lookup_attribute_spec): Take const_tree.
10579         * tree.h: Adjust.
10581 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10583         * config/sparc/sparc.c (sparc_option_override): Use
10584         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10586 2011-03-11  Richard Guenther  <rguenther@suse.de>
10588         PR tree-optimization/48067
10589         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10590         multiplication result will be only used once on the target
10591         stmt.
10593 2011-03-11  Richard Guenther  <rguenther@suse.de>
10595         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10597 2011-03-11  Richard Guenther  <rguenther@suse.de>
10599         PR lto/48073
10600         * tree.c (find_decls_types_r): Do not walk types only reachable
10601         from IDENTIFIER_NODEs.
10603 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10605         PR middle-end/48044
10606         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10607         all vnode->force_output nodes as needed.
10609 2011-03-11  Jason Merrill  <jason@redhat.com>
10611         PR c++/48069
10612         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10613         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10615 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10617         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10618         cgraph_node.
10620 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10622         PR tree-optimization/48063
10623         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10624         inline functions called once if !tree_can_inline_p (node->callers).
10626 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10628         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10629         extra_objs.
10630         * config/score/score3.c: Delete.
10631         * config/score/score3.h: Delete.
10632         * config/score/mul-div.S: Delete.
10633         * config/score/sfp-machine.h: Add new file.
10634         * config/score/constraints.md: Add new file.
10635         * config/score/t-score-softfp: Add new file.
10636         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10637         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10638         (score7_extra_constraint): Delete.
10639         (score7_option_override): Remove unused code.
10640         * config/score/score.c: Remove score3 and score5 define and code.
10641         * config/score/score.h: Remove score3 and score5 define and code.
10642         * config/score/score.md: Remove score3 template and unusual insn.
10643         * config/score/score.opt: Remove score3 and score5 options.
10645 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10647         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10648         when _HPUX_SOURCE is defined.
10649         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10651 2011-03-10  Jason Merrill  <jason@redhat.com>
10653         PR c++/48029
10654         * stor-layout.c (layout_type): Don't set structural equality
10655         on arrays of incomplete type.
10656         * tree.c (type_hash_eq): Handle comparing them properly.
10658 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10660         PR debug/48043
10661         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10662         result mode matches original rtl mode.
10664 2011-03-10  Nick Clifton  <nickc@redhat.com>
10666         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10667         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10669 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10671         PR rtl-optimization/47866
10672         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10673         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10674         if target wasn't scalar.
10675         * function.c (assign_stack_temp_for_type): Assert that neither
10676         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10677         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10678         macro.
10679         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10681 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10683         * config/s390/s390-protos.h (s390_label_align): New prototype.
10684         * config/s390/s390.c (s390_label_align): New function.
10685         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10687 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10689         PR target/47755
10690         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10691         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10692         (output_vec_const_move): Ditto.
10694 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10696         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10697         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10698         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10699         Change 'rclass' argument and result type to reg_class_t.
10700         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10702 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10704         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10705         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10706         (TARGET_MEMORY_MOVE_COST): Define.
10707         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10709 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10711         PR debug/47881
10712         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10713         removed anything.
10715         PR tree-optimization/48022
10716         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10717         for EQ/NE_EXPR.
10719 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10721         PR debug/47991
10722         * var-tracking.c (find_use_val): Return NULL for
10723         cui->sets && cui->store_p BLKmode MEMs.
10725 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10727         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10728         Remove.
10729         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10730         xstormy16_print_operand_address): Remove.
10731         * config/stormy16/stormy16.c (xstormy16_print_operand,
10732         xstormy16_print_operand_address): Make static.
10733         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10735 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10737         PR target/47862
10738         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10739         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10740         before definition.
10742 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10744         PR bootstrap/48000
10745         * cfgloopmanip.c (fix_bb_placements): Return immediately
10746         if FROM is BASE_LOOP's header.
10748 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10750         * gimplify.c (gimplify_function_tree): Fix building calls
10751         to __builtin_return_address.
10753 2011-03-07  Alan Modra  <amodra@gmail.com>
10755         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10756         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10757         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10758         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10759         return_mode args.
10760         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10761         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10762         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10763         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10764         * config/rs6000/rs6000.c
10765         (rs6000_elf_end_indicate_exec_stack): Rename to..
10766         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10767         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10768         (rs6000_file_start): ..here.
10769         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10770         file scope variables.
10771         (call_ABI_of_interest): New function.
10772         (init_cumulative_args): Set above vars when function return value
10773         is a float, vector, or small struct.
10774         (rs6000_function_arg_advance_1): Likewise for function args.
10775         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10776         references float args.
10778 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10780         * doc/cfg.texi: Remove "See" before @ref.
10781         * doc/invoke.texi: Likewise.
10783 2011-03-05  Jason Merrill  <jason@redhat.com>
10785         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10787 2011-03-05  Anthony Green  <green@moxielogic.com>
10789         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10791 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10793         PR rtl-optimization/47899
10794         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10795         to flow_loop_nested_p when moving the loop upward.
10797 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10799         PR target/47719
10800         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10802 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10804         PR tree-optimization/47967
10805         * ipa-cp.c (build_const_val): Return NULL instead of creating
10806         VIEW_CONVERT_EXPR for mismatching sizes.
10807         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10808         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10809         give up on versioning.
10811 2011-03-05  Alan Modra  <amodra@gmail.com>
10813         PR target/47986
10814         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10815         full cmodel medium/large lo_sum + high addresses.
10817 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10819         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10820         pool references in UNSPEC_LTREL_OFFSET.
10822 2011-03-04  Jan Hubicka  <jh@suse.cz>
10824         PR lto/47497
10825         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10826         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10827         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10828         Add node pointers.
10829         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10830         cgraph_add_thunk): Add node pointers.
10831         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10832         associated to right node.
10833         (input_node): Update use of cgraph_same_body_alias
10834         and cgraph_add_thunk.
10836 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10838         * config/i386/i386.opt (mprefer-avx128): New flag.
10839         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10840         modes when the flag -mprefer-avx128 is on.
10842 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10844         * dwarf2out.c (compare_loc_operands): Fix address handling.
10846 2011-03-04  Alan Modra  <amodra@gmail.com>
10848         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10850 2011-03-04  Richard Guenther  <rguenther@suse.de>
10852         PR middle-end/47968
10853         * expmed.c (extract_bit_field_1): Prefer vector modes that
10854         vec_extract patterns can handle.
10856 2011-03-04  Richard Guenther  <rguenther@suse.de>
10858         PR middle-end/47975
10859         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10861 2011-03-04  Richard Henderson  <rth@redhat.com>
10863         * explow.c (emit_stack_save): Remove 'after' parameter.
10864         (emit_stack_restore): Likewise.
10865         * expr.h: Update to match.
10866         * builtins.c, calls.c, stmt.c: Likewise.
10867         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10868         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10869         * function.c (expand_function_end): Insert the emit_stack_save
10870         sequence before parm_birth_insn instead of after.
10872 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10874         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10875         (ssse3_pmaddubsw128): Ditto.
10876         (ssse3_pmaddubsw): Ditto.
10878 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10880         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10882 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10884         PR c/47963
10885         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10886         on TYPE_SIZE_UNIT if it is a DECL.
10888         PR debug/47283
10889         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10890         first operand is not is_gimple_mem_ref_addr, try to fold it.
10891         If the operand still isn't is_gimple_mem_ref_addr, clear
10892         MEM_EXPR on op0.
10894 2011-03-03  Richard Guenther  <rguenther@suse.de>
10896         PR middle-end/47283
10897         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10898         match comment.
10899         (refs_may_alias_p_1): For release branches return true if
10900         we are confused by our input.
10902 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10904         * config/s390/s390.c (s390_function_value): Rename to ...
10905         (s390_function_and_libcall_value): ... this.
10906         (s390_function_value): New function.
10907         (s390_libcall_value): New function.
10908         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10909         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10910         target macro definitions.
10911         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10913 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10915         * config/i386/freebsd64.h (CC1_SPEC): Define.
10916         * config/i386/linux64.h (CC1_SPEC): Define.
10917         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10919 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10921         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10922         Remove.
10923         * config/stormy16/stormy16.c: Include reload.h.
10924         (xstormy16_memory_move_cost): New function.
10925         (TARGET_MEMORY_MOVE_COST): Define.
10927 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
10929         PR rtl-optimization/47925
10930         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10931         with side effects.  Remove the more-specific check for volatile asms.
10933 2011-03-02  Alan Modra  <amodra@gmail.com>
10935         PR target/47935
10936         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10937         toc relative addresses for valid offsets.
10939 2011-03-01  Richard Guenther  <rguenther@suse.de>
10941         PR tree-optimization/47890
10942         * tree-vect-loop.c (get_initial_def_for_induction): Set
10943         related stmt properly.
10945 2011-03-01  Richard Guenther  <rguenther@suse.de>
10947         PR lto/47924
10948         * lto-streamer.c (lto_record_common_node): Also register
10949         the canonical type.
10951 2011-03-01  Richard Guenther  <rguenther@suse.de>
10953         PR lto/46911
10954         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10955         Do not stream DECL_ABSTRACT_ORIGIN.
10956         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10957         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10958         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10959         Do not stream DECL_ABSTRACT_ORIGIN.
10960         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10961         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10963 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
10965         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10966         FUNCTION_VALUE_REGNO_P): Remove.
10967         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
10968         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10969         Add 'outgoing' argument.
10970         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10971         function.
10972         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10973         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10975 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
10977         PR debug/28047
10978         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10979         (lookup_filename): Likewise.
10980         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
10982 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
10983             Jakub Jelinek  <jakub@redhat.com>
10985         PR middle-end/47893
10986         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10987         (assign_stack_local_1): Change last argument type to int.
10988         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10989         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
10990         don't record padding space into frame_space_list nor use those areas.
10991         (assign_stack_local): Adjust caller.
10992         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10993         of assign_stack_local, pass 0 as last argument.
10994         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10995         callers.
10997 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
10999         PR debug/47283
11000         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11001         Use target address_mode and pointer_mode hooks instead of hardcoded
11002         Pmode and ptr_mode.  Handle some simple cases of extending if
11003         POINTERS_EXTEND_UNSIGNED < 0.
11004         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11005         Call convert_debug_memory_address.
11006         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11007         convert_debug_memory_address.
11009         PR middle-end/46790
11010         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11011         * configure: Regenerated.
11012         * config.in: Regenerated.
11013         * varasm.c (default_function_section): Return NULL
11014         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11016 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11018         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11019         the description to match the printed values.
11021 2011-02-28  Richard Guenther  <rguenther@suse.de>
11023         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11024         of the copied scope tree.
11026 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11028         * doc/extend.texi (Function Attributes): Avoid deeply (and
11029         wrongly) nested tables.
11031 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11033         PR middle-end/47903
11034         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11035         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11036         r isn't op0 nor op1.
11038 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11040         * config/avr/avr.md: Remove magic comment for emacs.
11042 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11044         PR target/45261
11045         * config/avr/avr.c (avr_option_override): Use error on bad options.
11046         (avr_help): New function.
11047         (TARGET_HELP): Define.
11049 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11051         PR target/42240
11052         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11053         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11055 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11057         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11058         (ARM Options): Ditto.
11059         (i386 and x86-64 Options): Ditto.
11060         (RX Options): Ditto.
11061         (SPARC Options): Ditto.
11063 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11065         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11066         FreeBSD 6 and later.  Generally use cpu generic.
11068 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11070         * doc/cpp.texi: Update copyright years.
11072 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11074         PR target/46898
11075         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11077 2011-02-25  Jon Beniston  <jon@beniston.com>
11079         PR target/46898
11080         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11081         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11082         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11083         (lm32_block_move_inline): Add type cast to remove warning.
11084         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11085         (gen_int_relational): Move declarations to start of function.
11087 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11089         PR tree-optimization/45470
11090         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11091         can throw internally only.
11092         * tree-vect-stmts.c (vectorizable_call): Likewise.
11094 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11096         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11097         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11098         * config/stormy16/stormy16-protos.h
11099         (xstormy16_preferred_reload_class): Remove.
11100         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11101         static. Change 'rclass' argument and return type to reg_class_t.
11102         (TARGET_PREFERRED_RELOAD_CLASS,
11103         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11105 2011-02-24  Richard Guenther  <rguenther@suse.de>
11107         * lto-streamer-in.c (input_bb): Do not find referenced vars
11108         in debug statements.
11110 2011-02-23  Jason Merrill  <jason@redhat.com>
11112         * common.opt (fabi-version): Document v5 and v6.
11114 2011-02-23  Richard Guenther  <rguenther@suse.de>
11116         PR tree-optimization/47849
11117         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11119 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11121         * opts-common.c (decode_cmdline_option): Print empty string
11122         argument as "" in decoded->orig_option_with_args_text.
11123         * gcc.c (execute): Print empty string argument as ""
11124         in the verbose output.
11125         (do_spec_1): Keep empty string argument.
11127 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11129         * config.gcc: Declare score-* and crx-* obsolete.
11131 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11133         PR rtl-optimization/47763
11134         * web.c (web_main): Ignore naked clobber when replacing register.
11136 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11138         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11139         Remove.
11141 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11143         PR doc/47848
11144         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11146 2011-02-22  Mike Stump  <mikestump@comcast.net>
11148         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11149         assembler.
11150         * configure: Regenerate.
11152 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11154         PR rtl-optimization/46002
11155         * ira-color.c (update_copy_costs): Change class intersection
11156         test to reg_class_contents[] test of 'hard_regno'.
11158 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11160         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11161         than Driver option.
11162         * config/hpux11.opt (mt): Likewise.
11163         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11164         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11165         * config/vax/elf.opt (mno-asm-pic): Likewise.
11166         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11168 2011-02-21  Mike Stump  <mikestump@comcast.net>
11170         PR target/47822
11171         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11172         tree so we can get save the type.
11173         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11174         for CFString instead of trying to use past the end of the builtins.
11175         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11176         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11177         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11178         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11179         Rename to darwin_builtin_cfstring.
11180         (darwin_init_cfstring_builtins): Return the built type.
11182 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11184         PR target/47840
11185         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11186         (_mm256_insert_epi64): Use _mm_insert_epi64.
11188 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11190         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11191         * config/stormy16/stormy16-protos.h
11192         (xstormy16_mode_dependent_address_p): Remove.
11193         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11194         Make static. Change return type to bool. Change argument type to
11195         const_rtx. Remove dead code.
11196         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11198 2011-02-21  Richard Guenther  <rguenther@suse.de>
11200         PR lto/47820
11201         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11202         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11203         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11204         TUs context.
11205         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11206         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11208 2011-02-20  Richard Guenther  <rguenther@suse.de>
11210         PR lto/47822
11211         * tree.c (free_lang_data_in_decl): Clean builtins from
11212         the TU decl BLOCK_VARS.
11214 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11216         PR debug/47620
11217         PR debug/47630
11218         * haifa-sched.c (fix_tick_ready): Skip tick computation
11219         for debug insns.
11221 2011-02-19  Richard Guenther  <rguenther@suse.de>
11223         PR lto/47647
11224         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11225         Remove lazy BLOCK_VARS streaming.
11226         (lto_input_ts_block_tree_pointers): Likewise.
11227         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11229 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11231         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11233 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11235         * config/i386/biarch32.h, config/i386/mach.h,
11236         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11238 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11240         PR target/47800
11241         * config/i386/i386.md (peephole2 for shift and plus): Use
11242         operands[1] original mode in the first insn.
11244 2011-02-18  Mike Stump  <mikestump@comcast.net>
11246         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11248 2011-02-18  Jan Hubicka  <jh@suse.cz>
11250         PR middle-end/47788
11251         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11252         to zero when the function is not inlinable at all.
11254 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11256         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11257         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11258         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11259         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11260         * config/pa/t-pa64: Likewise.
11261         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11263 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11265         PR driver/47787
11266         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11268 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11270         PR target/47792
11271         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11273 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11275         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11276         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11277         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11278         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11279         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11280         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11281         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11282         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11283         m32r_legitimate_address_p): New functions.
11284         * config/m32r/constraints.md (constraint "S"): Don't use
11285         STORE_PREINC_PREDEC_P.
11286         (constraint "U"): Don't use LOAD_POSTINC_P.
11288 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11290         PR rtl-optimization/46178
11291         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11292         compute ira_hard_regno_cover_class[].
11294 2011-02-18  Richard Guenther  <rguenther@suse.de>
11296         PR lto/47798
11297         * lto-streamer.h (lto_global_var_decls): Declare.
11298         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11299         statics for global var processing.
11301 2011-02-18  Richard Guenther  <rguenther@suse.de>
11303         PR tree-optimization/47737
11304         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11305         edge dominance check.
11307 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11309         PR debug/47780
11310         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11311         avoid invalid rtx sharing.
11313 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11315         * doc/cpp.texi (Obsolete Features): Add background on the
11316         origin of assertions.
11318 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11320         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11321         objc_abi == 2.
11322         * config/darwin.c (output_objc_section_asm_op): Added support for
11323         ABI v1 and v2.
11324         (is_objc_metadata): New.
11325         (darwin_objc2_section): New.
11326         (darwin_objc1_section): New.
11327         (machopic_select_section): Added support for ABI v1 and v2.
11328         (darwin_emit_objc_zeroed): New.
11329         (darwin_output_aligned_bss): Detect objc metadata and treat it
11330         appropriately.
11331         (darwin_asm_output_aligned_decl_common): Same.
11332         (darwin_asm_output_aligned_decl_local): Same.
11333         * config/darwin-sections.def: Updated for ABI v1 and v2.
11334         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11335         compiling Objective-C code for the NeXT runtime, default to using
11336         ABI version 0 for 32-bit, and version 2 for 64-bit.
11338 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11340         * common.opt (optimize_fast): New Variable.
11341         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11342         instead of local variable ofast.
11344 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11346         * doc/invoke.texi (fobjc-abi-version): Documented.
11347         (fobjc-nilcheck): Documented.
11348         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11349         version.
11351 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11353         PR driver/47390
11354         * common.opt (export-dynamic): New Driver option.
11355         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11357 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11359         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11361 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11362             Jan Hubicka  <jh@suse.cz>
11364         PR debug/47106
11365         PR debug/47402
11366         * cfgexpand.c (account_used_vars_for_block): Remove.
11367         (estimated_stack_frame_size): Use referenced vars.
11368         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11369         that were referenced in the original function.  Test src_fn
11370         rather than cfun.  Drop redundant get_var_ann.
11371         (setup_one_parameter): Drop redundant get_var_ann.
11372         (declare_return_variable): Likewise.
11373         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11374         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11375         * ipa-inline.c (compute_inline_parameters): Do not compute
11376         disregard_inline_limits here.
11377         (compute_inlinable_for_current, pass_inlinable): New.
11378         (pass_inline_parameters): Require PROP_referenced_vars.
11379         * cgraphunit.c (cgraph_process_new_functions): Don't run
11380         compute_inline_parameters explicitly unless function is in SSA form.
11381         (cgraph_analyze_function): Set .disregard_inline_limits.
11382         * tree-sra.c (convert_callers): Compute inliner parameters
11383         only for functions already in SSA form.
11385 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11387         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11388         -mlittle-endian-data.
11390 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11392         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11393         -mno-fpu, not -fpu and -no-fpu.
11394         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11395         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11397 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11399         PR target/43653
11400         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11401         input reload with PLUS RTX.
11403 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11405         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11406         of InverseVar(MDMX).
11408 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11410         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11411         --m4-340.
11413 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11415         * config/mn10300/mn10300.opt (mno-crt0): New.
11417 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11419         * config/m68k/uclinux.opt (static-libc): New Driver option.
11421 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11423         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11425 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11427         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11428         %{muser-extend-enabled}.
11430 2011-02-16  Richard Guenther  <rguenther@suse.de>
11432         PR tree-optimization/47738
11433         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11434         the TODO from tree_predictive_commoning.
11436 2011-02-15  Jeff Law  <law@redhat.com>
11438         Revert
11439         2011-01-25  Jeff Law  <law@redhat.com>
11441         PR rtl-optimization/37273
11442         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11443         handle them like argument loads from stack slots.  Do not double
11444         count memory for memory constants and argument loads from stack slots.
11446 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11448         PR middle-end/47725
11449         * combine.c (cant_combine_insn_p): Revert the last change.
11451 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11453         PR target/47755
11454         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11455         mode for vector constants.  Remove code that checks for TImode.
11457 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11459         PR debug/47106
11460         PR debug/47402
11461         * cgraph.h (compute_inline_parameters): Return void.
11462         * ipa-inline.c (compute_inline_parameters): Adjust.
11464 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11466         PR debug/47106
11467         PR debug/47402
11468         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11469         rather than decl.
11470         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11471         * ipa-inline.c (compute_inline_parameters): Adjust.
11473 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11475         PR debug/47106
11476         PR debug/47402
11477         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11478         Adjust all users.  Pass FN to...
11479         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11480         fn argument.
11481         * ipa-struct-reorg.c: Adjust.
11482         * tree-dfa.c: Adjust.
11483         * tree-into-ssa.c: Adjust.
11484         * tree-sra.c: Adjust.
11485         * tree-ssa-alias.c: Adjust.
11486         * tree-ssa-live.c: Adjust.
11487         * tree-ssa.c: Adjust.
11488         * tree-ssanames.c: Adjust.
11489         * tree-tailcall.c: Adjust.
11491 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11493         PR debug/47106
11494         PR debug/47402
11495         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11496         Adjust all callers.
11497         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11498         * tree-flow-inline.h: Adjust.
11499         * gimple-pretty-print.c: Adjust.
11500         * tree-into-ssa.c: Adjust.
11501         * tree-ssa.c: Adjust.
11502         * cfgexpand.c: Adjust.
11504 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11506         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11507         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11508         (EXTRA_CONSTRAINT): Delete.
11509         * config/iq2000/constraints.md: New file.
11510         * config/iq2000/iq2000.md: Include it.
11511         (define_insn ""): Delete.
11512         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11513         unsupported constraint letters from patterns.
11514         (call_value, call_value_internal1): Likewise.
11515         (call_value_multiple_internal1): Likewise.
11517 2011-02-15  Nick Clifton  <nickc@redhat.com>
11519         * config/mn10300/mn10300.c: Include tm-constrs.h.
11520         (struct liw_data): New data structure describing an LIW candidate
11521         instruction.
11522         (extract_bundle): Use struct liw_data.  Allow small integer
11523         operands for some instructions.
11524         (check_liw_constraints): Use struct liw_data.  Remove swapped
11525         parameter.  Add comments describing the checks.  Fix bug when
11526         assigning the source of liw1 to the source of liw2.
11527         (liw_candidate): Delete.  Code moved into extract_bundle.
11528         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11529         before swapping.
11530         * config/mn10300/predicates.md (liw_operand): New predicate.
11531         Allows registers and small integer constants.
11532         * config/mn10300/constraints.md (O): New constraint.  Accetps
11533         integers in the range -8 to +7 inclusive.
11534         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11535         for moving a small integer into a register.  Give this alternative
11536         LIW attributes.
11537         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11538         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11539         using the J,K,L and M constraints,
11540         (liw): Remove SI mode on second operands to allow for HI and QI
11541         mode values.
11542         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11543         instruction.
11545 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11547         PR middle-end/47725
11548         * combine.c (cant_combine_insn_p): Check zero/sign extended
11549         hard registers.
11551 2011-02-15  Richard Guenther  <rguenther@suse.de>
11553         PR tree-optimization/47743
11554         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11555         for a non-type-compatible VN lookup bail out.
11557 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11559         * config/fr30/constraints.md: New file.
11560         * config/fr30/fr30.md: Include it.
11561         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11562         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11563         (EXTRA_CONSTRAINT): Delete.
11565 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11567         * config/frv/constraints.md: New file.
11568         * config/frv/predicates.md: Include it.
11569         * config/frv/frv.c (reg_class_from_letter): Delete.
11570         (frv_option_override): Don't initialize it.
11571         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11572         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11573         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11574         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11575         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11576         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11577         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11578         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11579         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11580         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11581         (REG_CLASS_FROM_CONSTRAINT): Delete.
11583 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11585         PR middle-end/47581
11586         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11587         if frame size is 0 in a leaf function.
11589 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11591         PR pch/14940
11592         * config/alpha/host-osf.c: New file.
11593         * config/alpha/x-osf: New file.
11594         * config.host (alpha*-dec-osf*): Use it.
11596 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11598         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11599         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11600         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11601         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11602         type to const_rtx.
11603         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11605 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11607         * config/stormy16/constraints.md: New file.
11608         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11609         Use satisfies_constraint_Q and satisfies_constraint_R.
11610         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11611         Delete.
11612         (xstormy16_legitiamte_address_p): Declare.
11613         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11614         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11615         (EXTRA_CONSTRAINT): Delete.
11616         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11617         Un-staticize.
11618         (xstormy16_extra_constraint_p): Delete.
11620 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11622         PR tree-optimization/46494
11623         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11624         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11625         (pass_rtl_loop_done): Add TODO_verify_flow.
11626         * fwprop.c (pass_rtl_fwprop): Likewise.
11627         * modulo-sched.c (pass_sms): Likewise.
11628         * tree-ssa-dom.c (pass_dominator): Likewise.
11629         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11630         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11631         (pass_tree_loop_done): Likewise.
11632         * tree-ssa-pre.c (execute_pre): Likewise.
11633         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11634         * tree-ssa-sink.c (pass_sink_code): Likewise.
11635         * tree-vrp.c (pass_vrp): Likewise.
11637 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11639         * config/v850/constraints.md: New file.
11640         * config/v850/v850.md: Include it.
11641         * config/v850/predicates.md (reg_or_0_operand): Use
11642         satisfies_constraint_G.
11643         (special_symbolref_operand): Use satisfies_constraint_K.
11644         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11645         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11646         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11647         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11648         (EXTRA_CONSTRAINT): Delete.
11649         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11650         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11651         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11653 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11655         PR target/47696
11656         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11657         description.
11659 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11661         * config/mcore/constraints.md: New file.
11662         * config/mcore/mcore.md: Include it.
11663         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11664         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11665         (REG_CLASS_FROM_LETTER): Delete.
11666         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11667         insn_const_int_ok_for_constraint.
11668         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11669         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11670         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11671         (EXTRA_CONSTRAINT): Delete.
11673 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11675         PR ada/41929
11676         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11677         (IS_SIGHANDLER): Define.
11678         (sparc64_is_sighandler): New function, split off from
11679         sparc64_fallback_frame_state.
11680         (sparc_is_sighandler): New function, split off from
11681         sparc_fallback_frame_state.
11682         (sparc64_fallback_frame_state): Merge with ...
11683         (sparc_fallback_frame_state): ... this into ...
11684         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11685         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11686         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11687         stack instead of hardcoded offsets.
11689 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11691         PR target/45808
11692         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11694 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11696         * configure: Regenerate.
11698 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11700         PR driver/45731
11701         * gcc.c (asm_options): Correct spec matching --target-help.
11703 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11705         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11706         to gimple call error.
11708 2011-02-12  Mike Stump  <mikestump@comcast.net>
11710         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11711         comments in backslash regions.
11713 2011-02-12  Mike Stump  <mikestump@comcast.net>
11714             Jakub Jelinek  <jakub@redhat.com>
11715             Iain Sandoe  <iains@gcc.gnu.org>
11717         PR target/47324
11718         * dwarf2out.c (output_cfa_loc): When required, apply the
11719         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11720         (output_loc_sequence): Likewise.
11721         (output_loc_operands_raw): Likewise.
11722         (output_loc_sequence_raw): Likewise.
11723         (output_cfa_loc): Likewise.
11724         (output_loc_list): Suppress register number adjustment when
11725         calling output_loc_sequence()
11726         (output_die): Likewise.
11728 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11730         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11731         Remove macros.
11732         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11733         xtensa_memory_move_cost): New functions.
11734         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11736 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11738         PR lto/47225
11739         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11740         in the current directory.
11741         * configure: Rebuilt.
11743 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11745         * config/darwin.c (darwin_override_options): Add a hunk missed
11746         from the commit of r168571.  Trim comment line lengths and
11747         correct indents of the preceding block.
11749 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11751         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11752         the switch.
11754 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11756         * common.opt (nostartfiles): New Driver option.
11758 2011-02-11  Xinliang David Li  <davidxl@google.com>
11760         PR tree-optimization/47707
11761         * tree-chrec.c (convert_affine_scev): Keep type precision.
11763 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11765         PR tree-optimization/47420
11766         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11768 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11770         PR rtl-optimization/47614
11771         * rtl.h (check_for_inc_dec): Declare.
11772         * dse.c (check_for_inc_dec): Externalize...
11773         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11774         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11776 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11778         PR driver/47678
11779         * gcc.c (main): Do not compile inputs if there were errors in
11780         option handling.
11781         * opts-common.c (read_cmdline_option): Check for wrong language
11782         after other error checks.
11784 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11786         * cgraph.c: Fix comment typos.
11787         * cgraph.h: Likewise.
11788         * cgraphunit.c: Likewise.
11789         * ipa-cp.c: Likewise.
11790         * ipa-inline.c: Likewise.
11791         * ipa-prop.c: Likewise.
11792         * ipa-pure-const.c: Likewise.
11793         * ipa-ref.c: Likewise.
11794         * ipa-reference.c: Likewise.
11796 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11798         PR debug/47684
11799         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11801 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11803         PR testsuite/47400
11804         * doc/sourcebuild.texi (Require Support): Document
11805         dg-require-ascii-locale.
11807 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11809         * doc/lto.texi (Write summary): Fix missing parentheses.
11811 2011-02-10  DJ Delorie  <dj@redhat.com>
11813         * config/m32c/m32c.c (m32c_option_override): Disable
11814         -fcombine-stack-adjustments until flag value tracking and compare
11815         optimization can be rewritten.
11817 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11819         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11820         PROCESSOR_POWER7.
11821         (PROCESSOR_DEFAULT64): Likewise.
11823 2011-02-10  Richard Henderson  <rth@redhat.com>
11825         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11826         change from 2011-02-03.
11827         * config/rx/rx.c (flags_from_code): Likewise.
11828         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11829         is valid, n/pz otherwise.
11830         (rx_select_cc_mode): Return CCmode if Y is not zero.
11832 2011-02-10  Richard Guenther  <rguenther@suse.de>
11834         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11836 2011-02-10  Richard Guenther  <rguenther@suse.de>
11838         PR tree-optimization/47677
11839         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11841 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11843         PR target/47665
11844         * combine.c (make_compound_operation): Only change shifts into
11845         multiplication for SCALAR_INT_MODE_P.
11847 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11849         PR testsuite/47622
11850         Revert
11851         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11852         PR debug/42631
11853         * web.c (entry_register): Don't clobber the number of the
11854         first uninitialized reference in used[].
11856 2011-02-09  Richard Guenther  <rguenther@suse.de>
11858         PR tree-optimization/47664
11859         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11860         all edges again.
11862 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11864         PR target/46481
11865         PR target/47032
11866         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11867         PROCESSOR_POWER7.
11868         (PROCESSOR_DEFAULT64): Same.
11869         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11871 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11873         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11875 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11877         PR middle-end/45505
11878         * tree-sra.c (struct access): New flags grp_scalar_read and
11879         grp_scalar_write.  Changed description of assignment read and write
11880         flags.
11881         (dump_access): Dump new flags, reorder all of them.
11882         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11883         to detect multiple scalar reads.
11884         (analyze_access_subtree): Use the new scalar read write flags instead
11885         of the old flags.  Adjusted comments.
11887 2011-02-08  DJ Delorie  <dj@redhat.com>
11889         PR target/47548
11890         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11891         patterns.
11893 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11895         * config/m68k/uclinux.opt: New.
11896         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11898 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11900         * config/cris/elf.opt (sim): New Driver option.
11902 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11904         * config/xtensa/elf.opt: New.
11905         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11907 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11909         * config/vax/elf.opt: New.
11910         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11912 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11914         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11916 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11918         * config/gnu-user.opt: New.
11919         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11920         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11921         *-*-uclinux*): Use gnu-user.opt.
11923 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
11925         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11926         * config/i386/gnu.h (CPP_SPEC): Likewise.
11928 2011-02-08  Ian Lance Taylor  <iant@google.com>
11930         * common.opt (fcx-limited-range): Add SetByCombined flag.
11931         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11932         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11933         (fassociative-math, freciprocal-math): Likewise.
11934         (funsafe-math-optimizations): Likewise.
11935         * opth-gen.awk: Handle SetByCombined.
11936         * optc-gen.awk: Likewise.
11937         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
11938         (set_unsafe_math_optimizations_flags): Likewise.
11939         * doc/options.texi (Option properties): Document SetByCombined.
11941 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11943         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11944         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11945         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11946         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11947         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11949 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
11951         PR tree-optimization/46834
11952         PR tree-optimization/46994
11953         PR tree-optimization/46995
11954         * graphite-sese-to-poly.c (used_outside_reduction): New.
11955         (detect_commutative_reduction): Call used_outside_reduction.
11956         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11957         translate_scalar_reduction_to_array only when at least one
11958         loop-phi/close-phi tuple has been detected.
11960 2011-02-08  Richard Guenther  <rguenther@suse.de>
11962         PR middle-end/47639
11963         * tree-vect-generic.c (expand_vector_operations_1): Update
11964         stmts here ...
11965         (expand_vector_operations): ... not here.  Cleanup EH info
11966         and the CFG if required.
11968 2011-02-08  Richard Guenther  <rguenther@suse.de>
11970         PR tree-optimization/47641
11971         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11972         require type compatibility.
11974 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11976         * gimple-low.c (lower_function_body): Don't remove the location of
11977         the return statement here.
11978         (lower_gimple_return): Do it here instead but only if the return
11979         statement is actually used twice.
11981 2011-02-08  Richard Guenther  <rguenther@suse.de>
11983         PR tree-optimization/47632
11984         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11985         unused up_to_stmt parameter, return whether cfg-cleanup is
11986         necessary, remove EH info properly.
11987         (forward_propagate_into_gimple_cond): Adjust caller.
11988         (forward_propagate_into_cond): Likewise.
11989         (forward_propagate_comparison): Likewise.
11990         (tree_ssa_forward_propagate_single_use_vars): Make
11991         forward_propagate_comparison case similar to the two others.
11993 2011-02-08  Nick Clifton  <nickc@redhat.com>
11995         * config/mn10300/mn10300.opt (mliw): New command line option.
11996         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11997         (liw_bundling): New automaton.
11998         (liw): New attribute.
11999         (liw_op): New attribute.
12000         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12001         (movsi_internal): Add LIW attributes.
12002         (andsi3): Likewise.
12003         (iorsi3): Likewise.
12004         (xorsi3): Likewise.
12005         (addsi3): Separate register and immediate alternatives.
12006         Add LIW attributes.
12007         (subsi3): Likewise.
12008         (cmpsi): Likewise.
12009         (aslsi3): Likewise.
12010         (lshrsi3): Likewise.
12011         (ashrsi3): Likewise.
12012         (liw): New pattern.
12013         * config/mn10300/mn10300.c (liw_op_names): New
12014         (mn10300_print_operand): Handle 'W' operand descriptor.
12015         (extract_bundle): New function.
12016         (check_liw_constraints): New function.
12017         (liw_candidate): New function.
12018         (mn10300_bundle_liw): New function.
12019         (mn10300_reorg): New function.
12020         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12021         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12022         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12023         __LIW__ or __NO_LIW__.
12024         * doc/invoke.texi: Describe the -mliw command line option.
12026 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12028         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12029         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12030         pthread_mutex_unlock): Remove.
12031         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12032         * config/pa/t-pa64: Likewise.
12033         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12034         shared libc if not linking against libpthread.
12035         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12037 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12039         PR target/47558
12040         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12041         on 10.6 and later to ensure that we always use the unwinder from
12042         the system.  Only add -no_compact_unwind when tarteting darwin
12043         10.6 or later.
12045 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12047         PR target/46997
12048         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12049         (vec_interleave_lowv2sf): Ditto.
12050         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12051         (vec_extract_oddv2sf): Ditto.
12053 2011-02-07  Mike Stump  <mikestump@comcast.net>
12055         PR target/42333
12056         Add __ieee_divdc3 entry point.
12057         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12058         entry point.
12059         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12060         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12061         * config/darwin.c (darwin_rename_builtins): Add.
12062         * config/darwin-protos.h (darwin_rename_builtins): Add.
12064 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12066         PR target/47636
12067         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12068         for the condition.
12070 2011-02-07  Mike Stump  <mikestump@comcast.net>
12072         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12074 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12076         PR target/47534
12077         * config/avr/libgcc.S (exit): Move .endfunc
12079 2011-02-07  Richard Guenther  <rguenther@suse.de>
12081         PR tree-optimization/47615
12082         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12083         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12084         (run_scc_vn): Initialize it.
12085         (visit_reference_op_load): Use it.
12086         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12088 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12090         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12091         DImode trapping arithmetic libfuncs.
12093 2011-02-07  Richard Guenther  <rguenther@suse.de>
12095         PR tree-optimization/47621
12096         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12097         two duplicates ...
12098         (execute_update_addresses_taken): ... here.  Make it more
12099         conservative in what we accept.
12101 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12103         * config/sparc/freebsd.h (ASM_SPEC): Define.
12104         * config/sparc/vxworks.h (ASM_SPEC): Define.
12106 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12108         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12110 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12112         * doc/invoke.texi: Remove reference to compiler internals from
12113         user documentation.
12115         * reg-notes.def: Remove REG_VALUE_PROFILE.
12116         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12118 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12120         PR middle-end/47610
12121         * varasm.c (default_section_type_flags): If decl is NULL,
12122         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12124 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12126         PR debug/42631
12127         * web.c (entry_register): Don't clobber the number of the
12128         first uninitialized reference in used[].
12130 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12132         PR tree-optimization/46194
12133         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12134         (build_classic_dist_vector_1): Do not represent classic distance
12135         vectors when the access functions are variating in different loops.
12137 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12139         * config/mips/iris6.opt: New.
12140         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12142 2011-02-04  Richard Henderson  <rth@redhat.com>
12143             Steve Ellcey  <sje@cup.hp.com>
12145         PR target/46997
12146         * config/ia64/predicates.md (mux1_brcst_element): New.
12147         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12148         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12149         (ia64_unpack_sign): New.
12150         (ia64_expand_unpack): Rewrite using new routines.
12151         (ia64_expand_widen_sum): Ditto.
12152         (ia64_expand_dot_prod_v8qi): Ditto.
12153         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12154         routines, add endian check.
12155         (pmpy2_even): Rename from pmpy2_r, add endian check.
12156         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12157         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12158         (vec_widen_smult_hi_v4hi): Ditto.
12159         (vec_widen_umult_lo_v4hi): Ditto.
12160         (vec_widen_umult_hi_v4hi): Ditto.
12161         (mulv2si3): Change endian checks.
12162         (sdot_prodv4hi): Rewrite with new calls.
12163         (udot_prodv4hi): New.
12164         (vec_pack_ssat_v4hi): Add endian check.
12165         (vec_pack_usat_v4hi): Ditto.
12166         (vec_pack_ssat_v2si): Ditto.
12167         (max1_even): Rename from max1_r, add endian check.
12168         (max1_odd): Rename from max1_l, add endian check.
12169         (*mux1_rev): Format change.
12170         (*mux1_mix): Ditto.
12171         (*mux1_shuf): Ditto.
12172         (*mux1_alt): Ditto.
12173         (*mux1_brcst_v8qi): Use new predicate.
12174         (vec_extract_evenv8qi): Remove endian check.
12175         (vec_extract_oddv8qi): Ditto.
12176         (vec_interleave_lowv4hi): Format change.
12177         (vec_interleave_highv4hi): Ditto.
12178         (mix2_even): Rename from mix2_r, add endian check.
12179         (mix2_odd): Rename from mux2_l, add endian check.
12180         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12181         (vec_extract_evenodd_helper): Format change.
12182         (vec_extract_evenv4hi): Remove endian check.
12183         (vec_extract_oddv4hi): Remove endian check.
12184         (vec_interleave_lowv2si): Format change.
12185         (vec_interleave_highv2si): Format change.
12186         (vec_initv2si): Remove endian check.
12187         (vecinit_v2si): Add endian check.
12188         (reduc_splus_v2sf): Add endian check.
12189         (reduc_smax_v2sf): Ditto.
12190         (reduc_smin_v2sf): Ditto.
12191         (vec_initv2sf): Remove endian check.
12192         (fpack): Add endian check.
12193         (fswap): Add endian check.
12194         (vec_interleave_highv2sf): Add endian check.
12195         (vec_interleave_lowv2sf): Add endian check.
12196         (fmix_lr): Add endian check.
12197         (vec_setv2sf): Format change.
12198         (*vec_extractv2sf_0_be): Use shift to extract operand.
12199         (*vec_extractv2sf_1_be): New.
12200         (vec_pack_trunc_v4hi): Add endian check.
12201         (vec_pack_trunc_v2si): Format change.
12203 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12205         PR inline-asm/23200
12206         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12207         do bb, locus and block comparison and disallow loads if it is not set.
12208         (stmt_is_replaceable_p): New function.
12209         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12210         callers.
12211         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12212         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12213         SSA_NAME_DEF_STMT.
12214         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12216 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12218         * config/rs6000/xilinx.opt: New.
12219         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12221 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12223         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12225 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12227         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12228         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12229         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12230         secondary_reload_info, xtensa_secondary_reload): Remove.
12231         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12232         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12233         (xtensa_preferred_reload_class): Make static. Change return and
12234         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12235         Use CONST_DOUBLE_P predicate.
12236         (xtensa_preferred_output_reload_class): New function.
12237         (xtensa_secondary_reload): Make static.
12239 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12241         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12242         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12243         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12245 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12247         PR middle-end/31490
12248         * output.h (SECTION_RELRO): Define.
12249         (SECTION_MACH_DEP): Adjust.
12250         (get_variable_section): New prototype.
12251         * varpool.c (varpool_finalize_named_section_flags): New function.
12252         (varpool_assemble_pending_decls): Call it.
12253         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12254         * cgraphunit.c (cgraph_output_in_order): Call
12255         varpool_finalize_named_section_flags.
12256         * varasm.c (get_section): Allow section flags conflicts between
12257         relro and read-only sections if the section hasn't been declared yet.
12258         Set SECTION_OVERRIDE after diagnosing section type conflict.
12259         (get_variable_section): No longer static.
12260         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12261         readonly sections that need relocations.
12262         (decl_readonly_section_1): New function.
12263         (decl_readonly_section): Use it.
12265         Revert:
12266         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12267                     Steve Ellcey  <sje@cup.hp.com>
12269         PR middle-end/31490
12270         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12271         if section attribute used.
12273 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12275         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12276         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12277         (darwin_init_sections): Remove assertion.
12279 2011-02-03  Nick Clifton  <nickc@redhat.com>
12281         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12282         lt and ge.
12283         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12284         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12285         instead of "n" and "pz".
12286         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12287         CC_FLAG_S.
12289 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12291         PR target/47312
12292         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12293         fma, expand FMA_EXPR as fma{,f,l} call.
12295         PR lto/47274
12296         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12297         copy them into a unsigned char variable and pass address of it to
12298         lto_output_data_stream.
12300         PR target/47564
12301         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12302         around backend_init_target and lang_dependent_init_target calls.
12303         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12304         (verify_cgraph_node): Don't call set_cfun here.  Use
12305         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12306         Set error_found for incorrectly represented calls to thunks.
12308 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12310         PR debug/43092
12311         PR rtl-optimization/43494
12312         * rtl.h (for_each_inc_dec_fn): New type.
12313         (for_each_inc_dec): Declare.
12314         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12315         (for_each_inc_dec_find_inc_dec): New fn.
12316         (for_each_inc_dec_find_mem): New fn.
12317         (for_each_inc_dec): New fn.
12318         * dse.c (struct insn_size): Remove.
12319         (replace_inc_dec, replace_inc_dec_mem): Remove.
12320         (emit_inc_dec_insn_before): New fn.
12321         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12322         (canon_address): Pass mem modes to cselib_lookup.
12323         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12324         (cselib_lookup_from_insn): Likewise.
12325         (cselib_subst_to_values): Likewise.
12326         * cselib.c (find_slot_memmode): New var.
12327         (cselib_find_slot): New fn.  Use it instead of
12328         htab_find_slot_with_hash everywhere.
12329         (entry_and_rtx_equal_p): Use find_slot_memmode.
12330         (autoinc_split): New fn.
12331         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12332         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12333         Deal with autoinc.  Special-case recursion into MEMs.
12334         (cselib_hash_rtx): Likewise.
12335         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12336         address and MEM modes.
12337         (cselib_subst_to_values): Add memmode, pass it on.
12338         Deal with autoinc.
12339         (cselib_lookup): Add memmode argument, pass it on.
12340         (cselib_lookup_from_insn): Add memmode.
12341         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12342         (struct cselib_record_autoinc_data): New.
12343         (cselib_record_autoinc_cb): New fn.
12344         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12345         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12346         (cselib_process_insn): ... here.
12347         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12348         to cselib_lookup.
12349         (add_uses): Likewise, also to cselib_subst_to_values.
12350         (add_stores): Likewise.
12351         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12352         cselib_subst_to_values.
12353         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12354         * gcse.c (do_local_cprop): Adjusted.
12355         * postreload.c (reload_cse_simplify_set): Adjusted.
12356         (reload_cse_simplify_operands): Adjusted.
12357         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12359 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12361         PR tree-optimization/45122
12362         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12363         unsafe assumptions when there's more than one loop exit.
12365 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12367         PR target/47272
12368         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12369         Document using vector double with the load/store builtins, and
12370         that the load/store builtins always use Altivec instructions.
12372         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12373         to use altivec memory instructions, even on VSX.
12374         (vector_altivec_store_<mode>): Ditto.
12376         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12377         function.
12379         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12380         V2DF, V2DI support to load/store overloaded builtins.
12382         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12383         altivec load/store builtins for V2DF/V2DI types.
12385         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12386         set avoid indexed addresses on power6 if -maltivec.
12387         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12388         vector_altivec_load/vector_altivec_store builtins.
12389         (altivec_expand_st_builtin): Ditto.
12390         (altivec_expand_builtin): Add VSX memory builtins.
12391         (rs6000_init_builtins): Add V2DI types to internal types.
12392         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12393         load/store builtins.
12394         (rs6000_address_for_altivec): Insure memory address is appropriate
12395         for Altivec.
12397         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12398         vec_vsx_ld and vec_vsx_st.
12399         (vsx_store_<mode>): Ditto.
12401         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12402         variables to hold long long types for VSX vector memory builtins.
12403         (RS6000_BTI_unsigned_long_long): Ditto.
12404         (long_long_integer_type_internal_node): Ditti.
12405         (long_long_unsigned_type_internal_node): Ditti.
12407         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12408         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12409         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12411         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12412         short cuts.
12413         (vec_vsx_st): Ditto.
12415 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12417         * config/pa/pa-hpux10.opt: New.
12418         * config/hpux11.opt (pthread): New Driver option.
12419         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12420         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12422 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12424         * config/ia64/vms.opt: New.
12425         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12427 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12429         PR target/47580
12430         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12431         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12432         generator functions.
12433         (vsx_floatuns<VSi><mode>2): Ditto.
12434         (vsx_fix_trunc<mode><VSi>2): Ditto.
12435         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12437 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12439         * config/i386/djgpp.opt (posix): New Driver option.
12441 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12443         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12444         Move to the unsupported targets list.
12446 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12448         PR rtl-optimization/47525
12449         * df-scan.c: Update copyright years.
12450         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12451         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12453 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12455         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12456         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12457         (ASM_OUTPUT_ASCII): Remove.
12458         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12460 2011-02-02  Jeff Law  <law@redhat.com>
12462         PR middle-end/47543
12463         * reload.c (find_reloads_address): Handle reg+d address where both
12464         components are invalid by reloading the entire address.
12466 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12467             Richard Guenther  <rguenther@suse.de>
12469         PR tree-optimization/40979
12470         PR bootstrap/47044
12471         * passes.c (init_optimization_passes): After LIM call copy_prop
12472         and DCE to clean up.
12473         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12475 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12477         PR tree-optimization/47576
12478         PR tree-optimization/47555
12479         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12480         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12481         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12482         * tree-scalar-evolution.c (follow_ssa_edge): Use
12483         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12485 2011-02-02  Richard Guenther  <rguenther@suse.de>
12487         PR tree-optimization/47566
12488         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12490 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12492         PR debug/47106
12493         PR debug/47402
12494         * tree-inline.c (declare_return_variable): Remove unused caller
12495         variable.
12497         PR debug/47106
12498         PR debug/47402
12499         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12500         * cfgexpand.c (account_used_vars_for_block): Use them.
12501         * tree-nrv.c (tree_nrv): Likewise.
12502         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12503         (dump_scope_block): Likewise.
12504         (remove_unused_locals): Likewise.
12506         PR debug/47106
12507         PR debug/47402
12508         * tree-inline.c (declare_return_variable): Add result decl to
12509         local decls only once.
12510         * gimple-low.c (record_vars_into): Mark newly-created variables
12511         as referenced.
12513 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12515         PR debug/47498
12516         PR debug/47501
12517         PR debug/45136
12518         PR debug/45130
12519         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12520         debug insns.
12521         (no_real_insns_p, schedule_block, set_priorities): Drop special
12522         treatment of boundary debug insns.
12523         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12524         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12525         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12526         (BOUNDARY_DEBUG_INSN_P): Likewise.
12527         (SCHEDULE_DEBUG_INSN_P): Likewise.
12528         * sched-rgn.c (init_ready_list): Drop special treatment of
12529         boundary debug insns.
12530         * final.c (rest_of_clean_state): Clear notes' BB.
12532 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12534         * config/openbsd.opt (assert=): New Driver option.
12536 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12538         * config/i386/nto.opt: New.
12539         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12541 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12543         * config/i386/netware.opt: New.
12544         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12546 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12548         * config/interix.opt (posix): New Driver option.
12550 2011-02-01  DJ Delorie  <dj@redhat.com>
12552         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12554         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12555         class for A0/A1.
12557 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12559         PR tree-optimization/47561
12560         * toplev.c (process_options): Print the Graphite flags.  Add
12561         flag_loop_flatten to the list of options requiring Graphite.
12563 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12565         * config/i386/cygming.opt (posix): New Driver option.
12567 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12569         * config/arm/vxworks.opt: New.
12570         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12572 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12574         * config/alpha/elf.opt: New.
12575         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12576         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12578 2011-02-01  Richard Guenther  <rguenther@suse.de>
12580         PR tree-optimization/47559
12581         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12582         store-motion on references that can throw.
12584 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12586         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12587         * tree-pass.h (TDF_CSELIB): New macro.
12588         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12589         cselib_lookup): Check for it rather than for TDF_DETAILS.
12591 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12593         PR driver/47547
12594         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12595         is HOST_BIT_BUCKET.
12597         * opts.c (finish_options): Don't add x_aux_base_name if it is
12598         HOST_BIT_BUCKET.
12600 2011-02-01  Richard Guenther  <rguenther@suse.de>
12602         PR tree-optimization/47555
12603         Revert
12604         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12606         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12608 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12610         PR gcc/46692
12611         * config/lm32/t-lm32: Add multilib for all CPU options.
12613 2011-02-01  Richard Guenther  <rguenther@suse.de>
12615         PR tree-optimization/47541
12616         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12617         sure to have a field at offset zero.
12619 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12621         * config/arc/arc.opt (EB, EL): New Driver options.
12623 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12625         * config/alpha/osf5.opt: New.
12626         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12628 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12630         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12632 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12634         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12635         -floop-interchange.
12636         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12637         is an alias of -floop-interchange and that it requires the
12638         Graphite infrastructure.
12639         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12640         flag_loop_interchange based on the value of flag_tree_loop_linear.
12642 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12643             Richard Guenther  <rguenther@suse.de>
12645         PR tree-optimization/47538
12646         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12647         type instead of r1type, except for comparisons.  For right
12648         shifts and comparisons punt if there are mismatches in
12649         sizetype vs. non-sizetype types.
12651 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12653         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12654         avx_runtime.
12656 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12658         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12659         version number.
12660         * configure: Regenerate.
12662 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12664         * configure.ac (gcc_cv_ld_static_option): Define.
12665         (gcc_cv_ld_dynamic_option): Define.
12666         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12667         instead.
12668         (HAVE_LD_STATIC_DYNAMIC): Update message.
12669         (LD_STATIC_OPTION): Define.
12670         (LD_DYNAMIC_OPTION): Define.
12671         * configure: Regenerate.
12672         * config.in: Regenerate.
12673         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12674         HAVE_LD_STATIC_DYNAMIC]: Use them.
12676 2011-01-31  Nick Clifton  <nickc@redhat.com>
12678         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12679         registers inside interrupt handlers if the handler is not a leaf
12680         function.
12682 2011-01-31  Nick Clifton  <nickc@redhat.com>
12684         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12685         reg_renumber returning an INVALID_REGNUM.
12687 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12689         PR libgcj/44341
12690         * doc/install.texi: Document host options discarded when cross
12691         configuring target libraries.
12693 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12695         Reverted:
12696         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12697         PR debug/45136
12698         PR debug/45130
12699         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12700         debug insns.
12701         (no_real_insns_p, schedule_block, set_priorities): Drop special
12702         treatment of boundary debug insns.
12703         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12704         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12705         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12706         (BOUNDARY_DEBUG_INSN_P): Likewise.
12707         (SCHEDULE_DEBUG_INSN_P): Likewise.
12708         * sched-rgn.c (init_ready_list): Drop special treatment of
12709         boundary debug insns.
12710         * final.c (rest_of_clean-state): Clear notes' BB.
12712 2011-01-31  Alan Modra  <amodra@gmail.com>
12714         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12715         toc relative expressions as we do in print_operand_address.
12717 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12719         * doc/extend.texi: Follow spelling conventions.
12720         * doc/invoke.texi: Fix a typo.
12722 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12724         * config/hpux11.opt: New.
12725         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12726         ia64*-*-hpux*): Use hpux11.opt.
12728 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12730         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12731         to tmake_file.
12733 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12735         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12736         support sites.
12738 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12740         * doc/install.texi (Binaries): Remove outdated reference for
12741         Motorola 68HC11/68HC12 downloads.
12743 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12745         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12746         Drepper's paper.
12748 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12750         PR bootstrap/47147
12751         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12752         used by NetBSD.
12754 2011-01-28  Ahmad Sharif  <asharif@google.com>
12756         * value-prof.c (check_counter): Corrected error message.
12758 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12760         * config/arm/arm.c (arm_legitimize_reload_address): New.
12761         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12762         arm_legitimize_reload_address.
12763         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12765 2011-01-28  Ian Lance Taylor  <iant@google.com>
12767         * godump.c (go_define): Ignore macros whose definitions include
12768         two adjacent operands.
12770 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12772         PR target/42894
12773         * varasm.c (force_const_mem): Store copy of x in desc->constant
12774         instead of x itself.
12775         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12776         itself into REG_EQUAL note.
12778 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12780         * config/freebsd.opt (posix, rdynamic): New Driver options.
12782 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12784         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12785         -Bstatic/-Bdynamic.
12786         * configure: Regenerate.
12788 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12790         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12791         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12793 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12795         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12796         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12797         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12798         (s390_preferred_reload_class): Make static. Change return and
12799         'rclass' argument type to reg_class_t.
12801 2011-01-27  Jan Hubicka  <jh@suse.cz>
12803         PR middle-end/46949
12804         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12805         (process_function_and_variable_attributes): Check defined weakrefs.
12807 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12809         PR tree-optimization/47228
12810         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12811         build_ref_for_offset.
12813 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12815         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12817 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12819         PR rtl-optimization/46856
12820         * postreload.c (reload_combine_recognize_const_pattern): Do not
12821         separate cc0 setter and user on cc0 targets.
12823 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12825         PR c/43082
12826         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12827         passed a VOID_TYPE expression, immediately emit an error and
12828         return error_mark_node.
12830 2011-01-26  Jeff Law  <law@redhat.com>
12832         PR rtl-optimization/47464
12833         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12834         rather than may_trap_p as needed.
12836 2011-01-26  DJ Delorie  <dj@redhat.com>
12838         PR rtl-optimization/46878
12839         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12840         setter/user dependency as well.
12842 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12844         PR rtl-optimization/44469
12845         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12846         after removing trivially dead basic blocks.
12848 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12850         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12851         * config/frv/frv.h (LINK_SPEC): Likewise.
12852         * config/i386/netware.h (LINK_SPEC): Likewise.
12853         * config/m68k/linux.h (ASM_SPEC): Likewise.
12854         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12855         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12856         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12857         * config/sparc/linux.h (ASM_SPEC): Likewise.
12858         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12859         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12861 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12863         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12864         * config/frv/frv.h (ASM_SPEC): Likewise.
12865         * config/m68k/linux.h (ASM_SPEC): Likewise.
12866         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12867         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12868         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12869         * config/sparc/linux.h (ASM_SPEC): Likewise.
12870         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12871         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12873 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12875         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12876         * config/frv/frv.h (LINK_SPEC): Likewise.
12877         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12879 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12881         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12882         * config/frv/frv.h (ASM_SPEC): Likewise.
12883         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12884         * config/m68k/linux.h (ASM_SPEC): Likewise.
12885         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12886         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12887         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12888         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12889         * config/sparc/linux.h (ASM_SPEC): Likewise.
12890         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12891         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12892         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12894 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12896         PR target/46997
12897         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12898         (*mux2): Ditto.
12899         (vec_extract_evenodd_help): Ditto.
12900         (vec_extract_evenv4hi): Ditto.
12901         (vec_extract_oddv4hi): Ditto.
12902         (vec_interleave_lowv2si): Ditto.
12903         (vec_interleave_highv2si): Ditto.
12904         (vec_extract_evenv2si): Ditto.
12905         (vec_extract_oddv2si: Ditto.
12906         (vec_pack_trunc_v2si): Ditto.
12908 2011-01-22  Jan Hubicka  <jh@suse.cz>
12910         PR target/47237
12911         * cgraph.h (cgraph_local_info): New field can_change_signature.
12912         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12913         signature can change.
12914         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12915         can change.
12916         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12917         (cgraph_function_versioning): We can not change signature of functions
12918         that don't allow that.
12919         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12920         (lto_input_node): Likewise.
12921         * ipa-inline.c (compute_inline_parameters): Compute
12922         local.can_change_signature.
12923         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
12924         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12925         functions that can not change signature.
12926         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
12927         init_cumulative_args): Do not use local calling conventions
12928         for functions that can not change signature.
12930 2011-01-22  Jan Hubicka  <jh@suse.cz>
12932         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12934 2011-01-26  Richard Guenther  <rguenther@suse.de>
12936         PR tree-optimization/47190
12937         * cgraphunit.c (process_common_attributes): New function.
12938         (process_function_and_variable_attributes): Use it.
12940 2011-01-26  Richard Guenther  <rguenther@suse.de>
12942         PR lto/47423
12943         * cgraphbuild.c (record_eh_tables): Record reference to personality
12944         function.
12946 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
12948         PR debug/45454
12949         * sel-sched.c (moveup_expr): Don't let debug insns prevent
12950         non-debug insns from moving up.
12952 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12954         PR target/40125
12955         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12956         t-dlldir{,-x} fragment for build and add it to tmake_file.
12957         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12958         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12959         * config/i386/t-dlldir: New file.
12960         (SHLIB_DLLDIR): Define.
12961         * config/i386/t-dlldir-x: New file.
12962         (SHLIB_DLLDIR): Define.
12963         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12964         (SHLIB_INSTALL): Use it.
12966 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
12968         PR target/47246
12969         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12970         lower bound of the allowed Thumb-2 coprocessor load/store
12971         index range to -256. Add explaining comment.
12973 2011-01-25  Ian Lance Taylor  <iant@google.com>
12975         * godump.c (go_define): Improve lexing of macro expansion to only
12976         accept expressions which match Go spec.
12978 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
12980         PR c++/43601
12981         * tree.c (handle_dll_attribute): Handle it.
12982         * doc/extend.texi (@item dllexport): Mention it.
12983         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12985 2011-01-25  Ian Lance Taylor  <iant@google.com>
12987         PR tree-optimization/26854
12988         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12989         (decl_jump_unsafe): Move higher in file, with no other change.
12990         (bind): Set has_jump_unsafe_decl if appropriate.
12991         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12992         (check_earlier_gotos): Likewise.
12993         (c_check_switch_jump_warnings): Likewise.
12995 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
12997         * doc/invoke.texi (Warning Options): Add missing hyphen.
12998         (-fprofile-dir): Minor grammatical fixes.
12999         (-fbranch-probabilities): Likewise.
13001 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13003         PR debug/45136
13004         PR debug/45130
13005         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13006         debug insns.
13007         (no_real_insns_p, schedule_block, set_priorities): Drop special
13008         treatment of boundary debug insns.
13009         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13010         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13011         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13012         (BOUNDARY_DEBUG_INSN_P): Likewise.
13013         (SCHEDULE_DEBUG_INSN_P): Likewise.
13014         * sched-rgn.c (init_ready_list): Drop special treatment of
13015         boundary debug insns.
13016         * final.c (rest_of_clean-state): Clear notes' BB.
13018 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13020         * Makefile.in (LAMBDA_H): Removed.
13021         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13022         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13023         lambda-trans.o, and tree-loop-linear.o.
13024         (lto-symtab.o): Remove dependence on LAMBDA_H.
13025         (tree-loop-linear.o): Remove rule.
13026         (lambda-mat.o): Same.
13027         (lambda-trans.o): Same.
13028         (lambda-code.o): Same.
13029         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13030         (tree-vect-slp.o): Same.
13031         * hwint.h (gcd): Moved here.
13032         (least_common_multiple): Same.
13033         * lambda-code.c: Removed.
13034         * lambda-mat.c: Removed.
13035         * lambda-trans.c: Removed.
13036         * lambda.h: Removed.
13037         * tree-loop-linear.c: Removed.
13038         * lto-symtab.c: Do not include lambda.h.
13039         * omega.c (gcd): Removed.
13040         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13041         * tree-data-ref.c (print_lambda_vector): Moved here.
13042         (lambda_vector_copy): Same.
13043         (lambda_matrix_copy): Same.
13044         (lambda_matrix_id): Same.
13045         (lambda_vector_first_nz): Same.
13046         (lambda_matrix_row_add): Same.
13047         (lambda_matrix_row_exchange): Same.
13048         (lambda_vector_mult_const): Same.
13049         (lambda_vector_negate): Same.
13050         (lambda_matrix_row_negate): Same.
13051         (lambda_vector_equal): Same.
13052         (lambda_matrix_right_hermite): Same.
13053         * tree-data-ref.h: Do not include lambda.h.
13054         (lambda_vector): Moved here.
13055         (lambda_matrix): Same.
13056         (dependence_level): Same.
13057         (lambda_transform_legal_p): Removed declaration.
13058         (lambda_collect_parameters): Same.
13059         (lambda_compute_access_matrices): Same.
13060         (lambda_vector_gcd): Same.
13061         (lambda_vector_new): Same.
13062         (lambda_vector_clear): Same.
13063         (lambda_vector_lexico_pos): Same.
13064         (lambda_vector_zerop): Same.
13065         (lambda_matrix_new): Same.
13066         * tree-flow.h (least_common_multiple): Removed declaration.
13067         * tree-parloops.c (lambda_trans_matrix): Moved here.
13068         (LTM_MATRIX): Same.
13069         (LTM_ROWSIZE): Same.
13070         (LTM_COLSIZE): Same.
13071         (LTM_DENOMINATOR): Same.
13072         (lambda_trans_matrix_new): Same.
13073         (lambda_matrix_vector_mult): Same.
13074         (lambda_transform_legal_p): Same.
13075         * tree-pass.h (pass_linear_transform): Removed declaration.
13076         * tree-ssa-loop.c (tree_linear_transform): Removed.
13077         (gate_tree_linear_transform): Removed.
13078         (pass_linear_transform): Removed.
13079         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13080         flag_loop_interchange.
13082 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13084         PR tree-optimization/47265
13085         PR tree-optimization/47443
13086         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13087         if name still has some uses.
13089 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13091         PR tree-optimization/47382
13092         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13093         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13095 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13097         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13098         sjlj_except_unwind_info.
13100 2011-01-25  Richard Guenther  <rguenther@suse.de>
13102         PR tree-optimization/47426
13103         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13104         visible functions results escape.
13106 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13108         PR target/45701
13109         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13110         (arm_get_frame_offsets): Use it.
13112 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13113             Jakub Jelinek  <jakub@redhat.com>
13115         PR tree-optimization/47271
13116         * tree-if-conv.c (bb_postdominates_preds): New.
13117         (if_convertible_bb_p): Call bb_postdominates_preds.
13118         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13119         (predicate_scalar_phi): Call bb_postdominates_preds.
13121 2011-01-25  Nick Clifton  <nickc@redhat.com>
13123         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13124         * config/rx/rx.c (rx_function_value): Likewise.
13125         (rx_promote_function_mode): Likewise.
13126         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13127         in order to make it legitimate.
13128         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13129         make sure that the first operand is the same as the result register.
13130         (addsi3_unspec): Delete.
13131         (subdi3): Do not accept immediate operands.
13132         (subdi3_internal): Likewise.
13134 2011-01-25  Jeff Law  <law@redhat.com>
13136         PR rtl-optimization/37273
13137         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13138         handle them like argument loads from stack slots.  Do not double
13139         count memory for memory constants and argument loads from stack slots.
13141 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13143         PR tree-optimization/47427
13144         PR tree-optimization/47428
13145         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13146         coalesce if the new root var would be TREE_READONLY.
13148 2011-01-25  Richard Guenther  <rguenther@suse.de>
13150         PR middle-end/47414
13151         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13152         correct type for TBAA.
13154 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13156         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13157         (close_phi_written_to_memory): Call for_each_index with
13158         dr_indices_valid_in_loop.
13160 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13162         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13163         when it is initialized.
13165 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13167         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13168         call to graphite_find_data_references_in_stmt.
13169         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13170         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13171         call to graphite_find_data_references_in_stmt.
13172         (analyze_drs_in_stmts): Same.
13173         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13174         in which the scalar analysis of indices is performed.
13175         (create_data_ref): Same.  Update call to dr_analyze_indices.
13176         (find_data_references_in_stmt): Update call to create_data_ref.
13177         (graphite_find_data_references_in_stmt): Same.
13178         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13179         declaration.
13180         (create_data_ref): Same.
13181         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13182         call to create_data_ref.
13184 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13186         * graphite-sese-to-poly.c (build_poly_scop): Move
13187         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13189 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13191         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13192         VAR_DECL, PARM_DECL, and RESULT_DECL.
13194 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13196         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13197         in a reduction PBB.
13198         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13199         that have already been marked as PBB_IS_REDUCTION.
13201 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13203         * graphite-scop-detection.c (same_close_phi_node): New.
13204         (remove_duplicate_close_phi): New.
13205         (make_close_phi_nodes_unique): New.
13206         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13208 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13210         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13211         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13212         of both data references to be the same.
13214 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13216         * graphite-dependences.c (build_lexicographical_constraint): Remove
13217         the gdim parameter.
13218         (build_lexicographical_constraint): Adjust call to
13219         ppl_powerset_is_empty.
13220         (dependence_polyhedron): Same.
13221         (graphite_legal_transform_dr): Same.
13222         (graphite_carried_dependence_level_k): Same.
13223         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13224         parameter.
13225         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13227 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13229         * graphite-sese-to-poly.c
13230         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13231         (close_phi_written_to_memory): New.
13232         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13233         and unshare_expr.
13235 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13237         * doc/install.texi: Update the expected version number of PPL to 0.11.
13238         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13239         #if PPL_VERSION_MINOR < 11.
13241 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13243         * graphite-dependences.c: Include graphite-cloog-util.h.
13244         (new_poly_ddr): Inlined into dependence_polyhedron.
13245         (free_poly_ddr): Moved close by new_poly_ddr.
13246         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13247         Early return NULL when ppl_powerset_is_empty returns true.
13248         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13249         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13250         (graphite_legal_transform_dr): Call new_poly_ddr.
13251         (graphite_carried_dependence_level_k): Same.
13252         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13253         (dot_transformed_deps_stmt_1): Removed.
13254         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13255         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13256         (dot_deps_1): Call dot_deps_2.
13257         * Makefile.in (graphite-dependences.o): Add missing dependence on
13258         graphite-cloog-util.h.
13260 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13262         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13263         (build_lexicographical_constraint): Same.
13264         (dependence_polyhedron_1): Same.
13265         (graphite_legal_transform_dr): Same.
13266         (graphite_carried_dependence_level_k): Same.
13267         * graphite-ppl.c (ppl_powerset_is_empty): New.
13268         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13269         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13271 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13273         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13274         the "a followed by b" relation and document it.
13276 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13278         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13279         iteration when the bag of constraints is empty.
13281 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13283         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13285 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13287         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13288         nest and two loop depths as parameters.
13289         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13290         lst_perfect_nestify.
13292 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13294         * graphite-dependences.c (print_pddr): Call
13295         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13297 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13299         * graphite-ppl.c (debug_gmp_value): New.
13300         * graphite-ppl.h (debug_gmp_value): Declared.
13302 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13304         * doc/install.texi: Document availability of cloog-0.16.
13306 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13308         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13309         invalid postdominance info.
13311 2011-01-24  Jan Hubicka  <jh@suse.cz>
13313         PR c/21659
13314         * doc/extend.texi (weak pragma): Drop claim that it must
13315         appear before definition.
13316         * varasm.c (merge_weak, declare_weak): Only sanity check
13317         that DECL is not output at a time it is declared weak.
13319 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13321         * machmode.def: Fixed comments.
13323 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13325         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13327 2011-01-24  Paul Koning  <ni1d@arrl.net>
13329         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13330         WORDS_BIG_ENDIAN.
13332 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13334         PR target/46519
13335         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13336         (block_info): Add scanned and prev.
13337         (move_or_delete_vzeroupper_2): Return if the basic block
13338         has been scanned and the upper 128bit state is unchanged
13339         from the last scan.
13340         (move_or_delete_vzeroupper_1): Return true if the exit
13341         state is changed.
13342         (move_or_delete_vzeroupper): Visit basic blocks using the
13343         work-list based algorithm based on vt_find_locations in
13344         var-tracking.c.
13346         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13348 2011-01-24  Nick Clifton  <nickc@redhat.com>
13350         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13351         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13352         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13353         then define __v850e1__.
13354         * doc/invoke.texi: Document -mv850es.
13356 2011-01-24  Richard Henderson  <rth@redhat.com>
13358         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13359         compound unordered comparisons.
13360         * config/rx/rx.c (rx_split_fp_compare): Remove.
13361         * config/rx/rx-protos.h: Update.
13362         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13363         (cbranchsf4): Don't call rx_split_fp_compare.
13364         (*cbranchsf4): Use rx_split_cbranch.
13365         (*cmpsf): Don't accept "i" constraint.
13366         (*conditional_branch): Only valid after reload.
13367         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13369 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13371         PR target/47385
13372         * config/rs6000/altivec.md (vector constant splitters): Add
13373         support for creating vector single precision constants if -mvsx is
13374         used and we would create the constant using Altivec primitives.
13376 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13377             Richard Sandiford  <rdsandiford@googlemail.com>
13379         PR rtl-optimization/47166
13380         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13381         mechanism for PRE_MODIFY and POST_MODIFY.
13382         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13383         reloadreg.
13385 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13387         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13389 2011-01-22  Jan Hubicka  <jh@suse.cz>
13391         PR lto/47333
13392         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13394 2011-01-22  Jan Hubicka  <jh@suse.cz>
13396         PR tree-optimization/43884
13397         PR lto/44334
13398         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13399         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13401 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13403         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13404         * config/s390/s390.c (s390_register_move_cost,
13405         s390_memory_move_cost): New.
13406         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13408 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13410         PR middle-end/47401
13411         * except.c (sjlj_assign_call_site_values): Move setting the
13412         crtl->uses_eh_lsda flag to ...
13413         (sjlj_mark_call_sites): ... here.
13414         (sjlj_emit_function_enter): Support NULL dispatch label.
13415         (sjlj_build_landing_pads): In a function with no landing pads
13416         that still has must-not-throw regions, generate code to register
13417         a personality function with empty LSDA.
13419 2011-01-21  Richard Henderson  <rth@redhat.com>
13421         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13423         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13425         * compare-elim.c: New file.
13426         * Makefile.in (OBJS-common): Add it.
13427         (compare-elim.o): New.
13428         * common.opt (fcompare-elim): New.
13429         * opts.c (default_options_table): Add OPT_fcompare_elim.
13430         * tree-pass.h (pass_compare_elim_after_reload): New.
13431         * passes.c (init_optimization_passes): Add it.
13432         * recog.h: Protect against re-inclusion.
13433         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13434         * doc/invoke.texi (-fcompare-elim): Document it.
13435         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13436         * doc/tm.texi: Rebuild.
13438 2011-01-22  Nick Clifton  <nickc@redhat.com>
13440         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13441         rx_split_fp_compare.
13443 2011-01-22  Nick Clifton  <nickc@redhat.com>
13445         * config/rx/rx.md (UNSPEC_CONST): New.
13446         (deallocate_and_return): Wrap the amount popped off the stack in
13447         an UNSPEC_CONST in order to stop it being rejected by
13448         -mmax-constant-size.
13449         (pop_and_return): Add a "(return)" rtx.
13450         (call): Drop the immediate operand.
13451         (call_internal): Likewise.
13452         (call_value): Likewise.
13453         (call_value_internal): Likewise.
13454         (sibcall_internal): Likewise.
13455         (sibcall_value_internal): Likewise.
13456         (sibcall): Likewise.  Generate an explicit call using
13457         sibcall_internal.
13458         (sibcall_value): Likewise.
13459         (mov<>): FAIL if a constant operand is not legitimate.
13460         (addsi3_unpsec): New pattern.
13462         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13463         (ok_for_max_constant): New function.
13464         (gen_safe_add): New function.
13465         (rx_expand_prologue): Use gen_safe_add.
13466         (rx_expand_epilogue): Likewise.
13467         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13468         UNSPEC CONSTs.
13470 2011-01-21  Jeff Law  <law@redhat.com>
13472         PR tree-optimization/47053
13473         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13474         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13475         statements are deleted.
13476         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13477         is nonempty, then purge dead edges and cleanup the CFG.
13479 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13481         PR debug/47402
13482         Temporarily revert:
13483         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13484         PR debug/47106
13485         * tree-dfa.c (create_var_ann): Mark variable as used.
13487 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13489         PR middle-end/45566
13490         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13491         notes from other section in hot/cold partitioning even if
13492         last_action is -3.  Increment call_site_base.
13494         PR rtl-optimization/47366
13495         * fwprop.c (forward_propagate_into): Return bool.  If
13496         any changes are made, -fnon-call-exceptions is used and
13497         REG_EH_REGION note is present, call purge_dead_edges
13498         and return true if it purged anything.
13499         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13500         any EH edges were purged.
13502 2011-01-21  Jeff Law  <law@redhat.com>
13504         PR rtl-optimization/41619
13505         * caller-save.c (setup_save_areas): Break out code to determine
13506         which hard regs are live across calls by examining the reload chains
13507         so that it is always used.
13508         Eliminate code which checked REG_N_CALLS_CROSSED.
13510 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13512         PR tree-optimization/47355
13513         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13514         NOP has non-debug uses beyond PHIs in new_bb.
13516 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13518         PR debug/47106
13519         * cfgexpand.c (account_used_vars_for_block): Only account vars
13520         that are annotated as used.
13521         (estimated_stack_frame_size): Don't set TREE_USED.
13522         * tree-dfa.c (create_var_ann): Mark variable as used.
13524 2011-01-21  Richard Guenther  <rguenther@suse.de>
13526         PR middle-end/47395
13527         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13529 2011-01-21  Richard Guenther  <rguenther@suse.de>
13531         PR tree-optimization/47365
13532         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13533         (vn_reference_lookup_pieces): Adjust.
13534         (vn_reference_lookup): Likewise.
13535         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13536         (vn_reference_lookup_3): Only look through kills if in
13537         VN_WALKREWRITE mode.
13538         (vn_reference_lookup_pieces): Adjust.
13539         (vn_reference_lookup): Likewise.
13540         (visit_reference_op_load): Likewise.
13541         (visit_reference_op_store): Likewise.
13542         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13543         (compute_avail): Likewise.
13544         (eliminate): Likewise.
13546 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13548         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13549         DECL_IGNORED_P non-reg vars if they are used.
13551         PR tree-optimization/47391
13552         * varpool.c (const_value_known_p): Return false if
13553         decl is volatile.
13555 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13557         PR bootstrap/47215
13558         * config/i386/i386.c (ix86_local_alignment): Handle
13559         case for va_list_type_node is nil.
13560         (ix86_canonical_va_list_type): Likewise.
13562 2011-01-21  Alan Modra  <amodra@gmail.com>
13564         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13565         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13567 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13569         * config/arm/arm.md (define_attr type): Rename f_load
13570         and f_store to f_fpa_load and f_fpa_store. Update.
13571         (write_conflict): Deal with rename fallout.
13572         (*push_fp_multi): Likewise.
13573         * config/arm/fpa.md (f_load): Use f_fpa_load.
13574         (f_store): Use f_fpa_store.
13575         (*movsf_fpa): Likewise.
13576         (*movdf_fpa): Likewise.
13577         (*movxf_fpa): Likewise.
13578         (*thumb2_movsf_fpa): Likewise.
13579         (*thumb2_movdf_fpa): Likewise.
13580         (*thumb2_movxf_fpa): Likewise.
13581         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13582         f_loadd and f_stored.
13583         (*thumb2_movdi_vfp): Likewise.
13584         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13585         (*thumb2_movsi_vfp): Likewise.
13586         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13587         Use f_loads instead of f_load.
13588         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13590 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13592         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13593         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13594         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13595         (xtensa_mode_dependent_address_p): New function.
13596         (constantpool_address_p): Make static. Change return type to bool.
13597         Change argument type to const_rtx. Use CONST_INT_P predicate.
13599 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13601         PR debug/46583
13602         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13604 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13606         PR debug/47283
13607         * cfgexpand.c (expand_debug_expr): Instead of generating
13608         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13609         etc. handling.
13611 2011-01-20  Richard Guenther  <rguenther@suse.de>
13613         PR middle-end/47370
13614         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13615         the pointer operand of MEM_REFs.
13617 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13619         PR tree-optimization/46130
13620         * ipa-split.c (consider_split): If return_bb contains non-virtual
13621         PHIs other than for retval or if split_function would not adjust it,
13622         refuse to split.
13624 2011-01-20  Richard Guenther  <rguenther@suse.de>
13626         PR tree-optimization/47167
13627         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13628         Revert previous change, only avoid enumeral type changes.
13630 2011-01-19  Mike Stump  <mikestump@comcast.net>
13632         * doc/tm.texi.in (BRANCH_COST): Englishify.
13633         * doc/tm.texi (BRANCH_COST): Likewise.
13635 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13637         PR c++/47291
13638         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13639         (gen_scheduled_generic_parms_dies): New functions.
13640         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13641         generation for the end of CU compilation.
13642         (dwarf2out_finish): Generate template parameters DIEs here.
13644 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13646         PR debug/46240
13647         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13648         debug bind stmt on merge edges.
13650 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13652         PR debug/47079
13653         PR debug/46724
13654         * function.c (instantiate_expr): Instantiate incoming rtl of
13655         implicit arguments, and recurse on VALUE_EXPRs.
13656         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13657         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13659 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13661         * c-parser.c (c_parser_for_statement): Initialize
13662         collection_expression.
13664 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13666         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13668 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13670         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13671         (LINK_SHLIB_SPEC): Don't use %(link_path).
13672         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13674 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13676         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13677         (NO_SHARED_LIB_SUPPORT): Remove.
13678         (LINK_SHLIB_SPEC): Remove one conditional definition.
13680 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13682         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13683         %{call_shared}.
13684         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13685         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13686         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13687         %{call_shared} and conditionals on these options not being passed.
13688         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13689         %{call_shared}.
13691 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13693         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13694         simplify.
13696         * ipa-split.c: Spelling fixes.
13698 2011-01-19  Richard Henderson  <rth@redhat.com>
13700         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13701         (*mulsi3): Likewise.
13703         * longlong.h [__mn10300__] (count_leading_zeros): New.
13704         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13705         [__mn10300__] (add_ssaaaa, subddmmss): New.
13706         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13707         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13709 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13711         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13713 2011-01-19  Richard Henderson  <rth@redhat.com>
13715         * config/mn10300/mn10300.md (addsi3_flags): New.
13716         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13717         (subsi3_flags, subc_internal, subdi3): New.
13718         (subdi3_internal, *subdi3_degenerate): New.
13719         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13721         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13722         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13723         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13724         * config/mn10300/mn10300-protos.h: Update.
13725         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13726         (return_ret): Likewise.  Rename from return_internal_regs.
13727         (return_internal): Remove.
13729         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13730         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13731         (mn10300_legitimate_constant_p): Likewise.
13732         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13733         (mn10300_frame_size): New.
13734         (mn10300_expand_prologue): Use it.
13735         (mn10300_expand_epilogue): Likewise.
13736         (mn10300_initial_offset): Likewise.
13737         * config/mn10300/mn10300-protos.h: Update.
13738         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13739         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13740         (prologue, epilogue, return_internal): Tidy output code.
13741         (mn10300_store_multiple_operation, return): Likewise.
13742         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13743         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13744         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13745         (load_pic, am33_load_pic): New.
13746         (mn10300_load_pic0, mn10300_load_pic1): New.
13748         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13749         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13750         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13751         (cc_flags_for_mode, cc_flags_for_code): New.
13752         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13753         overflow flag is not valid.  Validate that the flags we need
13754         for the comparison are valid.
13755         (mn10300_output_cmp): Remove.
13756         (mn10300_output_add): New.
13757         (mn10300_select_cc_mode): Use cc_flags_for_code.
13758         (mn10300_split_cbranch): New.
13759         (mn10300_match_ccmode): New.
13760         (mn10300_split_and_operand_count): New.
13761         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13762         to the function.
13763         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13764         (addsi3): ... here.  Use mn10300_output_add.
13765         (*addsi3_flags): New.
13766         (*am33_subsi3, *mn10300_subsi3): Merge...
13767         (subsi3): ... here.  Use attribute isa.
13768         (*subsi3_flags): New.
13769         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13770         when possible.
13771         (*am33_andsi3, *mn10300_andsi3): Merge...
13772         (andsi3): ... here.
13773         (*andsi3_flags): New.
13774         (andsi3 splitters): New.
13775         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13776         (iorsi3): ... here.
13777         (*iorsi3_flags): New.
13778         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13779         (xorsi3): ... here.
13780         (*xorsi3_flags): New.
13781         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13782         (one_cmplsi2): ... here.
13783         (*one_cmplsi2_flags): New.
13784         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13785         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13786         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13787         use matching constraints to eliminate a self-comparison.
13788         (*integer_conditional_branch): Rename from integer_conditional_branch.
13789         Use int_mode_flags to match CC_REG.
13790         (*cbranchsi4_btst, *btstsi): New.
13791         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13792         mn10300_split_cbranch.
13793         (*am33_cmpsf): Rename from am33_cmpsf.
13794         (*float_conditional_branch): Rename from float_conditional_branch.
13795         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13796         (zero_extendqisi2): ... here.
13797         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13798         (zero_extendhisi2): ... here.
13799         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13800         (extendqisi2): ... here.
13801         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13802         (extendhisi2): ... here.
13803         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13804         (ashlsi3): ... here.
13805         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13806         (lshrsi3): ... here.
13807         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13808         (ashrsi3): ... here.
13809         (consecutive add peephole): Remove.
13810         * config/mn10300/predicates.md (label_ref_operand): New.
13811         (int_mode_flags): New.
13812         (CCZN_comparison_operator): New.
13814         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13815         (throughput_42_latency_43): New reservation.
13816         (mulsidi3, umulsidi3): New expanders.
13817         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13818         the MDR register to allocation; separately allocate the low and
13819         high parts of the DImode result.
13820         (umulsidi3_internal): Similarly.
13821         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13822         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13823         (udivsi3, umodsi3): Remove.
13824         (udivmodsi4, divmodsi4): New expanders.
13825         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13826         (*divmodsi4): Simiarly.
13827         (ext_internal): New.
13829         * config/mn10300/constraints.md ("z"): New constraint.
13830         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13831         (FIXED_REGISTERS): Don't fix MDR.
13832         (CALL_USED_REGSITERS): Reformat nicely.
13833         (REG_ALLOC_ORDER): Add MDR.
13834         (enum regclass): Add MDR_REGS.
13835         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13836         (IRA_COVER_CLASSES): Add MDR_REGS.
13837         (REGNO_REG_CLASS): Handle MDR_REG.
13838         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13839         (mn10300_register_move_cost): Likewise.
13840         * config/mn10300/mn10300.md (MDR_REG): New.
13841         (*movsi_internal): Handle moves to/from MDR_REGS.
13843         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13844         POST_MODIFY.
13845         (mn10300_secondary_reload): Tidy combination reload classes.
13846         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13847         addresses for AM33.  Allow symbolic offsets for reg+imm.
13848         (mn10300_regno_in_class_p): New.
13849         (mn10300_legitimize_reload_address): New.
13850         * config/mn10300/mn10300.h (enum reg_class): Remove
13851         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13852         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13853         SP_OR_GENERAL_REGS.
13854         (REG_CLASS_NAMES): Update to match.
13855         (REG_CLASS_CONTENTS): Likewise.
13856         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13857         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13858         (REGNO_IN_RANGE_P): Remove.
13859         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13860         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13861         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13862         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13863         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13864         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13865         (REGNO_GENERAL_P): New.
13866         (HAVE_POST_MODIFY_DISP): New.
13867         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13868         (LEGITIMIZE_RELOAD_ADDRESS): New.
13869         * config/mn10300/mn10300-protos.h: Update.
13871         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13872         DATA_REGS for AM33 stack-pointer destination.
13873         (mn10300_preferred_output_reload_class): Likewise.
13874         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13875         into a form appropriate for ...
13876         (TARGET_SECONDARY_RELOAD): New.
13877         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13878         * config/mn10300/mn10300-protos.h: Update.
13879         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13880         reload_insi; use the "A" constraint for the scratch; handle AM33
13881         moves of sp to non-address registers.
13883         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13884         (*movqi_internal): ... here.
13885         (*am33_movhi, *mn10300_movhi): Merge into...
13886         (*movhi_internal): ... here.
13887         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13888         as the source/destination of moves from/to SP.
13889         (movsf): Only allow for AM33-2.
13890         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13891         any integer constant constraint.  Only allow for AM33-2.  Tidy
13892         all of the alternative outputs.
13893         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13894         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13895         for MN103.
13896         (udivsi3, umodsi3): New patterns for MN103 only.
13898 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13900         * doc/tm.texi.in: Spell out that a lack of register class unions
13901         can lead to ICEs.
13902         * doc/tm.texi: Regenerate.
13904 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13906         PR rtl-optimization/47337
13907         * dce.c (check_argument_store): New function.
13908         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13910         PR tree-optimization/47290
13911         * tree-eh.c (infinite_empty_loop_p): New function.
13912         (cleanup_empty_eh): Use it.
13914 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13916         PR target/46997
13917         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13918         (a64_expand_widen_sum): Ditto.
13919         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13920         (vec_extract_evenodd_help): Ditto.
13921         (vec_extract_evenv4hi): Ditto.
13922         (vec_extract_oddv4hi): Ditto.
13923         (vec_extract_evenv2si): Ditto.
13924         (vec_extract_oddv2si): Ditto.
13925         (vec_extract_evenv2sf): Ditto.
13926         (vec_extract_oddv2sf): Ditto.
13927         (vec_pack_trunc_v4hi: Ditto.
13928         (vec_pack_trunc_v2si): Ditto.
13929         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13930         (vec_interleave_highv8qi): Ditto.
13931         (mix1_r): Ditto.
13932         (vec_extract_oddv8qi): Ditto.
13933         (vec_interleave_lowv4hi): Ditto.
13934         (vec_interleave_highv4hi): Ditto.
13935         (vec_interleave_lowv2si): Ditto.
13936         (vec_interleave_highv2si): Ditto.
13938 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13940         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13941         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13942         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
13943         (pa_c_mode_for_suffix): New.
13944         (TARGET_EXPAND_BUILTIN): Define.
13945         (TARGET_C_MODE_FOR_SUFFIX): Define.
13946         (pa_builtins): Define.
13947         (pa_init_builtins): Register __float128 type and init new support
13948         builtins.
13949         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13950         * config/pa/quadlib.c (_U_Qfcopysign): New.
13952 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
13954         PR middle-end/46894
13955         * explow.c (allocate_dynamic_stack_space): Do not assume more than
13956         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13957         are defined.
13959 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13961         PR tree-optimization/47179
13962         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13963         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13965 2011-01-18  Richard Guenther  <rguenther@suse.de>
13967         PR rtl-optimization/47216
13968         * emit-rtl.c: Include tree-flow.h.
13969         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13970         of replicating it with different semantics.
13971         * Makefile.in (emit-rtl.o): Adjust.
13973 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13975         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
13976         (cortex_a9_dp): Handle neon types correctly.
13978 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
13980         PR rtl-optimization/47299
13981         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
13982         subtarget.  Use normal multiplication if both operands are constants.
13983         * expmed.c (expand_widening_mult): Don't try to optimize constant
13984         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
13985         before using it.
13987 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13989         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
13990         spacing after 'e.g.', typos, comma, hyphenation.
13992 2011-01-17  Richard Henderson  <rth@redhat.com>
13994         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13995         (rx_restricted_mem_operand): New.
13996         (rx_shift_operand): Use register_operand.
13997         (rx_source_operand, rx_compare_operand): Likewise.
13998         * config/rx/rx.md (addsi3_flags): New expander.
13999         (adddi3): Rewrite as expander.
14000         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14001         (subsi3_flags): New expander.
14002         (subdi3): Rewrite as expander.
14003         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14005         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14006         (rx_init_builtins): Remove sat builtin.
14007         (rx_expand_builtin): Likewise.
14008         * config/rx/rx.md (ssaddsi3): New.
14009         (*sat): Rename from sat.  Represent the CC_REG input.
14011         * config/rx/predicates.md (rshift_operator): New.
14012         * config/rx/rx.c (rx_expand_insv): Remove.
14013         * config/rx/rx-protos.h: Update.
14014         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14015         operand to the canonical position.
14016         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14017         (*bitclr, *bitclr_in_memory): Similarly.
14018         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14019         (insv): Retain the zero_extract in the expansion.
14021         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14022         (bswaphi2, bitinvert, revw): Likewise.
14024         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14025         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14026         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14027         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14028         (bitset, bitset_in_memory): Likewise.
14029         (bitinvert, bitinvert_in_memory): Likewise.
14030         (bitclr, bitclr_in_memory): Likewise.
14031         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14032         (rx_strend, rx_cmpstrn): Likewise.
14033         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14034         (bitop peep2 patterns): Remove.
14036         * config/rx/rx.c (rx_match_ccmode): New.
14037         * config/rx/rx-protos.h: Update.
14038         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14039         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14040         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14041         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14042         (fix_truncsfsi2, floatsisf2): Likewise.
14043         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14044         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14045         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14046         (*subsi3_flags, *xorsi3_flags): New.
14048         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14050         * config/rx/rx.c (rx_print_operand): Remove workaround for
14051         unsplit comparison operations.
14053         * config/rx/rx.md (movsicc): Split after reload.
14054         (*movsicc): Merge *movsieq and *movsine via match_operator.
14055         (*stcc): New pattern.
14057         * config/rx/rx.c (rx_float_compare_mode): Remove.
14058         * config/rx/rx.h (rx_float_compare_mode): Remove.
14059         * config/rx/rx.md (cstoresi4): Split after reload.
14060         (*sccc): New pattern.
14062         * config/rx/predicates.md (label_ref_operand): New.
14063         (rx_z_comparison_operator): New.
14064         (rx_zs_comparison_operator): New.
14065         (rx_fp_comparison_operator): New.
14066         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14067         Validate that the flags are set properly for the comparison.
14068         (rx_gen_cond_branch_template): Remove.
14069         (rx_cc_modes_compatible): Remove.
14070         (mode_from_flags): New.
14071         (flags_from_code): Rename from flags_needed_for_conditional.
14072         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14073         (rx_select_cc_mode): Likewise.
14074         (rx_split_fp_compare): New.
14075         (rx_split_cbranch): New.
14076         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14077         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14078         (*cbranchsf4): Similarly.
14079         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14080         match_operator and rx_split_cbranch.
14081         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14082         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14083         (*cmpsi): Rename from cmpsi.
14084         (*tstsi): Rename from tstsi.
14085         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14086         (*conditional_branch): Rename from conditional_branch.
14087         (*reveresed_conditional_branch): Remove.
14088         (b<code>): Remove expander.
14089         * config/rx/rx-protos.h: Update.
14091         * config/rx/rx.c (rx_compare_redundant): Remove.
14092         * config/rx/rx.md (cmpsi): Don't use it.
14093         * config/rx/rx-protos.h: Update.
14095         * config/rx/rx-modes.def (CC_F): New mode.
14096         * config/rx/rx.c (rx_select_cc_mode): New.
14097         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14098         * config/rx/rx-protos.h: Update.
14100 2011-01-17  Richard Henderson  <rth@redhat.com>
14102         * except.c (dump_eh_tree): Fix stray ; after for statement.
14104 2011-01-17  Richard Guenther  <rguenther@suse.de>
14106         PR tree-optimization/47313
14107         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14108         handling before copying the body.  Properly deal with
14109         by-reference result in SSA form.
14111 2011-01-17  Ian Lance Taylor  <iant@google.com>
14113         PR target/47219
14114         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14115         (struct_value_alias_set): Don't define.
14116         (sparc_option_override): Don't set sparc_sr_alias_set and
14117         struct_value_alias_set.
14118         (save_or_restore_regs): Use gen_frame_mem rather than calling
14119         set_mem_alias_set.
14120         (sparc_struct_value_rtx): Likewise.
14122 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14124         PR target/47318
14125         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14126         (_mm_maskstore_pd): Likewise.
14127         (_mm_maskload_ps): Likewise.
14128         (_mm_maskstore_ps): Likewise.
14129         (_mm256_maskload_pd): Change mask to __m256i.
14130         (_mm256_maskstore_pd): Likewise.
14131         (_mm256_maskload_ps): Likewise.
14132         (_mm256_maskstore_ps): Likewise.
14134         * config/i386/i386-builtin-types.def: Updated.
14135         (ix86_expand_special_args_builtin): Likewise.
14137         * config/i386/i386.c (bdesc_special_args): Update
14138         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14139         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14140         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14141         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14143         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14144         Use <avxpermvecmode> on mask register.
14145         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14147 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14148             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14149             Eric Botcazou  <ebotcazou@adacore.com>
14151         PR target/46655
14152         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14153         if <= USHRT_MAX in 32-bit mode.
14155 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14157         * doc/install.texi (Configuration, Specific): Wrap long
14158         lines in examples.  Allow line wrapping in long options
14159         and URLs where beneficial for PDF output.
14161 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14163         * config/mips/mips.c (mips_classify_symbol): Don't return
14164         SYMBOL_PC_RELATIVE for nonlocal labels.
14166 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14168         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14170 2011-01-15  Jan Hubicka  <jh@suse.cz>
14172         PR tree-optimization/47276
14173         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14174         declarations as needed.
14176 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14178         * common.opt (fdevirtualize): New flag.
14179         * doc/invoke.texi (Option Summary): Document it.
14180         * opts.c (default_options_table): Add devirtualize flag.
14181         * ipa-prop.c (detect_type_change): Return immediately if
14182         devirtualize flag is not set.
14183         (detect_type_change_ssa): Likewise.
14184         (compute_known_type_jump_func): Likewise.
14185         (ipa_analyze_virtual_call_uses): Likewise.
14187 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14189         PR tree-optimization/45934
14190         PR tree-optimization/46302
14191         * ipa-prop.c (type_change_info): New type.
14192         (stmt_may_be_vtbl_ptr_store): New function.
14193         (check_stmt_for_type_change): Likewise.
14194         (detect_type_change): Likewise.
14195         (detect_type_change_ssa): Likewise.
14196         (compute_complex_assign_jump_func): Check for dynamic type change.
14197         (compute_complex_ancestor_jump_func): Likewise.
14198         (compute_known_type_jump_func): Likewise.
14199         (compute_scalar_jump_functions): Likewise.
14200         (ipa_analyze_virtual_call_uses): Likewise.
14201         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14203 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14205         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14206         * config/i386/i386.opt (msse5): New Alias.
14208 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14210         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14211         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14212         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14213         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14215 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14217         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14218         -mcpu options.
14219         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14220         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14221         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14222         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14223         Likewise.
14224         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14226 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14228         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14230 2011-01-14  Mike Stump  <mikestump@comcast.net>
14232         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14233         * config/fr30/fr30.md: Likweise
14234         (movsi_push): Likewise.
14235         (movsi_pop): Likewise.
14236         (enter_func): Likewise.
14237         * config/moxie/moxie.md (movsi_push): Likewise.
14238         (movsi_pop): Likewise.
14240 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14242         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14243         %{no_archive} %{exact_version}.
14244         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14245         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14246         %{no_archive} %{exact_version}.
14247         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14248         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14249         * config/mips/vxworks.h: Likewise.
14251 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14253         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14255 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14257         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14258         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14260 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14262         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14263         -nodefaultlib.
14265 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14267         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14268         for mcpu not cpu.
14269         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14270         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14271         not cpu.
14272         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14273         Don't handle -shlib.
14275 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14277         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14278         (CC1_SPEC): Don't handle -profile.
14280 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14282         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14283         * config/mips/mips.h (CC1_SPEC): Likewise.
14285 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14287         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14288         * config/mips/mips.h (CC1_SPEC): Likewise.
14290 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14292         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14293         * config/m32r/linux.h (LINK_SPEC): Likewise.
14294         * config/mips/linux.h (LINK_SPEC): Likewise.
14295         * config/mips/linux64.h (LINK_SPEC): Likewise.
14296         * config/sparc/linux.h (LINK_SPEC): Likewise.
14297         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14298         LINK_SPEC): Likewise.
14299         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14301 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14303         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14304         %{version:-v}.
14305         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14307 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14309         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14310         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14312 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14314         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14316 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14318         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14319         supports -Bstatic/-Bdynamic.
14320         * configure: Regenerate.
14322 2011-01-14  Jan Hubicka  <jh@suse.cz>
14323             Jack Howarth  <howarth@bromo.med.uc.edu>
14325         PR target/46037
14326         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14327         when checking debug_info_level. Test write_symbols instead of
14328         debug_hooks->var_location when setting flag_var_tracking_uninit.
14330 2011-01-14  Richard Guenther  <rguenther@suse.de>
14332         PR tree-optimization/47179
14333         * target.def (ref_may_alias_errno): New target hook.
14334         * targhooks.h (default_ref_may_alias_errno): Declare.
14335         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14336         (default_ref_may_alias_errno): New function.
14337         * target.h (struct ao_ref_s): Declare.
14338         * tree-ssa-alias.c: Include target.h.
14339         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14340         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14341         (targhooks.o): Likewise.
14342         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14343         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14345 2011-01-14  Richard Guenther  <rguenther@suse.de>
14347         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14349 2011-01-14  Richard Guenther  <rguenther@suse.de>
14351         PR tree-optimization/47280
14352         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14353         return CFG changes.
14354         (tree_ssa_forward_propagate_single_use_vars): Deal with
14355         CFG changes from associate_plusminus.
14357 2011-01-14  Richard Guenther  <rguenther@suse.de>
14359         PR middle-end/47281
14360         Revert
14361         2011-01-11  Richard Guenther  <rguenther@suse.de>
14363         PR tree-optimization/46076
14364         * tree-ssa.c (useless_type_conversion_p): Conversions from
14365         unprototyped to empty argument list function types are useless.
14367 2011-01-14  Richard Guenther  <rguenther@suse.de>
14369         PR tree-optimization/47286
14370         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14372 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14374         PR middle-end/46823
14375         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14377 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14379         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14380         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14381         * config/xtensa/xtensa.c (xtensa_libcall_value,
14382         xtensa_function_value_regno_p): New functions.
14383         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14385 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14387         PR c++/47213
14388         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14389         PE specific hook.
14390         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14391         New function prototype.
14392         * config/i386/winnt.c (i386_pe_assemble_visibility):
14393         Warn only if attribute was specified by user.
14395 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14397         PR target/47251
14398         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14399         floating point.
14400         (floatunsdidf2_fcfidu): Ditto.
14402 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14404         * config/s390/s390.c (print_operand_address): Replace 'error' with
14405         'output_operand_lossage'.
14406         (print_operand): Likewise.
14408 2011-01-13  Jeff Law  <law@redhat.com>
14410         PR rtl-optimization/39077
14411         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14412         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14413         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14414         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14415         * gcse.c (prune_insertions_deletions): New function.
14416         (compute_pre_data): Use it.
14418 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14420         PR debug/PR46973
14421         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14422         static function.
14423         (prune_unused_types_mark): Use it.
14425 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14427         PR rtl-optimization/45352
14428         * sel-sched.c: Update copyright years.
14429         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14430         in the advancing loop when we have issued issue_rate insns.
14432 2011-01-12  Richard Henderson  <rth@redhat.com>
14434         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14435         (TARGET_MD_ASM_CLOBBERS): New.
14437         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14438         (TARGET_DELEGITIMIZE_ADDRESS): New.
14440         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14441         (clzsi2, *bsch): New patterns.
14443         * config/mn10300/mn10300.md (INT): New mode iterator.
14444         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14446         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14447         flag_split_wide_types.
14449         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14450         (mn10300_trampoline_init): Rewrite without a template, an immediate
14451         load and a direct branch.
14452         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14454 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14456         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14457         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14458         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14459         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14461 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14463         PR debug/47209
14464         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14465         of type.
14467 2011-01-12  Jan Hubicka  <jh@suse.cz>
14469         PR driver/47244
14470         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14471         (PLUGIN_COND_CLOSE): New macro.
14472         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14474 2011-01-12  Richard Guenther  <rguenther@suse.de>
14476         PR lto/47259
14477         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14478         register variables in a MEM_REF.
14480 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14482         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14483         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14484         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14485         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14486         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14487         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14488         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14489         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14490         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14491         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14492         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14493         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14494         * config/gnu-user.h: New.  Copied from linux.h.
14495         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14496         GNU_USER_TARGET_STARTFILE_SPEC.
14497         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14498         GNU_USER_TARGET_ENDFILE_SPEC.
14499         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14500         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14501         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14502         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14503         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14504         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14505         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14506         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14507         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14508         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14509         * config/arm/linux-eabi.h (CC1_SPEC): Use
14510         GNU_USER_TARGET_CC1_SPEC.
14511         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14512         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14513         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14514         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14515         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14516         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14517         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14518         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14520 2011-01-12  Richard Guenther  <rguenther@suse.de>
14522         PR other/46946
14523         * doc/invoke.texi (ffast-math): Document it is turned on
14524         with -Ofast.
14526 2011-01-12  Jan Hubicka  <jh@suse.cz>
14528         PR tree-optimization/47233
14529         * opts.c (common_handle_option): Disable ipa-reference with profile
14530         feedback.
14532 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14534         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14535         error message.
14537 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14539         * c-parser.c (c_lex_one_token): Updated and reindented some
14540         comments.  No changes in code.
14542 2011-01-11  Ian Lance Taylor  <iant@google.com>
14544         * godump.c (go_output_var): Don't output the variable if there is
14545         already a type with the same name.
14547 2011-01-11  Ian Lance Taylor  <iant@google.com>
14549         * godump.c (go_format_type): Don't generate float80.
14551 2011-01-11  Richard Henderson  <rth@redhat.com>
14553         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14554         declaration.  Rewrite for both speed and size.
14555         (mn10300_address_cost_1): Remove.
14556         (mn10300_register_move_cost): New.
14557         (mn10300_memory_move_cost): New.
14558         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14559         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14560         extensions, shifts, BSWAP, CLZ.
14561         (mn10300_wide_const_load_uses_clr): Remove.
14562         (TARGET_REGISTER_MOVE_COST): New.
14563         (TARGET_MEMORY_MOVE_COST): New.
14564         * config/mn10300/mn10300-protos.h: Update.
14565         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14567         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14568         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14569         * config/mn10300/mn10300-protos.h: Update.
14570         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14571         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14572         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14573         (*test_int_bitfield, *test_byte_bitfield): Remove.
14574         (*bit_test, *subreg_bit_test): Remove.
14575         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14577         * config/mn10300/constraints.md ("c"): Rename from "A".
14578         ("A", "D"): New constraint letters.
14579         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14580         (fmssf4, fnmasf4, fnmssf4): Likewise.
14582         * config/mn10300/mn10300.md (isa): New attribute.
14583         (enabled): New attribute.
14585         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14586         (abssf2, negsf2): Define only for hardware fp.
14587         (sqrtsf2): Reformat.
14588         (addsf3, subsf3, mulsf3): Merge expander and insn.
14590         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14591         (DEBUGGER_AUTO_OFFSET): Remove.
14592         (DEBUGGER_ARG_OFFSET): Remove.
14594         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14595         Emit register stores with the same offsets as the hardware.
14596         (mn10300_store_multiple_operation): Don't check that the register
14597         save offsets are monotonic.
14598         * config/mn10300/mn10300-protos.h: Update.
14600         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14602         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14603         in terms of the value on the stack, not the MDR register.
14605 2011-01-11  Jan Hubicka  <jh@suse.cz>
14607         PR lto/45721
14608         PR lto/45375
14609         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14610         (symbol_alias_set_destroy, symbol_alias_set_contains,
14611         propagate_aliases_backward): Declare.
14612         * lto-streamer-out.c (struct sets): New sturcture.
14613         (trivally_defined_alias): New function.
14614         (output_alias_pair_p): Rewrite.
14615         (output_unreferenced_globals): Fix output of alias pairs.
14616         (produce_symtab): Likewise.
14617         * ipa.c (function_and_variable_visibility): Set weak alias destination
14618         as needed in lto.
14619         * varasm.c (symbol_alias_set_t): Remove.
14620         (symbol_alias_set_destroy): Export.
14621         (propagate_aliases_forward, propagate_aliases_backward): New functions
14622         based on ...
14623         (compute_visible_aliases): ... this one; remove.
14624         (trivially_visible_alias): New
14625         (trivially_defined_alias): New.
14626         (remove_unreachable_alias_pairs): Rewrite.
14627         (finish_aliases_1): Reorganize code checking if alias is defined.
14628         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14629         in LTO mode.
14631 2011-01-11  Richard Guenther  <rguenther@suse.de>
14633         PR tree-optimization/46076
14634         * tree-ssa.c (useless_type_conversion_p): Conversions from
14635         unprototyped to empty argument list function types are useless.
14637 2011-01-11  Richard Guenther  <rguenther@suse.de>
14639         PR middle-end/45235
14640         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14641         volatile MEMs as MEM_READONLY_P.
14643 2011-01-11  Richard Guenther  <rguenther@suse.de>
14645         PR tree-optimization/47239
14646         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14648 2011-01-11  Jeff Law  <law@redhat.com>
14650         PR tree-optimization/47086
14651         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14652         IVs from statements that might throw.
14654 2011-01-10  Jan Hubicka  <jh@suse.cz>
14656         PR lto/45375
14657         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14659 2011-01-10  Jan Hubicka  <jh@suse.cz>
14661         PR lto/45375
14662         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14663         when correcting profile.
14665 2011-01-10  Jan Hubicka  <jh@suse.cz>
14667         PR lto/46083
14668         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14669         DECL_FINI_PRIORITY.
14670         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14671         Restore DECL_FINI_PRIORITY.
14673 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14675         * doc/gimple.texi: Fix quoting of multi-word return values in
14676         @deftypefn statements.  Ensure presence of return value.  Wrap
14677         overlong @deftypefn lines.
14678         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14679         descriptions of removed functions.
14680         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14681         of multi-word return value in @deftypefn statement.
14683 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14685         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14686         (Conditional Expressions, Logical Operators)
14687         (Statement and operand traversals): Do not indent smallexample
14688         code.  Fix duplicate function argument in example.
14690 2011-01-10  Jeff Law  <law@redhat.com>
14692         PR tree-optimization/47141
14693         * ipa-split.c (split_function): Handle case where we are
14694         returning a value and the return block has a virtual operand phi.
14696 2011-01-10  Jan Hubicka  <jh@suse.cz>
14698         PR tree-optimization/47234
14699         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14700         (pass_feedback_split_functions): Declare.
14701         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14702         tree-profile.
14703         * ipa-split.c (gate_split_functions): Update comments; disable
14704         split-functions for profile_arc_flag and branch_probabilities.
14705         (gate_feedback_split_functions): New function.
14706         (execute_feedback_split_functions): New function.
14707         (pass_feedback_split_functions): New global var.
14709 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14711         PR lto/46760
14712         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14713         calling gimple_call_set_cannot_inline.
14715 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14717         * config/darwin-sections.def: Remove unused section.
14719 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14721         PR c++/47218
14722         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14724 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14726         PR objc/47232
14727         * c-parser.c (c_parser_declaration_or_fndef): Improved
14728         error message.
14730 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14732         * config/i386/winnt.c (i386_pe_start_function): Make sure
14733         to switch back to function's section.
14735 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14737         PR gcc/46902
14738         PR testsuite/46912
14739         * plugin.c: Move include of dlfcn.h from here...
14740         * system.h: ... to here.
14742 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14744         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14745         file name.
14746         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14747         two extra empty pages in PDF output.
14749 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14751         PR objc/47078
14752         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14753         for error recovery purposes behave as if it was not specified so
14754         that the default type is usd.
14756 2011-01-07  Jan Hubicka  <jh@suse.cz>
14758         PR tree-optmization/46469
14759         * ipa.c (function_and_variable_visibility): Clear needed flags on
14760         nodes with external decls; handle weakrefs merging correctly.
14762 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14764         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14765         not false.
14767 2011-01-07  Jan Hubicka  <jh@suse.cz>
14769         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14770         and no longer claim that gold is required for linker plugin.
14771         * configure: Regenerate.
14772         * gcc.c (PLUGIN_COND): New macro.
14773         (LINK_COMMAND_SPEC): Use it.
14774         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14775         * config.in (HAVE_LTO_PLUGIN): New.
14776         * configure.ac (--with-lto-plugin): New parameter; autodetect
14777         HAVE_LTO_PLUGIN.
14779 2011-01-07  Jan Hubicka  <jh@suse.cz>
14781         PR tree-optimization/46367
14782         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14783         when we can update original.
14784         (cgraph_mark_inline_edge): Sanity check.
14785         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14787 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14789         * config/spu/spu.h (ASM_COMMENT_START): Define.
14791 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14793         PR driver/42445
14794         * gcc.c (%>S): New.
14795         (SWITCH_KEEP_FOR_GCC): Likewise.
14796         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14797         (do_spec_1): Handle "%>".
14799         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14801 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14803         PR target/47201
14804         * config/i386/i386.c (ix86_delegitimize_address): If
14805         simplify_gen_subreg fails, return orig_x.
14807         PR bootstrap/47187
14808         * value-prof.c (gimple_stringop_fixed_value): Handle
14809         lhs of the call properly.
14811 2011-01-07  Jan Hubicka  <jh@suse.cz>
14813         PR lto/45375
14814         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14816 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14818         * target.def (function_switched_text_sections): New hook.
14819         * doc/tm.texi: Regenerated.
14820         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14821         * final.c (default_function_switched_text_sections): New.
14822         (final_scan_insn): Call function_switched_text_sections when a
14823         mid-function section change occurs.
14824         * output.h (default_function_switched_text_sections): Declare.
14825         * config/darwin-protos.h (darwin_function_switched_text_sections):
14826         Likewise.
14827         * config/darwin.c (darwin_function_switched_text_sections): New.
14828         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14830 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14832         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14833         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14834         the secondary code fragment when outputting for DWARF == 2.
14836 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14838         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14839         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14840         Remove.
14841         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14842         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14844 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14846         PR debug/46704
14847         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14848         when it is not empty.
14850 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14852         Bobcat Enablement
14853         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14854         (case ${target}): Add btver1.
14855         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14856         -march=native recognize btver1 processors.
14857         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14858         btver1 def_and_undef
14859         * config/i386/i386.c (struct processor_costs btver1_cost): New
14860         btver1 cost table.
14861         (m_BTVER1): New definition.
14862         (m_AMD_MULTIPLE): Includes m_BTVER1.
14863         (initial_ix86_tune_features): Add btver1 tune.
14864         (processor_target_table): Add btver1 entry.
14865         (static const char *const cpu_names): Add btver1 entry.
14866         (software_prefetching_beneficial_p): Add btver1.
14867         (ix86_option_override_internal): Add btver1 instruction sets.
14868         (ix86_issue_rate): Add btver1.
14869         (ix86_adjust_cost): Add btver1.
14870         * config/i386/i386.h (TARGET_BTVER1): New definition.
14871         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14872         (enum processor_type): Add PROCESSOR_BTVER1.
14873         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14875 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14877         PR target/43309
14878         * config/i386/i386.c (legitimize_tls_address)
14879         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14880         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14881         (tls_initial_exec_64_sun): New pattern.
14883 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14885         * doc/invoke.texi (Overall Options): Improve wording and markup
14886         of the description of -wrapper.
14888 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14890         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14891         rdynamic, threads): New Driver options.
14893 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14895         PR target/38118
14896         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14897         if coming from .tdata.
14898         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14900 2011-01-06  Jan Hubicka  <jh@suse.cz>
14902         PR lto/47188
14903         * collect2.c (main): Do not enable LTOmode when plugin is active.
14905 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14907         PR other/45915
14908         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14909         --version output if supported.
14910         * configure: Regenerate.
14912 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14914         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14915         Driver options.
14917 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14919         PR c/47150
14920         * c-convert.c (convert): When converting a complex expression
14921         other than COMPLEX_EXPR to a different complex type, ensure
14922         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14923         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14924         when converting COMPLEX_TYPE.
14926 2011-01-06  Ira Rosen  <irar@il.ibm.com>
14928         PR tree-optimization/47139
14929         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14930         only the last reduction value is used outside the loop.  Update
14931         documentation.
14933 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
14935         * config/rtems.opt: New.
14936         * config.gcc (*-*-rtems*): Use rtems.opt.
14938 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
14940         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14941         processors do not support 3DNow instructions.
14943 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14945         * config/spu/spu.c (spu_option_override): Set parameter
14946         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14948 2011-01-05  Jan Hubicka  <jh@suse.cz>
14950         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14951         at the command line.
14953 2011-01-05  Martin Jambor  <mjambor@suse.cz>
14955         PR lto/47162
14956         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14957         deltas on streamed outgoing edges.
14958         (output_node_opt_summary): Output info for outgoing edges only when
14959         the node is in new parameter set.
14960         (output_cgraph_opt_summary): New parameter set, passed to the two
14961         aforementioned functions.  Update its forward declaration and its
14962         callee too.
14964 2011-01-05  Tom Tromey  <tromey@redhat.com>
14966         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14967         operator to c_finish_omp_atomic.
14968         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14969         (build_unary_op): Update.
14970         (build_modify_expr): Update.
14971         (build_asm_expr): Update.
14973 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14975         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14976         newly inserted insns.
14977         (pad_bb): Likewise.
14978         (spu_emit_branch_hint): Likewise.
14979         (insert_hbrp_for_ilb_runout): Likewise.
14980         (spu_machine_dependent_reorg): Call df_finish_pass after
14981         schedule_insns returns.
14983 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14985         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14987 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
14989         PR tree-optimization/47005
14990         * tree-sra.c (struct access): Add 'non_addressable' bit.
14991         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14992         (decide_one_param_reduction): Return 0 if the parameter is passed by
14993         reference and one of the accesses in the group is non_addressable.
14995 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
14997         PR tree-optimization/47056
14998         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14999         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15000         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15002 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15004         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15005         initializer.  Skip view conversions from aggregate types.
15007 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15009         PR bootstrap/47055
15010         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15012 2011-01-04  Philipp Thomas  <pth@suse.de>
15014         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15015         obvious typo.
15017 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15019         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15020         on empty epilogue sequences.
15022 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15024         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15025         non-static): New Driver options.
15027 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15029         PR driver/47137
15030         * gcc.c (default_compilers[]): Set combinable field to 0
15031         for all assembly languages.
15033 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15035         * config/mips/loongson3a.md: New file.
15036         * config/mips/mips.md: Include loongson3a.md.
15037         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15038         TUNE_LOONGSON_3A.
15040 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15042         PR middle-end/47017
15043         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15044         instead of convert_memory_address_addr_space on the base expression.
15046 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15048         * config/spu/spu.c (spu_option_override): Update error text
15049         for bad -march= / -mtune= values.
15051 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15053         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15054         if branch-hint optimization will be performed.
15056 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15058         PR tree-optimization/47148
15059         * ipa-split.c (split_function): Convert arguments to
15060         DECL_ARG_TYPE if possible.
15062         PR tree-optimization/47155
15063         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15064         when computing uns.
15066         PR rtl-optimization/47157
15067         * combine.c (try_combine): If undobuf.other_insn becomes
15068         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15069         and set *new_direct_jump_p too.
15071 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15073         PR tree-optimization/47021
15074         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15076 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15078         * gcc.c (process_command): Update copyright notice dates.
15079         * gcov.c (print_version): Likewise.
15080         * gcov-dump.c (print_version): Likewise.
15081         * mips-tfile.c (main): Likewise.
15082         * mips-tdump.c (main): Likewise.
15084 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15086         PR tree-optimization/46801
15087         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15088         aggregate fields start at byte boundary instead of the bit-field flag.
15090 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15092         PR driver/47137
15093         * gcc.c (main): Revert revision 168407.
15095 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15097         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15099 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15101         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15102         vector optab to expand vector/scalar shift, update gimple to vector.
15104 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15106         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15107         a thunk.
15109 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15111         PR tree-optimization/46984
15112         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15113         HOST_WIDE_INT.
15114         (cgraph_create_indirect_edge): Fixed line length.
15115         (cgraph_indirect_call_info): Declare.
15116         (cgraph_make_edge_direct) Update declaration.
15117         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15118         (cgraph_create_indirect_edge): Use it.
15119         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15120         callees.
15121         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15122         the new thunk_delta representation.
15123         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15124         HOST_WIDE_INT.
15125         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15126         (ipa_read_indirect_edge_info): Likewise.
15127         * lto-cgraph.c (output_edge_opt_summary): New function.
15128         (output_node_opt_summary): Call it on all outgoing edges.
15129         (input_edge_opt_summary): New function.
15130         (input_node_opt_summary): Call it on all outgoing edges.
15132 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15134         PR driver/47137
15135         * gcc.c (main): Don't check have_o when settting combine_inputs.
15137 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15139         * regrename.c: Add general comment describing the pass.
15140         (struct du_head): Remove 'length' field.
15141         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15142         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15143         Force renaming to the preferred class (if any) in the first pass and do
15144         not consider registers that belong to it in the second pass.
15145         (create_new_chain): Do not set 'length' field.
15146         (scan_rtx_reg): Likewise.
15148 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15150         PR tree-optimization/47140
15151         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15152         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15153         to bit_value_binop.
15155         PR rtl-optimization/47028
15156         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15157         parm_birth_insn instead of at the beginning of first bb.
15159 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15161         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15162         Remove the word "see" before "@pxref".
15163         * doc/rtl.texi: Remove the word "see" before "@pxref".
15165 2011-01-01  Jan Hubicka  <jh@suse.cz>
15167         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15168         memory.
15170 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15172         PR target/38662
15173         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15176 Copyright (C) 2011 Free Software Foundation, Inc.
15178 Copying and distribution of this file, with or without modification,
15179 are permitted in any medium without royalty provided the copyright
15180 notice and this notice are preserved.