PR c/49120
[official-gcc.git] / gcc / ChangeLog
blob4c73adb37892e3c29150598332ebd94aaba4f683
1 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
3         PR c/49120
4         * c-decl.c (start_decl): Convert expr to void_type_node.
6 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
8         PR rtl-optimization/48826
9         * emit-rtl.c (try_split): When splitting a call that is followed
10         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
12 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14         * cfgexpand.c (expand_debug_expr): For unused non-addressable
15         parameters passed in memory prefer using DECL_INCOMING_RTL over
16         the pseudos it will be copied into.
18 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
20         PR target/47315
21         * config/i386/i386.c (ix86_option_override_internal): Save the
22         initial options after checking vzeroupper.
24 2011-05-23  David Li  <davidxl@google.com>
26         PR tree-optimization/48988
27         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
28         Initialize has_valid_pred for each pred chain.
30 2011-05-23  Richard Guenther  <rguenther@suse.de>
32         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
33         (iterative_hash_gimple_type): Always hash type names.
35 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
37         * c-typeck.c (build_function_call_vec): Tweak call to
38         check_function_arguments.
40 2011-05-23  Richard Guenther  <rguenther@suse.de>
42         PR tree-optimization/49115
43         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
44         is not necessarily carried out, do not claim it kills the ref.
45         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
47 2011-05-23  Richard Guenther  <rguenther@suse.de>
49         PR middle-end/15419
50         * builtins.c (fold_builtin_memory_op): Be less restrictive about
51         what pointer types we accept for folding.
53 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
55         * gthr-gnat.c: Remove.
56         * gthr-gnat.h: Remove.
57         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
58         * config/t-freebsd (LIB2ADDEH): Likewise.
59         * config/t-linux (LIB2ADDEH): Likewise.
60         * config/t-sol2 (LIB2ADDEH): Likewise.
61         * config/ia64/t-vms (LIB2ADDEH): Likewise.
62         * configure.ac (target_thread_file): Remove gnat handling.
63         * configure: Regenerate.
64         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
66 2011-05-23  Tristan Gingold  <gingold@adacore.com>
67             Eric Botcazou  <ebotcazou@adacore.com>
69         * gcov.c (create_file_names): If no object directory is specified,
70         keep the directory of the file.
72 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
74         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
75         * configure: Regenerate.
77 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
79         PR middle-end/48973
80         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
81         failed and the comparison has a single bit signed type, use
82         constm1_rtx instead of const1_rtx for true value.
83         (do_store_flag): If ops->type is single bit signed type, disable
84         signel bit test optimization and pass -1 instead of 1 as last
85         parameter to emit_store_flag_force.
87 2011-05-23  Tom de Vries  <tom@codesourcery.com>
89         PR target/45098
90         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
91         function.
92         (infer_loop_bounds_from_undefined): Use new function.
94 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
96         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
97         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
98         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
99         and -O0 otherwise.
100         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
102 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
104         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
105         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
106         returns true.
108 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
110         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
112 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
114         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
115         UNSPEC_MOVE_PIC pattern.
117 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
119         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
120         (sparc-*-rtems*): Likewise.
121         (sparc64-*-elf*): Likewise.
122         (sparc64-*-rtems*): Likewise.
123         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
124         * config/sparc/t-crtin: New file.
125         * config/sparc/t-sol2 (crti.o): Delete rule.
126         (crtn.o): Likewise.
127         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
128         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
129         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
130         (ENDFILE_SPEC): Add crtn.o.
132 2011-05-22  Tom de Vries  <tom@codesourcery.com>
134         PR middle-end/48689
135         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
136         CODE_CONTAINS_STRUCT (TS_COMMON).
138 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
140         PR middle-end/49029
141         * expmed.c (extract_fixed_bit_field): Test whether target can be used
142         only after deciding which mode to use.
144 2011-05-22  Tom de Vries  <tom@codesourcery.com>
146         PR target/45098
147         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
148         for call to get_shiftadd_cost.
150 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
152         PR target/49104
153         * config/i386/cpuid.h (bit_MMXEXT): New define.
155 2011-05-22  Nick Clifton  <nickc@redhat.com>
157         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
158         initialisation of non-existant args[2] element.  Use args[] array
159         not arg[] array to pass arguments to build_function_type_list.
161 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
163         PR tree-optimization/49087
164         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
166 2011-05-21  Jason Merrill  <jason@redhat.com>
168         PR c++/49092
169         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
170         static storage duration.
172 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
174         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
175         frame pointer.
177 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
179         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
180         false if there are call-saved registers here...
181         (sparc_can_use_return_insn_p): ...but here instead.
182         (save_or_restore_regs): Fix thinko.
183         (sparc_expand_prologue): Use current_function_is_leaf.
184         (sparc_frame_pointer_required): Likewise.
186 2011-05-21  Nick Clifton  <nickc@redhat.com>
188         PR target/49098
189         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
191 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
193         * gengtype.c (walk_type): Implemented "atomic" GTY option.
194         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
196 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
198         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
199         * optc-gen.awk: Move common code to opt-read.awk.
200         * opth-gen.awk: Likewise.
201         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
203 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
205         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
207 2011-05-20  Tom de Vries  <tom@codesourcery.com>
209         PR target/45098
210         * tree-ssa-loop-ivopts.c: Include expmed.h.
211         (get_shiftadd_cost): New function.
212         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
214 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
216         PR bootstrap/49086
217         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
218         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
220 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
222         * Makefile.in: Update comment referring to $(OBJS-common).
224 2011-05-20  Ian Lance Taylor  <iant@google.com>
226         * godump.c (go_output_typedef): Put enum constants in the macro
227         hash table to avoid duplicate Go const definitions.
229 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
231         * Makefile.in (LIBDEPS): Add libcommon.a.
232         (LIBS): Likewise.
233         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
234         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
235         pretty-print.o and version.o.
236         (OBJS-libcommon): New.
237         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
238         (BACKEND): Add libcommon.a.
239         (MOSTLYCLEANFILES): Likewise.
240         (libcommon.a): New.
241         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
242         (cpp$(exeext)): Likewise.
243         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
244         pretty-print.o and input.o.
245         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
246         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
247         (errors.o): Remove.
248         (mips-tfile): Don't explicitly use version.o.
249         (mips-tdump): Likewise.
250         (gcov.o): Depend on $(DIAGNOSTIC_H).
251         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
252         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
253         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
254         * gcov-dump.c: Include intl.h and diagnostic.h.
255         (main): Initialize diagnostics.
256         * gcov.c: Include diagnostic.h.
257         (fnotice): Remove.
258         (main): Initialize diagnostics.
259         * lto-wrapper.c: Include diagnostic.h.
260         (main): Initialize diagnostics.
262 2011-05-20  Michael Matz  <matz@suse.de>
264         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
266 2011-05-20  Michael Matz  <matz@suse.de>
267             Richard Guenther  <rguenther@suse.de>
269         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
270         use lto_streamer_cache_append directly instead of returning a VEC.
271         (preload_common_node): Remove.
272         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
273         track seen nodes.
274         (lto_streamer_cache_create): Call lto_preload_common_nodes.
276 2011-05-20  Richard Guenther  <rguenther@suse.de>
278         PR tree-optimization/49079
279         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
280         MEM_REFs correctly for the trailing array access detection.
281         Special case constants the same way as decls for overall size
282         constraining.
284 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
286         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
287         argument expansion.
289 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
291         PR tree-optimization/49073
292         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
293         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
294         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
296 2011-05-20  Richard Guenther  <rguenther@suse.de>
298         PR middle-end/48849
299         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
300         of pointer types the same way the middle-end does.
302 2011-05-20  Richard Guenther  <rguenther@suse.de>
304         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
305         or pointer-to chains.  Delay all fixup to uniquify_nodes.
307 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
309         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
310         (fma4_fmaddsub): Likewise
312 2011-05-19  Jan Hubicka  <jh@suse.cz>
314         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
315         (GIMPLE_TYPE_PAIR_SIZE): New macro.
316         (type_pair_cache): New static var.
317         (lookup_type_pair): Use fixed sized custom hash; make inline.
318         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
319         calls of lookup_type_pair.
320         (print_gimple_types_stats): Remove cache stats.
321         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
322         and gtc_ob.
324 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
326         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
327         when TARGET_RDRND is active.
328         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
329         Generate dummy SImode target register when target is NULL.
331 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
333         * config/arm/arm-fpus.def: New.
334         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
335         arm-fpus.def.
336         * config/arm/arm-tables.opt: Regenerate.
337         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
338         (arm_option_override): Don't decode FPU name to string here.
339         * config/arm/arm.opt (mfpu=): Use Enum.
340         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
341         Update dependencies.
343 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
345         * collect2.c: Include diagnostic.h.
346         (fatal_perror, fatal, error, fancy_abort): Remove.
347         (main): Set progname.  Call xmalloc_set_program_name and
348         diagnostic_initialize.
349         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
350         scan_libraries, resolve_lib_name): Call fatal_error instead of
351         fatal and fatal_perror.
352         * collect2.h (error, fatal, fatal_perror): Don't declare.
353         * tlink.c: Include diagnostic-core.h.
354         (recompile_files): Call fatal_error instead of fatal_perror.
355         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
356         pretty-print.o and input.o.
357         (collect2.o, tlink.o): Update dependencies.
359 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
361         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
363 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
365         PR target/40483
366         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
367         COMDAT group syntax, both SPARC and x86 variants.
368         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
369         * configure: Regenerate.
370         * config/sol2.h (TARGET_SOLARIS): Define.
371         (PUSHSECTION_FORMAT): Remove.
372         (SECTION_NAME_FORMAT): Define.
373         * config/sol2.c: Include hashtab.h.
374         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
375         expansion, using SECTION_NAME_FORMAT.
376         (solaris_comdat_htab): New variable.
377         (struct comdat_entry): Define.
378         (comdat_hash): New function.
379         (comdat_eq): New function.
380         (solaris_elf_asm_comdat_section): New function.
381         (solaris_define_comdat_signature): New function.
382         (solaris_code_end): New function.
383         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
384         (solaris_code_end): Declare.
385         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
386         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
387         solaris_code_end.
388         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
389         Remove ATTRIBUTE_UNUSED.
390         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
391         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
392         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
393         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
394         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
395         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
396         (PUSHSECTION_FORMAT): Remove.
397         (SECTION_NAME_FORMAT): Redefine.
399 2011-05-19  Kai Tietz  <ktietz@redhat.com>
401         * tree-cfg.c (verify_gimple_assign_binary): Barf on
402         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
403         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
405 2011-05-19  Anatoly Sokolov <aesok@post.ru>
406             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
408         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
410 2011-05-19  Richard Guenther  <rguenther@suse.de>
412         PR middle-end/48985
413         * tree-object-size.c (addr_object_size): If the pointed-to
414         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
416 2011-05-19  Richard Guenther  <rguenther@suse.de>
418         * gimple.c (gimple_types_compatible_p_1): Compare names of
419         the types themselves.
420         (iterative_hash_gimple_type): And hash them that way.
421         (gimple_register_type_1): If we register a main variant properly
422         initialize the leader to ourselves.
424 2011-05-19  Tom de Vries  <tom@codesourcery.com>
426         PR target/45098
427         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
428         get_loop_invariant_expr_id.
429         (get_loop_invariant_expr_id): Use get_expr_id.
430         (parm_decl_cost): New function.
431         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
432         Improve bound cost estimation.  Use different inv_expr_id for elim and
433         express cases.
435 2011-05-19  Tom de Vries  <tom@codesourcery.com>
437         PR target/45098
438         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
439         cost_base.cost == 0.
441 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
443         PR target/49002
444         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
445         Properly handle load cast.
447 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
449         PR tree-optimization/49039
450         * tree-vrp.c (extract_range_from_binary_expr): For
451         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
452         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
454 2011-05-18  Tom de Vries  <tom@codesourcery.com>
456         PR target/45098
457         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
459 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
461         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
462         (*tls_global_dynamic_64): Ditto.
463         (*tls_local_dynamic_base_32_gnu): Ditto.
464         (*tls_local_dynamic_base_64): Ditto.
465         (tls_initial_exec_64_sun): Ditto.
467 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
469         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
470         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
471         bf592-none.
472         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
473         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
474         * config/bfin/bfin.c (bfin_cpus): Add bf592.
475         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
476         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
477         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
478         * config/bfin/elf.h (LIB_SPEC): Add bf592.
480 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
482         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
483         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
484         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
485         target_thread_pointer, arm_structure_size_boundary, struct
486         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
487         struct abi_name, arm_all_abis): Remove.
488         (arm_option_override) Don't process most enumerated option values here.
489         Don't process target_fpe_name here.  Work with integer not string for
490         structure size boundary; use separate diagnostics for each case.
491         * config/arm/arm.h (enum float_abi_type, enum
492         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
493         to arm-opts.h.
494         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
495         arm_structure_size_boundary): Remove.
496         * config/arm/arm.opt (mabi=): Use Enum and Init.
497         (arm_abi_type): New Enum and EnumValue entries.
498         (mfloat-abi=): Use Enum and Init.
499         (float_abi_type): New Enum and EnumValue entries.
500         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
501         (mfp16-format=): Use Enum and Init.
502         (arm_fp16_format_type): New Enum and EnumValue entries.
503         (mstructure-size-boundary=): Use UInteger and Init.
504         (mtp=): Use Enum and Init.
505         (arm_tp_type): New Enum and EnumValue entries.
507 2011-05-18  Richard Guenther  <rguenther@suse.de>
509         PR tree-optimization/49018
510         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
511         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
512         gimple_has_side_effects.
514 2011-05-18  Richard Guenther  <rguenther@suse.de>
516         * gimple.c (gimple_register_type_1): New function, split out from ...
517         (gimple_register_type): ... here.  Avoid infinite recursion.
519 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
521         PR tree-optimization/41881
522         * tree-vectorizer.h (struct _loop_vec_info): Add new field
523         reduction_chains along with a macro for its access.
524         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
525         (destroy_loop_vec_info): Free reduction chains.
526         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
527         (vect_is_slp_reduction): New function.
528         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
529         (vect_create_epilog_for_reduction): Support SLP reduction chains.
530         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
531         definition types for reduction chains.
532         (vect_supported_load_permutation_p): Don't allow permutations for
533         reduction chains.
534         (vect_analyze_slp_instance): Support reduction chains.
535         (vect_analyze_slp): Try to build SLP instance from reduction chains.
536         (vect_get_constant_vectors):  Handle reduction chains.
537         (vect_schedule_slp_instance): Mark the first statement of the
538         reduction chain as reduction.
540 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
542         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
543         names for group elements access.
544         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
545         reduction chains as well.  Remove data reference and interleaving
546         related words from the fields names.
547         * tree-vect-loop.c (vect_transform_loop): Use new names for group
548         elements access.
549         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
550         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
551         vect_update_interleaving_chain, vect_same_range_drs,
552         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
553         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
554         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
555         vect_analyze_group_access, vect_analyze_data_ref_access,
556         vect_create_data_ref_ptr, vect_transform_strided_load,
557         vect_record_strided_load_vectors): Likewise.
558         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
559         vect_model_load_cost, vectorizable_store, vectorizable_load,
560         vect_remove_stores, new_stmt_vec_info): Likewise.
561         * tree-vect-slp.c (vect_build_slp_tree,
562         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
564 2011-05-18  Richard Guenther  <rguenther@suse.de>
566         PR middle-end/48989
567         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
568         operand verification.
569         (verify_gimple_assign_binary): Likewise.
570         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
571         to non-1-precision BOOLEAN_TYPEs.
573 2011-05-18  Tom de Vries  <tom@codesourcery.com>
575         PR target/45098
576         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
578 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
580         PR tree-optimization/49000
581         * tree-ssa.c (execute_update_addresses_taken): Call
582         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
583         be rewritten and decl has been marked for renaming, reset
584         the debug stmt.
586 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
588         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
589         enum_opts_set when testing if attributes have set -mfpmath=.
591 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
593         * config/mips/mips.c (mips_handle_option): Remove unused variable.
595 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
597         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
598         info->entry with 0
599         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
600         id.transform_lang_insert_block with NULL.
602 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
604         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
605         (output_fp_compare): Change args 3 and 4 to bool.
606         (ix86_expand_call): Change arg 6 to bool.
607         (ix86_attr_length_immediate_default): Change arg 2 to bool.
608         (ix86_attr_length_vex_default): Change arg 3 to bool.
609         * config/i386/i386.md: Update all uses.
610         * config/i386/i386.c: Ditto.
611         (ix86_flags_dependent): Change return type to bool.
613 2011-05-17  Richard Guenther  <rguenther@suse.de>
615         * gimple.c (type_hash_pair_compare): Fix comparison.
617 2011-05-17  Richard Guenther  <rguenther@suse.de>
619         * gimple.c (iterative_hash_gimple_type): Simplify singleton
620         case some more, fix final hash value of the non-singleton case.
622 2011-05-17  Richard Guenther  <rguenther@suse.de>
624         PR bootstrap/49013
625         Revert
626         2011-05-16  Richard Guenther  <rguenther@suse.de>
628         * gimple.c (gimple_types_compatible_p_1): Use names of the
629         type itself, not its main variant.
630         (iterative_hash_gimple_type): Likewise.
632 2011-05-17  Richard Guenther  <rguenther@suse.de>
634         * gimple.c (gimple_register_canonical_type): Use the main-variant
635         leader for computing the canonical type.
637 2011-05-17  Nick Clifton  <nickc@redhat.com>
639         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
640         moves.
642         * config/rx/rx.md: Add peephole to remove redundant extensions
643         after loads.
644         (bitset_in_memory): Use rx_restricted_mem_operand.
645         (bitinvert_in_memory): Likewise.
646         (bitclr_in_memory): Likewise.
648 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
649             Nick Clifton  <nickc@redhat.com>
651         * config/rx/rx.md: Add peepholes to match a register move followed
652         by a comparison of the moved register.  Replace these with an
653         addition of zero that does both actions in one instruction.
655 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
657         PR target/48986
658         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
659         predicate to allow CONST_INT.
660         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
662 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
664         * opts-common.c (opt_enum_arg_to_value): New.
665         * opts.h (opt_enum_arg_to_value): Declare.
666         * config/i386/i386.opt (fpmath): Remove.
667         (mfpmath=): Use Enum, Init and Save.
668         (fpmath_unit): New Enum and EnumValue entries.
669         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
670         name for function fpmath state.
671         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
672         * config/i386/i386.c: Include diagnostic.h.
673         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
674         (ix86_target_string): Take enum fpmath_unit value instead of string.
675         (ix86_debug_options): Update call to ix86_target_string.
676         (ix86_option_override_internal): Don't process fpmath strings here.
677         (x86_function_specific_save, ix86_function_specific_restore):
678         Don't handle fpmath state specially.
679         (ix86_function_specific_print): Pass fpmath state to
680         ix86_target_string instead of printing in this function.
681         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
682         Handle enum attributes.
683         (IX86_ATTR_ENUM, ix86_opt_enum): New.
684         (ix86_valid_target_attribute_tree): Update option_strings
685         handling.  Handle fpmath as enum option.
686         (ix86_can_inline_p): Update field names for function fpmath state.
687         (ix86_expand_builtin): Update call to ix86_target_string.
688         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
689         (ix86_fpmath): Remove.
690         * config/i386/t-i386 (i386.o): Update dependencies.
692 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
694         PR preprocessor/48677
695         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
696         from decoded_options[0], not from itself.
698 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
700         * config/i386/constraints.md (z): New constraint.
701         * config/i386/i386.c (c): New mode attribute.
702         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
703         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
704         constraint for operand 0.
705         (*call_vzeroupper): Ditto.
706         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
707         (*call_rex64_ms_sysv_vzeroupper): Ditto.
708         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
709         Use "lzm" constraint for operand 0.
710         (*call_pop_vzeroupper): Ditto.
711         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
712         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
713         constraint for operand 0.
714         (*sibcall_vzeroupper): Ditto.
715         (*sibcall_rex64_ms_sysv): Ditto.
716         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
717         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
718         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
719         (*sibcall_pop_vzeroupper): Ditto.
720         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
721         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
722         mode iterator.  Use "<c>zm" constraint for operand 1.
723         (*call_value_vzeroupper): Ditto.
724         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
725         for operand 1.
726         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
727         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
728         *call_value_pop_1.  Use "lzm" constraint for operand 1.
729         (*call_value_pop_vzeroupper): Ditto.
730         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
731         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
732         mode iterator.  Use "Uz" constraint for operand 1.
733         (*sibcall_value_vzeroupper): Ditto.
734         (*sibcall_value_rex64_ms_sysv): Ditto.
735         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
736         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
737         constraint for operand 1.
738         (*sibcall_value_pop_vzeroupper): Ditto.
739         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
740         and "z" constraint for operand 2.
741         (*tls_global_dynamic_32_gnu): Ditto.
742         (*tls_local_dynamic_base_32_gnu): Ditto.
743         (*tls_local_dynamic_base_64): Ditto.
744         (*tls_local_dynamic_32_once): Ditto.
745         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
746         Update all callers.
747         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
749 2011-05-16  Richard Guenther  <rguenther@suse.de>
751         * gimple.c (gimple_types_compatible_p_1): Use names of the
752         type itself, not its main variant.
753         (iterative_hash_gimple_type): Likewise.
755 2011-05-16  Richard Guenther  <rguenther@suse.de>
757         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
758         always visit pointer target and function result and argument types.
760 2011-05-16  Jason Merrill  <jason@redhat.com>
762         PR c++/48999
763         * tree-inline.c (copy_statement_list): Put back recursion.
765 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
767         PR target/27663
768         PR target/41076
769         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
770         * config/avr/avr.md ("*ior<mode>qi.byte0",
771         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
773 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
775         PR target/45099
776         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
777         register is needed for a function argument.
779 2011-05-16  Richard Guenther  <rguenther@suse.de>
781         * gimple.c (struct type_hash_pair): New type.
782         (type_hash_pair_compare): New function.
783         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
785 2011-05-16  Revital Eres  <revital.eres@linaro.org>
787         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
789 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
791         * config/i386/i386.md (floating point move splitters): Fix
792         usage of standard_80387_constant_p.
793         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
795 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
797         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
799 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
801         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
802         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
803         (tree_ssa_lim_finalize): Likewise.
805 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
807         * config/i386/constraint.md (Yd, Yx): New register constraints.
808         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
809         Yd conditional register constraint.
810         (*movtf_internal): Use standard_sse_constant_opcode.
811         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
812         Yx conditional register constraint.
813         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
814         Yd conditional register constraint.  Use standard_sse_constant_p to
815         check for valid SSE constants and call standard_sse_constant_opcode to
816         output SSE insn.
817         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
818         constants and call standard_sse_constant_opcode to output SSE insn.
819         * config/i386/i386.c (ix86_option_ovverride_internal): Set
820         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
821         optimize_size is set.
822         (standard_sse_constant_opcode): Output conditional AVX insn templates.
824 2011-05-14  Tobias Burnus  <burnus@net-b.de>
826         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
828 2011-05-13  Martin Jambor  <mjambor@suse.cz>
830         * ipa-prop.c (ipa_cst_from_jfunc): New function.
831         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
832         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
833         (evaluate_conditions_for_ipcp_clone): Removed.
834         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
835         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
836         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
838 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
840         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
841         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
842         lieu of MAY_HAVE_DEBUG_STMTS.
843         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
844         debug statements if !MAY_HAVE_DEBUG_STMTS.
846 2011-05-13  Martin Thuresson  <martint@google.com>
848         PR gcov-profile/47793
849         * libgcov.c (gcov_exit): Support relative profile paths.
850         * doc/invoke.texi (-fprofile-dir): Update for above change.
852 2011-05-13  Richard Guenther  <rguenther@suse.de>
854         * gimple.c (gimple_canonical_types_compatible_p): Do not use
855         type-pair caching, do not compare hashes.
857 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
859         PR middle-end/48965
860         * tree-cfg.c (edge_to_cases_cleanup): Return true.
861         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
863 2011-05-13  Kai Tietz  <ktietz@redhat.com>
865         * gimplify.c (gimplify_expr): Make sure operand is boolified.
866         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
867         compatible type for TRUTH_NOT_EXPR.
869 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
871         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
872         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
873         can_create_pseudo_p ().
875 2011-05-13  Richard Guenther  <rguenther@suse.de>
877         PR lto/48978
878         * gimple.c (iterative_hash_gimple_type): Revert change in
879         pointer target and function result and argument hashing.
881 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
883         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
884         (*movxf_internal_nointeger): Ditto.
885         (*movdf_internal_rex64): Ditto.
886         (*movdf_internal): Ditto.
887         (*movdf_internal_nointeger): Ditto.
888         (*movsf_internal): Ditto.
889         (sincos splitters): Use can_create_pseudo ().
891 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
893         * config/i386/i386-opts.h: New.
894         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
895         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
896         ix86_section_threshold): Remove.
897         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
898         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
899         OPT_mbranch_cost_.
900         (ix86_option_override_internal): Don't decode strings for options
901         other than -march=, -mtune= and -mfpmath=.  Don't allow for
902         __attribute__ uses in remaining diagnostics for options with
903         string arguments.  Don't check for integer arguments being negative.
904         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
905         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
906         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
907         ix86_branch_cost, ix86_section_threshold): Remove.
908         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
909         HeaderInclude.
910         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
911         but not Var.
912         (masm=): Use Enum and Init.
913         (asm_dialect): New Enum and EnumValue entries.
914         (mbranch-cost=): Use UInteger.
915         (mlarge-data-threshold=): Use UInteger and Init.
916         (mcmodel=): Use Enum and Init.
917         (cmodel): New Enum and EnumValue entries.
918         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
919         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
920         mregparm=): Use UInteger.
921         (mstringop-strategy=): Use Enum and Init.
922         (stringop_alg): New Enum and EnumValue entries.
923         (mtls-dialect=): Use Enum and Init.
924         (tls_dialect): New Enum and EnumValue entries.
925         (mabi=): Use Enum and Init.
926         (calling_abi): New Enum and EnumValue entries.
927         (mveclibabi=): Use Enum and Init.
928         (ix86_veclibabi): New Enum and EnumValue entries.
930 2011-05-13  Nick Clifton  <nickc@redhat.com>
932         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
933         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
935 2011-05-13  Kai Tietz  <ktietz@redhat.com>
937         PR middle-end/48984
938         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
939         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
940         (gimple_boolify): Check for cast for boolean_type_node instead for
941         BOOLEAN_TYPE.
943 2011-05-13  Richard Guenther  <rguenther@suse.de>
945         PR tree-optimization/48172
946         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
947         multiplying by number of iterations for equal step.
948         (vect_create_cond_for_alias_checks): Likewise.
950 2011-05-13  Andreas Schwab  <schwab@redhat.com>
952         * configure.ac: Use AS_HELP_STRING throughout.
953         * configure: Regenerate.
955 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
957         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
958         (ix86_emit_restore_regs_using_mov): Likewise.
959         (ix86_emit_restore_sse_regs_using_mov): Likewise.
961 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
963         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
964         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
965         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
966         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
967         RTX_OK_FOR_OLO10_P): ...here.
968         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
969         SYMBOLIC_CONST.
971 2011-05-12  Kai Tietz  <ktietz@redhat.com>
973         * gimplify.c (gimple_boolify): Re-boolify expression
974         arguments even if expression type is of kind BOOLEAN_TYPE.
975         (gimplify_boolean_expr): Removed.
976         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
977         and XOR. Additional take care that we keep expression's type.
978         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
979         of TRUTH_AND|OR|XOR_EXPR.
981 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
983         PR tree-optimization/48975
984         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
985         on all bbs here and free and clear ifc_bbs at the end.
987 2011-05-12  Richard Guenther  <rguenther@suse.de>
989         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
990         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
991         until after simple checks.
992         (gimple_types_compatible_p): Likewise.
993         (iterative_hash_gimple_type): Always hash pointer targets
994         and function return and argument types.
995         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
996         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
997         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
998         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
999         completely in the simple compare section.
1000         (gimple_register_canonical_type): Query the cache again after
1001         registering.
1003 2011-05-12  Richard Guenther  <rguenther@suse.de>
1005         PR tree-optimization/48172
1006         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1007         the number of iterations from the segment size calculation.
1008         (vect_create_cond_for_alias_checks): Adjust.
1010 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1012         PR debug/48967
1013         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1014         if validate_subreg fails.
1016 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1018         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1019         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1020         early.
1022 2011-05-12  DJ Delorie  <dj@redhat.com>
1024         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1025         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1026         created builtin into rx_builtins array.
1027         (rx_builtin_decl): New function.
1028         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1030 2011-05-12  DJ Delorie  <dj@redhat.com>
1031             Nick Clifton  <nickc@redhat.com>
1033         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1034         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1035         (rx_is_legitimate_address): Add pre-decrement and post-increment
1036         addressing in HImode and QImode.  Fix test for out of range
1037         REG+INT addressing.
1038         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1039         (rx_align_for_label): Test label before extracting its usage count.
1040         (rx_adjust_insn_lengths): Fix selection of insn codes.
1041         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1043 2011-05-11  Jason Merrill  <jason@redhat.com>
1045         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1047 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1049         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1050         reindent the subsequent block.
1052 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1053             Paul Pluzhnikov  <ppluzhnikov@google.com>
1055         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1056         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1057         * config.in: Add LINKER_HASH_STYLE.
1058         * configure.ac: Add --with-linker-hash-style.
1059         * configure: Regenerate.
1061 2011-05-11  Richard Guenther  <rguenther@suse.de>
1063         PR middle-end/48964
1064         * gimple.c (iterative_hash_canonical_type): Fix typo.
1066 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1068         * config/i386/i386.c (legitimize_tls_address)
1069         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1070         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1071         __tls_get_addr symbol reference here.  Update call to
1072         gen_tls_global_dynamic_{32,64} for added arguments.
1073         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1074         expanders directly for TARGET_GNU2_TLS.  Determine
1075         __tls_get_addr symbol reference here.  Update call to
1076         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1077         unique UNSPEC REG_EQUIV to libcall block.
1078         (ix86_tls_get_addr): Declare static.
1079         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1080         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1081         Do not determine pic and __tls_get_addr symbol reference here. Do not
1082         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1083         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1084         (tls_global_dynamic_64): Add operand 2.  Do not determine
1085         __tls_get_addr symbol reference here.  Do not call
1086         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1087         (tls_local_dynamic_base64): Ditto for operand 1.
1089 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1091         * function.c (expand_function_start): Initialize stack_check_probe_note
1092         only if the generic stack checking mechanism is used.
1094 2011-05-11  Richard Guenther  <rguenther@suse.de>
1096         PR tree-optimization/15256
1097         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1098         (A & B) | C, combine (A op CST1) op CST2.
1099         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1100         visit assigns that have uses.
1102 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1104         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1105         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1106         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1107         (unpack_value_fields): Adjust for renaming.
1108         (lto_input_ts_type_tree_pointers): Split into...
1109         (lto_input_ts_type_common_tree_pointer): ...this and...
1110         (lto_input_ts_type_non_common_tree_pointers): ...this.
1111         (lto_input_tree_pointers): Adjust for above split.
1112         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1113         (pack_ts_type_common_value_fields): ...this.  Update comment.
1114         (lto_output_ts_type_tree_pointers): Split into...
1115         (lto_output_ts_type_common_tree_pointers): ...this and...
1116         (lto_output_ts_type_non_common_tree_pointers): ...this.
1117         (lto_output_tree_pointers): Adjust for above split.
1118         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1119         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1120         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1121         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1122         Define.
1123         (struct tree_type): Split into...
1124         (struct tree_type_common: ...this and...
1125         (struct tree_type_with_lang_specific): ...this and...
1126         (struct tree_type_non_common): ...this.  Adjust accessor macros
1127         accordingly.
1128         (TYPE_VALUES_RAW): Define.
1129         (union tree_node): Update for above changes.
1130         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1131         TS_TYPE_NON_COMMON.
1132         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1133         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1134         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1135         * treestructu.def (TS_TYPE): Remove.
1136         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1137         Define.
1139 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1141         PR debug/48159
1142         * tree-ssa.c (reset_debug_uses): New function.
1143         * tree-flow.h (reset_debug_uses): New prototype.
1144         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1145         * tree-loop-distribution.c (generate_loops_for_partition): Call
1146         reset_debug_uses on the stmts that will be removed.  Keep around
1147         all debug stmts, don't count them as bits in partition bitmap.
1148         (generate_builtin): Don't count debug stmts or labels as bits in
1149         partition bitmap.
1151 2011-05-11  Richard Guenther  <rguenther@suse.de>
1153         * gimple.c (gimple_type_hash_1): Merge with ...
1154         (gimple_type_hash): ... this.
1155         (gtc_visit): Remove mode parameter and simplify accordingly.
1156         (gimple_types_compatible_p_1): Likewise.
1157         (gimple_types_compatible_p): Likewise.
1158         (iterative_hash_gimple_type): Likewise.
1159         (visit): Likewise.
1160         (gimple_type_eq): Adjust.
1162 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1164         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1165         enters the branch create an anti edge in the opposite direction
1166         to prevent the creation of reg-moves.
1167         * modulo-sched.c: Adjust comment to reflect the fact we are
1168         scheduling closing branch.
1169         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1170         (stage_count): New field in struct partial_schedule.
1171         (calculate_stage_count): New function.
1172         (normalize_sched_times): Rename to reset_sched_times and handle
1173         incrementing the sched time of the nodes by a constant value
1174         passed as parameter.
1175         (duplicate_insns_of_cycles): Skip closing branch.
1176         (sms_schedule_by_order): Schedule closing branch.
1177         (ps_insn_find_column): Handle closing branch.
1178         (sms_schedule): Call reset_sched_times and adjust the code to
1179         support scheduling of the closing branch.
1180         (ps_insert_empty_row): Update calls to normalize_sched_times
1181         and rotate_partial_schedule functions.
1183 2011-05-11  Richard Guenther  <rguenther@suse.de>
1185         PR middle-end/48953
1186         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1188 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1190         * opts.c (finish_options): Move warning settings from process_options.
1191         * toplev.c (process_options): Move warning settings to finish_options.
1193 2011-05-11  Richard Guenther  <rguenther@suse.de>
1195         PR tree-optimization/18041
1196         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1197         (simplify_bitwise_binary): ... this.  Handle operand conversions
1198         by applying them to the result instead.
1199         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1201 2011-05-11  Richard Guenther  <rguenther@suse.de>
1203         * gimple.c (gimple_canonical_types_compatible_p): Split out
1204         from gimple_types_compatible_p and friends.  Do not recurse
1205         to pointed-to types.
1206         (gimple_canonical_type_eq): Use it.
1207         (iterative_hash_canonical_type): Split out from
1208         iterative_hash_gimple_type and friends.  Do not recurse
1209         to pointed-to types.
1210         (gimple_canonical_type_hash): Use it, allocate the hash here.
1212 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1214         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1215         recognizing doloop.
1217 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1219         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1220         instead of PREV_INSN.
1222 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1224         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1225         * loop-doloop.c (doloop_condition_get): Likewise.
1226         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1227         (doloop_end): New.
1228         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1230 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1232         * tree.def (CASE_LABEL_EXPR): Add an operand.
1233         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1235 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1237         * c-decl.c (c_override_global_bindings_to_false): Remove.
1238         (global_bindings_p): Don't check
1239         c_override_global_bindings_to_false.
1240         * c-tree.h (c_override_global_bindings_to_false): Remove.
1241         * c-typeck.c (composite_type): Don't set
1242         c_override_global_bindings_to_false.
1244 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1246         PR target/48857, 48495
1247         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1248         (VSX_MODE): Ditto.
1249         (VSX_MOVE_MODE): Ditto.
1250         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1251         VSX vector types.  Add V2DImode.
1252         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1253         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1254         (MODES_TIEABLE_P): Ditto.
1256         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1257         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1258         VSX_VECTOR_MODE.
1259         (init_cumulative_args): Ditto.
1260         (rs6000_function_arg_boundary): Ditto.
1261         (rs6000_function_arg_advance_1): Ditto.
1262         (rs6000_function_arg): Ditto.
1263         (rs6000_function_ok_for_sibcall): Ditto.
1264         (emit_frame_save): Ditto.
1265         (rs6000_function_value): Ditto.
1266         (rs6000_libcall_value): Ditto.
1268 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1270         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1271         i386/darwin-lib.h to $libgcc_tm_file.
1272         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1274 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1276         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1278 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1280         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1281         * config/rs6000/rs6000-tables.opt: New file (generated).
1282         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1283         rs6000/rs6000-tables.opt to extra_options.
1284         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1285         * config/rs6000/rs6000.c (rs6000_select): Remove.
1286         (processor_target_table): Move contents to rs6000-cpus.def.
1287         (darwin_rs6000_override_options): Check
1288         global_options_set.x_rs6000_cpu_index instead of
1289         rs6000_select[1].string.
1290         (rs6000_option_override_internal): Likewise.
1291         (rs6000_handle_option): Don't assert that global structures are in
1292         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1293         (rs6000_default_cpu): New variable.
1294         (rs6000_file_start): Set it instead of local default_cpu.  Check
1295         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1296         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1297         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1298         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1299         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1300         rs6000_select): Remove.
1301         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1302         Remove.
1303         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1304         * config/rs6000/t-rs6000
1305         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1306         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1307         global_options_set.x_rs6000_cpu_index instead of
1308         rs6000_select[1].string.
1309         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1310         global_options_set.x_rs6000_cpu_index instead of
1311         rs6000_select[1].string.
1313 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1315         * config.gcc (libgcc_tm_file): Define instead of including files
1316         from ../../libgcc/config/ in tm_file.
1317         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1318         * configure: Regenerate.
1319         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1320         libgcc_tm.h, cs-libgcc_tm.h): New.
1321         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1322         (clean): Remove libgcc_tm.h.
1323         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1324         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1325         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1327 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1329         PR target/48896
1330         * config/avr/avr.c (avr_ret_register): Return unsigned int
1331         instead of int.
1332         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1333         it to avr_libcall_value.
1334         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1335         expand_expr.
1336         (avr_expand_binop_builtin): Ditto.
1337         (avr_expand_unop_builtin): Ditto.
1339 2011-05-10  DJ Delorie  <dj@redhat.com>
1341         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1342         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1343         * config/rx/rx.c (rx_align_for_label): Add label and
1344         uses_threshold parameters.  Do not align when the label is not
1345         used enough.
1346         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1348 2011-05-10  Richard Guenther  <rguenther@suse.de>
1350         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1351         a series of conversions and apply foldings similar to what
1352         fold-const does.
1353         (tree_ssa_forward_propagate_single_use_vars): Call it.
1355 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1357         PR tree-optimization/48611
1358         PR tree-optimization/48794
1359         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1360         referenced from RESX or EH_DISPATCH arguments.
1362         PR debug/48928
1363         * dfp.c (decimal_to_decnumber): Handle conversion from
1364         dconst{1,2,m1,half}.
1366 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1368         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1369         for !flag_prefer_avx128.
1370         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1372 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1374         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1375         (fold_ternary_loc): Use expr_location_or.
1377 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1379         PR debug/48853
1380         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1381         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1382         Pmode and mem_mode is not VOIDmode.
1384 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1386         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1387         TYPE_QUAL_RESTRICT): Convert to enum.
1389 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1391         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1392         (const_pow2_1_to_8_operand): Ditto.
1393         (const_pow2_1_to_128_operand): Ditto.
1394         (const_pow2_1_to_32768_operand): Ditto.
1395         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1396         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1397         in insn constraint to check integer value of operand 3.
1398         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1400         (PINSR_MODE): New mode iterator.
1401         (sse2p4_1): New mode attribute.
1402         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1403         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1404         iterator.  Use const_int_operand instead of
1405         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1406         exact_log2 in insn constraint to check integer value of operand 3.
1408 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1410         * config/i386/sse.md (blendbits): Remove mode attribute.
1411         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1412         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1413         Check integer value of operand 3 in insn constraint.
1415 2011-05-09  Richard Guenther  <rguenther@suse.de>
1417         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1418         for diagnostics.
1419         (lto_symtab_merge): Likewise.  Do not register types here.
1420         (lto_symtab_merge_decls_2): Likewise.
1421         (lto_symtab_merge_decls_1): Likewise.
1422         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1423         * gimple.c (enum gtc_mode): Declare.
1424         (gimple_types_compatible_p): Make static.
1426 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1428         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1429         temporary register to match Pmode.
1431 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1433         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1434         and *vec_concatv4si_1_avx.
1436 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1438         PR rtl-optimization/48927
1439         * ira-conflicts.c (commutative_constraint_p): Use
1440         recog_data.alternative_enabled_p to disable alternatives where
1441         "enabled" attribute is false.
1442         (get_dup_num): Ditto.
1443         * ira-lives.c (single_reg_class): Ditto.
1444         (ira_implicitly_set_insn_hard_regs): Ditto.
1446 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1448         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1449         (dataflow_set_preserve_mem_locs): Likewise.
1451 2011-05-09  Philipp Thomas  <pth@suse.de>
1453         * config/mep/mep.c (mep_validate_vliw): Syntax description
1454         should not be translated.
1456 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1458         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1459         * config/mips/mips-tables.opt: New file (generated).
1460         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1461         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1462         MIPS_ARCH_OPTION_NATIVE): Define.
1463         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1464         mips-cpus.def.
1465         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1466         mips_parse_cpu): Remove.
1467         (mips_cpu_info_from_opt, mips_default_arch): New.
1468         (mips_handle_option): Don't assert that global structures are in
1469         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1470         (mips_option_override): Use new variables and functions to set
1471         state of these options.  Use strcmp to check for individual CPU names.
1472         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1473         definition.
1474         * config/mips/mips.opt (march=): Use ToLower and Enum.
1475         (mips): Use ToLower, Enum and Var.
1476         (mtune=): Use ToLower and Enum.
1477         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1479 2011-05-08  Jan Hubicka  <jh@suse.cz>
1481         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1482         Arrange type pairs to be UID ordered.
1483         (gimple_lookup_type_leader): Make inline.
1485 2011-05-09  Nick Clifton  <nickc@redhat.com>
1487         PR target/48899
1488         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1489         PROCESSOR_DEFAULT.
1491         PR target/48897
1492         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1493         variable 's'.
1495 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1497         * combine.c (simplify_comparison): Abstract out parts into...
1498         (simplify_compare_const): ... new function.
1499         (try_combine): Generalize parallel arithmetic/compare combining
1500         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1502 2011-05-08  Jan Hubicka  <jh@suse.cz>
1504         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1505         (cgraph_create_virtual_clone): Call hooks once virtual clone
1506         is finished.
1507         * cgraph.h (cgraph_clone_node): Update prototype.
1508         * ipa-cp.c (ipcp_estimate_growth): Use
1509         estimate_ipcp_clone_size_and_time.
1510         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1511         * lto-cgraph.c (input_node): Update.
1512         * ipa-inline.c (recursive_inlining): Update.
1513         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1514         (evaluate_conditions_for_known_args): Break out from ...
1515         (evaluate_conditions_for_edge): ... here.
1516         (evaluate_conditions_for_ipcp_clone): New function.
1517         (inline_node_duplication_hook): Update clone summary based
1518         on parameter map.
1519         (estimate_callee_size_and_time): Rename to ...
1520         (estimate_node_size_and_time): take NODE instead of EDGE;
1521         take POSSIBLE_TRUTHS as argument.
1522         (estimate_callee_size_and_time): Update.
1523         (estimate_ipcp_clone_size_and_time): New function.
1524         (do_estimate_edge_time): Update.
1526 2011-05-08  Richard Guenther  <rguenther@suse.de>
1528         PR middle-end/48908
1529         PR middle-end/48905
1530         * expmed.c (expand_shift_1): Compute adjusted constant shift
1531         amount manually.
1533 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1535         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1537 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1539         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1541 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1543         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1545 2011-05-07  Jan Hubicka  <jh@suse.cz>
1547         * ipa-inline-transform.c (inline_call): Account when program size
1548         decreases.
1549         * ipa-inline.c (relative_time_benefit): New function.
1550         (edge_badness): Reorganize to be power 2 based; fix thinko when
1551         computing badness for negative growth; update comments to match
1552         reality; better dumps.
1554 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1556         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1557         type to bool and adjust comment.
1558         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1559         (fold_mathfn_compare): Remove calls to global_bindings_p.
1560         (fold_inf_compare): Likewise.
1561         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1562         * c-tree.h (global_bindings_p): Adjust prototype.
1563         * c-decl.c (global_bindings_p): Return bool and simplify.
1565 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1567         PR tree-optimization/48837
1568         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1569         when accumulator transformation is performed.
1571 2011-05-06  Jan Hubicka  <jh@suse.cz>
1573         * i386.h (ix86_tune_indices): Add
1574         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1575         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1576         * i386.c (initial_ix86_tune_features): Add
1577         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1578         (software_prefetching_beneficial_p): Remove predicate.
1579         (ix86_option_override_internal): Use new macro.
1581 2011-05-06  Jan Hubicka  <jh@suse.cz>
1583         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1585 2011-05-06  Jan Hubicka  <jh@suse.cz>
1587         * cgraph.c (cgraph_add_thunk): Create real function node instead
1588         of alias node; finalize it and mark needed/reachale; arrange visibility
1589         to be right and add it into the corresponding same comdat group list.
1590         (dump_cgraph_node): Dump thunks.
1591         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1592         cgraph_function_with_gimple_body_p,
1593         cgraph_first_function_with_gimple_body,
1594         cgraph_next_function_with_gimple_body): New functions.
1595         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1596         New macros.
1597         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1598         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1599         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1600         devirtualization when optimizing.
1601         (verify_cgraph_node): Verify thunks.
1602         (cgraph_analyze_function): Analyze thunks.
1603         (cgraph_mark_functions_to_output): Output thunks only in combination
1604         with function they are assigned to.
1605         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1606         alias into normal node.
1607         (assemble_thunks): New functoin.
1608         (cgraph_expand_function): Use it.
1609         * lto-cgraph.c (lto_output_node): Stream thunks.
1610         (input_overwrite_node): Stream in thunks.
1611         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1612         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1613         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1614         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1615         (inline_analyze_function): Do not care about thunk jump functions.
1616         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1617         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1618         cgraph_function_with_gimple_body_p.
1619         * passes.c (do_per_function_toporder): Use
1620         cgraph_function_with_gimple_body_p.
1621         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1622         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1623         (function_called_by_processed_nodes_p): Likewise.
1625 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1627         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1628         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1629         entries.
1630         (mabi=): Replace with separate entries for mabi=altivec,
1631         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1632         mabi=ieeelongdouble and mabi=ibmlongdouble.
1633         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1634         check for -mabi=spe without SPE ABI support here.
1635         (rs6000_handle_option): Replace OPT_mabi_ handling with
1636         OPT_mabi_altivec and OPT_mabi_spe handling.
1638 2011-05-06  Cary Coutant  <ccoutant@google.com>
1640         * dwarf2out.c (contains_subprogram_definition): New function.
1641         (should_move_die_to_comdat): Call it.
1643 2011-05-06  Jeff Law  <law@redhat.com>
1645         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1646         remove_ctrl_stmt_and_useless_edges.
1647         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1648         (fixup_template_block, thread_single_edge): Likewise.
1649         (mark_threaded_blocks): Use THREAD_TARGET.
1651 2011-05-06  Alan Modra  <amodra@gmail.com>
1653         PR target/48900
1654         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1655         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1657 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1659         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1660         constraint modifier to "r".
1662 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1664         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1665         fall through for OPT_mcmodel_.
1667 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1669         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1670         instruction sizes.
1671         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1673 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1675         PR target/47930
1676         * config/arm/arm.opt (marm): Document it.
1677         (mthumb): Reject negative variant.
1679 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1681         PR target/48898
1682         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1683         Fix typo in "ccvt" variable name.
1685 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1687         PR target/48895
1688         * config/vms/vms-ar.c (main): Remove cwd variable.
1690 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1692         PR debug/48902
1693         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1695 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1697         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1698         * gimplify.c (gimplify_switch_expr): Likewise.
1699         * omp-low.c (expand_omp_sections): Likewise.
1700         * tree-eh.c (lower_try_finally_switch): Likewise.
1701         (lower_eh_dispatch): Likewise.
1702         * tree.h (build_case_label): Declare.
1703         * tree.c (build_case_label): Define.
1705 2011-05-05  Jason Merrill  <jason@redhat.com>
1707         PR c++/40975
1708         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1709         (copy_statement_list): Don't recurse.
1710         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1711         STATEMENT_LIST.
1713 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1715         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1716         through from -mfpu= handling.
1717         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1719 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1721         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1722         POST_MODIFY.
1724 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1726         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1727         for 11.31.
1728         (hppa[12]*-*-hpux11*): Ditto.
1729         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1730         * config/ia64/hpux-unix2003.h: New.
1731         * config/pa/pa-hpux1131.opt: New.
1732         * config/pa/pa-hpux1131.h: New.
1733         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1734         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1735         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1737 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1739         PR debug/48853
1740         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1741         instead of mode as 3rd argument to recursive call.
1742         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1743         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1744         VOIDmode.
1745         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1746         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1747         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1748         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1750 2011-05-05  Julian Brown  <julian@codesourcery.com>
1752         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1753         parenthesis in D-register case.
1755 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1757         * opt-functions.awk (var_type_struct): Handle Enum options.
1758         * optc-gen.awk: Don't check range of variables of character type.
1759         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1760         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1761         rs6000_sdata_name, rs6000_explicit_options): Remove.
1762         (rs6000_option_override_internal): Check for -malign-power here.
1763         Use global_options_set instead of rs6000_explicit_options.
1764         (rs6000_parse_fpu_option): Remove.
1765         (rs6000_handle_option): Access variables via opts and opts_set
1766         pointers.  Use error_at and warning_at.  Add fall-through
1767         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1768         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1769         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1770         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1771         here.  Don't use rs6000_parse_fpu_option.
1772         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1773         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1774         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1775         (mrecip=): Use Var.
1776         (mspe): Use Var and Save.
1777         (mtraceback=): Use Enum and Var.
1778         (rs6000_traceback_type): New Enum and EnumValue entries.
1779         (mfloat-gprs=): Use Enum, Var and Save.
1780         (rs6000_float_gprs): New Enum and EnumValue entries.
1781         (mlong-double-): use Var and Save.
1782         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1783         (malign-): Use Enum and Var.
1784         (rs6000_alignment_flags): New Enum and EnumValue entries.
1785         (mfpu=): Use Enum.
1786         (fpu_type_t): New Enum and EnumValue entries.
1787         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1788         global_options_set instead of rs6000_explicit_options.
1789         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1790         global_options_set instead of rs6000_explicit_options.
1791         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1792         global_options_set instead of rs6000_explicit_options.
1793         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1794         global_options_set instead of rs6000_explicit_options.
1795         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1796         global_options_set instead of rs6000_explicit_options.
1797         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1798         global_options_set instead of rs6000_explicit_options.
1799         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1800         definition.
1801         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1802         global_options_set instead of rs6000_explicit_options.
1803         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1804         (rs6000_cmodel): New Enum and EnumValue entries.
1805         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1806         global_options_set instead of rs6000_explicit_options.
1807         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1808         (mtls-size=): Use Enum and Var.
1809         (rs6000_tls_size): New Enum and EnumValue entries.
1811 2011-05-05  Michael Matz  <matz@suse.de>
1813         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1814         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1815         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1816         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1817         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1818         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1819         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1820         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1821         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1822         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1823         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1824         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1825         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1826         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1827         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1828         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1830 2011-05-05  Richard Guenther  <rguenther@suse.de>
1832         * expmed.c (expand_variable_shift): Rename to ...
1833         (expand_shift_1): ... this.  Take an expanded shift amount.
1834         For rotates recurse directly not building trees for the shift amount.
1835         (expand_variable_shift): Wrap around expand_shift_1.
1836         (expand_shift): Adjust.
1838 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1840         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1842 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1844         * tree.h (get_pending_sizes): Remove prototype.
1845         (put_pending_size): Likewise.
1846         (put_pending_sizes): Likewise.
1847         * stor-layout.c (pending_sizes): Delete.
1848         (get_pending_sizes): Likewise.
1849         (put_pending_size): Likewise.
1850         (put_pending_sizes): Likewise.
1851         (variable_size): Do not call put_pending_size and tidy up.
1852         * function.h (struct function): Remove dont_save_pending_sizes_p.
1853         * lto-streamer-in.c (input_function): Do not stream it.
1854         * lto-streamer-out.c (output_function): Likewise.
1855         * tree-inline.c (initialize_cfun): Do not copy it.
1856         * c-decl.c (store_parm_decls): Do not set it.
1857         * omp-low.c (create_task_copyfn): Likewise.
1858         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1860 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1862         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1863         conditions.
1864         (*movdf_internal): Ditto.
1865         (*movdf_internal_nointeger): Ditto.
1866         (*movsf_internal): Ditto.
1868 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1870         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1871         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1872         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1873         (c_variable_size): Remove.
1874         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1875         call put_pending_sizes.
1876         (get_parm_info): Add parameter expr.  Use it to set
1877         arg_info->pending_sizes.
1878         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1879         get_pending_sizes.
1880         * c-parser.c (c_parser_parms_declarator): Update call to
1881         c_parser_parms_list_declarator.
1882         (c_parser_parms_list_declarator): Take parameter expr.  Update
1883         call to push_parm_decl.  Update recursive call.  Don't call
1884         get_pending_sizes.  Update calls to get_parm_info.
1885         (c_parser_objc_method_definition): Update calls to
1886         c_parser_objc_method_decl and objc_start_method_definition.
1887         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1888         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1889         grokparm.
1890         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1891         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1892         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1894 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1896         PR pch/45979
1897         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1898         __ARM_EABI__ hosts.
1900 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1902         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1903         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1904         (spu_output_mi_thunk): New function.
1906 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1908         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1909         targetm.asm_out.print_operand.
1910         * config/sol2.c: Include target.h.
1912 2011-05-04  Jan Hubicka  <jh@suse.cz>
1914         * ipa-inline.c (reset_edge_caches): New function.
1915         (update_caller_keys): Add check_inlinablity_for; do not
1916         reset edge caches; remove now unnecesary loop.
1917         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1918         (update_all_callee_keys): Likewise.
1919         (inline_small_functions): Sanity check cache; update code
1920         recomputing it.
1922 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
1924         PR rtl-optimization/47612
1925         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1926         as the last insn of the sequence to be moved.
1928 2011-05-04  Tobias Burnus  <burnus@net-b.de>
1930         PR fortran/48864
1931         * doc/invoke.texi (Ofast): Document that it
1932         enables Fortran's -fno-protect-parens.
1934 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
1936         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1938 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
1940         * stor-layout.c (variable_size): Do not issue errors.
1942 2011-05-04  Richard Guenther  <rguenther@suse.de>
1944         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1945         for array-ref indices.
1946         (tree_coverage_counter_addr): Likewise.
1947         (build_fn_info_type): Use size_int for index types.
1948         (build_gcov_info): Likewise.
1950 2011-05-04  Richard Guenther  <rguenther@suse.de>
1952         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1953         to build_int_cst.
1954         * c-typeck.c (really_start_incremental_init): Use bitsize_int
1955         for constructor indices.
1956         (push_init_level): Likewise.
1958 2011-05-04  Richard Guenther  <rguenther@suse.de>
1960         * explow.c (promote_mode): Move variable declarations before code.
1962 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
1964         * tree.h (build_function_type_array): Declare.
1965         (build_varargs_function_type_array): Declare.
1966         (build_function_type_vec, build_varargs_function_type_vec): Define.
1967         * tree.c (build_function_type_array_1): New function.
1968         (build_function_type_array): New function.
1969         (build_varargs_function_type_array): New function.
1971 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
1973         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1974         before setting STMT_VINFO_TYPE.
1976 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1978         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1979         instead of spu_pass_by_reference.
1981 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1983         * calls.c (emit_library_call_value_1): Invoke
1984         promote_function_mode hook on libcall arguments.
1985         * explow.c (promote_function_mode, promote_mode): Handle TYPE
1986         argument being NULL.
1987         * targhooks.c (default_promote_function_mode): Lisewise.
1988         * config/s390/s390.c (s390_promote_function_mode): Likewise.
1989         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1991         * doc/tm.texi: Document that TYPE argument might be NULL.
1993 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1995         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1997 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
1999         From Bernd Schmidt
2000         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2002 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2004         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2005         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2006         Move ...
2007         * mips-tfile.c: ... here.
2008         Don't include coretypes.h, tm.h, filenames.h.
2009         (saber_stop): Remove definition and all calls.
2010         [__SABER__]: Remove.
2011         (__LINE__): Remove default.
2012         (Size_t, Ptrdiff_t): Remove definitions.
2013         Replace by size_t, ptrdiff_t.
2014         [!MIPS_DEBUGGING_INFO]: Remove.
2015         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2016         (progname): Add const.
2017         (STATIC): Remove.
2018         Replace all uses by static.
2019         (ALIGN_SYMTABLE_OFFSET): Remove default.
2020         * mips-tdump.c: Don't include coretypes.h, tm.h.
2021         Remove !MIPS_IS_STAB guard.
2022         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2023         $(TM_H), filenames.h dependencies.
2024         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2026 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2028         From Jie Zhang
2029         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2030         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2032 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2034         From Bernd Schmidt
2035         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2036         account and save/restore RETS.
2037         (PROFILE_BEFORE_PROLOGUE): Define.
2038         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2039         the push insn to use predecrement.
2041 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2043         From Jie Zhang
2044         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2046 2011-05-04  Nick Clifton  <nickc@redhat.com>
2048         * config/mn10300/mn10300.c: Include cfgloop.h.
2049         (DUMP): New macro.
2050         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2051         Lcc or a FLcc insn into the instruction stream.
2052         (mn10300_block_contains_call): New function.  Returns true if the
2053         given basic block contains a CALL insn.
2054         (mn10300_loop_contains_call_insn): New function.  Returns true if
2055         the given loop contains a CALL insn.
2056         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2057         to use the SETLB and Lcc or FLcc insns.
2058         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2059         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2060         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2061         disable the SETLB optimization.
2062         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2063         __SETLB__ or __NO_SETLB__.
2064         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2065         (movsf_internal): Handle MDR register.
2066         (cmpsi): Make visible.
2067         (setlb): New pattern.
2068         (Lcc): New pattern.
2069         (FLcc): New pattern.
2071 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2073         PR target/48860
2074         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2075         for reg<->xmm moves.
2076         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2077         (vec_concatv2di_rex64_sse): Ditto.
2078         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2079         (*vec_extractv2di_1_rex64): Ditto.
2081         Revert:
2082         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2084         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2085         reg<->xmm moves.
2086         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2088 2011-05-04  Richard Guenther  <rguenther@suse.de>
2090         * tree.h (int_const_binop): Remove notrunc argument.
2091         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2092         create integer constants that are properly truncated.
2093         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2094         (const_binop): Remove zero notrunc argument to int_const_binop.
2095         (size_binop_loc): Likewise.
2096         (fold_div_compare): Likewise.
2097         (maybe_canonicalize_comparison_1): Likewise.
2098         (fold_comparison): Likewise.
2099         (fold_binary_loc): Likewise.
2100         (multiple_of_p): Likewise.
2101         * expr.c (store_constructor): Likewise.
2102         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2103         (maybe_fold_stmt_addition): Likewise.
2104         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2105         * stor-layout.c (layout_type): Likewise.
2106         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2107         * tree-sra.c (build_ref_for_offset): Likewise.
2108         (build_user_friendly_ref_for_offset): Likewise.
2109         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2110         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2111         * tree-ssa-loop-niter.c (inverse): Likewise.
2112         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2113         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2114         * tree-switch-conversion.c (check_range): Likewise.
2115         (build_constructors): Likewise.
2116         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2117         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2118         (extract_range_from_assert): Likewise.
2119         (vrp_int_const_binop): Likewise.
2120         (extract_range_from_binary_expr): Likewise.
2121         (extract_range_from_unary_expr): Likewise.
2122         (check_array_ref): Likewise.
2123         (find_case_label_range): Likewise.
2124         (simplify_div_or_mod_using_ranges): Likewise.
2125         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2126         comparing case labels for merging.
2128 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2130         * dwarf2out.c (debug_str_hash_forced): Removed.
2131         (gen_label_for_indirect_string): Removed.
2132         (get_debug_string_label): Removed.
2133         (AT_string_form): Generate label directly.
2134         (output_indirect_string): Test indirect_string_node for
2135         DW_FORM_strp instead of checking label and refcount.
2136         (prune_indirect_string): Removed.
2137         (prune_unused_types): Don't check debug_str_hash_forced or
2138         call prune_indirect_string.
2140 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2142         PR other/48093
2143         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2145 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2147         PR debug/47994
2148         PR debug/47919
2149         * combine.c (try_combine): Skip debug insns at m_split tests.
2151 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2153         PR42288
2154         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2155         when info_section_emitted.
2157 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2159         * config/mips/mips-opts.h: New.
2160         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2161         to mips-opts.h.
2162         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2163         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2164         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2165         via opts pointer.
2166         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2167         mips-opts.h.
2168         (mips_abi, mips_code_readable): Don't declare.
2169         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2170         (mabi=): Use Enum and Var.
2171         (mips_abi): New Enum and EnumValue entries.
2172         (mcode-readable=): Use Enum and Var.
2173         (mips_code_readable_setting): New Enum and EnumValue entries.
2174         (mr10k-cache-barrier=): Use Enum and Var.
2175         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2177 2011-05-03  Jan Hubicka  <jh@suse.cz>
2179         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2180         replace hash by pointer map.
2181         (cgraph_node_set_element_def, cgraph_node_set_element,
2182         const_cgraph_node_set_element, varpool_node_set_element_def,
2183         varpool_node_set_element, const_varpool_node_set_element): Remove.
2184         (free_cgraph_node_set, free_varpool_node_set): New function.
2185         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2186         * tree-emutls.c: Free varpool node set.
2187         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2188         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2189         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2190         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2191         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2192         Move here from ipa.c; implement using pointer_map
2193         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2194         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2195         debug_cgraph_node_set, varpool_node_set_new,
2196         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2197         dump_varpool_node_set, debug_varpool_node_set):
2198         Move to ipa-uitls.c.
2199         * passes.c (ipa_write_summaries): Update.
2201 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2203         From Mike Frysinger:
2204         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2205         bf542/bf544/bf547/bf548/bf549.
2207 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2209         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2211 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2213         From Bernd Schmidt:
2214         * config/bfin/bfin.md (MOVCC): New mode_macro.
2215         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2216         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2217         comments from generated assembly.
2219 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2221         From Bernd Schmidt
2222         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2223         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2224         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2225         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2226         * config/bfin/lib1funcs.asm (___muldi3): New function.
2228 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2230         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2231         build_function_type_list instead of build_function_type.
2232         Rearrange initialization of `args' to do so.
2234 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2236         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2237         instead of build_function_type.
2239 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2241         * config/rs6000/rs6000.c (spe_init_builtins): Call
2242         build_function_type_list instead of build_function_type.
2243         (paired_init_builtins, altivec_init_builtins): Likewise.
2244         (builtin_function_type): Likewise.
2246 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2248         * config/sh/sh.c (sh_media_init_builtins): Call
2249         build_function_type_list instead of build_function_type.
2251 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2253         * config/sparc/sparc.c (sparc_file_end): Call
2254         build_function_type_list instead of build_function_type.
2256 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2258         * config/alpha/alpha.c (alpha_init_builtins): Call
2259         build_function_type_list instead of build_function_type.
2261 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2263         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2264         build_function_type_list instead of build_function_type.
2266 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2268         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2269         build_function_type_list instead of build_function_type.
2270         Delete `endlink' variable.
2272 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2274         * config/avr/avr.c (avr_init_builtins): Call
2275         build_function_type_list instead of build_function_type.
2277 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2279         * config/picochip/picochip.c (picochip_init_builtins): Call
2280         build_function_type_list instead of build_function_type.
2281         Delete `endlink' variable.
2283 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2285         * config/bfin/bfin.c (bfin_init_builtins): Call
2286         build_function_type_list instead of build_function_type.
2288 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2290         From Bernd Schmidt
2291         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2292         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2294 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2296         From Jie Zhang:
2297         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2298         libbffastfp overrides libgcc when -mfast-fp.
2300 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2302         Originally from Bernd Schmidt
2303         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2304         * config/bfin/bfin.c (override_options): Test it and error if
2305         TARGET_FDPIC.
2307 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2309         Originally From Bernd Schmidt
2310         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2311         FD-PIC.
2313 2011-05-03  Jeff Law  <law@redhat.com>
2315         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2316         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2317         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2318         than accessing AUX field directly.  Free the AUX field before
2319         clearing it.
2320         (thread_block, thread_through_loop_header): Likewise.
2321         (thread_single_edge, mark_threaded_blocks): Likewise.
2322         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2323         (register_jump_thread): Do not attempt to thread to a NULL edge.
2325 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2327         * function.c (init_function_start): Call decide_function_section.
2328         * varasm.c (decide_function_section): New function.
2329         (assemble_start_function): When not using
2330         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2331         or first_function_block_is_cold.
2332         * rtl.h (decide_function_section): Declare.
2334 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2335             Jakub Jelinek  <jakub@redhat.com>
2337         PR target/48774
2338         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2339         only succeed if req_mode is the same as set_mode.
2341 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2343         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2344         * genemit.c (gen_exp): Handle RETURN.
2345         * emit-rtl.c (verify_rtx_sharing): Likewise.
2346         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2347         * rtl.c (copy_rtx): RETURN is shared.
2348         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2349         (ret_rtx): New.
2350         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2351         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2352         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2353         * config/cris/cris.c (cris_expand_return): Likewise.
2354         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2355         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2356         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2357         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2358         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2359         Likewise.
2360         * config/v850/v850.c (expand_epilogue): Likewise.
2361         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2362         * config/arm/arm.md (epilogue): Likewise.
2363         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2364         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2365         variable to ret_reg.
2367 2011-05-03  Richard Guenther  <rguenther@suse.de>
2369         PR lto/48846
2370         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2371         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2372         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2374 2011-05-03  Richard Guenther  <rguenther@suse.de>
2376         * c-decl.c (grokdeclarator): Instead of looking at
2377         TREE_OVERFLOW check if the constant fits in the index type.
2379 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2381         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2382         (vec_store_lanes<mode><mode>): Likewise.
2384 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2386         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2387         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2388         convert_optab_index values.
2389         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2390         * genopinit.c (optabs): Initialize the new optabs.
2391         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2392         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2393         (expand_STORE_LANES): New functions.
2394         * tree.h (build_array_type_nelts): Declare.
2395         * tree.c (build_array_type_nelts): New function.
2396         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2397         (vect_model_load_cost): Likewise.
2398         (vect_store_lanes_supported, vect_load_lanes_supported)
2399         (vect_record_strided_load_vectors): Declare.
2400         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2401         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2402         (vect_transform_strided_load): Split out statement recording into...
2403         (vect_record_strided_load_vectors): ...this new function.
2404         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2405         (write_vector_array, create_array_ref): New functions.
2406         (vect_model_store_cost): Add store_lanes_p argument.
2407         (vect_model_load_cost): Add load_lanes_p argument.
2408         (vectorizable_store): Try to use store-lanes functions for
2409         interleaved stores.
2410         (vectorizable_load): Likewise load-lanes and loads.
2411         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2412         to vect_model_store_cost.
2413         (vect_build_slp_tree): Likewise vect_model_load_cost.
2415 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2417         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2418         * hooks.c (hook_bool_mode_uhwi_false): New function.
2419         * target.def (array_mode_supported_p): New hook.
2420         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2421         * doc/tm.texi: Regenerate.
2422         * stor-layout.c (mode_for_array): New function.
2423         (layout_type): Use it.
2424         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2425         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2427 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2429         PR target/48723
2430         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2431         for -fstack-check if the size to allocate is negative.
2433 2011-05-02  Lawrence Crowl  <crowl@google.com>
2435         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2436         (timevar_cond_start): New for starting a timer only when it is not
2437         already running.
2438         (timevar_cond_stop): New for stopping a timer when it was not already
2439         running.
2441         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2442         (timevar_cond_start): New as above.
2443         (timevar_cond_stop): New as above.
2445         * timevar.def: Add start/stop timers for compiler phases,
2446         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2447         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2448         and TV_PHASE_FINALIZE.
2449         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2450         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2451         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2452         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2453         Make unused TV_OVERLOAD into a start/stop timer.
2455         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2456         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2457         to indicate that they are start/stop timers.
2459         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2460         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2461         Move initialization to do_compile.
2462         (do_compile): Add initialization from above.
2463         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2465         * c-decl.c (c_write_global_declarations): Add start/stop of
2466         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2468         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2469         or TV_PARSE_INLINE, as appropriate.
2470         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2471         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2473 2011-05-02  Jason Merrill  <jason@redhat.com>
2475         PR c++/40975
2476         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2478 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2480         PR c/35445
2481         * c-decl.c (finish_decl): Only create a composite if the types are
2482         compatible.
2484 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2486         * config/fr30/fr30-protos.h (Mmode): Don't define.
2487         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2488         definition where used.
2489         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2490         define.  Expand definitions where used.
2491         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2492         Expand definitions where used.
2493         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2494         rx_function_arg, rx_function_arg_advance,
2495         rx_function_arg_boundary): Expand definitions of those macros.
2496         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2497         definition where used.
2499 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2501         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2502         reg<->xmm moves.
2503         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2504         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2505         with *movv2sf_internal_rex64_avx.
2506         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2507         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2508         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2509         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2510         "vex" in "prefix" attribute calculation.
2511         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2513 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2515         PR target/47951
2516         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2517         inputs match the output.
2519 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2521         PR target/47955
2522         * config/m68k/m68k.c (m68k_expand_prologue): Set
2523         current_function_static_stack_size.
2525 2011-05-02   Jan Hubicka  <jh@suse.cz>
2527         * lto-streamer.c (lto_streamer_cache_insert_1,
2528         lto_streamer_cache_lookup, lto_streamer_cache_create,
2529         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2530         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2532 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2534         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2535         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2536         config/m68k/t-opts: New files.
2537         * config/m68k/m68k-tables.opt: New file (generated).
2538         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2539         extra_options and m68k/t-opts to tmake_file.
2540         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2541         (all_isas): Initialize using m68k-isas.def.
2542         (all_microarchs): Initialize using m68k-microarchs.def.
2543         (m68k_find_selection): Remove.
2544         (m68k_handle_option): Don't assert that global structures are in
2545         use.  Use error_at.  Access variables via opts pointer.  Don't
2546         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2547         directly for -m68020-40 and -m68020-60.
2548         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2549         m68k_tune_entry here.
2550         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2551         to m68k-opts.h.
2552         (m68k_library_id_string): Remove declaration.
2553         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2554         (m68k_library_id_string): New Variable.
2555         (march=, mcpu=, mtune=): Use Enum and Var.
2557 2011-05-02  Richard Guenther  <rguenther@suse.de>
2559         * varasm.c (output_constructor_regular_field): Compute zero-based
2560         index with double-ints.  Make sure to ICE instead of producing
2561         wrong code.
2562         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2563         in asserts.  Properly use a signed type.
2565 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2567         * config/i386/sse.md (V): New mode iterator.
2568         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2569         TARGET_SSE2.
2570         (V_256): Rename from AVX256MODE.
2571         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2572         condition to all users.
2573         (VF1): Ditto.
2574         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2575         condition to all users.
2576         (VF_128): Make V4SF mode unconditional.
2577         (VF_256): Rename from AVX256MODEF2P.
2578         (VI4F_128): Rename from SSEMODE4S.
2579         (VI8F_128): Rename from SSEMODE2D.
2580         (VI4F_256): Rename from AVX256MODE8P.
2581         (VI8F_256): Rename from AVX256MODE4P.
2582         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2583         (ssescalarmodesuffix): Remove SF and DF modes.
2584         (SSEMODE124): Remove.
2585         (SSEMODE1248): Ditto.
2586         (SSEMODEF2P): Ditto.
2587         (AVXMODEF2P): Ditto.
2588         (AVXMODEFDP): Ditto.
2589         (AVXMODEFSP): Ditto.
2590         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2591         unconditional.
2592         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2593         unconditional.
2594         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2595         xop_pcmov_<mode>256.  Use V mode iterator.
2597         Adjust RTX patterns globally for renamed mode attributes.
2599 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2601         * haifa-sched.c (sched_emit_insn): Emit insn before first
2602         non-scheduled insn.  Inform back-end about new insn.  Add
2603         new insn to scheduled_insns list.
2605 2011-05-02  Richard Guenther  <rguenther@suse.de>
2607         PR tree-optimization/48822
2608         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2609         (process_scc): Indicate which iteration we start.
2611 2011-05-02  Jan Hubicka  <jh@suse.cz>
2613         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2614         (lto_section_overrun): New.
2615         * lto-section-out.c (append_block): Rename to ...
2616         (lto_append_block): ... this one; export.
2617         (lto_output_1_stream): Move lto lto-streamer.h
2618         (lto_output_data_stream): Update.
2619         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2620         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2621         functions.
2623 2011-05-02  Richard Guenther  <rguenther@suse.de>
2625         * tree.c (tree_code_counts): New global array.
2626         (record_node_allocation_statistics): Count individual tree codes.
2627         (dump_tree_statistics): Dump individual code stats.
2629 2011-05-01  Jan Hubicka  <jh@suse.cz>
2631         * ipa-inline.c (caller_growth_limits): Fix thinko when
2632         looking for largest stack frame.
2633         * ipa-inline.h (dump_inline_summary): Declare.
2634         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2635         on stack usage.
2636         (dump_inline_summary): Export.
2637         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2639 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2641         * reginfo.c (memory_move_cost): Change rclass argument type form
2642         'enum reg_class' to reg_class_t.
2643         * reload.h (memory_move_cost): Update prototype.
2644         * postreload.c reload_cse_simplify_set): Change type dclass var to
2645         reg_class_t.
2646         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2647         Update prototype.
2648         (ira_allocate_and_set_costs): Change aclass argument type form
2649         'enum reg_class' to reg_class_t.
2650         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2651         Change aclass argument type to reg_class_t.
2652         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2653         to reg_class_t.
2654         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2655         memory_move_cost call.
2657         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2658         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2659         Change type tmp var to reg_class_t.
2661 2011-04-30  Jan Hubicka  <jh@suse.cz>
2663         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2664         inlining into function with flatten attribute.
2665         (want_inline_small_function_p): Be more realistic about inlining
2666         cold calls where callee size grows.
2668 2011-04-30  Jan Hubicka  <jh@suse.cz>
2670         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2671         flags.
2673 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2675         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2676         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2677         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2678         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2679         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2680         (print_operand): Rename to...
2681         (sparc_print_operand): ...this. Make static. Adjust
2682         sparc_print_operand function call.
2683         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2684         functions.
2686 2011-04-30  Jan Hubicka  <jh@suse.cz>
2688         PR middle-end/48752
2689         * ipa-inline.c (early_inliner): Disable when doing late
2690         addition of function.
2692 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2694         * dwarf2out.c (get_address_mode): New inline.
2695         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2696         if not dwarf_strict emit
2697         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2698         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2699         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2700         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2701         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2702         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2703         mem_loc_descriptor callers.
2704         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2705         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2706         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2707         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2708         (base_types): New variable.
2709         (get_base_type_offset, calc_base_type_die_sizes,
2710         base_type_for_mode, mark_base_types, base_type_cmp,
2711         move_marked_base_types): New functions.
2712         (calc_die_sizes): Assert that die_offset is 0 or equal to
2713         next_die_offset.
2714         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2715         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2716         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2717         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2718         (gen_subprogram_die): Don't give up on call site parameters
2719         with non-integral or large integral modes.  Adjust
2720         mem_loc_descriptor callers.
2721         (prune_unused_types): Call prune_unused_types_mark on base_types
2722         vector entries.
2723         (resolve_addr): Call mark_base_types.
2724         (dwarf2out_finish): Call move_marked_base_types.
2726         PR tree-optimization/48809
2727         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2728         type.
2729         (gen_inbound_check): Don't compute index_expr - range_min in utype
2730         again, instead reuse SSA_NAME initialized in build_arrays.
2731         Remove two useless gsi_for_stmt calls.
2733 2011-04-29  Jeff Law  <law@redhat.com>
2735         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2737 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2739         * cgraph.h (cgraph_postorder): Remove declaration.
2740         * ipa-utils.h (ipa_free_postorder_info): Declare.
2741         (ipa_reverse_postorder): Likewise.
2742         * cgraphunit.c: Include ipa-utils.h.
2743         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2744         * ipa-inline.c: Include ipa-utils.h.
2745         (ipa_inline): Update call to ipa_reverse_postorder.
2746         * ipa-pure-const.c (propagate_pure_const): Update call to
2747         ipa_reduced_postorder and ipa_print_order.  Call
2748         ipa_free_postorder_info to clean up.
2749         (propagate_nothrow): Likewise.
2750         * ipa-reference.c (propagate): Removed a useless call to
2751         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2752         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2753         * ipa.c: Include ipa-utils.h.
2754         (ipa_profile): Update call to ipa_reverse_postorder.
2755         (cgraph_postorder): Moved to...
2756         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2757         (ipa_utils_print_order): Renamed to ipa_print_order.
2758         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2759         comments.
2760         (ipa_free_postorder_info): New function.
2761         * passes.c: Include ipa-utils.h.
2762         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2763         (ipa_write_summaries): Likewise.
2764         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2765         (cgraphunit.o): Likewise.
2766         (ipa.o): Likewise.
2767         (ipa-inline.o): Likewise.
2769 2011-04-29  Jan Hubicka  <jh@suse.cz>
2771         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2772         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2773         * ipa-inline.h (clause_t): Turn into unsigned int.
2774         * ipa-inline-analysis.c (add_clause): Do more simplification.
2775         (and_predicates): Shortcut more cases.
2776         (predicates_equal_p): Move forward; check that clauses are properly
2777         ordered.
2778         (or_predicates): Shortcut more cases.
2779         (edge_execution_predicate): Rewrite as...
2780         (set_cond_stmt_execution_predicate): ... this function; handle
2781         __builtin_constant_p.
2782         (set_switch_stmt_execution_predicate): New .
2783         (compute_bb_predicates): New.
2784         (will_be_nonconstant_predicate): Update TODO.
2785         (estimate_function_body_sizes): Use compute_bb_predicates
2786         and free them later, always try to estimate if stmt is constant.
2787         (estimate_time_after_inlining, estimate_size_after_inlining):
2788         Gracefully handle optimized out edges.
2789         (read_predicate): Fix off by one error.
2791 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2793         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2795 2011-04-27  Xinliang David Li  <davidxl@google.com>
2797         * tree-profile.c (init_ic_make_global_vars): Set
2798         tls attribute on ic vars.
2799         * coverage.c (coverage_end_function): Initialize
2800         function_list with zero.
2802 2011-04-29  Richard Guenther  <rguenther@suse.de>
2804         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2805         for the type of the result.
2806         (fold_builtin_isascii): Likewise.
2807         (fold_builtin_toascii): Use integer_type_node where appropriate.
2808         (fold_builtin_logb): Likewise.
2809         (fold_builtin_frexp): Likewise.
2810         (fold_builtin_strstr): Likewise.
2811         (fold_builtin_strpbrk): Likewise.
2812         (fold_builtin_fputs): Likewise.
2813         (fold_builtin_sprintf): Likewise.
2814         (fold_builtin_snprintf): Likewise.
2815         (fold_builtin_printf): Likewise.
2816         (do_mpfr_remquo): Use a proper type for the assigned constant.
2817         (do_mpfr_lgamma_r): Likewise.
2818         * dwarf2out.c (resolve_one_addr): Use size_int.
2819         * except.c (init_eh): Likewise.
2820         (assign_filter_values): Use integer_type_node for filter values.
2821         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2822         indices.
2823         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2824         for EH region numbers.
2825         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2826         for the shift amount.
2828 2011-04-29  Richard Guenther  <rguenther@suse.de>
2830         * expr.h (expand_shift): Rename to ...
2831         (expand_variable_shift): ... this.
2832         (expand_shift): Take a constant shift amount.
2833         * expmed.c (expand_shift): Rename to ...
2834         (expand_variable_shift): ... this.
2835         (expand_shift): New wrapper around expand_variable_shift.
2836         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2837         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2838         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2839         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2840         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2841         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2842         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2843         emit_store_flag_1, emit_store_flag): Likewise.
2844         * builtins.c (expand_builtin_signbit): Likewise.
2845         * calls.c (load_register_parameters): Likewise.
2846         * function.c (assign_parm_setup_block): Likewise.
2847         * lower-subreg.c (resolve_shift_zext): Likewise.
2848         * optabs.c (widen_bswap, expand_abs_nojump,
2849         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2850         * spu/spu.c (spu_expand_extv): Likewise.
2851         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2853 2011-04-29  Richard Guenther  <rguenther@suse.de>
2855         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2856         for the remapped region number.
2857         * predict.c (build_predict_expr): Use integer_type_node for the
2858         predict kind.
2859         * fold-const.c (fold_binary_loc): Use integer_type_node for
2860         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2862 2011-04-29  Michael Matz  <matz@suse.de>
2864         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2865         other trees that just builtins.
2866         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2868 2011-04-29  Richard Guenther  <rguenther@suse.de>
2870         * tree-nested.c (get_trampoline_type): Use size_int.
2871         (get_nl_goto_field): Likewise.
2872         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2873         for all indexes.
2874         (lower_eh_constructs_2): Likewise.
2875         (lower_resx): Likewise.
2876         (lower_eh_dispatch): Likewise.
2877         * tree-mudflap.c (mf_build_string): Use size_int.
2878         (mudflap_register_call): Use integer_type_node for the flag.
2879         (mudflap_enqueue_constant): Use size_int.
2880         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2881         instead of rebuilding it.
2883 2011-04-29  Richard Guenther  <rguenther@suse.de>
2885         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2886         Handle OBJ_TYPE_REF.
2887         (find_func_aliases_for_call): Use it more consistently.
2889 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2891         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2892         (rank_for_schedule): Use it.
2893         (schedule_block): Set it.
2895 2011-04-28  David Li  <davidxl@google.com>
2897         * tree.c (crc32_string): Use crc32_byte.
2898         (crc32_byte): New function.
2899         * tree.h (crc32_byte): New function.
2900         * gcov.c (read_graph_file): Handle new cfg_cksum.
2901         (read_count_file): Ditto.
2902         * profile.c (instrument_values): Ditto.
2903         (get_exec_counts): Ditto.
2904         (read_profile_edge_counts): Ditto.
2905         (compute_branch_probabilities): Ditto.
2906         (compute_value_histograms): Ditto.
2907         (branch_prob): Ditto.
2908         (end_branch_prob): Ditto.
2909         * coverage.c (read_counts_file): Ditto.
2910         (get_coverage_counts): Ditto.
2911         (tree_coverage_counter_addr): Ditto.
2912         (coverage_checksum_string): Ditto.
2913         (coverage_begin_output): Ditto.
2914         (coverage_end_function): Ditto.
2915         (build_fn_info_type): Ditto.
2916         (build_fn_info_value): Ditto.
2917         * libgcov.c (gcov_exit): Ditto.
2918         * gcov-dump.c (tag_function): Ditto.
2919         (compute_checksum): Remove.
2921 2011-04-29  Alan Modra  <amodra@gmail.com>
2923         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2924         unspec plus offset.  Tidy macho code.
2926 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2928         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2929         node instead of a decl.  Update all callers.
2930         * cgraph.h: Update declaration.
2932 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
2934         PR tree-optimization/48765
2935         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2936         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2937         to indicate if loop aware SLP is being used.  Scan the statements
2938         and update the vectorization factor according to the type of
2939         vectorization before statement analysis.
2940         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2941         pass it to vect_analyze_loop_operations.
2942         (vectorizable_reduction): Set number of copies to 1 in case of pure
2943         SLP statement.
2944         * tree-vect-stmts.c (vectorizable_conversion,
2945         vectorizable_assignment, vectorizable_shift,
2946         vectorizable_operation, vectorizable_type_demotion,
2947         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2948         Likewise.
2949         (vectorizable_condition): Move the check that it is not SLP
2950         vectorization before the number of copies check.
2951         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2952         to vectorize the loop using SLP.
2954 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
2956         PR middle-end/48597
2957         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2958         inline asm.
2960 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
2962         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2963         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2964         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2965         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2966         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2967         linux*.h headers.
2968         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
2969         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2970         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2971         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2972         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2973         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2974         REG_NAME.
2975         * config/i386/linux.h (REG_NAME): Don't define.
2976         * config/i386/linux64.h (REG_NAME): Don't define.
2977         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2978         Undefine before defining.
2980 2011-04-28  Jan Hubicka  <jh@suse.cz>
2982         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2983         nonconstant_names array.
2984         (estimate_function_body_sizes): Build nonconstant_names array; handle
2985         BUILT_IN_CONSTANT_P.
2987 2011-04-28  Richard Guenther  <rguenther@suse.de>
2989         PR bootstrap/48804
2990         Revert
2991         2011-04-28  Richard Guenther  <rguenther@suse.de>
2993         * tree-ssa-structalias.c (solve_constraints): Build succ graph
2994         as late as possible.
2996 2011-04-28  Richard Guenther  <rguenther@suse.de>
2998         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2999         (debug_constraint): Do it here.
3000         (dump_constraints): And here.
3001         (rewrite_constraints): And here.
3002         (dump_constraint_edge): Remove.
3003         (dump_constraint_graph): Rewrite to produce DOT output.
3004         (solve_constraints): Build succ graph as late as possible.
3005         Dump constraint graphs before and after solving.
3007 2011-04-28  Richard Guenther  <rguenther@suse.de>
3009         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3010         New function split out from ...
3011         (find_func_aliases): ... here.  Call it.
3012         (find_func_aliases_for_call): Likewise.
3014 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3016         * internal-fn.h (internal_fn_name_array): Declare.
3017         (internal_fn_flags_array): Likewise.
3019 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3021         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3022         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3023         Move from sse.md.
3024         (ssemodefsuffix): Remove.
3025         (ssevecmodesuffix): New mode attribute.
3026         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3027         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3028         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3029         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3030         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3031         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3032         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3033         ssemodesuffix mode attribute.
3034         (float splitters): Use ssevecmodesuffix mode attribute.
3035         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3036         (sseinsmode): Rename from avxvecmode.
3037         (avxsizesuffix): Rename from avxmodesuffix.
3038         (sseintvecmode): Rename from avxpermvecmode.
3039         (ssedoublevecmode): Rename from ssedoublesizemode.
3040         (ssehalfvecmode): Rename from avxhalfvecmode.
3041         (ssescalarmode): Rename from avxscalarmode.
3042         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3043         templates for ssemodesuffix mode attribute.
3044         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3045         mode attribute.
3047         Adjust RTX patterns globally for renamed mode attributes.
3049 2011-04-27  Jan Hubcika  <jh@suse.cz>
3051         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3052         * ipa-inline-analysis.c: Include alloc-pool.h.
3053         (edge_predicate_pool): New.
3054         (trye_predicate_p): New function
3055         (false_predicate_p): New function.
3056         (add_clause): Sanity check that false clauses are "optimized";
3057         never add clauses to predicate that is already known to be false.
3058         (and_predicate): Use flase_predicate_p.
3059         (evaulate_predicate): Rename to ...
3060         (evaluate_predicate): ... this one; update all callers; assert
3061         that false is not listed among possible truths.
3062         (dump_predicate): Use true_predicate_p.
3063         (account_size_time): Use false_predicate_p.
3064         (evaulate_conditions_for_edge): Rename to ...
3065         (evaluate_conditions_for_edge) ... this one.
3066         (edge_set_predicate): New function.
3067         (inline_edge_duplication_hook): Duplicate edge predicates.
3068         (inline_edge_removal_hook): Free edge predicates.
3069         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3070         (dump_inline_summary): Update.
3071         (estimate_function_body_sizes): Set edge predicates.
3072         (estimate_calls_size_and_time): Handle predicates.
3073         (estimate_callee_size_and_time): Update.
3074         (remap_predicate): Add toplev_predicate; update comment.
3075         (remap_edge_predicates): New function.
3076         (inline_merge_summary): Compute toplev predicate; update.
3077         (read_predicate): New function.
3078         (read_inline_edge_summary): Use it.
3079         (inline_read_section): Likewise.
3080         (write_predicate): New function.
3081         (write_inline_edge_summary): Use it.
3082         (inline_write_summary): Likewise.
3083         (inline_free_summary): Free alloc pool and edge summary vec.
3085 2011-04-27  Richard Guenther  <rguenther@suse.de>
3087         * tree-ssa-structalias.c (changed_count): Remove.
3088         (changed): Use a bitmap.
3089         (unify_nodes): Adjust.
3090         (do_sd_constraint): Likewise.
3091         (do_ds_constraint): Likewise.
3092         (do_complex_constraint): Likewise.
3093         (solve_graph): Likewise.
3095 2011-04-27  Jan Hubicka  <jh@suse.cz>
3097         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3099 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3101         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3102         (avx_vperm2f128_*_operand): Ditto.
3103         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3104         Use avx_vpermilp_parallel in insn condition.
3105         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3106         Use avx_vperm2f128_parallel in insn condition.
3108 2011-04-27  Richard Guenther  <rguenther@suse.de>
3110         * Makefile.in (tree-ssa-structalias.o): Remove
3111         gt-tree-ssa-structalias.h dependency.
3112         (GTFILES): Remove tree-ssa-structalias.c.
3113         * tree.c (allocate_decl_uid): New function.
3114         (make_node_stat): Use it.
3115         (copy_node_stat): Likewise.
3116         * tree.h (allocate_decl_uid): Declare.
3117         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3118         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3119         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3120         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3121         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3122         (struct heapvar_map): Likewise.
3123         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3124         heapvar_insert): Likewise.
3125         (make_heapvar_for): Rename to ...
3126         (make_heapvar): ... this.  Simplify.
3127         (fake_var_decl_obstack): New global var.
3128         (build_fake_var_decl): New function.
3129         (make_constraint_from_heapvar): Adjust.
3130         (handle_lhs_call): Likewise.
3131         (create_function_info_for): Likewise.
3132         (intra_create_variable_infos): Likewise.
3133         (init_alias_vars): Allocate fake_var_decl_obstack.
3134         (init_alias_heapvars, delete_alias_heapvars): Remove.
3135         (compute_points_to_sets): Do not call init_alias_heapvars.
3136         (ipa_pta_execute): Likewise.
3137         (delete_points_to_sets): Free fake_var_decl_obstack.
3139 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3141         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3142         (si_from_UTItype, si_to_UTItype): New functions.
3143         (__udivmodti4): Use them to implement type-punning.
3144         * config/spu/multi3.c (union qword_TItype): New data type.
3145         (si_from_TItype, si_to_TItype): New functions.
3146         (__multi3): Use them to implement type-punning.
3148 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3150         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3152 2011-04-27  Jan Hubicka  <jh@suse.cz>
3154         * ipa-prop.c (function_insertion_hook_holder): New holder.
3155         (ipa_add_new_function): New function.
3156         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3157         Register/deregister holder.
3159 2011-04-27  Richard Guenther  <rguenther@suse.de>
3161         PR tree-optimization/48772
3162         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3164 2011-04-27  Richard Guenther  <rguenther@suse.de>
3166         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3167         TARGET_MEM_REF handling.
3169 2011-04-27  Nick Clifton  <nickc@redhat.com>
3171         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3172         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3173         (REG_CLASS_NAMES): Likewise.
3174         (REG_CLASS_CONTENTS): Likewise.
3175         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3176         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3177         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3178         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3179         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3180         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3181         duplicate register classes.
3182         (frv_class_likely_spilled_p): Likewise.
3183         (frv_register_move_cost): Likewise.
3185         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3186         end of the regno_reg_class array.
3188 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3190         PR c/48742
3191         * c-typeck.c (build_binary_op): Don't wrap arguments if
3192         int_operands is true.
3194 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3196         PR target/48767
3197         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3198         targetm.calls.must_pass_in_stack for void type.
3200 2011-04-26  Jan Hubicka  <jh@suse.cz>
3202         * cgraphbuild.c (build_cgraph_edges): Update call
3203         of cgraph_create_edge and cgraph_create_indirect_edge.
3204         * cgraph.c (cgraph_create_edge_including_clones,
3205         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3206         cgraph_update_edges_for_call_stmt_node): Do not take nest
3207         argument; do not initialize call_stmt_size/time.
3208         (dump_cgraph_node): Do not dump nest.
3209         (cgraph_clone_edge): Do not take loop_nest argument;
3210         do not propagate it; do not clone call_stmt_size/time.
3211         (cgraph_clone_node): Likewise.
3212         (cgraph_create_virtual_clone): Update.
3213         * cgraph.h (struct cgraph_edge): Remove
3214         call_stmt_size/call_stmt_time/loop_nest.
3215         (cgraph_create_edge, cgraph_create_indirect_edge,
3216         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3217         prototype.
3218         * tree-emutls.c (gen_emutls_addr): Update.
3219         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3220         loop_nest; handle indirect calls, too.
3221         (clone_inlined_nodes): Do not care about updating inline summaries.
3222         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3223         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3224         stream call_stmt_size/call_stmt_time/loop_nest.
3225         * ipa-inline.c (edge_badness): Update.
3226         (ipa_inline): dump summaries after inlining.
3227         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3228         New.
3229         (inline_edge_summary): New function.
3230         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3231         (inline_edge_removal_hook): Handle edge summaries.
3232         (inline_edge_duplication_hook): New hook.
3233         (inline_summary_alloc): Alloc hooks.
3234         (initialize_growth_caches): Do not register removal hooks.
3235         (free_growth_caches); Do not free removal hook.
3236         (dump_inline_edge_summary): New function.
3237         (dump_inline_summary): Use it.
3238         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3239         (inline_update_callee_summaries): New function.
3240         (inline_merge_summary): Use it.
3241         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3242         (read_inline_edge_summary): New function.
3243         (inline_read_section): Use it.
3244         (write_inline_edge_summary): New function.
3245         (inline_write_summary): Use it.
3246         (inline_free_summary): Free edge new holders.
3247         * tree-inline.c (copy_bb): Update.
3249 2011-04-26  Jason Merrill  <jason@redhat.com>
3251         * tree-eh.c (lower_try_finally_switch): Create the label along with
3252         the CASE_LABEL_EXPR.
3254 2011-04-26  David S. Miller  <davem@davemloft.net>
3255             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3257         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3258         * configure: Regenerate.
3260 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3262         PR target/48258
3263         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3264         reduction.
3265         (VEC_reduc): New code iterator and splitters for vector reduction.
3266         (VEC_reduc_name): Ditto.
3267         (VEC_reduc_rtx): Ditto.
3268         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3269         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3271         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3272         support for extracting SF on VSX.
3274         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3275         generating xscvspdp.
3276         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3277         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3278         double add, minimum, maximum vector reduction.
3279         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3280         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3281         optimize double vector reduction.
3282         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3284 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3286         * config/fr30/fr30.h (inhibit_libc): Don't define.
3287         * config/m32r/m32r-protos.h: Correct comment.
3288         * config/v850/v850.h (GHS_default_section_names,
3289         GHS_current_section_names): Use tree, not union tree_node *.
3291 2011-04-26  Xinliang David Li  <davidxl@google.com>
3293         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3294         * c-family/c-opts.c (c_common_handle_option): Set
3295         warn_maybe_uninitialized.
3296         * opts.c (common_handle_option): Ditto.
3297         * common.opt:  New option.
3298         * tree-ssa.c (warn_uninit): Add one more parameter.
3299         (warn_uninitialized_var): Pass warning code.
3300         * tree-flow.h: Interface change.
3303 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3305         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3306         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3307         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3309 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3311         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3312         * config/mips/mips.opt (mmips-tfile): Remove.
3314         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3315         mips-tdump reference to ...
3316         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3317         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3318         reference by Tru64 UNIX.
3320 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3322         PR debug/48768
3323         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3324         is error_mark_node, set value to NULL.
3326         PR tree-optimization/48734
3327         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3328         if return value from maybe_fold_*_comparsions isn't something
3329         the code is prepared to handle.
3331 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3333         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3334         mode check.
3335         (ext_QIreg_nomode_operands): Remove.
3336         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3337         (*andsi_1): Ditto.
3338         (*andhi_1): Ditto.
3340 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3342         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3344 2011-04-26  Richard Guenther  <rguenther@suse.de>
3346         * c-typeck.c (build_unary_op): Do not expand array-refs via
3347         pointer arithmetic.  Only adjust qualifiers for function types.
3349 2011-04-26  Richard Guenther  <rguenther@suse.de>
3351         PR middle-end/48694
3352         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3353         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3354         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3355         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3357 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3359         * doc/extend.texi: Document __underlying_type.
3361 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3363         * config/rs6000/titan.md (automata_option "progress"): Remove.
3365 2011-04-25  Jeff Law  <law@redhat.com>
3367         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3369 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3371         * system.h (ENUM_BITFIELD): Remove.
3373 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3374             Eric Botcazou  <ebotcazou@adacore.com>
3376         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3377         for STORE_FLAG_VALUE==-1 case.
3379 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3381         PR target/43804
3382         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3383         LEGITIMATE_PIC_OPERAND_P.
3385 2011-04-24  Jan Hubicka  <jh@suse.cz>
3387         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3388         WPA hack.
3389         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3390         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3391         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3392         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3393         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3394         Sanity check predicate length.
3395         (remap_predicate): Likewise; sanity check jump functions.
3396         (inline_read_section, inline_write_summary): Sanity check
3397         predicate length.
3399 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3401         PR other/48748
3402         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3403         __is_literal_type, and __is_trivial; update throughout about
3404         possibly cv-qualified void types.
3406 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3408         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3409         testsuite and make it version agnostic.
3411 2011-04-22  Jan Hubicka  <jh@suse.cz>
3413         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3415 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3417         PR c/48685
3418         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3419         to VOID_TYPE even around MODIFY_EXPR.
3421 2011-04-22  Mike Stump  <mikestump@comcast.net>
3423         * gensupport.c (read_md_rtx): Fix typo in comment.
3424         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3425         comment.
3427 2011-04-22  Jan Hubicka  <jh@suse.cz>
3429         * gengtype.c (open_base_files): Add ipa-inline.h include.
3430         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3431         ipa-prop.c; update all uses.
3432         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3433         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3434         merge summary of inlined function into former caller.
3435         * ipa-inline.c (max_benefit): Remove.
3436         (edge_badness): Compensate for removal of benefits.
3437         (update_caller_keys): Use
3438         reset_node_growth_cache/reset_edge_growth_cache.
3439         (update_callee_keys): Likewise.
3440         (update_all_callee_keys): Likewise.
3441         (inline_small_functions): Do not collect max_benefit; do not reset
3442         estimated_growth; call free_growth_caches and initialize_growth_caches.
3443         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3444         struct size_time_entry): New structures.
3445         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3446         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3447         and estimated_growth.
3448         (edge_growth_cache_entry): New structure.
3449         (node_growth_cache, edge_growth_cache): New global vars.
3450         (estimate_growth): Turn into inline.
3451         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3452         initialize_growth_caches, free_growth_caches): Declare.
3453         (estimate_edge_growth): Rewrite.
3454         (estimate_edge_time): Implement as inline cache lookup.
3455         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3456         functions.
3457         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3458         (NUM_CONDITIONS): New constant.
3459         (predicate_conditions): New enum.
3460         (IS_NOT_CONSTANT): New constant.
3461         (edge_removal_hook_holder): New var.
3462         (node_growth_cache, edge_growth_cache): New global vars.
3463         (true_predicate, single_cond_predicate, false_predicate,
3464         not_inlined_predicate, add_condition, add_clause, and_predicates,
3465         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3466         dump_clause, dump_predicate, account_size_time,
3467         evaulate_conditions_for_edge): New functions.
3468         (inline_summary_alloc): Move to heap.
3469         (inline_node_removal_hook): Clear condition and entry vectors.
3470         (inline_edge_removal_hook): New function.
3471         (initialize_growth_caches, free_growth_caches): New function.
3472         (dump_inline_summary): Update.
3473         (edge_execution_predicate): New function.
3474         (will_be_nonconstant_predicate): New function.
3475         (estimate_function_body_sizes): Compute BB and constantness predicates.
3476         (compute_inline_parameters): Do not clear estimated_growth.
3477         (estimate_edge_size_and_time): New function.
3478         (estimate_calls_size_and_time): New function.
3479         (estimate_callee_size_and_time): New function.
3480         (remap_predicate): New function.
3481         (inline_merge_summary): New function.
3482         (do_estimate_edge_time): New function based on...
3483         (estimate_edge_time): ... this one.
3484         (do_estimate_edge_growth): New function.
3485         (do_estimate_growth): New function based on....
3486         (estimate_growth): ... this one.
3487         (inline_analyze_function): Analyze after deciding on jump functions.
3488         (inline_read_section): New function.
3489         (inline_read_summary): Use it.
3490         (inline_write_summary): Write all the new data.
3491         * ipa-prop.c (ipa_get_param_decl_index): Export.
3492         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3493         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3494         Declare.
3495         (ipa_get_lattice): Move here from ipa-cp.c
3496         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3497         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3498         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3499         cgraph_edge_inlinable_p): Remove.
3500         * cgraphunit.c: Include ipainline.h
3501         (cgraph_process_new_functions): Update call of
3502         compute_inline_parameters.
3504 2011-04-22  Richard Guenther  <rguenther@suse.de>
3506         * tree.c (build_int_cst): Properly create canonicalized integer
3507         constants.
3508         (build_int_cst_type): Remove scary comments.
3510 2011-04-22  Xinliang David Li  <davidxl@google.com>
3512         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3513         by default when -Wno-error is not specified.
3514         * opts-global.c (decode_options): Remove call to
3515         control_warning_options.
3517 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3519         PR tree-optimization/48717
3520         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3521         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3523 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3525         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3526         definition where used.
3528 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3530         PR c/48716
3531         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3532         TREE_STATIC variables declared inside of some OpenMP construct.
3534 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3536         PR middle-end/48585
3537         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3539 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3541         PR c/36750
3542         * c-typeck.c (pop_init_level): Do not warn about initializing
3543         with ` = {0}'.
3545 2011-04-22  Alan Modra  <amodra@gmail.com>
3547         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3548         when returning call_cookie.
3549         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3550         pointers, to functions with no more vector args than the current
3551         function, and some non-local calls for ABI_V4.
3552         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3553         sibcall_nonlocal_aix64): Combine to ..
3554         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3555         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3556         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3557         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3558         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3559         operand.
3560         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3561         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3562         sibcall_value_symbolic_64): Delete.
3564 2011-04-21  Xinliang David Li  <davidxl@google.com>
3566         * cgraph.h: Remove pid.
3567         * cgraph.c: Remove pid.
3568         * value-prof.c (init_node_map): New function.
3569         (del_node_map): New function.
3570         (find_func_by_funcdef_no): New function.
3571         (gimple_ic_transform): Call new function.
3572         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3573         * function.c (get_last_funcdef_no): New function.
3574         * function.h (get_last_funcdef_no): New function.
3575         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3576         to libgcov function.
3577         (tree-profiling): Call node map init and delete function.
3579 2011-04-21  Ian Lance Taylor  <iant@google.com>
3581         * godump.c (go_format_type): Use exported Go name for anonymous
3582         field name.
3584 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3586         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3587         Call builtin_function_type_list instead of builtin_function_type.
3588         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3590 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3592         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3593         build_function_type_list instead of build_function_type.
3594         Delete variable `endlink'.
3596 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3598         * config/s390/s390.c (s390_init_builtins): Call
3599         build_function_type_list instead of build_function_type.
3601 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3603         * config/ia64/ia64.c (ia64_init_builtins): Call
3604         build_function_type_list instead of builtin_function_type.
3606 2011-04-21  Easwaran Raman  <eraman@google.com>
3608         * cfgexpand.c (stack_var): Remove OFFSET...
3609         (add_stack_var): ...and its reference here...
3610         (expand_stack_vars): ...and here.
3611         (stack_var_cmp): Sort by descending order of size.
3612         (partition_stack_vars): Change heuristic.
3613         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3614         (dump_stack_var_partition): Add newline after each partition.
3616 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3617             Jeff Law  <law@redhat.com>
3619         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3620         * gengtype.c (matching_file_name_substitute): Likewise.
3622 2011-04-21  Richard Guenther  <rguenther@suse.de>
3624         PR lto/48703
3625         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3627 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3629         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3631 2011-04-21  Richard Guenther  <rguenther@suse.de>
3633         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3634         file name.
3636 2011-04-21  Richard Guenther  <rguenther@suse.de>
3638         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3639         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3640         Use DECL_P, not SSA_VAR_P.
3641         (ptr_derefs_may_alias_p): Likewise.
3642         (ptr_deref_may_alias_ref_p_1): Likewise.
3643         (decl_refs_may_alias_p): Likewise.
3644         (refs_may_alias_p_1): Likewise.
3645         (ref_maybe_used_by_call_p_1): Likewise.
3646         (call_may_clobber_ref_p_1): Likewise.
3647         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3648         are either MEM_REF or TARGET_MEM_REF.
3649         (indirect_refs_may_alias_p): Likewise.
3650         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3651         for MEM_EXPR of indirect calls.
3653 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3655         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3656         (dst_file_info_struct): Remove flen field.
3657         (lookup_filename): Remove code that set flen field.
3659 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3661         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3663 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3665         PR target/48708
3666         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3667         vec_extract and vec_concat for non-SSE4_1 targets.
3669 2011-04-21  Richard Guenther  <rguenther@suse.de>
3671         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3672         return statements.
3674 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3676         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3677         undefine.
3678         (FILE): Don't undefine.
3680 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3682         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3683         struct rtx_def *.
3684         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3685         struct rtx_def *.
3686         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3687         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3688         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3689         rtx_def *.
3690         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3691         definitions where used.
3692         * config/microblaze/microblaze.h (struct microblaze_args): Use
3693         rtx, not struct rtx_def *.
3694         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3695         rtx_def *.
3696         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3697         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3698         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3699         not struct rtx_def *.
3700         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3701         struct rtx_def *.
3702         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3703         rtx_def *.
3704         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3706 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3708         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3709         operand_equal_p to compare DR_BASE_ADDRESSes.
3710         (vect_check_interleaving): Likewise.
3712 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3714         PR target/46329
3715         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3716         for all Neon struct constants.
3718 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3720         * target.def (legitimate_constant_p): New hook.
3721         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3722         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3723         * doc/tm.texi: Regenerate.
3724         * hooks.h (hook_bool_mode_rtx_true): Declare.
3725         * hooks.c (hook_bool_mode_rtx_true): Define.
3726         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3727         * calls.c (precompute_register_parameters): Replace uses of
3728         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3729         (emit_library_call_value_1): Likewise.
3730         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3731         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3732         * ira-costs.c (scan_one_insn): Likewise.
3733         * recog.c (general_operand, immediate_operand): Likewise.
3734         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3735         * reload1.c (init_eliminable_invariants): Likewise.
3737         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3738         mode argument.
3739         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3740         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3741         argument.
3742         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3743         * config/alpha/predicates.md (input_operand): Update call to
3744         alpha_legitimate_constant_p.
3746         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3747         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3748         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3749         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3750         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3751         (arm_legitimate_constant_p): New functions.
3752         (arm_cannot_force_const_mem): Make static.
3754         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3756         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3757         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3758         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3759         instead of bfin_legitimate_constant_p.
3760         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3761         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3763         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3765         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3767         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3768         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3769         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3770         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3772         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3773         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3774         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3776         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3777         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3778         * config/i386/i386.c (legitimate_constant_p): Rename to...
3779         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3780         argument.
3781         (ix86_cannot_force_const_mem): Update accordingly.
3782         (ix86_legitimate_address_p): Likewise.
3783         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3784         * config/i386/i386.md: Update commentary.
3786         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3787         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3788         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3789         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3791         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3793         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3794         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3795         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3796         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3798         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3799         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3800         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3802         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3803         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3804         (m32r_legitimate_constant_p): New function.
3806         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3807         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3808         LEGITIMATE_CONSTANT_P.
3809         (LEGITIMATE_CONSTANT_P): Delete.
3810         * config/m68k/m68k.c (m68k_expand_prologue): Call
3811         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3812         (m68k_legitimate_constant_p): New function.
3813         * config/m68k/m68k.md: Update comments.
3815         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3816         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3817         (mcore_legitimate_constant_p): New function.
3819         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3820         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3821         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3822         Add a mode argument.
3823         (mep_legitimate_address): Update accordingly.
3824         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3826         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3827         Delete.
3828         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3829         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3830         static.  Check OP's mode for VOIDmode.
3831         (microblaze_legitimate_constant_p): New function.
3832         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3834         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3835         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3836         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3837         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3838         * config/mips/predicates.md: Update comments.
3840         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3841         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3842         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3843         (mmix_legitimate_constant_p): Make static, return a bool, and take
3844         a mode argument.
3845         (mmix_print_operand_address): Update accordingly.
3847         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3848         Delete.
3849         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3850         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3851         static.  Add a mode argument.
3852         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3854         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3856         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3857         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3858         (pa_legitimate_constant_p): New function.
3860         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3862         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3863         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3864         (pdp11_legitimate_constant_p): New function.
3866         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3867         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3868         (rs6000_legitimate_constant_p): New function.
3870         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3871         (rx_legitimate_constant_p): ...this.
3872         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3873         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3874         (rx_legitimate_constant_p): ...this.
3875         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3876         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3878         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3879         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3880         * config/s390/s390.c (legitimate_constant_p): Rename to...
3881         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3882         and add a mode argument.
3883         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3885         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3887         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3888         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3889         (sh_legitimate_constant_p): New function.
3891         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3892         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3893         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3894         (legitimate_constant_p): Rename to...
3895         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3896         argument.
3897         (constant_address_p): Update accordingly.
3899         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3900         argument and return a bool.
3901         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3902         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3903         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3904         (spu_rtx_costs): Update accordingly.
3905         * config/spu/predicates.md (vec_imm_operand): Likewise.
3907         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3909         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3910         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3911         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3913         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3914         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3915         * config/vax/vax.c (legitimate_constant_p): Likewise.
3917         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3918         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3919         (xtensa_legitimate_constant_p): New function.
3921 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3923         * target.def (cannot_force_const_mem): Add a mode argument.
3924         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3925         * doc/tm.texi: Regenerate.
3926         * hooks.h (hook_bool_mode_rtx_false): Declare.
3927         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3928         (hook_bool_mode_const_rtx_true): Likewise.
3929         (hook_bool_mode_rtx_false): New function.
3930         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3931         to be non-VOID.  Update call to cannot_force_const_mem.
3932         (find_reloads): Update accordingly.
3933         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3934         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3935         argument.
3936         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3937         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3938         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3939         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3940         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3941         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3942         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3943         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3944         (m68k_cannot_force_const_mem): ...this new function.
3945         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3946         argument.
3947         (mips_const_insns, mips_legitimize_const_move): Update calls.
3948         (mips_secondary_reload_class): Likewise.
3949         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3950         (pa_cannot_force_const_mem): ...this new function.
3951         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
3952         (rs6000_cannot_force_const_mem): ...this new function.
3953         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3954         argument.
3955         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3956         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3957         to...
3958         (xtensa_cannot_force_const_mem): ...this new function.
3960 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3962         * config/mips/mips.c (mips16_build_function_stub): Call
3963         build_function_type_list instead of build_function_type.
3964         (mips16_build_call_stub): Likewise.
3966 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3968         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3969         instead of build_function_type.
3971 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
3973         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3974         instead of build_function_type.
3976 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
3978         PR target/48678
3979         * config/i386/i386.md (insv): Change operand 0 constraint to
3980         "register_operand".  Change operand 1 and 2 constraint to
3981         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
3982         * config/i386/sse.md (sse4_1_pinsrb): Export.
3983         (sse2_pinsrw): Ditto.
3984         (sse4_1_pinsrd): Ditto.
3985         (sse4_1_pinsrq): Ditto.
3986         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3987         * config/i386/i386.c (ix86_expand_pinsr): New.
3989 2011-04-20  Easwaran Raman  <eraman@google.com>
3991         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3992         containing union type only with -fstrict-aliasing.
3994 2011-04-20  Jim Meyering  <meyering@redhat.com>
3996         Remove useless if-before-free tests.
3997         * calls.c (expand_call, save_area): Likewise.
3998         * cfgcleanup.c (try_forward_edges): Likewise.
3999         * collect2.c (collect_execute): Likewise.
4000         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4001         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4002         * coverage.c (coverage_checksum_string): Likewise.
4003         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4004         * cselib.c (cselib_init): Likewise.
4005         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4006         (df_set_clean_cfg): Likewise.
4007         * function.c (free_after_compilation): Likewise.
4008         * gcc.c (do_spec_1, main): Likewise.
4009         * gcov.c (create_file_names): Likewise.
4010         * gensupport.c (identify_predicable_attribute): Likewise.
4011         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4012         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4013         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4014         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4015         * ipa-pure-const.c (local_pure_const): Likewise.
4016         * ipa-reference.c (propagate): Likewise.
4017         * ira-costs.c (free_ira_costs): Likewise.
4018         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4019         * matrix-reorg.c (mat_free): Likewise.
4020         * prefix.c (get_key_value): Likewise.
4021         * profile.c (compute_value_histograms): Likewise.
4022         * reload1.c (free_reg_equiv): Likewise.
4023         * sched-deps.c (free_deps): Likewise.
4024         * sel-sched-ir.c (fence_clear): Likewise.
4025         * sese.c (set_rename, if_region_set_false_region): Likewise.
4026         * tree-data-ref.c (free_rdg): Likewise.
4027         * tree-eh.c (lower_try_finally): Likewise.
4028         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4029         * tree-ssa-live.c (delete_var_map): Likewise.
4030         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4031         * tree-ssa-pre.c (phi_trans_add): Likewise.
4033 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4035         PR tree-optimization/48611
4036         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4037         beyond ERT_MUST_NOT_THROW region.
4039 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4041         * config/mips/mips.opt (mfix-24k): New.
4042         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4043         * config/mips/mips.md (length): Increase by 4 for stores if
4044         fixing 24K errata.
4045         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4046         all noreorder if fixing 24K errata.
4047         * doc/invoke.texi: Document mfix-24k.
4049 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4051         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4052         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4054 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4056         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4057         (const_ok_for_op): ... to here.
4059 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4061         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4062         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4064 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4066         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4068 2011-04-20  Richard Guenther  <rguenther@suse.de>
4070         PR tree-optimization/47892
4071         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4072         are if-convertible.
4074 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4076         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4078 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4080         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4082 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4084         PR target/18145
4086         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4087         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4088         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4089         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4090         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4092         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4093         New prototype.
4095         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4096         (avr_asm_named_section, avr_asm_output_aligned_common,
4097         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4098         New functions to update...
4099         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4100         (avr_asm_init_sections): Overwrite section callbacks for
4101         data_section, bss_section.
4102         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4103         from here to...
4104         (avr_file_end): ...here.
4106 2011-04-20  Richard Guenther  <rguenther@suse.de>
4108         PR middle-end/48695
4109         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4110         objects and types here.  Adjust for their offset before comparing.
4112 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4114         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4115         statement per copy.
4117 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4119         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4120         (GIMPLE_H): Include $(INTERNAL_FN_H).
4121         (OBJS-common): Add internal-fn.o.
4122         (internal-fn.o): New rule.
4123         * internal-fn.def: New file.
4124         * internal-fn.h: Likewise.
4125         * internal-fn.c: Likewise.
4126         * gimple.h: Include internal-fn.h.
4127         (GF_CALL_INTERNAL): New gf_mask.
4128         (gimple_statement_call): Put fntype into a union with a new
4129         internal_fn field.
4130         (gimple_build_call_internal): Declare.
4131         (gimple_build_call_internal_vec): Likewise.
4132         (gimple_call_same_target_p): Likewise.
4133         (gimple_call_internal_p): New function.
4134         (gimple_call_internal_fn): Likewise.
4135         (gimple_call_fntype): Return null for internal calls.
4136         (gimple_call_set_fntype): Assert that the function is not internal.
4137         (gimple_call_set_fn): Likewise.
4138         (gimple_call_set_fndecl): Likewise.
4139         (gimple_call_set_internal_fn): New function.
4140         (gimple_call_addr_fndecl): Handle null functions.
4141         (gimple_call_return_type): Likewise null types.
4142         * gimple.c (gimple_build_call_internal_1): New function.
4143         (gimple_build_call_internal): Likewise.
4144         (gimple_build_call_internal_vec): Likewise.
4145         (gimple_call_same_target_p): Likewise.
4146         (gimple_call_flags): Handle calls to internal functions.
4147         (gimple_call_fnspec): New function.
4148         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4149         (gimple_has_side_effects): Handle null functions.
4150         (gimple_rhs_has_side_effects): Likewise.
4151         (gimple_call_copy_skip_args): Handle calls to internal functions.
4152         * cfgexpand.c (expand_call_stmt): Likewise.
4153         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4154         * gimple-fold.c (gimple_fold_call): Handle null functions.
4155         (gimple_fold_stmt_to_constant_1): Don't fold
4156         calls to internal functions.
4157         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4158         functions.
4159         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4160         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4161         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4162         (do_warn_unused_result): Likewise.
4163         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4164         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4165         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4166         the target of a call.
4167         (initialize_hash_element): Update accordingly.
4168         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4169         (iterative_hash_hashable_expr): Handle calls to internal functions.
4170         (print_expr_hash_elt): Likewise.
4171         * tree-ssa-pre.c (can_value_number_call): Likewise.
4172         (eliminate): Handle null functions.
4173         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4174         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4175         (find_func_aliases): Likewise.
4176         * value-prof.c (gimple_ic_transform): Likewise.
4177         (gimple_indirect_call_to_profile): Likewise.
4178         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4179         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4181 2011-04-19  Jan Hubicka  <jh@suse.cz>
4183         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4184         * ipa-inline.c (inline_small_functions): Compute summaries first,
4185         populate heap later.
4187 2011-04-19  Jan Hubicka  <jh@suse.cz>
4189         * cgraph.h (save_inline_function_body): Remove.
4190         * ipa-inline-transform.c: New file, broke out of...
4191         * ipa-inline.c: ... this one; Update toplevel comment.
4192         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4193         make global.
4194         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4195         (cgraph_mark_inline_edge): Rename to inline_call; move to
4196         ipa-inline-transform.c.
4197         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4198         move to ipa-inline-transform.c
4199         (recursive_inlining, inline_small_functions, flatten_function,
4200         ipa_inline, inline_always_inline_functions,
4201         early_inline_small_functions): Update.
4202         (inline_transform): Move to ipa-inline-transform.c.
4203         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4204         Declare.
4205         * Makefile.in (ipa-inline-transform.o): New file.
4206         * cgraphunit.c (save_inline_function_body): Move to
4207         ipa-inline-transform.c
4209 2011-04-19  DJ Delorie  <dj@redhat.com>
4211         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4212         registers if we already know there aren't any.
4213         (m32c_emit_epilogue): Don't emit a barrier here.
4214         (m32c_emit_eh_epilogue): Likewise.
4215         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4216         operands at expand time.
4217         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4218         int" wchar type.
4219         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4220         duplicates.  Provide aliases instead.
4221         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4222         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4223         the compiler.
4225 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4227         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4228         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4229         (general_or_i64_p, sparc_register_move_cost): New function.
4231 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4233         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4234         Add lynx, mipssde.  Sort table.
4236 2011-04-19  Xinliang David Li  <davidxl@google.com>
4238         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4239         not negative.
4241 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4243         PR target/48678
4244         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4245         is a SUBREG with non-MODE_INT mode inside of it.
4247 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4249         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4250         also according to actual contants.
4251         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4252         (gimple_fold_call): Use it.
4253         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4255 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4257         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4258         non-pointer assignments.
4260 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4262         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4263         account anc_offset and otr_type from the indirect edge info.
4264         * ipa-prop.c (get_ancestor_addr_info): New function.
4265         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4266         get_ancestor_addr_info, call it.
4267         (ipa_note_param_call): Do not initialize information about polymorphic
4268         calls, return the indirect call graph edge.  Remove the last
4269         parameter, adjust all callers.
4270         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4271         parameters.  Initialize polymorphic information in the indirect edge.
4273 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4275         PR lto/48148
4276         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4277         the types if they have different enumeration identifiers.
4279 2011-04-19  Jan Hubicka  <jh@suse.cz>
4281         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4282         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4283         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4284         (optimize_function_for_size_p) ... here.
4286 2011-04-19  Richard Guenther  <rguenther@suse.de>
4288         PR lto/48207
4289         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4290         langhook.
4292 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4294         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4295         if DECL_NO_INLINE_WARNING_P is set on the function.
4297 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4299         PR fortran/47976
4300         * reload1.c (inc_for_reload): Return void. All callers changed.
4301         (emit_input_reload_insns): Don't try to delete previous output
4302         reloads to a register, or record spill_reg_store for autoincs.
4304 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4306         * gengtype.h: Updated copyright year.
4307         (struct input_file_st): Add inpisplugin field.
4308         (type_fileloc): New function.
4309         * gengtype.c
4310         (write_typed_struct_alloc_def): Add gcc_assert.
4311         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4312         (write_typed_alloc_defns): Don't output for plugin files.
4313         (input_file_by_name): Clear inpisplugin field.
4314         (main): Set inpisplugin field for plugin files.
4316 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4318         * gengtype-state.c (string_eq): New.
4319         (read_state): Use string_eq instead of strcmp when creating the
4320         state_ident_tab.
4322 2011-04-19  Wei Guozhi  <carrot@google.com>
4324         PR target/47855
4325         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4326         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4327         linkage.
4328         * config/arm/constraints.md (Uu): New constraint.
4329         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4331 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4333         * config.gcc (-*-*-*vms): Added.
4334         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4335         definitions moved.
4336         * config/vms/vms-ld.c: New file.
4337         * config/vms/vms-ar.c: New file.
4338         * config/vms/t-vmsnative: New file.
4340 2011-04-18  Xinliang David Li  <davidxl@google.com>
4342         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4344 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4346         PR middle-end/48661
4347         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4348         if TREE_TYPE (v) is non-NULL.
4350         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4351         gimple_get_virt_mehtod_for_binfo.
4352         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4353         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4354         callers.
4355         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4357 2011-04-18  Michael Matz  <matz@suse.de>
4358             Steve Ellcey  <sje@cup.hp.com>
4360         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4361         use its mode as source mode if it isn't VOIDmode.
4363 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4365         * doc/passes.texi: Fill crossref nodes.
4367 2011-04-18  Jim Meyering  <meyering@redhat.com>
4369         Fix doubled-word typos in comments and strings
4370         * config/alpha/vms-unwind.h: s/for for/for/
4371         * config/arm/unwind-arm.h: Likewise.
4372         * config/microblaze/microblaze.c: Likewise.
4373         * config/sh/constraints.md: s/in in/in/
4374         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4376 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4378         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4379         (AVX_FLOAT_MODE_P): Ditto.
4380         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4381         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4382         (AVX_VEC_FLOAT_MODE_P): Ditto.
4383         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4384         (UNSPEC_MASKSTORE): Ditto.
4385         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4386         Merge from <sse>_movmsk<ssemodesuffix> and
4387         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4388         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4389         iterator.
4390         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4391         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4392         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4394 2011-04-18  Jan Hubicka  <jh@suse.cz>
4396         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4398         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4399         (want_inline_function_called_once_p): Break out the logic from
4400         ipa_inline.
4401         (edge_badness): Ensure that profile is not misupdated.
4402         (lookup_recursive_calls): Prioritize by call frequencies.
4403         (inline_small_functions): Move program size estimates here;
4404         actually process whole queue even when unit growth has been
4405         met. (to properly compute inline_failed reasons and for the
4406         case unit size decrease.) Revisit comments on recursive inlining.
4407         (ipa_inline): Remove unit summary code; first inline hot calls
4408         of functions called once, cold calls next.
4409         (order, nnodes): Remove unused variables.
4410         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4411         (GTFILES): Remove ipa-inline.c
4412         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4414 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4416         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4418 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4419             Richard Earnshaw  <rearnsha@arm.com>
4421         * arm.c (neon_builtin_type_bits): Remove.
4422         (typedef enum neon_builtin_mode): New.
4423         (T_MAX): Don't define.
4424         (typedef enum neon_builtin_datum): Remove bits, codes[],
4425         num_vars and base_fcode.  Add mode, code and fcode.
4426         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4427         VAR10): Change accordingly.
4428         (neon_builtin_data[]): Change accordingly
4429         (arm_init_neon_builtins): Change accordingly.
4430         (neon_builtin_compare): Remove.
4431         (locate_neon_builtin_icode): Remove.
4432         (arm_expand_neon_builtin): Change accordingly.
4434         * arm.h (enum arm_builtins): Move to ...
4435         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4437         * arm.c (arm_builtin_decl): Declare.
4438         (TARGET_BUILTIN_DECL): Define.
4439         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4440         (arm_builtin_decls[]): New.
4441         (arm_init_neon_builtins): Store builtin declarations in
4442         arm_builtin_decls[].
4443         (arm_init_tls_builtins): Likewise.
4444         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4445         (arm_builtin_decl): New.
4447 2011-04-18  Richard Guenther  <rguenther@suse.de>
4449         * tree.c (upper_bound_in_type): Build properly canonicalized
4450         INTEGER_CSTs.
4451         (lower_bound_in_type): Likewise.
4453 2011-04-18  Richard Guenther  <rguenther@suse.de>
4455         * gimple.h (gimple_call_addr_fndecl): New function.
4456         (gimple_call_fndecl): Use it.
4457         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4458         for direct calls.
4459         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4460         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4462 2011-04-18  Richard Guenther  <rguenther@suse.de>
4464         PR middle-end/48650
4465         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4467 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4469         PR lto/48492
4470         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4471         DECL_IN_CONSTANT_POOL without RTL.
4473 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4474             Ira Rosen  <ira.rosen@linaro.org>
4476         PR target/48252
4477         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4478         to match neon_vzip/vuzp/vtrn_internal.
4479         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4480         outputs explicitly dependent on both inputs.
4481         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4483 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4485         PR tree-optimization/48616
4486         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4487         whether the shift is by scalar or vector based on whether all SLP
4488         scalar stmts have the same rhs.
4490 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4492         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4493         memory operands.
4495 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4497         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4498         registers.
4500 2011-04-17  Jan Hubicka  <jh@suse.cz>
4502         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4503         * cgrpahunit.c (cgraph_finalize_function): Do not set
4504         finalized_by_frontend.
4505         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4506         finalized_by_frontend.
4508 2011-04-17  Jan Hubicka  <jh@suse.cz>
4510         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4511         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4512         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4513         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4514         method.
4515         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4516         gimple-fold.c
4517         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4519 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4521         PR lto/48538
4522         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4523         is non-null before accessing it.
4524         (input_cgraph): Remove trailing spaces.
4526 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4528         * params.def (sms-min-sc): New param flag.
4529         * modulo-sched.c (sms_schedule): Use it.
4530         * doc/invoke.texi (sms-min-sc): Document it.
4532 2011-04-17  Jan Hubicka  <jh@suse.cz>
4534         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4535         present, also set gimple_call_set_cannot_inline.
4536         * ipa-inline.c: Update toplevel comment.
4537         (MAX_TIME): Remove.
4538         (cgraph_clone_inlined_nodes): Fix linebreaks.
4539         (cgraph_check_inline_limits): Restructure to ...
4540         (caller_growth_limits): ... this one; be more tolerant
4541         on growth in nested inline chains; add explanatory comment;
4542         fix stack accounting thinko introduced by previous patch.
4543         (cgraph_default_inline_p): Remove.
4544         (report_inline_failed_reason): New function.
4545         (can_inline_edge_p): New function.
4546         (can_early_inline_edge_p): New function.
4547         (leaf_node_p): Move upwards in file.
4548         (want_early_inline_function_p): New function.
4549         (want_inline_small_function_p): New function.
4550         (want_inline_self_recursive_call_p): New function.
4551         (cgraph_edge_badness): Rename to ...
4552         (edge_badness) ... this one; fix linebreaks.
4553         (update_edge_key): Update call of edge_baddness; add
4554         detailed dump about queue updates.
4555         (update_caller_keys): Use can_inline_edge_p and
4556         want_inline_small_function_p.
4557         (cgraph_decide_recursive_inlining): Rename to...
4558         (recursive_inlining): Use can_inline_edge_p and
4559         want_inline_self_recursive_call_p; simplify and remove no longer
4560         valid FIXME.
4561         (cgraph_set_inline_failed): Remove.
4562         (add_new_edges_to_heap): Use can_inline_edge_p and
4563         want_inline_small_function_p.
4564         (cgraph_decide_inlining_of_small_functions): Rename to ...
4565         (inline_small_functions): ... this one; cleanup; use
4566         can/want predicates; cleanup debug ouput; work edges till fibheap
4567         is exhausted and do not stop once unit growth is reached; remove
4568         later loop processing remaining edges.
4569         (cgraph_flatten): Rename to ...
4570         (flatten_function): ... this one; use can_inline_edge_p
4571         and can_early_inline_edge_p predicates.
4572         (cgraph_decide_inlining): Rename to ...
4573         (ipa_inline): ... this one; remove unreachable nodes before
4574         inlining functions called once; simplify the pass.
4575         (cgraph_perform_always_inlining): Rename to ...
4576         (inline_always_inline_functions): ... this one; use
4577         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4578         (cgraph_decide_inlining_incrementally): Rename to ...
4579         (early_inline_small_functions): ... this one; simplify
4580         using new predicates; cleanup; make dumps prettier.
4581         (cgraph_early_inlining): Rename to ...
4582         (early_inliner): newer inline regular functions into always-inlines;
4583         fix updating of call stmt summaries.
4584         (pass_early_inline): Update for new names.
4585         (inline_transform): Fix formating.
4586         (gate_cgraph_decide_inlining): Rename to ...
4587         (pass_ipa_inline): ... this one.
4588         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4589         * ipa-inline-analysis.c (dump_inline_summary): Update.
4590         (compute_inline_parameters): Do not compute disregard_inline_limits;
4591         look for mismatching arguments.
4592         (estimate_growth): Fix handlig of non-trivial self recursion.
4593         (inline_read_summary): Do not read info->disregard_inline_limits.
4594         (inline_write_summary): Do not write info->disregard_inline_limits.
4595         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4596         and move all checks into can_inline_edge_p predicate; re-enable code
4597         comparing optimization levels.
4598         (expand_call_inline): Do not test inline_forbidden_into_p.
4599         * Makefile.in (ipa-inline.o): Update arguments.
4601 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4603         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4605 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4607         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4609 2011-04-17  Michael Matz  <matz@suse.de>
4611         PR tree-optimization/48622
4612         PR lto/48645
4613         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4614         in same order as they're written.
4616 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4618         * config/pa/predicates.md: Reorganize and simplify predicates.
4619         Eliminate duplicate code checks.
4620         (arith_operand): Rename to arith14_operand
4621         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4622         * config/pa/pa.md: Use renamed operands.
4623         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4624         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4625         arith11_operand, adddi3_operand, indexed_memory_operand,
4626         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4627         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4628         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4629         move_dest_operand, move_src_operand, prefetch_cc_operand,
4630         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4631         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4632         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4633         div_operand, int5_operand, movb_comparison_operator,
4634         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4635         arith_double_operand, ireg_operand, lhs_lshift_operand,
4636         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4637         integer_store_memory_operand): Likewise.
4638         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4639         (integer_store_memory_operand, read_only_operand,
4640         function_label_operand, borx_reg_operand,
4641         non_hard_reg_operand): Likewise.
4642         (eq_neq_comparison_operator): Delete unused operator.
4643         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4644         function_label_operand.
4645         (emit_move_sequence): Likewise.
4647 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4649         * config/i386/sse.md (sseunpackmode): New mode attribute.
4650         (ssepackmode): Ditto.
4651         (vec_pack_trunc_<mode>): Macroize expander from
4652         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4653         (vec_unpacks_lo_<mode>): Macroize expander from
4654         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4655         (vec_unpacks_hi_<mode>): Macroize expander from
4656         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4657         (vec_unpacku_lo_<mode>): Macroize expander from
4658         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4659         (vec_unpacku_hi_<mode>): Macroize expander from
4660         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4661         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4662         ix86_expand_sse4_unpack.
4663         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4665 2011-04-16  Jan Hubicka  <jh@suse.cz>
4667         * cgraphbuild.c: Include ipa-inline.h.
4668         (reset_inline_failed): Use initialize_inline_failed.
4669         * cgraph.c: Include ipa-inline.h.
4670         (cgraph_create_node_1): Do not initialize estimated_growth.
4671         (initialize_inline_failed): More to ipa-inline-analysis.c
4672         (dump_cgraph_node): Do not dump inline flags.
4673         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4674         and disregard_inline_limits flags.
4675         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4676         time, size, estimated_growth.
4677         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4678         Update.
4679         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4680         DECL_DISREGARD_INLINE_LIMITS.
4681         (cgraph_analyze_function): Do not initialize
4682         node->local.disregard_inline_limits.
4683         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4684         inlinable, versionable and disregard_inline_limits.
4685         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4686         cgraph_check_inline_limits, cgraph_default_inline_p,
4687         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4688         add_new_edges_to_heap): Update.
4689         (cgraph_decide_inlining_of_small_function): Update; set
4690         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4691         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4692         cgraph_decide_inlining_incrementally): Update.
4693         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4694         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4695         time, size and estimated_growth parameters.
4696         (estimate_edge_growth): Update.
4697         (initialize_inline_failed): Declare.
4698         * ipa-split.c: Include ipa-inline.h
4699         (execute_split_functions): Update.
4700         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4701         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4702         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4703         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4704         estimated_growth to INT_MIN.
4705         (inline_node_duplication_hook): Likewise.
4706         (dump_inline_summary): Dump new fields.
4707         (compute_inline_parameters): Update.
4708         (estimate_edge_time, estimate_time_after_inlining,
4709         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4710         inline_write_summary):
4711         (initialize_inline_failed): Move here from cgraph.c.
4712         * tree-sra.c: Include ipa-inline.h.
4713         (ipa_sra_preliminary_function_checks): Update.
4714         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4715         ipa-inline.h.
4717 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4719         * config/i386/sse.md (V16): New mode iterator.
4720         (VI1, VI8): Ditto.
4721         (AVXMODEQI, AVXMODEDI): Remove.
4722         (sse2, sse3): New mode attribute.
4723         (mov<mode>): Use V16 mode iterator.
4724         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4725         (push<mode>1): Use V16 mode iterator.
4726         (movmisalign<mode>): Ditto.
4727         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4728         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4729         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4730         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4731         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4732         avx_movdqu<avxmodesuffix>.
4733         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4734         *avx_movdqu<avxmodesuffix>.
4735         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4736         avx_lddqu<avxmodesuffix>.
4737         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4738         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4739         avx_movnt<AVXMODEDI:mode>.
4740         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4741         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4743 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4745         PR target/48629
4746         * haifa-sched.c (prune_ready_list, schedule_block): Use
4747         sched_pressure_p rather than flag_sched_pressure.
4749 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4751         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4752         cgraph_get_node instead of cgraph_get_create_node.
4754 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4756         * cfgexpand.c (expand_debug_expr): Use
4757         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4759 2011-04-15  Michael Matz  <matz@suse.de>
4761         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4762         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4763         * function.c (gimplify_parameters): Ditto.
4764         * gimplify.c (gimplify_vla_decl): Ditto.
4766         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4767         (gimple_call_set_alloca_for_var): New inline function.
4768         (gimple_call_alloca_for_var_p): Ditto.
4769         * gimple.c (gimple_build_call_from_tree): Remember
4770         CALL_ALLOCA_FOR_VAR_P state.
4771         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4773         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4774         calls if they were for VLA objects.
4776 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4778         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4779         of ADR_EXPRs.
4781 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4783         PR middle-end/48601
4784         * tree-emutls.c (lower_emutls_function_body): Call
4785         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4786         result is non-NULL.
4788 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4790         * c-decl.c (detect_field_duplicates): Call
4791         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4793 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4795         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4796         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4797         * ipa-pure-const.c (check_stmt): Call it.
4798         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4800 2011-04-15  Richard Guenther  <rguenther@suse.de>
4802         PR tree-optimization/48290
4803         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4804         Properly decide inhibiting propagation based on the valueized
4805         operand.  Do loop-closed SSA form preserving here ...
4806         (init_copy_prop): ... not here.
4808 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4810         PR target/48612
4811         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4812         (*ieee_smax<mode>3): Likewise.
4814 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4816         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4817         Replace match_operand with match_dup for the third operand in
4818         these expanders.
4820 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4822         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4823         to track processing of conditionals.  Update all callers.
4824         (try_combine, simplify_if_then_else): Update.
4826 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4828         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4829         -fsched-pressure.
4831 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4833         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4834         instead of match_operand for operand 3.
4836 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4838         * recog.h (insn_operand_data): Add an "allows_mem" field.
4839         * genoutput.c (output_operand_data): Initialize it.
4840         * optabs.c (maybe_legitimize_operand_same_code): New function.
4841         (maybe_legitimize_operand): Use it when matching the original
4842         op->value.
4844 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4846         * gimplify.c: Fix issues in comments throughout.
4847         (voidify_wrapper_expr): Fix long line.
4848         (build_stack_save_restore): Likewise.
4849         (gimplify_loop_expr): Likewise.
4850         (gimplify_compound_lval): Likewise.
4851         (gimplify_init_ctor_eval): Likewise.
4852         (gimplify_modify_expr_rhs): Likewise.
4853         (omp_notice_threadprivate_variable): Likewise.
4855 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4857         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4858         original one if this is not a builtin function.
4860 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4862         PR target/48605
4863         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4864         offset it as needed based on top 2 bits in operands[3], change
4865         MEM mode to SFmode and mask those 2 bits away from operands[3].
4867 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4869         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4870         change from objc_declare_protocols() to objc_declare_protocol().
4872 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4874         * config/i386/sse.md (sse4_1): New mode attribute.
4875         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4876         avx_blend<ssemodesuffix><avxmodesuffix> and
4877         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4878         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4879         avx_blendv<ssemodesuffix><avxmodesuffix> and
4880         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4881         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4882         avx_dp<ssemodesuffix><avxmodesuffix> and
4883         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4884         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4885         (sse4_1_packusdw): Merge with *avx_packusdw.
4886         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4887         (sse4_1_pblendw): Merge with *avx_pblendw.
4888         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4889         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4890         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4891         VF mode iterator.
4892         (sse4_1_round<ssescalarmodesuffix>): Merge with
4893         *avx_round<ssescalarmodesuffix>.
4894         (aesenc): Merge with *avx_aesenc.
4895         (aesenclast): Merge with *avx_aesenclast.
4896         (aesdec): Merge with *avx_aesdec.
4897         (aesdeclast): Merge with *avx_aesdeclast.
4898         (pclmulqdq): Merge with *pclmulqdq.
4899         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4900         New predicate.
4901         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4903 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4905         PR middle-end/48608
4906         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4907         (align_local_variable): This.  Update DECL_ALIGN.
4908         (add_stack_var): Updated.
4909         (expand_one_stack_var): Likewise.
4911 2011-04-14  Richard Guenther  <rguenther@suse.de>
4913         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4914         Remove.
4915         (dse_initialize_block_local_data, dse_leave_block,
4916         record_voperand_set, get_stmt_uid): Likewise.
4917         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4918         (dse_optimize_stmt): Remove voperand set handling code.
4919         Simplify and improve to handle any kind of killing stmt.
4920         (dse_record_phi): Remove.
4921         (dse_enter_block): Simplify.
4922         (tree_ssa_dse): Likewise.
4923         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4925 2011-04-14  Jan Hubicka  <jh@suse.cz>
4927         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4928         * cgraph.h (struct inline_summary): Move to ipa-inline.h
4929         (cgraph_local_info): Remove inline_summary.
4930         * ipa-cp.c: Include ipa-inline.h.
4931         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4932         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4933         accesor.
4934         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4935         (input_overwrite_node): Do not set inline summary.
4936         (input_node): Do not stream inline summary.
4937         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4938         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4939         growth; we do not have inline parameters computed for that anyway.
4940         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4941         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4942         (inline_summary_t): New type and VECtor.
4943         (debug_inline_summary, dump_inline_summaries): Declare.
4944         (inline_summary): Use VOCtor.
4945         (estimate_edge_growth): Kill hack computing call stmt size directly.
4946         * lto-section-in.c (lto_section_name): Add inline section.
4947         * ipa-inline-analysis.c: Include lto-streamer.h
4948         (node_removal_hook_holder, node_duplication_hook_holder): New holders
4949         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4950         (inline_summary_vec): Define.
4951         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4952         dump_inline_summaries): New functions.
4953         (estimate_function_body_sizes): Properly compute size/time of outgoing
4954         calls.
4955         (compute_inline_parameters): Alloc inline_summary; do not compute
4956         size/time of incomming calls.
4957         (estimate_edge_time): Avoid missing time summary hack.
4958         (inline_read_summary): Read inline summary info.
4959         (inline_write_summary): Write inline summary info.
4960         (inline_free_summary): Free all hooks and inline summary vector.
4961         * lto-streamer.h: Add LTO_section_inline_summary section.
4962         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4963         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4965 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
4967         * tree-vectorizer.h (vect_strided_store_supported): Add a
4968         HOST_WIDE_INT argument.
4969         (vect_strided_load_supported): Likewise.
4970         (vect_permute_store_chain): Return void.
4971         (vect_transform_strided_load): Likewise.
4972         (vect_permute_load_chain): Delete.
4973         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4974         count argument.  Check that the count is a power of two.
4975         (vect_strided_load_supported): Likewise.
4976         (vect_permute_store_chain): Return void.  Update after above changes.
4977         Assert that the access is supported.
4978         (vect_permute_load_chain): Likewise.
4979         (vect_transform_strided_load): Return void.
4980         * tree-vect-stmts.c (vectorizable_store): Update calls after
4981         above interface changes.
4982         (vectorizable_load): Likewise.
4983         (vect_analyze_stmt): Don't check for strided powers of two here.
4985 2011-04-14  Richard Guenther  <rguenther@suse.de>
4987         PR tree-optimization/48590
4988         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4989         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4990         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4991         BUILT_IN_STACK_SAVE.
4992         * tree-ssa-dce.c (propagate_necessity): Handle
4993         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4995 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4997         * c-parser.c (c_parser_objc_class_declaration): Updated call to
4998         objc_declare_class.
5000 2011-04-14  Richard Guenther  <rguenther@suse.de>
5002         * tree.h (get_object_alignment_1): Declare.
5003         * builtins.c (get_object_alignment_1): Split out worker from ...
5004         (get_object_alignment): ... here.
5005         * fold-const.c (get_pointer_modulus_and_residue): Use
5006         get_object_alignment_1.
5008 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5010         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5011         type parameter.
5012         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5013         parameter.  Generalise code to handle arrays as well as vectors.
5014         (vect_setup_realignment): Update accordingly.
5015         * tree-vect-stmts.c (vectorizable_store): Likewise.
5016         (vectorizable_load): Likewise.
5018 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5020         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5021         within the per-copy loop.
5023 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5025         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5026         in the dump file.
5028 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5030         * doc/options.texi (Negative): Explicitly mention that the
5031         Negative chain must be circular.
5033 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5035         * function.h (block_chainon): Declare.
5036         * function.c (block_chainon): Define.
5038 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5039             Eric Weddington  <eric.weddington@atmel.com>
5040             Georg-Johann Lay  <avr@gjlay.de>
5042         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5043         New Includes
5044         (avr_init_builtins, avr_expand_builtin,
5045         avr_expand_delay_cycles, avr_expand_unop_builtin,
5046         avr_expand_binop_builtin ): New functions.
5047         (avr_builtin_id): New enum
5048         (struct avr_builtin_description): New struct
5049         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5050         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5052         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5053         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5054         UNSPECV_DELAY_CYCLES): new enumeration values
5055         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5056         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5057         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5058         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5059         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5060         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5061         "fmulsu"): New insns
5063         * config/avr/avr-c.c: fix line endings
5064         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5065         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5066         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5067         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5068         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5070         * doc/extend.texi (AVR Built-in Functions): New node
5071         (Target Builtins): Add documentation of AVR
5072         built-in functions.
5074 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5076         PR target/44643
5077         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5078         alone. Error if non-const data has attribute progmem.
5080 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5082         * tree.h (struct tree_constructor): Include tree_typed instead of
5083         tree_common.
5084         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5085         TS_TYPED instead of TS_COMMON.
5087 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5089         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5090         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5091         (sse2_psadbw): Merge with *avx_psadbw.
5092         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5093         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5094         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5095         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5096         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5097         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5098         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5099         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5100         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5101         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5102         (ssse3_palignrti): Merge with *avx_palignrti.
5104 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5106         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5107         * tree-ssanames.c (fini_ssanames): VEC_free it.
5108         (make_ssa_name_fn): Update for VECness of free_ssanames.
5109         (release_ssa_name, release_dead_ssa_names): Likewise.
5110         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5111         tree_common.
5112         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5113         TS_TYPED instead of TS_COMMON.
5115 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5117         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5118         statistics_counter_event.
5119         * tree-ssa-copyrename.c (stats): Define.
5120         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5121         statistics_counter_event.
5122         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5123         (bswap_stats, widen_mul_stats): Define.
5124         (insert_reciprocals): Increment rdivs_inserted.
5125         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5126         rfuncs_inserted.  Add calls to statistics_counter_event.
5127         (execute_cse_sincos_1): Increment inserted.
5128         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5129         statistics_counter_event.
5130         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5131         of bswap_stats.  Add calls to statistics_counter_event.
5132         (convert_mult_to_widen): Increment widen_mults_inserted.
5133         (convert_plusminus_to_widen): Increment maccs_inserted.
5134         (convert_mult_to_fma): Increment fmas_inserted.
5135         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5136         calls to statistics_counter_event.
5138 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5140         PR rtl-optimization/48455
5141         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5142         `temp_costs->mem_cost'.
5144 2011-04-13  Jan Hubicka  <jh@suse.cz>
5146         * ipa-inline.h: New file.
5147         * ipa-inline-analysis.c: New file. Broken out of ...
5148         * ipa-inline.c: ... this file; update toplevel comment;
5149         include ipa-inline.h
5150         (inline_summary): Move to ipa-inline.h
5151         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5152         ipa-inline-analysis.c.
5153         (cgraph_estimate_time_after_inlining): Rename to
5154         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5155         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5156         to estimate_edge_growth.
5157         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5158         rename to estimate_size_after_inlining.
5159         (cgraph_mark_inline_edge): Update for new naming convention.
5160         (cgraph_check_inline_limits): Likewise.
5161         (cgraph_edge_badness): Likewise.
5162         (cgraph_decide_recursive_inlining): Likewise.
5163         (cgraph_decide_inlining_of_small_functions): Likewise.
5164         (cgraph_decide_inlining_incrementally): Likewise.
5165         (cgraph_estimate_growth): Rename to estimate_growth; move to
5166         ipa-inline-analysis.c.
5167         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5168         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5169         (compute_inline_parameters): Likewise.
5170         (compute_inline_parameters_for_current): Likewise.
5171         (pass_inline_parameters): Likewise.
5172         (inline_indirect_intraprocedural_analysis): Likewise.
5173         (analyze_function): Rename to inline_analyze_function; likewise.
5174         (add_new_function): Move to ipa-inline-analysis.c.
5175         (inline_generate_summary): Likewise.
5176         (inline_read_summary): Likewise.
5177         (inline_write_summary): Likewise.
5178         * Makefile.in (ipa-inline-analysis.c): New file.
5180 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5182         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5183         * configure: Regenerate.
5185 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5187         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5188         instead of tree_common.
5189         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5190         Likewise.
5191         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5192         TS_TYPED rather than TS_COMMON.
5193         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5195 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5197         PR target/45263
5198         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5199         r20 around calls of __tablejump_elpm__
5201 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5203         PR middle-end/48591
5204         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5205         NULL.
5206         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5208 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5210         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5211         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5212         (cfi_vec): New typedef.
5213         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5214         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5215         (cie_cfi_vec): New static variable.
5216         (cie_cfi_head): Delete.
5217         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5218         declaration changed. Use vector rather than list operations.
5219         (new_cfi): Don't initialize the dw_cfi_next field.
5220         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5221         rather than list operations.
5222         (lookup_cfa): Use vector rather than list operations.
5223         (output_cfis): New argument upto. Accept a cfi_vec rather than
5224         a dw_cfi_ref list head as argument. All callers changed.
5225         Iterate over the vector using upto as a maximum index.
5226         (output_all_cfis): New static function.
5227         (output_fde): Use vector rather than list operations. Use the
5228         new upto argument for output_cfis rather than manipulating a
5229         list.
5230         (dwarf2out_begin_prologue): Change initializations to match
5231         new struct members.
5232         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5233         from the vector length rather than searching for the end of a list.
5234         Use output_all_cfis.
5235         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5237 2011-04-13  Nick Clifton  <nickc@redhat.com>
5239         * config/rx/rx.md (movmemsi): Do not use this pattern when
5240         volatile pointers are involved.
5242 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5244         * config/i386/sse.md (pinsrbits): Remove.
5245         (sse2_packsswb): Merge with *avx_packsswb.
5246         (sse2_packssdw): Merge with *avx_packssdw.
5247         (sse2_packuswb): Merge with *avx_packuswb.
5248         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5249         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5250         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5251         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5252         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5253         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5254         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5255         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5256         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5257         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5258         (sse2_loadld): Merge with *avx_loadld.
5259         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5260         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5261         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5262         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5263         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5265 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5267         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5268         calling TREE_CHAIN.
5269         * print-tree.c (print_node): Likewise.
5270         * tree-inline.c (copy_tree_r): Likewise.
5271         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5272         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5273         instead of TS_COMMON.
5274         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5275         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5276         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5277         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5278         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5279         ...and these...
5280         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5281         * tree.h: ...here.
5282         (TREE_CHAIN): Check for a TS_COMMON structure.
5283         (TREE_TYPE): Check for a TS_TYPED structure.
5285 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5287         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5288         cgraph_get_create_node instead of cgraph_node.
5290 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5292         * c-parser.c (c_parser_initelt): Updated call to
5293         objc_build_message_expr.
5294         (c_parser_postfix_expression): Likewise.
5296 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5298         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5299         MASK_MS_BITFIELD_LAYOUT bit.
5301 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5303         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5304         assert it is always true.
5305         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5306         moves.
5308 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5310         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5311         compiling Objective-C to be more efficient.
5313 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5315         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5316         argv_copied.
5318 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5320         * recog.h, genoutput.c, optabs.c: Revert last patch.
5322 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5324         PR target/48090
5325         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5327 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5329         * recog.h (insn_operand_data): Add an "allows_mem" field.
5330         * genoutput.c (output_operand_data): Initialize it.
5331         * optabs.c (maybe_legitimize_operand_same_code): New function.
5332         (maybe_legitimize_operand): Use it when matching the original
5333         op->value.
5335 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5337         * genpreds.c (process_define_predicate): Move most processing
5338         to gensupport.c.  Continue to validate the expression.
5339         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5340         (process_define_predicate): Move processing to gensupport.c.
5341         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5342         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5343         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5344         argument.
5345         (valid_predicate_name_p): New function, split out from old
5346         genpreds.c:process_define_predicate.
5347         (process_define_predicate): New function, combining code from
5348         old genpreds.c and genrecog.c functions.
5349         (process_rtx): Call it for DEFINE_PREDICATE and
5350         DEFINE_SPECIAL_PREDICATE.
5352 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5354         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5355         size of a '%A' memory reference.
5356         (T_DREG, T_QREG): New neon_builtin_type_bits.
5357         (arm_init_neon_builtins): Assert that the load and store operands
5358         are neon_struct_operands.
5359         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5360         (NEON_ARG_MEMORY): New builtin_arg.
5361         (neon_dereference_pointer): New function.
5362         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5363         Handle NEON_ARG_MEMORY.
5364         (arm_expand_neon_builtin): Update after above interface changes.
5365         Use NEON_ARG_MEMORY for loads and stores.
5366         * config/arm/predicates.md (neon_struct_operand): New predicate.
5367         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5368         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5369         (V_four_elem): Tweak formatting.
5370         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5371         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5372         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5373         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5374         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5375         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5376         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5377         Use %A in the output template.
5378         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5379         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5380         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5381         the width of the memory access.  Remove post-increment.
5382         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5384 2011-04-12  Nick Clifton  <nickc@redhat.com>
5386         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5387         instruction for interrupt handlers if the target is the basic V850
5388         architecture.
5389         (expand_epilogue): Likewise.
5391 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5393         PR rtl-optimization/48549
5394         * combine.c (propagate_for_debug): Also stop after BB_END of
5395         this_basic_block.  Process LAST and just stop processing after it.
5396         (combine_instructions): If last_combined_insn has been deleted,
5397         set last_combined_insn to its PREV_INSN.
5399 2011-04-12  Richard Guenther  <rguenther@suse.de>
5401         PR tree-optimization/46076
5402         * gimple.h (struct gimple_statement_call): Add fntype field.
5403         (gimple_call_fntype): Adjust.
5404         (gimple_call_set_fntype): New function.
5405         * gimple.c (gimple_build_call_1): Set the call function type.
5406         * gimplify.c (gimplify_call_expr): Preserve the function
5407         type the frontend used for the call.
5408         (gimplify_modify_expr): Likewise.
5409         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5410         function type.
5411         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5412         function type.
5413         * tree-ssa.c (useless_type_conversion_p): Function pointer
5414         conversions are useless.
5416 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5418         * cgraph.h (cgraph_node): Remove function declaration.
5419         (cgraph_create_node): Declare.
5420         (cgraph_get_create_node): Likewise.
5421         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5422         Updated all callers.
5423         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5424         the decl does not already exist.  Call cgraph_get_create_node instead
5425         of cgraph_node.
5426         (cgraph_get_create_node): New function.
5427         (cgraph_same_body_alias): Update comment.
5428         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5429         assert it does not return NULL.
5430         (cgraph_update_edges_for_call_stmt): Likewise.
5431         (cgraph_clone_edge): Likewise.
5432         (cgraph_create_virtual_clone): Likewise.
5433         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5434         instead of cgraph_node.
5435         (cgraph_add_new_function): Call cgraph_create_node or
5436         cgraph_get_create_node instead of cgraph_node.
5437         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5438         instead of cgraph_node.
5439         (record_eh_tables): Likewise.
5440         (mark_address): Likewise.
5441         (mark_load): Likewise.
5442         (build_cgraph_edges): Call cgraph_get_create_node instead
5443         of cgraph_node.
5444         (rebuild_cgraph_edges): Likewise.
5445         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5446         instead of cgraph_node.
5447         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5448         cgraph_node.
5449         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5450         cgraph_create_node instead of cgraph_node.
5451         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5452         of cgraph_node.
5453         * lto-cgraph.c (input_node): Likewise.
5454         * lto-streamer-in.c (input_function): Likewise.
5455         * varasm.c (mark_decl_referenced): Likewise.
5456         (assemble_alias): Likewise.
5458 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5460         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5461         instead of cgraph_node and assert it does not return NULL.
5462         * lto-streamer-in.c (lto_read_body): Likewise.
5463         * omp-low.c (new_omp_context): Likewise.
5464         (create_task_copyfn): Likewise.
5465         * tree-emutls.c (lower_emutls_function_body): Likewise.
5466         * matrix-reorg.c (transform_allocation_sites): Likewise.
5468 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5470         PR c/48552
5471         * c-typeck.c (build_asm_expr): Error out on attempts to use
5472         void type outputs or inputs for constraints that allow reg or
5473         don't allow memory.
5475 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5476             Richard Earnshaw  <rearnsha@arm.com>
5478         PR target/48250
5479         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5480         to use sign-magnitude offsets. Reject unsupported unaligned
5481         cases. Add detailed description in comments.
5482         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5483         condition from TARGET_32BIT to TARGET_ARM.
5485 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5487         * tree.h (struct typed_tree): New.
5488         (struct tree_common): Include it instead of tree_base.
5489         (TREE_TYPE): Update for new location of type field.
5490         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5491         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5492         (union tree_node): Add typed field.
5493         * treestruct.def (TS_TYPED): New.
5494         * lto-streamer.c (check_handled_ts_structures): Handle it.
5495         * tree.c (MARK_TS_TYPED): New macro.
5496         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5498 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5500         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5501         (force_nonfallthru): Do not alter the loop nest if no basic block
5502         was created.
5504 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5506         * config/i386/sse.md (VI): New mode iterator.
5507         (SSEMODEI): Remove.
5508         (AVX256MODEI): Ditto.
5509         (AVXMODEF4P): Ditto.
5510         (avxvecpsmode): Ditto.
5511         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5512         (sse2_andnot<mode>3): New expander.
5513         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5514         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5515         (<any_logic:code><mode>3): Use VI mode iterator.
5516         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5517         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5518         (*andnottf3): Handle AVX three-operand constraints.
5519         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5521 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5522             Robert Millan  <rmh@gnu.org>
5524         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5525         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5526         GNU_USER_DYNAMIC_LINKER64): Define.
5527         (REG_NAME): Don't undefine.
5528         (MD_UNWIND_SUPPORT): Undefine.
5529         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5530         (REG_NAME): Don't undefine.
5531         (MD_UNWIND_SUPPORT): Undefine.
5532         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5534 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5536         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5537         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5539 2011-04-11  Xinliang David Li  <davidxl@google.com>
5541         * value-profile.c (check_ic_target): New function.
5542         (gimple_ic_transform): Sanity check indirect call target.
5543         * gimple-low.c (gimple_check_call_args): Interface change.
5544         (gimple_check_call_matching_types): New function.
5545         * tree-inline.c (tree_can_inline_p): Call new function.
5547 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5549         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5550         tree-pretty-print.h & realmpfr.h.
5552 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5554         PR middle-end/48464
5555         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5556         (setup_allocno_and_important_classes): Ditto.
5558 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5560         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5561         GNU_USER_DYNAMIC_LINKER.
5562         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5563         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5564         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5565         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5566         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5567         GNU_USER_TARGET_OS_CPP_BUILTINS.
5568         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5569         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5570         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5571         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5572         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5573         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5574         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5575         GNU_USER_TARGET_OS_CPP_BUILTINS.
5576         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5577         GNU_USER_DYNAMIC_LINKER.
5578         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5579         GNU_USER_TARGET_OS_CPP_BUILTINS.
5580         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5581         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5582         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5583         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5584         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5585         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5586         GNU_USER_DYNAMIC_LINKER64): Remove.
5587         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5588         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5589         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5590         GNU_USER_DYNAMIC_LINKER.
5591         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5592         GNU_USER_TARGET_OS_CPP_BUILTINS.
5593         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5594         GNU_USER_TARGET_OS_CPP_BUILTINS.
5595         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5596         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5597         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5598         GNU_USER_TARGET_OS_CPP_BUILTINS.
5599         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5600         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5601         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5602         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5603         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5604         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5605         GNU_USER_DYNAMIC_LINKER.
5606         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5607         GNU_USER_TARGET_OS_CPP_BUILTINS.
5608         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5609         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5610         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5611         GNU_USER_DYNAMIC_LINKER.
5612         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5613         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5614         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5615         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5616         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5617         GNU_USER_DYNAMIC_LINKER.
5618         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5619         GNU_USER_DYNAMIC_LINKERN32.
5620         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5621         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5622         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5623         GNU_USER_DYNAMIC_LINKER32.
5624         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5625         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5626         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5627         GNU_USER_DYNAMIC_LINKER.
5628         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5629         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5630         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5631         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5632         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5633         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5634         GNU_USER_DYNAMIC_LINKER32.
5635         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5636         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5637         GNU_USER_DYNAMIC_LINKER.
5638         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5639         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5640         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5641         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5642         GNU_USER_DYNAMIC_LINKER64.
5643         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5644         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5645         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5646         GNU_USER_DYNAMIC_LINKER.
5647         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5648         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5649         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5650         GNU_USER_DYNAMIC_LINKER.
5651         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5652         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5653         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5654         GNU_USER_DYNAMIC_LINKER32.
5655         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5656         GNU_USER_DYNAMIC_LINKER64.
5657         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5658         GNU_USER_DYNAMIC_LINKER64.
5659         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5660         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5661         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5662         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5663         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5665 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5667         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5668         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5669         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5670         GNU_USER_DYNAMIC_LINKER.
5671         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5672         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5673         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5674         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5675         GNU_USER_DYNAMIC_LINKER64.
5676         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5677         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5678         GNU_USER_LINK_EMULATION.
5679         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5680         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5681         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5682         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5683         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5684         CPP_SPEC, CC1_SPEC): Remove.
5685         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5686         (GNU_USER_DYNAMIC_LINKER): Define.
5687         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5688         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5689         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5690         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5691         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5692         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5693         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5694         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5695         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5696         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5697         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5698         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5699         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5700         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5701         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5702         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5703         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5704         GNU_USER_DYNAMIC_LINKER.
5705         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5706         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5707         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5708         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5709         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5710         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5711         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5712         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5713         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5714         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5716 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5718         PR target/9601
5719         PR target/11772
5720         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5721         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5722         comment.
5723         (ix86_is_msabi_thiscall): Removed.
5724         (ix86_is_type_thiscall): Likewise.
5725         (ix86_get_callcvt): New function.
5726         (ix86_comp_type_attributes): Simplify check.
5727         (ix86_function_regparm): Use ix86_get_callcvt for calling
5728         convention attribute checks.
5729         (ix86_return_pops_args): Likewise.
5730         (ix86_static_chain): Likewise.
5731         (x86_this_parameter): Likewise.
5732         (x86_output_mi_thunk): Likewise.
5733         (ix86_function_type_abi): Optimize check for types without attributes.
5734         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5735         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5736         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5737         by flag-values.
5738         (IX86_BASE_CALLCVT): Helper macro.
5739         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5740         Use ix86_get_callcvt for calling convention attribute checks and avoid
5741         symbol-decoration for stdcall in TARGET_RTD case.
5742         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5743         Likewise.
5744         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5745         for declaration.
5747 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5749         * config/i386/sse.md (VI_128): New mode iterator.
5750         (VI12_128): Rename from SSEMODE12.
5751         (VI14_128): Rename from SSEMODE14.
5752         (VI124_128): New mode iterator.
5753         (VI24_128): Rename from SSEMODE248.
5754         (VI248_128): Rename from SSEMODE248.
5755         (SSEMODE124C8): Remove.
5756         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5757         (*sse2_<plusminus_insn><mode>3): Merge with
5758         *avx_<plusminus_insn><mode>3.
5759         (*mulv8hi3): Merge with *avx_mulv8hi3.
5760         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5761         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5762         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5763         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5764         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5765         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5766         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5767         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5768         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5769         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5770         (*<smaxmin:code>v8hi3): Ditto.
5771         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5772         (*<smaxmin:code>v16qi3): Ditto.
5773         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5774         (*sse2_eq<mode>3): Ditto.
5775         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5776         (*sse2_gt<mode>3): Ditto.
5777         (vcondv2di): Split out of vcond<mode>.
5778         (vconduv2di): Split out of vcondu<mode>.
5780 2011-04-11  Richard Guenther  <rguenther@suse.de>
5782         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5783         before calling tree_low_cst.
5785 2011-04-11  Richard Guenther  <rguenther@suse.de>
5787         * stor-layout.c (layout_type): Compute all array index size operations
5788         in the original type.
5789         (initialize_sizetypes): Add comment.
5790         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5792 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5794         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5796 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5798         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5799         of cgraph_node, handle NULL return value.
5800         (cgraph_global_info): Likewise.
5801         (cgraph_rtl_info): Likewise.
5802         * tree-inline.c (estimate_num_insns): Likewise.
5803         * gimplify.c (unshare_body): Likewise.
5804         (unvisit_body): Likewise.
5805         (gimplify_body): Likewise.
5806         * predict.c (optimize_function_for_size_p): Likewise.
5807         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5808         (call_may_clobber_ref_p_1): Likewise.
5809         * varasm.c (function_section_1): Likewise.
5810         (assemble_start_function): Likewise.
5812 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5814         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5815         of cgraph_node.
5816         * final.c (rest_of_clean_state): Likewise.
5817         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5818         * passes.c (pass_init_dump_file): Likewise.
5819         (execute_all_ipa_transforms): Likewise.
5820         (function_called_by_processed_nodes_p): Likewise.
5821         * predict.c (maybe_hot_frequency_p): Likewise.
5822         (probably_never_executed_bb_p): Likewise.
5823         (compute_function_frequency): Likewise.
5824         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5825         (unnest_nesting_tree_1): Likewise.
5826         (lower_nested_functions): Likewise.
5827         * tree-optimize.c (execute_fixup_cfg): Likewise.
5828         (tree_rest_of_compilation): Likewise.
5829         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5830         * tree-sra.c (ipa_early_sra): Likewise.
5831         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5832         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5833         * ipa.c (record_cdtor_fn): Likewise.
5834         * ipa-inline.c (cgraph_early_inlining): Likewise.
5835         (compute_inline_parameters_for_current): Likewise.
5836         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5837         * ipa-pure-const.c (local_pure_const): Likewise.
5838         * ipa-split.c (split_function): Likewise.
5839         (execute_split_functions): Likewise.
5840         * cgraphbuild.c (build_cgraph_edges): Likewise.
5841         (rebuild_cgraph_edges): Likewise.
5842         (cgraph_rebuild_references): Likewise.
5843         (remove_cgraph_callee_edges): Likewise.
5844         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5845         (verify_cgraph_node): Likewise.
5846         (cgraph_analyze_functions): Likewise.
5847         (cgraph_preserve_function_body_p): Likewise.
5848         (save_inline_function_body): Likewise.
5849         (save_inline_function_body): Likewise.
5850         * tree-inline.c (copy_bb): Likewise.
5851         (optimize_inline_calls): Likewise.
5853 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5855         PR tree-optimization/48195
5856         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5857         ipa_check_create_edge_args.
5858         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5859         ipa_check_create_edge_args.
5860         * ipa-inline.c (inline_generate_summary): Do not call
5861         ipa_check_create_node_params and ipa_check_create_edge_args.
5862         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5863         ipa_check_create_edge_args.
5865 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5867         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5868         instead of loop.
5869         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5870         * function.c (record_hard_reg_sets): Likewise.
5871         * ira.c (compute_regs_asm_clobbered): Likewise.
5872         * sched-deps.c (sched_analyze_1): Likewise.
5873         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5875 2011-04-09  Xinliang David Li  <davidxl@google.com>
5877         PR tree-optimization/PR48484
5878         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5879         has_valid_pred lazily
5881 2011-04-09  Duncan Sands  <baldrick@free.fr>
5883         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5885 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5887         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5888         cost of I0 to zero at the end, if any.
5890 2011-04-08  Xinliang David Li  <davidxl@google.com>
5892         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5893         to insane profile data.
5895 2011-04-08  Xinliang David Li  <davidxl@google.com>
5897         * ipa-cp.c (ipcp_update_profiling): Correct
5898          negative scale factor due to insane profile data.
5900 2011-04-08  Xinliang David Li  <davidxl@google.com>
5902         * final.c (dump_basic_block_info): New function.
5903         (final): Dump basic block.
5904         (final_scan_insn): Remove old dump.
5906 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5908         PR target/47829
5909         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5910         crtbegin/crtend.
5912 2011-04-08  Michael Matz  <matz@suse.de>
5914         PR middle-end/48389
5915         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5916         functions.
5917         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5918         * rtl.h (rebuild_jump_labels_chain): Declare.
5919         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5920         insns inserted on edges.
5922 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
5924         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5925         * config/arm/arm-arches.def: New.
5926         * config/arm/arm-opts.h: New.
5927         * config/arm/genopt.sh: New.
5928         * config/arm/arm-tables.opt: New (generated).
5929         * config/arm/arm.c (arm_handle_option, arm_target_help,
5930         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5931         (all_architectures): Get most table contents from arm-arches.def.
5932         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5933         arm_selected_tune here.
5934         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5935         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5936         (march=, mcpu=, mtune=): Use Enum and Var.
5937         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5938         (arm.o): Update dependencies.
5940 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
5942         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5943         of header_file.
5944         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5945         (write_typed_alloc_defns): Likewise.
5946         (main): Calls write_typed_alloc_defns with output_header.
5948 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5950         PR inline-asm/48435
5951         * ira-color.c (setup_profitable_hard_regs): Add comments.
5952         Don't take prohibited hard regs into account.
5953         (setup_conflict_profitable_regs): Rename to
5954         get_conflict_profitable_regs.
5955         (check_hard_reg_p): Check prohibited hard regs.
5957 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
5959         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5960         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5961         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5963 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5965         PR target/48366
5966         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
5967         move from floating point to shift amount register.
5968         (emit_move_sequence): Remove secondary reload support for floating
5969         point to shift amount amount register copies.
5970         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5971         amount register copies.
5972         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5973         register, return false if mode isn't a scalar integer mode.
5974         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5976 2011-04-08  Richard Guenther  <rguenther@suse.de>
5978         * gimple.c (gimple_call_flags): Remove kludge.
5980 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
5982         * sel-sched.c (sel_region_init): Move call to
5983         sel_setup_region_sched_flags after setup_current_loop_nest.
5985 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
5987         PR rtl-optimization/48272
5988         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5989         init_insn_reg_pressure_info.  Adjust a caller.
5990         * sched-int.h (init_insn_reg_pressure_info): Declare.
5991         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5992         when sched-pressure is enabled.
5994 2011-04-08  Richard Guenther  <rguenther@suse.de>
5996         * gimple.c (gimple_set_modified): Do not queue calls to
5997         MODIFIED_NORETURN_CALLS here ...
5998         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6000 2011-04-08  Richard Guenther  <rguenther@suse.de>
6002         PR lto/48467
6003         * toplev.c (lang_dependent_init): Do not open asm_out_file
6004         in WPA mode, nor perform debug machinery initialization.
6005         (finalize): Do not unlink asm_out_file in WPA mode.
6007 2011-04-08  Richard Guenther  <rguenther@suse.de>
6009         * gimple.h (gimple_call_fntype): New function.
6010         (gimple_call_return_type): Use it.
6011         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6012         * gimple-low.c (gimple_check_call_args): Likewise.
6013         * gimple.c (gimple_call_flags): Likewise.
6014         (gimple_call_arg_flags): Likewise.
6015         (gimple_call_return_flags): Likewise.
6016         * tree-cfg.c (verify_gimple_call): Likewise.
6017         (do_warn_unused_result): Likewise.
6018         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6019         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6021 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6023         PR rtl-optimization/48235
6024         * sel-sched.c (code_motion_process_successors): Recompute the last
6025         insn in basic block if control flow changed.
6026         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6027         Update condition for ilist_remove.
6029 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6031         PR rtl-optimization/48302
6032         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6033         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6034         it to record added preheader blocks.
6035         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6036         on to sel_add_loop_preheaders.
6037         (sel_region_init): Move call to setup_current_loop_nest after
6038         sel_init_bbs.
6040 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6042         PR target/48273
6043         * cfgloop.h (loop_has_exit_edges): New helper.
6044         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6045         non-clonable.
6046         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6047         that have no exit edges.
6049 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6051         PR rtl-optimization/48442
6052         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6053         all callers.  Adjust assert.
6055 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6057         PR tree-optimization/48377
6058         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6059         is_packed to true even for types with smaller TYPE_ALIGN than
6060         TYPE_SIZE.
6062 2011-04-08  Richard Guenther  <rguenther@suse.de>
6064         PR bootstrap/48513
6065         * doc/tm.texi: Re-generate.
6067 2011-04-08  Wei Guozhi  <carrot@google.com>
6069         PR target/47855
6070         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6071         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6072         * config/arm/arm.md (*push_multi): Change the length computation to
6073         call a C function.
6075 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6077         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6078         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6079         * doc/tm.texi: Regenerate.
6080         * system.h (ASM_OUTPUT_BSS): Poison.
6081         * varasm.c (asm_output_bss): Remove function.
6082         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6084         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6085         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6086         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6087         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6088         Likewise.
6089         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6090         Likewise.
6091         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6092         Likewise.
6093         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6095 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6097         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6098         EnumValue lines.
6100 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6102         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6103         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6104         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6105         OPT_mcpu32.
6106         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6107         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6108         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6109         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6110         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6111         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6112         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6113         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6114         options.  Don't map other m68k options manually.  Don't handle
6115         old-style options as canonical.
6116         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6117         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6119 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6121         * basic-block.h (force_nonfallthru): Move to...
6122         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6123         (force_nonfallthru): ...here.
6124         * cfghooks.c (force_nonfallthru): New function.
6125         * cfgrtl.c (force_nonfallthru): Rename into...
6126         (rtl_force_nonfallthru): ...this.
6127         (commit_one_edge_insertion): Do not set AUX field.
6128         (commit_edge_insertions): Do not discover new basic blocks.
6129         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6130         (cfg_layout_rtl_cfg_hooks): Likewise.
6131         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6132         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6133         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6135 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6137         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6138         Remove macros.
6140 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6142         * config/i386/sse.md: Update copyright year.
6143         (avxcvtvecmode): Remove.
6144         (sse_movhlps): Merge with *avx_movhlps.
6145         (sse_movlhps): Merge with *avx_movlhps.
6146         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6147         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6148         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6149         (sse_loadhps): Merge with *avx_loadhps.
6150         (sse_storelps): Merge with *avx_storelps.
6151         (sse_loadlps): Merge with *avx_loadlps.
6152         (sse_movss): Merge with *avx_movss.
6153         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6154         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6155         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6156         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6157         (vec_set<mode>_0): Ditto.
6158         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6159         (sse4_1_insertps): Merge with *avx_insertps.
6160         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6161         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6162         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6163         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6164         (sse2_storehpd): Merge with *avx_storehpd.
6165         (sse2_loadhpd): Merge with *avx_loadhpd.
6166         (sse2_loadlpd): Merge with *avx_loadlpd.
6167         (sse2_movsd): Merge with *avx_movsd.
6168         (*vec_concatv2df): Merge with *vec_concatv2df.
6170 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6172         PR debug/48343
6173         * combine.c (combine_instructions): Add last_combined_insn,
6174         update it if insn is after it, pass it to all try_combine calls.
6175         (try_combine): Add last_combined_insn parameter, pass it instead of
6176         i3 to propagate_for_debug.
6178 2011-04-07  Nick Clifton  <nickc@redhat.com>
6180         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6181         to handle MDR <-> data register transfers.
6182         (movhi_internal): Likewise.
6184 2011-04-07  Alan Modra  <amodra@gmail.com>
6186         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6187         previous stack info.
6189 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6191         PR target/43920
6192         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6193         flow_find_cross_jump.  Swap variables to implement backward replacement.
6194         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6196 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6198         PR target/43920
6199         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6200         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6201         and bb2.
6202         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6203         src1 or src2.  Redirect edges to the last basic block.  Update
6204         frequency and count on multiple basic blocks in case of fallthru.
6206 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6208         PR target/43920
6209         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6210         function.
6211         (old_insns_match_p): Change return type.  Replace return false/true
6212         with return dir_none/dir_both.  Use can_replace_by.
6213         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6214         direction from dir_p.  Register replacement direction in dir, last_dir
6215         and afterlast_dir.  Handle new return type of old_insns_match_p using
6216         merge_dir.  Return replacement direction in dir_p.
6217         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6218         return type of old_insns_match_p.
6219         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6220         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6221         flow_find_cross_jump.
6222         * basic-block.h (enum replace_direction): New type.
6223         (flow_find_cross_jump): Add parameter to declaration.
6225 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6227         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6228         (AVXMODEDCVTPS2DQ): Ditto.
6229         (VEC_FLOAT_MODE): Ditto.
6230         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6231         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6232         (<any_logic:code><mode>3): Use VF mode iterator.
6233         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6234         Use VF mode iterator.
6235         (copysign<mode>3): Use VF mode iterator.
6236         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6237         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6238         (*<any_logic:code><MODEF:mode>3): Merge with
6239         *avx_<any_logic:code><MODEF:mode>3.
6240         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6241         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6242         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6243         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6244         (sse2_cvtdq2ps): Use %v modifier.
6245         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6246         (avx_cvtps2dq<avxmodesuffix>): Remove.
6247         (sse2_cvtps2dq): Use %v modifier.
6248         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6249         (avx_cvttps2dq<avxmodesuffix>): Remove.
6250         (sse2_cvttps2dq): Use %v modifier.
6251         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6252         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6253         (sse2_cvtsd2siq): Fix insn template.
6254         (sse2_cvtsd2siq_2): Ditto.
6255         (sse2_cvttsd2siq): Ditto.
6256         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6257         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6259 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6261         * gcov-io.c: Use GCC Runtime Library Exception.
6263 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6265         PR debug/48466
6266         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6267         as base_reg whatever register reg has been eliminated to, instead
6268         of hardcoding STACK_POINTER_REGNUM.
6270 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6272         * doc/tm.texi.in: Document C target hooks as separate from general
6273         target hooks.
6274         * doc/tm.texi: Regenerate.
6275         * genhooks.c (struct hook_desc): Add docname field.
6276         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6277         docname field.
6278         (hook_array): Include c-target.def.
6279         (emit_documentation): Use docname field in output.
6280         (emit_init_macros): Take docname argument.  Only emit definitions
6281         for hooks matching docname.
6282         (main): Expect additional arguments in all cases.  Pass argument
6283         to emit_init_macros.
6284         * target.def: Move initial macro definitions and comments to
6285         target-hooks-macros.h.
6286         (gcc_targetcm): Move to c-family/c-target.def.
6287         * target.h (targetcm): Move declaration to c-family/c-target.h.
6288         * targhooks.c (default_handle_c_option): Move to
6289         c-family/c-opts.c.
6290         * targhooks.h (default_handle_c_option): Move declaration to
6291         c-family/c-common.h.
6292         * target-hooks-macros.h: New file.
6293         * config.gcc (target_has_targetcm): Define and use to add to
6294         c_target_objs and cxx_target_objs.
6295         * config/default-c.c: New file.
6296         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6297         of target.h and target-def.h.
6298         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6299         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6300         darwin_check_cfstring_format_arg): Make static.
6301         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6302         TARGET_STRING_OBJECT_REF_TYPE_P,
6303         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6304         * config/darwin-protos.h (darwin_objc_construct_string,
6305         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6306         declare.
6307         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6308         TARGET_STRING_OBJECT_REF_TYPE_P,
6309         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6310         * config/t-darwin (darwin-c.o): Update dependencies.
6311         * system.h (TARGET_HAS_TARGETCM): Poison.
6312         * Makefile.in (TARGET_H): Update.
6313         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6314         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6315         (default-c.o): New target.
6316         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6317         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6318         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6319         c-target.def.
6320         (build/genhooks.o): Update dependencies.
6322 2011-04-06  Richard Guenther  <rguenther@suse.de>
6324         * ipa-inline.c (enum inlining_mode): Remove.
6325         (cgraph_flatten): Use some other token.
6326         (cgraph_edge_early_inlinable_p): New function, split out from ...
6327         (cgraph_perform_always_inlining): New function, split out from ...
6328         (cgraph_decide_inlining_incrementally): ... here.
6329         (cgraph_mark_inline_edge): Adjust.
6330         (cgraph_early_inlining): Re-structure.
6331         (pass_early_inline): Require SSA form.
6333 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6334             Julian Brown  <julian@codesourcery.com>
6335             Mark Shinwell  <shinwell@codesourcery.com>
6337         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6338         LO_REGS only for Thumb-1.
6339         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6340         be used in short instructions when optimising for size on Thumb-2.
6342 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6344         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6345         associated with user returns to be preserved.
6347 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6349         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6350         symbol_queue_size, DBXOUT_DECR_NESTING,
6351         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6352         if XCOFF_DEBUGGING_INFO.
6354 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6356         * config/i386/i386.md (attribute isa): New.
6357         (attribute enabled): New.
6358         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6359         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6360         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6361         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6362         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6363         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6364         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6365         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6367         * config/i386/sse.md (VF): New mode iterator.
6368         (VF1): Ditto.
6369         (VF2): Ditto.
6370         (VF_128): Ditto.
6371         (SSEMODEF4): Remove.
6372         (attribute sse): Handle V8SF and V4DF modes.
6373         (<absneg:code><mode>2): Use VF mode iterator.
6374         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6375         mode iterator.
6376         (<plusminus_insn><mode>3): Use VF mode iterator.
6377         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6378         Use VF mode iterator.
6379         (<sse>_vm<plusminus_insn><mode>3): Merge with
6380         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6381         (mul<mode>3): Use VF mode iterator.
6382         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6383         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6384         mode iterator.
6385         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6386         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6387         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6388         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6389         mode iterator.
6390         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6391         Use VF1 mode iterator.
6392         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6393         (sqrt<VF2:mode>2): New expander.
6394         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6395         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6396         and sqrtv2df2.  Use VF mode iterator.
6397         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6398         mode iterator.
6399         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6400         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6401         Use VF1 mode iterator.
6402         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6403         (<smaxmin:code><mode>3): Use VF mode iterator.
6404         (*<smaxmin:code><mode>3_finite): Merge with
6405         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6406         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6407         (<sse>_vm<smaxmin:code><mode>2): Merge with
6408         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6409         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6410         mode iterator.
6411         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6412         mode iterator.
6413         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6414         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6415         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6416         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6417         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6418         VF mode iterator.
6419         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6420         Use VF_128 mode iterator.
6421         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6422         mode iterator.
6423         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6424         VF_128 mode iterator.
6425         (vcond<mode>): Use VF mode iterator.
6426         * config/i386/predicates.md (sse_comparison_operator): Merge with
6427         avx_comparison_float_operator.  Do not declare as special_predicate.
6428         * config/i386/i386.c (struct builtin_description): Update for renamed
6429         compare patterns.
6430         (ix86_expand_args_builtin): Ditto.
6431         (ix86_expand_sse_compare_mask): Ditto.
6433 2011-04-06  Richard Guenther  <rguenther@suse.de>
6435         * tree-inline.c (estimate_num_insns): For calls simply account
6436         for all passed arguments and a used return value.
6438 2011-04-06  Richard Guenther  <rguenther@suse.de>
6440         PR tree-optimization/47663
6441         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6442         call_stmt_time fields.
6443         (cgraph_edge_inlinable_p): Declare.
6444         (cgraph_edge_recursive_p): New inline function.
6445         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6446         (cgraph_clone_edge): Copy it.
6447         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6448         Account for call stmt time.
6449         (cgraph_estimate_time_after_inlining): Take edge argument.
6450         (cgraph_estimate_edge_growth): Account call stmt size.
6451         (cgraph_estimate_size_after_inlining): Take edge argument.
6452         (cgraph_mark_inline_edge): Adjust.
6453         (cgraph_check_inline_limits): Likewise.
6454         (cgraph_recursive_inlining_p): Remove.
6455         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6456         (cgraph_decide_recursive_inlining): Take edge argument and
6457         adjust.
6458         (cgraph_decide_inlining_of_small_functions): Do not avoid
6459         diags for recursive inlining here.
6460         (cgraph_flatten): Adjust.
6461         (cgraph_decide_inlining_incrementally): Likewise.
6462         (estimate_function_body_sizes): Remove call cost handling.
6463         (compute_inline_parameters): Initialize caller edge call costs.
6464         (cgraph_estimate_edge_growth): New function.
6465         (cgraph_estimate_growth): Use it.
6466         (cgraph_edge_badness): Likewise.
6467         (cgraph_check_inline_limits): Take an edge argument.
6468         (cgraph_decide_inlining_of_small_functions): Adjust.
6469         (cgraph_decide_inlining): Likewise.
6470         * tree-inline.c (estimate_num_insns): Only account for call
6471         return value if it is used.
6472         (expand_call_inline): Avoid diagnostics on recursive inline
6473         functions here.
6474         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6475         (input_edge): Input edge call costs.
6477 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6479         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6481 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6483         * doc/invoke.texi (Spec Files): Fix typo.
6485 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6487         * profile.c (branch_prob): Move declaration of local variable.  Remove
6488         obsolete ??? comment.  Expand the location explicitly instead of using
6489         the LOCATION_FILE and LOCATION_LINE macros.
6491 2011-04-06  Wei Guozhi  <carrot@google.com>
6493         PR target/47855
6494         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6495         (arm_cond_branch): Likewise.
6496         (arm_cond_branch_reversed): Likewise.
6497         (arm_jump): Likewise.
6498         (push_multi): Likewise.
6499         * config/arm/constraints.md (Py): New constraint.
6501 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6503         PR bootstrap/48471
6504         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6505         Move these...
6506         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6507         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6508         #ifdef DBX_DEBUGGING_INFO.
6510 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6512         PR bootstrap/48403
6513         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6514         if old and new states differ.
6516 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6518         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6519         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6520         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6521         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6522         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6523         mcfv4e): Use Alias.
6524         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6525         ColdFire options to -mcpu= options.
6527 2011-04-05  Jeff Law  <law@redhat.com>
6529         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6530         check if BB is a successor of LOOP->header and return
6531         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6533 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6535         * cprop.c (struct reg_use): Remove.
6536         (reg_use_table): Make an array of RTX.
6537         (find_used_regs, constprop_register, local_cprop_pass,
6538         bypass_block): Simplify users of reg_use_table.
6539         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6540         on one of the uses found by find_used_regs.
6542 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6544         PR bootstrap/48469
6545         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6546         declaration.
6548 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6550         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6551         as an rtx.
6552         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6554 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6556         PR middle-end/48441
6557         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6559 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6561         * combine.c: Include obstack.h.
6562         (struct insn_link): Define.
6563         (uid_log_links): Adjust type.
6564         (FOR_EACH_LOG_LINK): New macro.
6565         (insn_link_obstack): Declare.
6566         (alloc_insn_link): Define.
6567         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6568         type of link variables.
6569         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6570         (try_combine, record_promoted_values, distribute_notes): Likewise.
6571         (distribute_links): Likewise.  Tweak prototype.
6572         (clear_log_links): Delete.
6573         (adjust_for_new_dest): Call alloc_insn_link.
6574         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6576 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6578         * gcse.c (modify_mem_list): Convert to an array of VECs.
6579         (canon_modify_mem_list, compute_transp): Tweak formatting.
6580         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6581         (load_killed_in_block_p): Likewise.
6582         (record_last_mem_set_info): Likewise.
6583         (clear_modify_mem_tables): Likewise.
6585 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6587         PR middle-end/48461
6588         * function.c (emit_use_return_register_into_block): Only define if
6589         HAVE_return.
6591 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6593         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6595 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6597         * config/rx/rx-opts.h: New.
6598         * config/rx/rx.c (rx_cpu_type): Remove.
6599         (rx_handle_option): Don't assert that global structures are in
6600         use.  Access variables via opts pointer.  Defer most handling of
6601         OPT_mint_register_.  Use error_at.
6602         (rx_option_override): Handle deferred OPT_mint_register_ here.
6603         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6604         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6605         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6606         (rx_cpu_types): New Enum and EnumValue entries.
6607         (mint-register=): Use Defer and use Var accordingly.
6609 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6611         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6612         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6613         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6614         Move these...
6615         (debug_free_queue, debug_nesting, symbol_queue_index):
6616         ...and these...
6617         * dbxout.c: ...to here.  Make static.
6619 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6621         * gcse.c (modify_pair): Define.  Define a VEC of it.
6622         (canon_modify_mem_list): Convert to an array of VECs.
6623         (free_insn_expr_list_list): Delete.
6624         (clear_modify_mem_tables): Call VEC_free instead.
6625         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6626         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6627         (canon_list_insert, compute_transp): Likewise.
6629 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6631         PR target/43920
6632         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6633         for size.
6635 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6637         PR target/43920
6638         * function.c (emit_use_return_register_into_block): New function.
6639         (thread_prologue_and_epilogue_insns): Use
6640         emit_use_return_register_into_block.
6642 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6644         PR target/43920
6645         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6646         insn.
6648 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6650         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6652 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6654         * config/arm/arm.md (define_constants for unspec): Replace with
6655         define_c_enum.
6656         (define_constants for unspecv): Replace with define_c_enum.
6657         * config/arm/neon.md (define_constants for unspec): Replace with
6658         define_c_enum.
6660 2011-04-04  Richard Henderson  <rth@redhat.com>
6662         PR bootstrap/48400
6663         * dwarf2out.c (output_line_info): Always emit line info from
6664         at least one section.
6665         (dwarf2out_init): Create text_section_line_info here ...
6666         (set_cur_line_info_table): ... not here.
6668 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6670         PR target/48380
6671         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6672         not called.
6674         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6676 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6678         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6679         (expr_equiv_p): Remove.
6680         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6681         (hash_scan_set): Update call to insert_set_in_table.
6682         (dump_hash_table): Dump <dest, src> pair.
6683         (lookup_set): Simplify.  Lookup <dest, src> pair.
6684         (compute_transp): Remove, fold heavily simplified code into...
6685         (compute_local_properties): ...here.  Expect COMP and TRANSP
6686         unconditionally.
6687         (find_avail_set): Take set directly from struct expr.
6688         (find_bypass-set): Likewise.
6689         (bypass_block): Likewise.
6690         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6692         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6693         checks on form of COND from find_implicit_sets to here.
6694         (find_implicit_sets): Cleanup control flow. Split critical edges
6695         if it exposes implicit sets.  Allocate/resize implicit_sets as
6696         necessary.
6697         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6698         changed something.  Run df_analyze after find_implicit_sets if any
6699         edges were split.  Do not allocate implicit_sets here.
6701         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6702         (gcse_obstack): Renamed to cprop_obstack.
6703         (GNEW, GNEWVEC, GNEWVAR): Remove.
6704         (gmalloc): Remove.
6705         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6706         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6707         (gcse_alloc): Likewise, and rename to cprop_alloc.
6708         (alloc_gcse_men, free_gcse_mem): Remove.
6709         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6710         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6711         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6713         * cprop.c (oprs_not_set_p): Remove.
6714         (mark_set, mark_clobber): Remove.
6715         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6716         (reg_not_set_p): New function.
6717         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6718         (cprop_insn): Likewise.
6719         (cprop_jump): Use FOR_EACH_EDGE.
6721 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6723         PR bootstrap/48403
6724         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6725         (rank_for_schedule): Use scheduled_insns vector instead of
6726         last_scheduled_insn.
6727         (ok_for_early_queue_removal): Likewise.
6728         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6729         we have a dbg_cnt.
6730         (choose_ready): Likewise.
6731         (commit_schedule): Use VEC_iterate.
6732         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6733         a dbg_cnt, use it and ensure the first insn is in the ready list.
6734         (haifa_sched_init): Allocate scheduled_insns.
6735         (sched_extend_ready_list): Don't allocate it; reserve space.
6736         (haifa_sched_finish): Free it.
6738 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6740         * optc-gen.awk: Always remove type from Variable entry before
6741         recording in var_seen.
6743 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6745         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6746         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6747         call to tidy_fallthru_edges.
6749 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6751         * doc/options.texi (ToLower): Document.
6752         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6753         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6754         * opts.h (cl_option): Add cl_tolower field.
6755         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6756         arguments with lowercase strings.
6757         * config/rx/rx.opt (mcpu=): Add ToLower.
6758         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6759         argument.
6761 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6763         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6765 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6767         * config/vax/vax.c: Include reload.h.
6769 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6771         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6772         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6773         (sparc_preferred_reload_class): New function.
6775 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6777         PR debug/48401
6778         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6779         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6781 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6783         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6784         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6786 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6788         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6789         (ASM_OUTPUT_ALIGNED_BSS): Define.
6791 2011-04-03  Michael Matz  <matz@suse.de>
6793         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6794         and next_slot members.
6795         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6796         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6797         (lto_streamer_cache_append): Declare.
6798         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6799         unsigned index, remove offset parameter, ensure that we append
6800         or update existing entries.
6801         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6802         parameter, update next_slot for append.
6803         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6804         parameter.
6805         (lto_streamer_cache_insert_at): Likewise.
6806         (lto_streamer_cache_append): New function.
6807         (lto_streamer_cache_lookup): Use unsigned index.
6808         (lto_streamer_cache_get): Likewise.
6809         (lto_record_common_node): Don't test tree_node_can_be_shared.
6810         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6811         (lto_streamer_cache_delete): Don't free offsets member.
6812         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6813         (lto_output_string_with_length): Use lto_output_data_stream.
6814         (lto_output_tree_header): Remove ix parameter, don't write it.
6815         (lto_output_builtin_tree): Likewise.
6816         (lto_write_tree): Adjust callers to above, don't track and write
6817         offset, write unsigned index.
6818         (output_unreferenced_globals): Don't emit all global vars.
6819         (write_global_references): Use unsigned indices.
6820         (lto_output_decl_state_refs): Likewise.
6821         (write_symbol): Likewise.
6822         * lto-streamer-in.c (lto_input_chain): Move earlier.
6823         (input_function): Use unsigned index.
6824         (input_alias_pairs): Don't read and then ignore all global vars.
6825         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6826         don't pass it back, use lto_streamer_cache_append.
6827         (lto_register_var_decl_in_symtab): Use unsigned index.
6828         (lto_register_function_decl_in_symtab): Likewise.
6829         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6830         index.
6831         (lto_get_builtin_tree): Don't read index, use
6832         lto_streamer_cache_append.
6833         (lto_read_tree): Adjust call to lto_materialize_tree.
6835         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6836         don't use function calls in arguments to MIN.
6838         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6839         twice.
6841         * gimple.c (gimple_type_leader_entry): Mark deletable.
6843 2011-04-03  Alan Modra  <amodra@gmail.com>
6845         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6847 2011-04-03  Michael Matz  <matz@suse.de>
6849         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6850         an integer.
6851         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6853 2011-04-03  Michael Matz  <matz@suse.de>
6855         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6856         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6857         without function context.
6858         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6859         current_function_decl and cfun.
6861 2011-04-03  Michael Matz  <matz@suse.de>
6863         * tree.c (decl_init_priority_insert): Don't create entry for
6864         default priority.
6865         (decl_fini_priority_insert): Ditto.
6866         (fields_compatible_p, find_compatible_field): Remove.
6867         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6868         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6870 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6872         * combine.c (try_combine): Remove useless local variable.
6874 2011-04-03  Richard Guenther  <rguenther@suse.de>
6875             Ira Rosen  <ira.rosen@linaro.org>
6877         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6878         non-variable offsets and compare the remaining bases of the two
6879         accesses instead of looking for exact same data-ref.
6881 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6883         PR target/48416
6884         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6886         * i386.c (ix86_is_msabi_thiscall): New helper function.
6887         (ix86_is_type_thiscall): New helper function.
6888         (ix86_comp_type_attributes): Handle thiscall for method-functions
6889         special.
6890         (init_cumulative_args): Likewise.
6891         (find_drap_reg): Likewise.
6892         (ix86_static_chain): Likewise.
6893         (x86_this_parameter): Likewise.
6894         (x86_output_mi_thunk): Likewise.
6896 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6897             Nicolas Setton  <setton@adacore.com>
6898             Eric Botcazou  <ebotcazou@adacore.com>
6900         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6901         (add_gnat_descriptive_type_attribute): New function.
6902         (gen_array_type_die): Call it.
6903         (gen_enumeration_type_die): Likewise.
6904         (gen_struct_or_union_type_die): Likewise.
6905         (modified_type_die): Likewise.
6906         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6907         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6908         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6910 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6912         PR bootstrap/48148
6913         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6914         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6916         Revert:
6917         2011-03-17  Richard Guenther  <rguenther@suse.de>
6919         PR bootstrap/48148
6920         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6921         origin for decls in other ltrans units.
6922         (input_varpool_node): Likewise.
6924 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6926         PR middle-end/48335
6927         * expr.c (expand_assignment): Handle all possibilities
6928         if TO_RTX is CONCAT.
6929         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
6930         (store_split_bit_field): If SUBREG_REG (op0) or
6931         op0 itself has smaller mode than word, return it
6932         for offset 0 and const0_rtx for out-of-bounds stores.
6933         If word is const0_rtx, skip it.
6935 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
6937         * config/h8300/h8300.c (print_operand_address): Rename to...
6938         (h8300_print_operand_address): ...this. Make static. Adjust comments.
6939         Call h8300_print_operand and h8300_print_operand_address instead of
6940         print_operand and print_operand_address. Declare.
6941         (print_operand): Renake to...
6942         (h8300_print_operand): ...this. Make static. Adjust comments.
6943         Call h8300_print_operand instead of print_operand. Declare.
6944         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6945         (h8300_register_move_cost): Likewise.
6946         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6947         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6948         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6949         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6950         * config/h8300/h8300-protos.h (print_operand): Delete.
6951         (print_operand_address): Delete.
6953 2011-04-01  Richard Henderson  <rth@redhat.com>
6955         PR 48400
6956         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6957         in strict mode before dwarf4.  Re-order tests to early out
6958         before switching sections.
6960 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
6962         * config/h8300/constraints.md: New file.
6963         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
6964         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6965         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6966         * config/h8300/predicates.md (bit_operand): Likewise.
6967         (incdec_operand): Use satisfies_constraint_M and
6968         satisfies_constraint_O.  Don't use C code block.
6969         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6970         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6971         (compute_mov_length): Use satisfies_constraint_G.
6972         (fix_bit_operand): Use satisfies_constraint_U.
6973         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6974         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6975         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6976         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6977         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6978         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6979         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6980         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6981         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6982         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6983         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6984         (EXTRA_MEMORY_CONSTRAINT): Delete.
6986 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
6987             Michael Meissner  <meissner@linux.vnet.ibm.com>
6989         PR target/48262
6990         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6991         operands, as per the specifications.
6993         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6994         (vec_extract_evenv4sf): Ditto.
6995         (vec_extract_evenv8hi): Ditto.
6996         (vec_extract_evenv16qi): Ditto.
6997         (vec_extract_oddv4si): Ditto.
6999 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7001         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7002         high_pc attribute if the CU has no associated code. Only output
7003         DW_AT_entry_pc for CU if not generating strict dwarf and
7004         dwarf_version < 4.
7006 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7008         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7009         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7010         out of ...
7011         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7012         * final.c (final_start_function): Call the new function rather
7013         than using a NULL argument for dwarf2out_frame_debug.
7015         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7016         that contains the prologue.
7018         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7019         changed.  Print it in debugging output.
7021         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7023         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7024         Split most of the code into...
7025         (begin_move_insn): ... here.  New function.
7026         (ebb_sched_info): Add a pointer to it.
7027         * haifa-sched.c (scheduled_insns): New static variable.
7028         (sched_extend_ready_list): Allocate it.
7029         (schedule_block): Use it to record the order of scheduled insns.
7030         Perform RTL changes to move insns only after all scheduling
7031         decisions have been made.
7032         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7033         begin_move_insn field.
7034         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7035         * sched-int.h (struct haifa_sched_info): Remove second argument
7036         from begin_schedule_ready hook.  Add new member begin_move_insn.
7037         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7038         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7040         * haifa-sched.c (prune_ready_list): New function, broken out of
7041         schedule_block.
7042         (schedule_block): Use it.
7044 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7046         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7048 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7050         * config.gcc (*-*-mingw*): Allow as option the
7051         posix threading model.
7052         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7053         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7054         definition.
7055         (CPP_SPEC): Add pthread/no-pthread handling.
7056         (LIB_SPEC): Likewise.
7057         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7058         (LIB_SPEC): Likewise.
7059         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7060         flag to pass -pthread option for shared libgcc build.
7061         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7062         for shared libgcc build.
7063         * config/i386/t-mingw-pthread: New file.
7064         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7065         New define to enable use of library pthread by default.
7066         * config/i386/mingw.opt (pthread): New driver option.
7067         (no-pthread): New driver option.
7068         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7069         * config/i386/mingw-w64.opt: Likewise.
7071 2011-04-01  Gary Funck  <gary@intrepid.com>
7073         * c-decl.c (grokdeclarator): Fix formatting.
7075 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7077         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7078         instead of n_operands.
7079         (set_storage_via_setmem): Likewise.
7080         * optabs.c (maybe_gen_insn): Likewise.
7081         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7082         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7083         (mips_expand_builtin_direct): Likewise.
7084         * config/spu/spu.c (expand_builtin_args): Likewise.
7086 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7088         * recog.h (insn_data_d): Add n_generator_args.
7089         * genoutput.c (data): Likewise.
7090         (output_insn_data): Print it.
7091         (max_opno, num_dups): Delete.
7092         (scan_operands): Just fill in "d->operand[...]".
7093         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7095 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7097         * gensupport.h (pattern_stats): New structure.
7098         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7099         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7100         (max_operand_1, max_operand_vec): Delete.
7101         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7103 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7105         * emit-rtl.c (emit_pattern_after_setloc): New function.
7106         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7107         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7108         (emit_pattern_after): New function.
7109         (emit_insn_after, emit_jump_insn_after): Call it.
7110         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7111         (emit_pattern_before_setloc): New function.
7112         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7113         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7114         Likewise.
7115         (emit_pattern_before): New function.
7116         (emit_insn_before, emit_jump_insn_before): Call it.
7117         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7119 2011-03-31  Richard Henderson  <rth@redhat.com>
7121         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7122         (dw_separate_line_info_entry): Remove.
7123         (enum dw_line_info_opcode): New.
7124         (dw_line_info_entry): Use it.
7125         (dw_line_info_table, dw_line_info_table_p): New.
7126         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7127         (line_info_table, line_info_label_num): Remove.
7128         (line_info_table_in_use): Remove.
7129         (separate_line_info_table): Remove.
7130         (separate_line_info_table_allocated): Remove.
7131         (separate_line_info_table_in_use): Remove.
7132         (LINE_INFO_TABLE_INCREMENT): Remove.
7133         (line_info_label_num): New.
7134         (cur_line_info_table): New.
7135         (text_section_line_info, cold_text_section_line_info): New.
7136         (separate_line_info): New.
7137         (SEPARATE_LINE_CODE_LABEL): Remove.
7138         (print_dwarf_line_table): Remove.
7139         (debug_dwarf): Don't dump it.
7140         (output_one_line_info_table): New.
7141         (output_line_info): Use it.
7142         (new_line_info_table): New.
7143         (set_cur_line_info_table): New.
7144         (dwarf2out_switch_text_section): Use it.
7145         (dwarf2out_begin_function): Likewise.
7146         (push_dw_line_info_entry): New.
7147         (dwarf2out_source_line): Rewrite for new line info tables.
7148         (dwarf2out_init): Remove dead initailizations.
7150 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7152         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7153         various flags.
7154         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7155         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7156         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7157         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7158         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7159         * opt-functions.awk (flag_init, switch_bit_fields): New.
7160         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7161         generate CL_MISSING_OK or CL_SAVE.
7162         * optc-gen.awk: Update to generate bit-field output as well as
7163         flags field.
7164         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7165         bit-field instead of CL_REJECT_DRIVER flag.
7166         * opts-common.c (generate_canonical_option,
7167         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7168         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7169         instead of CL_REJECT_NEGATIVE flag.
7170         * toplev.c (print_switch_values): Use cl_report bit-field instead
7171         of CL_REPORT flag.
7173 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7175         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7176         a zero minimum index only if it is redundant.
7178 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7180         PR rtl-optimization/48381
7181         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7182         instead of ira_class_hard_reg_index for calculating conflicting
7183         hard registers.
7185 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7187         * cprop.c: Clean up hash table building.
7188         (reg_avail_info): Remove.
7189         (oprs_available_p): Remove.
7190         (record_last_reg_set_info): Remove.
7191         (record_last_set_info): Remove.
7192         (reg_available_p): New function.
7193         (gcse_constant_p): Do not treat unfolded conditions as constants.
7194         (make_set_regs_unavailable): New function.
7195         (hash_scan_set): Simplify with new reg_available_p.
7196         (compute_hash_table_work): Traverse insns stream only once.
7197         Do not compute reg_avail_info. Traverse insns in reverse order.
7198         Record implicit sets after recording explicit sets from the block.
7200 2011-03-31  Michael Matz  <matz@suse.de>
7202         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7204 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7206         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7207         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7208         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7209         (h8300_mode_dependent_address_p): New function.
7210         (h8300_get_index): Make static.
7212 2011-03-31  Jeff Law  <law@redhat.com>
7214         * reload1.c (elimination_effects): Fix typo in recent change.
7216         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7217         typo potentially leading to null pointer dereference.
7219         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7220         (setup_save_areas): Corresponding changes to avoid useless
7221         assignments.
7223         * jump.c (reversed_comparison_code_parts): Avoid successive return
7224         statements when REVERSE_CONDITION is defined.
7226         * expr.c (expand_assignment): Avoid useless assignments.
7227         (expand_expr_real_1): Likewise.
7228         (expand_expr_real_2): Avoid useless statements.
7230         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7232         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7234         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7235         statements.
7237         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7239 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7241         PR target/47109
7242         * doc/tm.texi.in (TARGET_VERSION): Remove.
7243         * doc/tm.texi: Regenerate.
7244         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7245         * collect2.c (main): Don't use TARGET_VERSION.
7246         * mips-tdump.c (main): Don't use TARGET_VERSION.
7247         * mips-tfile.c (main): Don't use TARGET_VERSION.
7248         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7249         * config/rs6000/vxworksae.h: Remove.
7250         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7251         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7252         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7253         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7254         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7255         * config/arm/arm.h (TARGET_VERSION): Remove.
7256         * config/arm/coff.h (TARGET_VERSION): Remove.
7257         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7258         * config/arm/elf.h (TARGET_VERSION): Remove.
7259         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7260         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7261         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7262         * config/arm/pe.h (TARGET_VERSION): Remove.
7263         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7264         * config/arm/semi.h (TARGET_VERSION): Remove.
7265         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7266         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7267         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7268         * config/avr/avr.h (TARGET_VERSION): Remove.
7269         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7270         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7271         * config/frv/frv.h (TARGET_VERSION): Remove.
7272         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7273         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7274         * config/i386/darwin.h (TARGET_VERSION): Remove.
7275         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7276         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7277         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7278         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7279         * config/i386/gnu.h (TARGET_VERSION): Remove.
7280         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7281         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7282         * config/i386/linux.h (TARGET_VERSION): Remove.
7283         * config/i386/linux64.h (TARGET_VERSION): Remove.
7284         * config/i386/lynx.h (TARGET_VERSION): Remove.
7285         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7286         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7287         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7288         * config/i386/netware.h (TARGET_VERSION): Remove.
7289         * config/i386/nto.h (TARGET_VERSION): Remove.
7290         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7291         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7292         * config/ia64/elf.h (TARGET_VERSION): Remove.
7293         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7294         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7295         * config/ia64/linux.h (TARGET_VERSION): Remove.
7296         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7297         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7298         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7299         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7300         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7301         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7302         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7303         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7304         * config/m68k/linux.h (TARGET_VERSION): Remove.
7305         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7306         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7307         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7308         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7309         * config/mep/mep.h (TARGET_VERSION): Remove.
7310         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7311         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7312         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7313         * config/mips/linux.h (TARGET_VERSION): Remove.
7314         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7315         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7316         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7317         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7318         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7319         * config/pa/pa.h (TARGET_VERSION): Remove.
7320         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7321         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7322         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7323         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7324         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7325         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7326         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7327         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7328         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7329         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7330         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7331         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7332         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7333         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7334         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7335         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7336         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7337         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7338         * config/s390/linux.h (TARGET_VERSION): Remove.
7339         * config/s390/s390.h (TARGET_VERSION): Remove.
7340         * config/s390/tpf.h (TARGET_VERSION): Remove.
7341         * config/score/score.h (TARGET_VERSION): Remove.
7342         * config/sh/linux.h (TARGET_VERSION): Remove.
7343         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7344         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7345         * config/sh/sh.h (TARGET_VERSION): Remove.
7346         * config/sh/sh64.h (TARGET_VERSION): Remove.
7347         * config/sh/superh.h (TARGET_VERSION): Remove.
7348         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7349         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7350         * config/sparc/linux.h (TARGET_VERSION): Remove.
7351         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7352         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7353         TARGET_NAME32, TARGET_NAME): Remove.
7354         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7355         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7356         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7357         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7358         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7359         * config/spu/spu.h (TARGET_VERSION): Remove.
7360         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7361         * config/v850/v850.h (TARGET_VERSION): Remove.
7362         * config/vax/linux.h (TARGET_VERSION): Remove.
7363         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7364         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7365         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7367 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7369         PR target/48142
7370         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7371         frame-related from frame-unrelated adjustments to the stack pointer.
7373 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7375         * common.opt (fdebug-types-section): Move earlier.
7376         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7378 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7380         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7381         var.
7383 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7385         * tree.h (CASE_CHAIN): Define.
7386         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7387         (gimple_redirect_edge_and_branch): Likewise.
7389 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7391         PR middle-end/48367
7392         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7393         calculation.
7395 2011-03-30  Jeff Law  <law@redhat.com>
7397         * PR bootstrap/48371
7398         * reload1.c (reload): Fix botch in last change.
7400         * reload.h (struct reload): Fix typo introduced in last change.
7402 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7404         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7405         Undocumented.  Remove help text.
7406         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7407         -mhard-float.
7409 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7411         * doc/options.texi (NegativeAlias): Document.
7412         (Alias): Mention NegativeAlias.
7413         * opt-functions.awk: Handle NegativeAlias.
7414         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7415         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7416         * opts.h (CL_NEGATIVE_ALIAS): Define.
7417         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7418         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7419         OPT_mspe_.
7420         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7421         Alias entries.
7422         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7423         mno-spe and mno-isel instead of mspe=no and -misel=no.
7425 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7427         * common.opt (fdebug-types-section): New flag.
7428         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7429         * dwarf2out.c (use_debug_types): New define.
7430         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7431         (print_die): Guard output of type unit signatures using
7432         use_debug_types.
7433         (build_abbrev_table): Replace assert of dwarf_version >= 4
7434         with assert on use_debug_types.
7435         (size_of_die): Likewise.
7436         (unmark_dies): Likewise.
7437         (value_format): Decide AT_ref_external form on use_debug_types.
7438         (output_die): Replace dwarf_version version check guard with
7439         use_debug_types where appropriate.
7440         (modified_type_die): Likewise.
7441         (gen_reference_type_die): Likewise.
7442         (dwarf2out_start_source_file): Likewise.
7443         (dwarf2out_end_source_file): Likewise.
7444         (prune_unused_types_walk_attribs): Likewise.
7445         (dwarf2out_finish): Likewise.
7447 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7449         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7451 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7453         PR rtl-optimization/48332
7454         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7455         mode of input operand N and modeN to its actual mode.
7457 2011-03-30  Jeff Law  <law@redhat.com>
7459         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7460         define accessor macro.
7461         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7462         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7463         (reg_equiv_init): Likewise.
7464         (reg_equivs_size): New variable.
7465         (reg_equiv_init_size): Remove.
7466         (allocate_initial_values): Move prototype to here from....
7467         * integrate.h (allocate_initial_values): Remove prototype.
7468         * integrate.c: Include reload.h.
7469         (allocate_initial_values): Corresponding changes.
7470         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7471         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7472         (update_equiv_regs): Corresponding changes.
7473         (ira): Corresponding changes.
7474         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7475         (push_secondary_reload): Corresponding changes.
7476         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7477         (make_memloc, find_reloads_address): Corresponding changes.
7478         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7479         (find_reloads_address_1): Corresponding changes.
7480         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7481         (refers_to_regno_for_reload_p): Corresponding changes.
7482         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7483         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7484         * reload1.c: Include ggc.h.
7485         (grow_reg_equivs): New function.
7486         (replace_pseudos_in, reload): Corresponding changes.
7487         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7488         (eliminate_regs_1, elimination_effects): Corresponding changes.
7489         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7490         (delete_output_reload): Likewise.
7491         * caller-save.c (mark_referenced_regs): Corresponding changes.
7492         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7493         * frv/predicates.md (frv_load_operand): Corresponding changes.
7494         * microblaze/microblaze.c (double_memory_operand): Corresponding
7495         changes.
7496         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7497         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7498         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7499         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7500         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7501         changes.
7502         * pa/pa.c (emit_move_sequence): Corresponding changes.
7503         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7505 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7507         PR target/47551
7508         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7509         structure modes.  Don't check neon_vector_mem_operand for
7510         vector or structure modes.
7512 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7513             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7515         PR target/43590
7516         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7517         operand 1 and reshuffle the operands to match.
7518         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7520 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7522         PR driver/48208
7523         * config/c.opt (F): Added 'Driver' to -F option.
7525         PR driver/48260
7526         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7527           handler function.
7528         * config/darwin.opt: Added '-arch' option.
7530 2011-03-30  Nick Clifton  <nickc@redhat.com>
7532         * config/rx/rx.md: Add peepholes and patterns to combine
7533         extending loads and simple arithmetic instructions.
7534         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7535         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7536         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7537         modes to use pre-decrement and post-increment addressing.
7538         (rx_is_restricted_memory_address): Add range checking of REG+INT
7539         addresses.
7540         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7541         (rx_memory_move_cost): Adjust cost of stores.
7542         (rx_adjust_insn_length): New function.
7544 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7546         PR c/48305
7547         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7548         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7549         matching arg00/arg01 types.
7551 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7553         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7554         last_location to UNKNOWN_LOCATION.
7556 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7558         PR target/48349
7559         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7560         FLOAT_SSE_REGS.
7562 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7563             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7565         PR bootstrap/48337
7566         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7567         Init(PROCESSOR_V7).
7568         (sparc_cpu): Likewise.
7569         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7570         PROCESSOR_V7.
7572 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7574         PR target/48336
7575         PR middle-end/48342
7576         PR rtl-optimization/48345
7577         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7578         hard regs for given mode from profitable regs when doing secondary
7579         allocation.
7581 2011-03-29  Jeff Law  <law@redhat.com>
7583         PR bootstrap/48327
7584         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7585         do_not_duplicate field.
7586         (lookup_redirection_data): Corresponding changes.
7587         (create_duplicates): Always create a template block.
7588         (redirect_edges): Remove code which reused the original block
7589         when it was going to become unreachable code.
7590         (thread_block): Don't set do_not_duplicate field.
7592 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7594         * lto-opts.c (register_user_option_p, lto_register_user_option):
7595         Make type argument unsigned.
7596         * lto-streamer.h (lto_register_user_option): Make type argument
7597         unsigned.
7598         * opth-gen.awk: Make CL_* macros unsigned.
7599         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7600         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7601         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7602         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7603         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7604         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7605         (find_opt): Make lang_mask argument unsigned.
7607 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7609         PR rtl-optimization/48331
7610         PR rtl-optimization/48334
7611         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7612         for any used algorithm.
7614 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7616         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7617         to parent_max.
7619 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7621         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7622         (alpha_option_override): Don't set alpha_sr_alias_set.
7623         (emit_frame_store_1): Use gen_frame_mem rather than calling
7624         set_mem_alias_set.
7625         (alpha_expand_epilogue): Ditto.
7627 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7629         PR tree-optimization/48290
7630         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7631         vectorization, check that relevant phis in the basic block after
7632         the inner loop are really inner loop's exit phis.
7634 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7636         PR debug/48190
7637         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7638         (cached_dw_loc_list_def): New structure.
7639         (cached_dw_loc_list): New typedef.
7640         (cached_dw_loc_list_table): New variable.
7641         (cached_dw_loc_list_table_hash): New function.
7642         (cached_dw_loc_list_table_eq): Likewise.
7643         (add_location_or_const_value_attribute): Take a bool cache_p.
7644         Cache the list when the parameter is true.
7645         (gen_formal_parameter_die): Update caller.
7646         (gen_variable_die): Likewise.
7647         (dwarf2out_finish): Likewise.
7648         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7649         while generating debug info for the decl.
7650         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7651         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7652         (resolve_addr): Cache the result of resolving a chain of
7653         location lists.
7655 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7657         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7658         conflict object hard regset nodes have intersecting hard reg sets.
7660         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7661         after regstat_init_n_sets_and_refs.
7663         * ira.c: Add more comments at the top.
7664         (setup_stack_reg_pressure_class, setup_pressure_classes):
7665         Add comments how we compute the register pressure classes.
7666         (setup_allocno_and_important_classes): Add more comments.
7667         (setup_class_translate_array, reorder_important_classes)
7668         (setup_reg_class_relations): Add comments.
7670         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7671         start of the file.
7673         * ira-color.c: Add 2011 to the Copyright line.
7674         (assign_hard_reg):  Add more comments.
7675         (improve_allocation): Ditto.
7677         * ira-costs.c: Add 2011 to the Copyright line.
7678         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7679         comments.
7680         (setup_regno_cost_classes_by_mode): Ditto.
7682         Initial patches from ira-improv branch:
7684         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7686         * ira-build.c (ira_create_object): Remove initialization of
7687         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7688         (ira_create_allocno): Remove initialization of
7689         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7690         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7691         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7692         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7693         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7694         Initialize ALLOCNO_ADD_DATA.
7695         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7696         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7697         ALLOCNO_REG.
7698         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7699         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7701         * ira.c (ira_reallocate): Remove.
7702         (setup_pressure_classes): Call
7703         ira_init_register_move_cost_if_necessary.  Use
7704         ira_register_move_cost instead of ira_get_register_move_cost.
7705         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7706         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7708         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7709         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7710         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7711         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7712         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7713         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7714         Fix formatting.
7715         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7716         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7717         (struct allocno_color_data): New.
7718         (allocno_color_data_t): New typedef.
7719         (allocno_color_data): New definition.
7720         (ALLOCNO_COLOR_DATA): New macro.
7721         (struct object_color_data): New.
7722         (object_color_data_t): New typedef.
7723         (object_color_data): New definition.
7724         (OBJECT_COLOR_DATA): New macro.
7725         (update_copy_costs, calculate_allocno_spill_cost): Call
7726         ira_init_register_move_cost_if_necessary.  Use
7727         ira_register_move_cost instead of ira_get_register_move_cost.
7728         (move_spill_restore, update_curr_costs): Ditto.
7729         (allocno_spill_priority): Make it inline.
7730         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7731         (struct coalesce_data, coalesce_data_t): New.
7732         (allocno_coalesce_data): New definition.
7733         (ALLOCNO_COALESCE_DATA): New macro.
7734         (merge_allocnos, coalesced_allocno_conflict_p): Use
7735         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7736         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7737         (coalesce_allocnos): Ditto.
7738         (setup_coalesced_allocno_costs_and_nums): Ditto.
7739         (collect_spilled_coalesced_allocnos): Ditto.
7740         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7741         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7742         (coalesce_spill_slots): Ditto.
7743         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7744         free allocno_coalesce_data.
7746         * ira-conflicts.c: Fix formatting.
7747         (process_regs_for_copy): Call
7748         ira_init_register_move_cost_if_necessary.  Use
7749         ira_register_move_cost instead of ira_get_register_move_cost.
7750         (build_object_conflicts): Optimize.
7752         * ira-costs.c (record_reg_classes): Optimize.  Call
7753         ira_init_register_move_cost_if_necessary.  Use
7754         ira_register_move_cost, ira_may_move_in_cost, and
7755         ira_may_move_out_cost instead of ira_get_register_move_cost and
7756         ira_get_may_move_cost.
7757         (record_address_regs): Ditto.
7758         (scan_one_insn): Optimize.
7759         (find_costs_and_classes): Optimize.
7760         (process_bb_node_for_hard_reg_moves): Call
7761         ira_init_register_move_cost_if_necessary.  Use
7762         ira_register_move_cost instead of ira_get_register_move_cost.
7764         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7765         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7766         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7767         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7768         definitions.
7769         (ira_initiate_emit_data, ira_finish_emit_data)
7770         (create_new_allocno): New functions.
7771         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7772         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7773         Use ira_register_move_cost instead of ira_get_register_move_cost.
7775         * ira-int.h: Fix some comments.
7776         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7777         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7778         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7779         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7780         add_data.
7781         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7782         bitfield after mode.  Make hard_regno a short int.  Make
7783         hard_regno short.  Remove first_coalesced_allocno and
7784         next_coalesced_allocno.  Move mem_optimized_dest_p,
7785         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7786         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7787         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7788         temp, colorable_p.  Add new member add_data.
7789         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7790         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7791         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7792         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7793         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7794         (ALLOCNO_ADD_DATA): New macro.
7795         (ira_emit_data_t): New typedef.
7796         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7797         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7798         from struct ira_allocno.
7799         (ALLOCNO_EMIT_DATA): New macro.
7800         (ira_allocno_emit_data, allocno_emit_reg): New.
7801         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7802         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7803         (OBJECT_ADD_DATA): New macro.
7804         (ira_reallocate): Remove.
7805         (ira_initiate_emit_data, ira_finish_emit_data): New.
7806         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7807         (ira_init_register_move_cost_if_necessary): New.
7808         (ira_object_conflict_iter_next): Merge into
7809         ira_object_conflict_iter_cond.
7810         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7812         * ira-live.c (process_single_reg_class_operands): Call
7813         ira_init_register_move_cost_if_necessary.  Use
7814         ira_register_move_cost instead of ira_get_register_move_cost.
7816         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7818         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7820         * ira-costs.c: Fix formatting.
7821         (cost_classes, cost_classes_num): Remove.
7822         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7823         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7824         (cost_classes_del, cost_classes_htab): New.
7825         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7826         (initiate_regno_cost_classes, setup_cost_classes): New.
7827         (setup_regno_cost_classes_by_aclass): New.
7828         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7829         (record_reg_classes): Use regno_cost_classes instead of
7830         cost_classes.  Move checking opposite operand up.
7831         (record_address_regs): Use regno_cost_classes
7832         instead of cost_classes.
7833         (scan_one_insn): Ditto.  Use always general register.
7834         (print_allocno_costs): Use regno_cost_classes instead of
7835         cost_classes.
7836         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7837         (find_costs_and_classes): Set up cost classes for each registers.
7838         Use also their mode for this.  Use regno_cost_classes instead of
7839         cost_classes.
7840         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7841         cost_classes.
7842         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7843         (ira_costs, ira_set_pseudo_classes): Call
7844         initiate_regno_cost_classes and finish_regno_cost_classes.
7846         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7848         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7850         * target.def (ira_cover_classes): Remove.
7852         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7854         * doc/tm.texi.in: Ditto.
7856         * ira-conflicts.c: Remove mentioning cover classes from the file.
7857         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7858         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7860         * targhooks.c (default_ira_cover_classes): Remove.
7862         * targhooks.h (default_ira_cover_classes): Ditto.
7864         * haifa-sched.c: Remove mentioning cover classes from the file.
7865         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7866         ira_pressure_classes and ira_pressure_classes_num instead of
7867         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7868         sched_regno_pressure_class instead of sched_regno_cover_class.
7869         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7870         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7872         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7873         classes from the file.
7874         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7875         (struct object_hard_regs, struct object_hard_regs_node): New.
7876         (struct ira_object): New members profitable_hard_regs,
7877         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7878         (struct ira_allocno): Rename cover_class to aclass.  Rename
7879         cover_class_cost and updated_cover_class_cost to class_cost and
7880         updated_class_cost.  Remove splay_removed_p and
7881         left_conflict_size.  Add new members colorable_p.
7882         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7883         (ALLOCNO_COLORABLE_P): New macro.
7884         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7885         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7886         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7887         (OBJECT_...): Rename parameter C to O.
7888         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7889         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7890         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7891         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7892         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7893         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7894         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7895         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7896         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7897         x_ira_reg_class_subunion.
7898         (ira_max_memory_move_cost, ira_max_register_move_cost)
7899         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7900         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7901         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7902         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7903         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7904         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7905         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7906         (ira_tune_allocno_costs_and_cover_classes): Rename to
7907         ira_tune_allocno_costs.
7908         (ira_debug_hard_regs_forest): New.
7909         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7910         (ira_object_conflict_iter_next): Fix comments.
7911         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7912         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7913         cover_class to aclass.
7914         (ira_allocate_and_accumulate_costs): Ditto.
7915         (ira_allocate_and_set_or_copy_costs): Ditto.
7917         * opts.c (decode_options): Remove ira_cover_class check.
7919         * ira-color.c: Remove mentioning cover classes from the file.  Use
7920         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7921         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7922         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7923         (splay-tree.h): Remove include.
7924         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7925         before copy_freq_compare_func.
7926         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7927         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7928         New definitions.
7929         (hard_regs_roots, hard_regs_node_vec): Ditto.
7930         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7931         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7932         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7933         (create_new_object_hard_regs_node): Ditto.
7934         (add_new_object_hard_regs_node_to_forest): Ditto.
7935         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
7936         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7937         Ditto.
7938         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7939         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7940         (remove_unused_object_hard_regs_nodes): Ditto.
7941         (enumerate_object_hard_regs_nodes): Ditto.
7942         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7943         (object_hard_regs_subnode_t): Ditto.
7944         (struct object_hard_regs_subnode): Ditto.
7945         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7946         (setup_object_hard_regs_subnode_index): Ditto.
7947         (get_object_hard_regs_subnodes_num): Ditto.
7948         (form_object_hard_regs_nodes_forest): Ditto.
7949         (finish_object_hard_regs_nodes_tree): Ditto.
7950         (finish_object_hard_regs_nodes_forest): Ditto.
7951         (allocnos_have_intersected_live_ranges_p): Rename to
7952         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7953         (pseudos_have_intersected_live_ranges_p): Rename to
7954         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
7955         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7956         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7957         (update_copy_costs): Remove assert.  Skip cost update if the hard
7958         reg does not belong the class.
7959         (assign_hard_reg): Process only profitable hard regs.
7960         (uncolorable_allocnos_num): Make it scalar.
7961         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7962         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7963         and ira_reg_class_max_nregs.
7964         (bucket_allocno_compare_func): Check frequency first.
7965         (sort_bucket): Add compare function as a parameter.
7966         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7967         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7968         (push_allocno_to_stack): Rewrite for checking new allocno
7969         colorability.
7970         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
7971         (push_only_colorable): Pass new parameter to sort_bucket.
7972         (push_allocno_to_spill): Remove.
7973         (allocno_spill_priority_compare): Make it inline and rewrite.
7974         (splay_tree_allocate, splay_tree_free): Remove.
7975         (allocno_spill_sort_compare): New function.
7976         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
7977         build and use splay tree.  Choose first allocno in uncolorable
7978         allocno bucket to spill.  Remove setting spill cost.
7979         (all_conflicting_hard_regs): Remove.
7980         (setup_allocno_available_regs_num): Check only profitable hard
7981         regs.  Print info about hard regs nodes.
7982         (setup_allocno_left_conflicts_size): Remove.
7983         (put_allocno_into_bucket): Don't call
7984         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
7985         (improve_allocation): New.
7986         (color_allocnos): Call setup_profitable_hard_regs,
7987         form_object_hard_regs_nodes_forest, improve_allocation,
7988         finish_object_hard_regs_nodes_forest.  Setup spill cost.
7989         (print_loop_title): Use pressure classes.
7990         (color_allocnso): Ditto.
7991         (do_coloring): Remove allocation and freeing splay_tree_node_pool
7992         and allocnos_for_spilling.
7993         (ira_sort_regnos_for_alter_reg): Don't setup members
7994         {first,next}_coalesced_allocno.
7995         (color): Remove allocating and freeing removed_splay_allocno_vec.
7996         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7997         prohibited_class_mode_regs.
7999         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8000         formatting.
8001         (update_allocno_pressure_excess_length): Use pressure classes.
8002         (inc_register_pressure, dec_register_pressure): Check for pressure
8003         class.
8004         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8005         pressure class.  Use ira_reg_class_nregs instead of
8006         ira_reg_class_max_nregs.
8007         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8008         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8009         (single_reg_class): Use ira_reg_class_nregs instead of
8010         ira_reg_class_max_nregs.
8011         (process_bb_node_lives): Use pressure classes.
8013         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8014         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8015         (change_loop): Use pressure classes.
8016         (modify_move_list): Call ira_set_allocno_class instead of
8017         ira_set_allocno_cover_class.
8019         * ira-build.c: Remove mentioning cover classes from the file.  Use
8020         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8021         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8022         ALLOCNO_UPDATED_CLASS_COST instead of
8023         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8024         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8025         (ira_create_allocno): Remove initialization of
8026         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8027         ALLOCNO_COLORABLE_P.
8028         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8029         Update conflict regs for the objects.
8030         (create_cap_allocno): Remove assert.  Don't propagate
8031         ALLOCNO_AVAILABLE_REGS_NUM.
8032         (ira_free_allocno_costs): New function.
8033         (finish_allocno): Change a part of code into call of
8034         ira_free_allocno_costs.
8035         (low_pressure_loop_node_p): Use pressure classes.
8036         (object_range_compare_func): Don't compare classes.
8037         (setup_min_max_conflict_allocno_ids): Ditto.
8039         * loop-invariant.c: Remove mentioning cover classes from the file.
8040         Use ira_pressure_classes and ira_pressure_classes_num instead of
8041         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8042         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8043         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8044         Use reg_allocno_class instead of reg_cover_class.
8045         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8046         STACK_REG_COVER_CLASS.
8047         (get_regno_cover_class): Rename to get_regno_pressure_class.
8048         (move_loop_invariants): Initialize and finalize regstat.
8050         * ira.c: Remove mentioning cover classes from the file.  Add
8051         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8052         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8053         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8054         setup_class_subset_and_memory_move_costs.
8055         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8056         (setup_cover_and_important_classes): Rename to
8057         setup_allocno_and_important_classes.
8058         (setup_class_translate_array): New.
8059         (setup_class_translate): Call it for allocno and pressure classes.
8060         (cover_class_order): Rename to allocno_class_order.
8061         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8062         of ira_class_translate.
8063         (reorder_important_classes): Set up ira_important_class_nums.
8064         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8065         (print_class_cover): Rename to print_classes.  Add parameter.
8066         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8067         Print pressure classes too.
8068         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8069         setup_reg_subclasses.
8070         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8071         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8072         (setup_prohibited_class_mode_regs): Use
8073         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8074         (clarify_prohibited_class_mode_regs): New function.
8075         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8076         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8077         (ira_init_once): Initialize them.
8078         (free_register_move_costs): Process them.
8079         (ira_init): Move calls of find_reg_classes and
8080         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8081         Call clarify_prohibited_class_mode_regs.
8082         (ira_no_alloc_reg): Remove.
8083         (too_high_register_pressure_p): Use pressure classes.
8085         * sched-deps.c: Remove mentioning cover classes from the file.
8086         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8087         ira_pressure_classes and ira_pressure_classes_num instead of
8088         ira_reg_class_cover_size and ira_reg_class_cover.
8089         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8090         sched_regno_pressure_class instead of sched_regno_cover_class.
8091         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8092         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8094         * ira.h: Add 2010 to Copyright.
8095         (ira_no_alloc_reg): Remove external.
8096         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8097         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8098         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8099         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8100         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8101         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8102         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8103         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8104         x_ira_no_alloc_regs.
8105         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8106         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8107         ira_allocno_classes_num and ira_allocno_classes.
8108         (ira_class_translate): Rename to ira_allocno_class_translate.
8109         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8110         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8111         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8112         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8113         (ira_no_alloc_regs): New.
8115         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8116         classes from the file.  Use ALLOCNO_CLASS instead of
8117         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8118         ALLOCNO_COVER_CLASS_COST.
8119         (regno_cover_class): Rename to regno_aclass.
8120         (record_reg_classes): Use ira_reg_class_subunion instead of
8121         ira_reg_class_union.
8122         (record_address_regs): Check overflow.
8123         (scan_one_insn): Ditto.
8124         (print_allocno_costs): Print total mem cost fore regional allocation.
8125         (print_pseudo_costs): Use REG_N_REFS.
8126         (find_costs_and_classes): Use classes intersected with them on the
8127         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8128         ira_reg_class_union.  Use ira_allocno_class_translate and
8129         regno_aclass instead of ira_class_translate and regno_cover_class.
8130         Modify code for finding regno_aclass.  Setup preferred classes for
8131         the next pass.
8132         (setup_allocno_cover_class_and_costs): Rename to
8133         setup_allocno_class_and_costs.  Use regno_aclass instead of
8134         regno_cover_class.  Use ira_set_allocno_class instead of
8135         ira_set_allocno_cover_class.
8136         (init_costs, finish_costs): Use regno_aclass instead of
8137         regno_cover_class.
8138         (ira_costs): Use setup_allocno_class_and_costs instead of
8139         setup_allocno_cover_class_and_costs.
8140         (ira_tune_allocno_costs_and_cover_classes): Rename to
8141         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8142         by processing objects.  Use ira_reg_class_max_nregs instead of
8143         ira_reg_class_nregs.
8145         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8147         * sched-int.h: Remove mentioning cover classes from the file.
8148         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8150         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8151         classes from the file.
8152         (struct reg_pref): Rename coverclass into allocnoclass.
8153         (reg_cover_class): Rename to reg_allocno_class.
8155         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8157         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8159         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8161         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8163         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8165         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8167         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8169         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8171         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8173         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8175         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8176         (i386_ira_cover_classes): Ditto.
8178         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8180         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8182         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8184         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8186         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8188         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8190         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8191         (mips_ira_cover_classes): Ditto.
8193         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8195         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8197         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8199         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8201         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8203         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8204         (IRA_COVER_CLASSES_VSX): Ditto.
8206         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8207         (rs6000_ira_cover_classes): Ditto.
8209         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8211         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8213         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8215         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8217         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8219         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8221         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8223         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8225         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8227         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8229 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8231         PR debug/48253
8232         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8233         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8234         dw_fde_unlikely_section_end_label, cold_in_std_section,
8235         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8236         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8237         fields.
8238         (output_fde): Use dw_fde_second_{begin,end} if second is
8239         true, otherwise dw_fde_{begin,end}.
8240         (output_call_frame_info): Test dw_fde_second_begin != NULL
8241         instead of dw_fde_switched_sections.
8242         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8243         fields, initialize new fields.  Initialize in_std_section
8244         unconditionally from the first partition.
8245         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8246         dw_fde_second_begin is non-NULL.
8247         (dwarf2out_switch_text_section): Stop initializing removed
8248         dw_fde_struct fields, initialize new fields, initialize
8249         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8250         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8251         (struct var_loc_list_def): Add last_before_switch field.
8252         (arange_table, arange_table_allocated, arange_table_in_use,
8253         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8254         (size_of_aranges): Count !in_std_section and !second_in_std_section
8255         hunks in fdes, instead of looking at arange_table_in_use.
8256         (output_aranges): Add aranges_length argument, don't call
8257         size_of_aranges here.  Instead of using aranges_table*
8258         emit ranges for fdes when !in_std_section resp.
8259         !second_in_std_section.
8260         (dw_loc_list): Break ranges crossing section switch.
8261         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8262         use dw_fde_second_end instead of dw_fde_end as end of last range.
8263         (gen_subprogram_die): Don't call add_arange.  Use
8264         dw_fde_{begin,end} for first partition and if switched
8265         section dw_fde_second_{begin,end} for the second.
8266         (var_location_switch_text_section_1,
8267         var_location_switch_text_section): New functions.
8268         (dwarf2out_begin_function): Initialize cold_text_section even
8269         when function_section () isn't text_section.
8270         (prune_unused_types): Don't walk arange_table.
8271         (dwarf2out_finish): Don't needlessly test
8272         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8273         If info_section_emitted, call size_of_aranges and if it indicates
8274         non-empty .debug_aranges, call output_aranges with the computed
8275         size.  Stop using removed dw_fde_struct fields, use
8276         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8277         for second.
8279         PR debug/48203
8280         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8281         create ENTRY_VALUE if incoming or address of incoming's MEM
8282         is a hard REG.
8283         * dwarf2out.c (mem_loc_descriptor): Don't emit
8284         DW_OP_GNU_entry_value of DW_OP_fbreg.
8285         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8286         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8287         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8288         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8289         ENTRY_VALUE_EXPs.
8290         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8291         is a REG_P or MEM_P with REG_P address, compute hash directly
8292         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8293         (preserve_only_constants): Don't clear VALUES forwaring
8294         ENTRY_VALUE to some other VALUE.
8296 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8298         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8299         instead of GEN_INT.
8301 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8303         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8304         block before expanding the statement.
8305         (expand_gimple_stmt_1): Likewise.  Set them here...
8306         (expand_gimple_stmt): ...and not here.  Tidy.
8307         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8308         unknown.
8310 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8312         * Makefile.in: New rule for cprop.o.
8313         * gcse.c: Move constant/copy propagation to cprop.c.
8314         (compute_local_properties): Only handle expression tables.
8315         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8316         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8317         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8318         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8319         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8320         compute_cprop_data, find_used_regs, try_replace_reg,
8321         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8322         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8323         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8324         find_bypass_set, reg_killed_on_edge, bypass_block,
8325         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8326         execute_rtl_cprop, pass_rtl_cprop): Move to...
8327         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8328         moved from gcse.c to here with minor cleanups in duplicated code.
8330 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8332         * config/i386/i386.c (flag_opts): Fix a typo in
8333         -mavx256-split-unaligned-store.
8335 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8337         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8338         LIBCALL_VALUE): Remove macros.
8339         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8340         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8341         (h8300_function_value, h8300_libcall_value,
8342         h8300_function_value_regno_p): New functions.
8344 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8346         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8348 2011-03-28  Jeff Law  <law@redhat.com>
8350         * tree-ssa-threadupdate.c (redirect_edges): Call
8351         create_edge_and_update_destination_phis as needed.
8352         (create_edge_and_update_destination_phis): Accept new BB argument.
8353         All callers updated.
8354         (thread_block): Do not update the profile when threading around
8355         intermediate blocks.
8356         (thread_single_edge): Likewise.
8357         (determine_bb_domination_status): If BB is not a successor of the
8358         loop header, return NONDOMINATING.
8359         (register_jump_thread): Note when we register a jump thread around
8360         an intermediate block.
8361         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8362         (thread_across_edge): Use it.
8364 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8366         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8367         when for_return is 2.
8369 2011-03-28  Jeff Law  <law@redhat.com>
8371         * var-tracking.c (canonicalize_values_mark): Delete unused
8372         lhs assignment.
8373         (canonicalize_values_star, set_variable_part): Likewise.
8374         (clobber_variable_part, delete_variable_part): Likewise.
8376 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8378         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8380 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8382         * tree-inline.c (expand_call_inline): Do not check that destination
8383         node is analyzed.
8384         (optimize_inline_calls): Assert that destination node is analyzed.
8385         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8386         not call tree_lowering_passes.
8387         * cgraph.h (cgraph_analyze_function): Declare.
8388         * cgraphunit.c (cgraph_analyze_function): Make public.
8390 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8392         * config/sparc/sparc-opts.h: New.
8393         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8394         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8395         (sparc_option_override): Store processor_type enumeration rather
8396         than string in cpu_default.  Remove name and enumeration from
8397         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8398         without using sparc_select.  Use target_flags_explicit instead of
8399         fpu_option_set.
8400         * config/sparc/sparc.h (enum processor_type): Move to
8401         sparc-opts.h.
8402         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8403         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8404         HeaderInclude entry.
8405         (mcpu=, mtune=): Use Var and Enum.
8406         (sparc_processor_type): New Enum and EnumValue entries.
8408 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8409             Iain Sandoe  <iains@gcc.gnu.org>
8411         PR target/48245
8412         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8414 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8416         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8417         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8418         Insert new statements at it in lieu of STMT.
8419         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8420         * tree-vect-stmts.c (vectorizable_store): Likewise.
8421         (vectorizable_load): Likewise.
8423 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8425         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8426         (divtf3): Ditto.
8427         (multf3): Ditto.
8428         (subtf3): Ditto.
8430 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8432         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8433         unaligned 256bit load/store.
8434         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8435         (*avx_movdqu<avxmodesuffix>): Likewise.
8437 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8439         PR target/48288
8440         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8441         * config/pa/pa.md (iordi3): Use new predicate in expander.
8442         (iorsi3): Likewise.
8444 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8446         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8447         FUNCTION_VALUE_REGNO_P): Remove macros.
8448         * config/mips/mips-protos.h (mips_function_value): Remove.
8449         * config/mips/mips.c (mips_function_value): Rename to...
8450         (mips_function_value_1): ... this. Make static.  Handle receiving
8451         the function type in 'fn_decl_or_type' argument.
8452         (mips_function_value, mips_libcall_value,
8453         mips_function_value_regno_p): New function.
8454         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8455         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8457 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8459         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8460         and -mavx256-split-unaligned-store.
8461         (ix86_option_override_internal): Split 32-byte AVX unaligned
8462         load/store by default.
8463         (ix86_avx256_split_vector_move_misalign): New.
8464         (ix86_expand_vector_move_misalign): Use it.
8466         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8467         -mavx256-split-unaligned-store.
8469         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8470         256bit load/store.  Generate unaligned store on misaligned memory
8471         operand.
8472         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8473         256bit load/store.
8474         (*avx_movdqu<avxmodesuffix>): Likewise.
8476         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8477         -mavx256-split-unaligned-store.
8479 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8481         PR target/38598
8482         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8483         Update commentary.
8485 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8487         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8488         opno arguments with an expand_operand.  Use create_input_operand.
8489         (mips_prepare_builtin_target): Delete.
8490         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8491         functions.
8492         (mips_expand_builtin_direct): Use create_output_operand and
8493         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8494         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8495         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8497 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8499         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8500         function.
8501         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8503 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8505         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8506         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8507         basic blocks and call commit_edge_insertions directly.
8508         (fixup_abnormal_edges): Move from here to...
8509         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8510         on the edges and return whether some have actually been inserted.
8511         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8512         compensation code.
8514 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8516         PR rtl-optimization/48144
8517         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8518         (merge_expr_data): ... here.
8519         (av_set_intersect): Rename to av_set_code_motion_filter.
8520         Update all callers.  Call merge_history_vect when an expression
8521         is found in both sets.
8522         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8524 2011-03-26  Alan Modra  <amodra@gmail.com>
8526         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8527         cmodel medium addresses.
8528         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8529         64-bit gpr loads and stores.
8530         (rs6000_secondary_reload_ppc64): New function.
8531         * config/rs6000/rs6000-protos.h: Declare it.
8532         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8534 2011-03-26  Alan Modra  <amodra@gmail.com>
8536         PR target/47487
8537         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8538         GNU Go in traceback table.
8540 2011-03-25  Richard Henderson  <rth@redhat.com>
8542         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8543         if there are exactly 6 operands.
8544         (set_storage_via_setmem): Similarly.
8546 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8548         * collect2.c (write_c_file_stat): Handle backslash
8549         as right-hand directory separator.
8550         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8551         checking just for slash.
8552         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8553         instead of checking for trailing slash.
8554         * gcc.c (record_temp_file): Use filename_cmp instead
8555         of strcmp.
8556         (do_spec_1): Likewise.
8557         (replace_outfile_spec_function): Likewise.
8558         (is_directory): Use filename_ncmp instead of strncmp.
8559         (print_multilib_info): Likewise.
8560         * gcov.c (find_source): Use filename_cmp instead
8561         instead of strcmp.
8562         (make_gcov_file_name): Fix order of slash/backslash
8563         checks.
8564         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8565         (add_standard_paths): Likewise.
8566         * mips-tfile.c (saber_stop): Handle backslash.
8567         * prefix.c (update_path): Use filename_ncmp instead of
8568         strncmp.
8569         * profile.c (output_location): Use filename_cmp instead
8570         of strcmp.
8571         * read-md.c (handle_toplevel_file): Handle backslash.
8572         * tlink.c (frob_extension):  Likewise.
8573         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8574         strcmp.
8575         * tree-dump.c (dequeue_and_dump): Handle backslash.
8576         * tree.c (get_file_function_name): Likewise.
8577         * gengtype.c (read_input_list): Likewise.
8578         (get_file_realbasename): Likewise.
8579         (get_output_file_with_visibility): Use filename_cmp
8580         instead of strcmp.
8582 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8584         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8585         case to VFPv1.
8587 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8589         * fold-const.c (expr_location_or): New function.
8590         (fold_truth_not_expr): Call it.
8592 2011-03-25  Jeff Law  <law@redhat.com>
8594         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8595         va_end.
8596         * c-family/c-common.c (def_fn_type): Likewise.
8597         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8598         * emit-rtl.c (gen_rtvec): Likewise.
8599         * lto/lto-lang.c (def_fn_type): Likewise.
8601 2011-03-25  Richard Guenther  <rguenther@suse.de>
8603         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8604         also generate copies.
8605         (fini_copy_prop): Handle constant values properly.
8607 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8609         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8610         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8611         (hash_loc_operands, compare_loc_operands): Handle
8612         DW_OP_GNU_entry_value.
8614 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8616         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8617         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8618         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8619         comment and use macro TARGET_64BIT_MS_ABI instead.
8620         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8621         and change default behavior for 32-bit MS_ABI.
8622         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8623         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8624         32-bit, too.
8625         (ix86_cfun_abi): Likewise.
8626         (ix86_maybe_switch_abi): Adjust comment.
8627         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8628         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8629         instead of checking for SYSV_ABI.
8630         (ix86_nsaved_sseregs): Likewise.
8631         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8632         to 16 bytes.
8633         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8634         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8635         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8636         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8637         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8639 2011-03-25  Richard Guenther  <rguenther@suse.de>
8641         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8642         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8643         (verify_gimple): Remove.
8644         * tree-cfg.c (verify_gimple_call): Merge verification
8645         from verify_stmts.
8646         (verify_gimple_phi): Merge verification from verify_stmts.
8647         (verify_gimple_label): New function.
8648         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8649         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8650         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8651         (verify_stmts): Rename to verify_gimple_in_cfg.
8652         (verify_gimple_in_cfg): New function.
8653         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8654         * tree-ssa.c (verify_ssa): Likewise.
8655         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8657 2011-03-25  Richard Guenther  <rguenther@suse.de>
8659         * passes.c (init_optimization_passes): Add FRE pass after
8660         early SRA.
8662 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8663             Andrew Stubbs  <ams@codesourcery.com>
8665         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8666         for Cortex-A8.
8667         (arm_movdi_vfp_cortexa8): New pattern.
8668         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8669         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8670         instructions when tuning for Cortex-A8.  Set attribute "arch".
8671         * config/arm/arm.md: Move include arm-tune.md up a bit.
8672         (define_attr "arch"): Add "onlya8" and "nota8" values.
8673         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8675 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8677         PR bootstrap/48282
8678         Revert:
8679         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8681         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8682         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8683         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8684         * passes.c (init_optimization_passes): Move
8685         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8687 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8689         * c-typeck.c (comptypes_internal): Replace target
8690         hook call of comp_type_attributes by version in tree.c file.
8691         * gimple.c (gimple_types_compatible_p_1): Likewise.
8692         * tree-ssa.c (useless_type_conversion_p): Likewise.
8693         * tree.c (build_type_attribute_qual_variant): Likewise.
8694         (attribute_value_equal): New static helper function.
8695         (comp_type_attributes): New function.
8696         (merge_attributes): Use attribute_value_equal for comparison.
8697         (attribute_list_contained): Likewise.
8698         * tree.h (comp_type_attributes): New prototype.
8700 2011-03-25  Richard Guenther  <rguenther@suse.de>
8702         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8703         of complex types at -O0.
8704         (verify_gimple_assign_binary): Likewise.
8705         (verify_gimple_assign_ternary): Likewise.
8707 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8709         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8710         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8712 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8714         PR debug/48041
8715         * dwarf2out.c (output_abbrev_section): Only write table when
8716         abbrev_die_table_in_use > 1.
8718 2011-02-24  Richard Henderson  <rth@redhat.com>
8720         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8721         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8722         (alpha_expand_unaligned_load_words): Use extql.
8723         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8724         (emit_insxl): Handle all modes for consistency.
8726 2011-02-24  Richard Henderson  <rth@redhat.com>
8728         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8729         (alpha_expand_unaligned_load): Likewise.
8730         (alpha_expand_unaligned_store): Likewise.
8731         (alpha_expand_unaligned_load_words): Likewise.
8732         (alpha_expand_unaligned_store_words): Likewise.
8733         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8734         (alpha_split_lock_test_and_set_12): Likewise.
8735         (print_operand, alpha_fold_builtin_extxx): Likewise.
8736         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8737         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8738         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8739         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8740         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8741         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8742         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8743         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8744         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8745         (extwl, extll, extql): Similarly.
8746         (inswh, inslh, insqh): Similarly.
8747         (mskbl, mskwl, mskll, mskql): Similarly.
8748         (mskwh, msklh, mskqh): Similarly.
8750 2011-02-24  Richard Henderson  <rth@redhat.com>
8752         * config/alpha/alpha.md (attribute isa): Add er, ner.
8753         (attribute enabled): Handle them.
8754         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8756 2011-02-24  Richard Henderson  <rth@redhat.com>
8758         * config/alpha/alpha.md (attribute isa): Add vms.
8759         (attribute enabled): Handle it.
8760         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8761         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8762         (*movtf): Rename from *movtf_internal for consistency.
8763         (*movsi): Merge with *movsi_nt_vms.
8764         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8765         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8766         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8767         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8769 2011-02-24  Richard Henderson  <rth@redhat.com>
8771         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8772         (extendqisi2, extendhisi2): Likewise.
8773         (extendqidi2): Simplify BWX/non-BWX expansions.
8774         (extendhidi2): Similarly.
8776 2011-02-24  Richard Henderson  <rth@redhat.com>
8778         * config/alpha/alpha.md (attribute isa): New.
8779         (attribute enabled): New.
8780         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8781         (zero_extendqisi2, zero_extendqidi2): Similarly.
8782         (zero_extendhisi2, zero_extendhidi2): Similarly.
8783         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8785 2011-02-24  Richard Henderson  <rth@redhat.com>
8787         * config/alpha/predicates.md (input_operand): Revert last change;
8788         update comment to mention 32-bit VMS rather than Windows.
8790 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8792         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8793         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8794         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8795         * passes.c (init_optimization_passes): Move
8796         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8798 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8800         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8802 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8804         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8805         correctly.
8807 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8809         PR debug/48204
8810         * simplify-rtx.c (simplify_const_unary_operation): Call
8811         real_convert when changing mode class with FLOAT_EXTEND.
8813 2011-03-24  Nick Clifton  <nickc@redhat.com>
8815         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8816         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8817         * config/rx/rx.c (rx_option_override): Set align_jumps,
8818         align_loops and align_labels if not set by the user.
8819         (rx_align_for_label): New function.
8820         (rx_max_skip_for_label): New function.
8821         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8822         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8823         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8824         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8825         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8827 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8829         PR rtl-optimization/48263
8830         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8831         and original commutative_p handling.  Use maybe_gen_insn.
8833 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8835         * reload.c (find_reloads_subreg_address): Add address_reloaded
8836         parameter and return true there if the full address has been
8837         reloaded.
8838         (find_reloads_toplev): Pass address_reloaded flag.
8839         (find_reloads_address_1): Don't use address_reloaded parameter.
8841 2011-03-24  Jeff Law  <law@redhat.com>
8843         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8844         unused variable "ann".
8845         (remove_unused_locals): Likewise.
8847         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8848         statement.
8850         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8851         after it is freed.
8853 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8855         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8856         for invalid symbolic addresses.
8857         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8858         larl operands.
8860 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8862         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8863         the argument in calls to fold_truth_not_expr.
8865 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8867         * tree.c (record_node_allocation_statistics): New function.
8868         (make_node_stat, copy_node_stat, build_string): Call it.
8869         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8870         (build1_stat, build_omp_clause): Likewise.
8872 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8874         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8875         last commit.
8877 2011-03-24  Richard Guenther  <rguenther@suse.de>
8879         PR tree-optimization/48271
8880         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8881         blocks that still exist.
8883 2011-03-24  Richard Guenther  <rguenther@suse.de>
8885         PR tree-optimization/48270
8886         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8887         not free datarefs before ddrs.
8889 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8891         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8892         from the address built for a reference with variable offset.
8894 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8896         PR target/48237
8897         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8898         alternatives that can be handled with movq or movabsq insn.
8899         (*movdf_internal): Disable for !TARGET_64BIT.
8900         (*movdf_internal_nointeger): Ditto.
8901         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8903 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8905         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8906         (FUNCTION_ARG_ADVANCE): Likewise.
8907         * tm.texi.in: Change references to them to hook references.
8908         * tm.texi: Regenerate.
8909         * targhooks.c (default_function_arg): Eliminate check for target macro.
8910         (default_function_incoming_arg): Likewise.
8911         (default_function_arg_advance): Likewise.
8912         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8913         (function_arg_advance): Likewise.
8914         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8916 2011-03-24  Richard Guenther  <rguenther@suse.de>
8918         PR middle-end/48269
8919         * tree-object-size.c (addr_object_size): Do not double-account
8920         for MEM_REF offsets.
8922 2011-03-24  Diego Novillo  <dnovillo@google.com>
8924         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
8925         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
8926         (lto_input_data_block): Move from lto-opts.c.  Make extern.
8927         Update all users.
8928         (lto_input_string): Rename from input_string.  Make extern.
8929         Update all users.
8930         * lto-streamer-out.c (lto_output_string_with_length): Rename from
8931         output_string_with_length.
8932         Output 0 to indicate a non-NULL string.  Update all callers to
8933         not emit 0.
8934         (lto_output_string): Rename from output_string.  Make extern.
8935         Update all users.
8936         (lto_output_decl_state_streams): Make extern.
8937         (lto_output_decl_state_refs): Make extern.
8938         * lto-streamer.h (lto_input_string): Declare.
8939         (lto_input_data_block): Declare.
8940         (lto_output_string): Declare.
8941         (lto_output_string_with_length): Declare.
8942         (lto_output_decl_state_streams): Declare.
8943         (lto_output_decl_state_refs): Declare.
8945 2011-03-24  Richard Guenther  <rguenther@suse.de>
8947         PR tree-optimization/46562
8948         * tree.c (build_invariant_address): New function.
8949         * tree.h (build_invariant_address): Declare.
8950         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8951         a renamed function moved ...
8952         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8953         Take valueization callback parameter.
8954         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8955         * gimple-fold.h: New file.
8956         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8957         (ccp_fold, fold_const_aggregate_ref,
8958         fold_ctor_reference, fold_nonarray_ctor_reference,
8959         fold_array_ctor_reference, fold_string_cst_ctor_reference,
8960         get_base_constructor): Move ...
8961         * gimple-fold.c: ... here.
8962         (gimple_fold_stmt_to_constant_1): New function
8963         split out from ccp_fold.  Take a valueization callback parameter.
8964         Valueize all operands.
8965         (gimple_fold_stmt_to_constant): New wrapper function.
8966         (fold_const_aggregate_ref_1): New function split out from
8967         fold_const_aggregate_ref.  Take a valueization callback parameter.
8968         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8969         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8970         invariant POINTER_PLUS_EXPRs to invariant form.
8971         (vn_valueize): New function.
8972         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8973         * tree-vrp.c (vrp_valueize): New function.
8974         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8975         to fold statements to constants.
8976         * tree-ssa-pre.c (eliminate): Properly guard propagation of
8977         function declarations.
8978         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8979         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8981 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8983         * config/h8300/predicates.md (jump_address_operand): Fix register
8984         mode check.
8986 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
8988         * doc/invoke.texi (max-stores-to-sink): Document.
8989         * params.h (MAX_STORES_TO_SINK): Define.
8990         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8991         if either vectorization or if-conversion is disabled.
8992         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8993         tree-vect-data-refs.c vect_equal_offsets.
8994         (dr_equal_offsets_p): New function.
8995         (find_data_references_in_bb): Remove static.
8996         * tree-data-ref.h (find_data_references_in_bb): Declare.
8997         (dr_equal_offsets_p): Likewise.
8998         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8999         (vect_drs_dependent_in_basic_block): Update calls to
9000         vect_equal_offsets.
9001         (vect_check_interleaving): Likewise.
9002         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9003         (cond_if_else_store_replacement): Rename to...
9004         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9005         documentation.
9006         (cond_if_else_store_replacement): New function.
9007         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9008         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9010 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9012         PR target/46934
9013         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9014         to subtract lower bound instead of GEN_INT().
9016 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9018         PR other/48179
9019         PR other/48221
9020         PR other/48234
9021         * doc/extend.texi (Alignment): Move section to match order in TOC.
9022         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9023         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9025 2011-03-23  Jeff Law  <law@redhat.com>
9027         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9028         before removing the edge.
9030         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9031         it may have been freed by redirect_branch_edge or
9032         redirect_edge_succ_nodup.
9034 2011-03-23  Richard Guenther  <rguenther@suse.de>
9036         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9037         (check_va_list_escapes): Likewise.
9038         (check_all_va_list_escapes): Likewise.
9040 2011-03-23  Richard Guenther  <rguenther@suse.de>
9042         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9043         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9044         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9045         (alias.o): Likewise.
9046         (ipa-type-escape.o): Remove.
9047         (ipa-struct-reorg.o): Likewise.
9048         (GTFILES): Remove ipa-struct-reorg.c.
9049         * alias.c: Do not include ipa-type-escape.h.
9050         * tree-ssa-alias.c: Likewise.
9051         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9052         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9053         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9054         and ipa-type-escape passes.
9055         * tree-pass.h (pass_ipa_type_escape): Remove.
9056         (pass_ipa_struct_reorg): Likewise.
9057         * ipa-struct-reorg.h: Remove.
9058         * ipa-struct-reorg.c: Likewise.
9059         * ipa-type-escape.h: Likewise.
9060         * ipa-type-escape.c: Likewise.
9061         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9062         (--param struct-reorg-cold-struct-ratio): Likewise.
9063         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9064         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9065         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9067 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9069         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9070         cpu attribute value.
9071         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9072         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9073         * config/s390/s390.c (processor_flags_table): New constant array.
9074         (s390_handle_arch_option): Remove.
9075         (s390_handle_option): Remove s390_handle_arch_option invocations
9076         and OPT_mwarn_framesize_ handling.
9077         (s390_option_override): Remove s390_handle_arch_option invocation.
9078         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9079         warnings.
9080         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9081         * config/s390/s390.opt (s390_tune, s390_arch)
9082         (march=): Replace s390_arch_option enum and values with
9083         processor_type.  Set variable name to s390_arch.  Set
9084         initialization value.
9085         (mtune=): Replace s390_arch_option with processor_type.  Set
9086         variable name to s390_tune.  Set initialization value.
9088 2011-03-23  Julian Brown  <julian@codesourcery.com>
9090         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9091         accesses which are not naturally aligned.
9093 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9095         PR target/47553
9096         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9098 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9100         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9101         parameter from "int" to "enum insn_code".
9102         (expand_operand_type): New enum.
9103         (expand_operand): New structure.
9104         (create_expand_operand): New function.
9105         (create_fixed_operand, create_output_operand): Likewise
9106         (create_input_operand, create_convert_operand_to): Likewise.
9107         (create_convert_operand_from, create_address_operand): Likewise.
9108         (create_integer_operand): Likewise.
9109         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9110         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9111         (expand_insn, expand_jump_insn): Likewise.
9112         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9113         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9114         (expand_movstr, expand_builtin___clear_cache): Likewise.
9115         (expand_builtin_lock_release): Likewise.
9116         * explow.c (allocate_dynamic_stack_space): Likewise.
9117         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9118         and use the default handling in that case.
9119         * expmed.c (check_predicate_volatile_ok): Delete.
9120         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9121         (emit_cstore): Likewise.
9122         * expr.c (emit_block_move_via_movmem): Likewise.
9123         (set_storage_via_setmem, expand_assignment): Likewise.
9124         (emit_storent_insn, try_casesi): Likewise.
9125         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9126         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9127         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9128         (expand_twoval_unop, expand_twoval_binop): Likewise.
9129         (expand_unop_direct, emit_indirect_jump): Likewise.
9130         (emit_conditional_move, vector_compare_rtx): Likewise.
9131         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9132         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9133         (expand_sync_lock_test_and_set): Likewise.
9134         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9135         (emit_unop_insn): Likewise.
9136         (expand_copysign_absneg): Change icode to an insn_code.
9137         (create_convert_operand_from_type): New function.
9138         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9139         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9140         (expand_insn, expand_jump_insn): Likewise.
9141         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9142         than const_int_operand for operand 2.
9144 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9146         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9147         if possible.
9149 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9151         * emit-rtl.c (emit_pattern_before_noloc): New function.
9152         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9153         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9154         (emit_pattern_after_noloc): New function.
9155         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9156         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9158 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9160         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9161         (__ffsDI2): Likewise.
9163 2011-03-22  Richard Henderson  <rth@redhat.com>
9165         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9166         of !TARGET_ABI_OPEN_VMS.
9167         (alpha_trampoline_init, alpha_start_function): Likewise.
9168         (alpha_expand_epilogue, alpha_file_start): Likewise.
9169         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9170         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9171         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9172         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9173         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9175 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9177         * config/s390/s390-opts.h: New.
9178         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9179         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9180         s390_stack_guard): Remove.
9181         (s390_handle_arch_option): Return void.  Take enum
9182         s390_arch_option value instead of string and searching array.
9183         (s390_handle_option): Don't assert that global structures are in
9184         use.  Access variables via opts pointer.  Use error_at.  Don't use
9185         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9186         s390_handle_arch_option.
9187         (s390_option_override): Update call to s390_handle_arch_option.
9188         (s390_emit_prologue): Use %d format for s390_stack_size in
9189         diagnostic.  Use %wd for HOST_WIDE_INT.
9190         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9191         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9192         * config/s390/s390.opt (config/s390/s390-opts.h): New
9193         HeaderInclude entry.
9194         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9195         s390_arch_flags, s390_warn_framesize): New Variable entries.
9196         (s390_arch_option): New Enum and EnumValue entries.
9197         (march=): Use Enum instead of Var.
9198         (mstack-guard=, mstack-size=): Use UInteger and Var.
9199         (mtune=): Use Enum.
9201 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9203         * config/score/score.c (score_handle_option): Don't assert that
9204         global structures are in use.  Access target_flags via opts
9205         pointer.  Use value of -march= option to determine target_flags
9206         settings.
9207         * config/score/score.opt (march=): Use Enum.
9208         (score_arch): New Enum and EnumValue entries.
9210 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9212         * config/mep/mep.c (option_mtiny_specified): Remove.
9213         (mep_option_override): Move register handling for -mivc2 from
9214         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9215         instead of option_mtiny_specified.
9216         (mep_handle_option): Access target_flags via opts pointer.  Don't
9217         assert that global structures are in use.  Defer part of -mivc2
9218         handling and move it to mep_option_override.
9219         * config/mep/mep.opt (IVC2): New Mask entry.
9220         (mivc2): Use Var and Defer instead of Mask.
9222 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9224         * config/v850/v850-opts.h: New.
9225         * config/v850/v850.c (small_memory): Replace with
9226         small_memory_physical_max array.  Make that array static const.
9227         (v850_handle_memory_option): Take integer value of argument.  Take
9228         gcc_options pointer, option text and location.  Return void.
9229         Update for changes to small memory structures.
9230         (v850_handle_option): Access target_flags via opts pointer.  Don't
9231         assert that global structures are in use.  Update calls to
9232         v850_handle_memory_option.
9233         (v850_encode_data_area): Update references to small memory settings.
9234         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9235         (enum small_memory_type): Move to v850-opts.h.
9236         * config/v850/v850.opt (config/v850/v850-opts.h): New
9237         HeaderInclude entry.
9238         (small_memory_max): New Variable entry.
9239         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9240         (mtda, mzda): Likewise.
9242 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9244         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9245         pointer.  Don't assert that global structures are in use.
9247 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9249         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9250         via opts pointer.  Don't assert that global structures are in use.
9252 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9254         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9255         (munix=93): Use Var.
9256         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9257         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9258         * config/pa/pa-opts.h: New.
9259         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9260         (pa_handle_option): Don't assert that global structures are in
9261         use.  Access target_flags via opts pointer.  Don't handle
9262         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9263         OPT_munix_98 here.
9264         (pa_option_override): Handle deferred OPT_mfixed_range_.
9266 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9268         * config/mn10300/mn10300-opts.h: New.
9269         * config/mn10300/mn10300.c (mn10300_processor,
9270         mn10300_tune_string): Remove.
9271         (mn10300_handle_option): Don't assert that global structures are
9272         in use.  Access mn10300_processor via opts pointer.  Don't handle
9273         OPT_mtune_ here.
9274         * config/mn10300/mn10300.h (enum processor_type): Move to
9275         mn10300-opts.h.
9276         (mn10300_processor): Remove.
9277         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9278         HeaderInclude entry.
9279         (mn10300_processor): New Variable entry.
9280         (mtune=): Use Var.
9282 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9284         * config/microblaze/microblaze.c: Don't include opts.h.
9285         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9286         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9287         (mno-clearbss): Use Var and Warn.
9289 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9291         * config/m32r/m32r-opts.h: New.
9292         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9293         (m32r_handle_option): Don't assert that global structures are in
9294         use.  Access target_flags and m32r_cache_flush_func via opts
9295         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9296         OPT_mno_flush_trap here.
9297         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9298         include of m32r-opts.h.
9299         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9300         HeaderInclude entry.
9301         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9302         (mmodel=): Use Enum and Var.
9303         (m32r_model): New Enum and EnumValue entries.
9304         (mno-flush-trap): Use Var.
9305         (msdata=): Use Enum and Var.
9306         (m32r_sdata): New Enum and EnumValue entries.
9308 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9310         * config/m32c/m32c.c: Don't include opts.h.
9311         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9312         m32c_handle_option): Remove.
9313         (m32c_option_override): Check global_options_set.x_target_memregs
9314         instead of target_memregs_set.
9315         * config/m32c/m32c.h (target_memregs): Remove.
9316         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9317         variable.
9319 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9321         * config/iq2000/iq2000-opts.h: New.
9322         * config/iq2000/iq2000.c: Don't include opts.h.
9323         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9324         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9325         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9326         HeaderInclude entry.
9327         (iq2000_tune): New Variable entry.
9328         (march=): Add comment.  Use Enum.
9329         (iq2000_arch): New Enum and EnumValue entries.
9330         (mcpu=): Use Enum and Var.
9331         (iq2000_tune): New Enum and EnumValue entries.
9333 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9335         * config/ia64/ia64-opts.h: New.
9336         * config/ia64/ia64.c (ia64_tune): Remove.
9337         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9338         here.  Use error_at.
9339         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9340         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9341         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9342         HeaderInclude entry.
9343         (ia64_tune): New Variable entry.
9344         (mfixed-range=): Use Defer and Var.
9345         (mtune=): Use Enum and Var.
9346         (ia64_tune): New Enum and EnumValue entries.
9348 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9350         * config/frv/frv-opts.h: New.
9351         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9352         frv-opts.h.
9353         (frv_cpu_type): Remove.
9354         * config/frv/frv.c: Don't include opts.h.
9355         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9356         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9357         (frv_cpu_type): New Variable entry.
9358         (frv_cpu): New Enum and EnumValue entries.
9360 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9362         * config/cris/cris.c (cris_handle_option): Access target_flags via
9363         opts pointer.  Don't assert that global structures are in use.
9364         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9365         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9367 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9369         * config/bfin/bfin-opts.h: New.
9370         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9371         bfin_si_revision, bfin_workarounds): Remove.
9372         (bfin_cpus): Make static const.
9373         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9374         not bfin_lib_id_given.
9375         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9376         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9377         pointer. Use error_at.  Don't assert that global structures are in use.
9378         * config/bfin/bfin.h: Include bfin-opts.h.
9379         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9380         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9381         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9382         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9383         entries.
9385 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9387         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9388         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9389         or -msoft-float here.
9390         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9391         -msoft-float and -mhard-float.
9392         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9393         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9394         msoft-float.
9395         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9396         -msoft-float.
9397         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9398         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9399         not mhard-float.
9400         (LIBGCC_SPEC): Don't handle -msoft-float.
9401         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9402         -mhard-float.
9403         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9404         msoft-float.
9405         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9406         -mfloat-abi=*, not -msoft-float and -mhard-float.
9407         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9408         -msoft-float.
9409         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9410         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9411         mhard-float and msoft-float.
9412         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9413         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9414         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9415         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9416         mhard-float.
9417         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9418         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9419         msoft-float.
9420         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9421         not mhard-float.
9422         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9423         not msoft-float.
9425 2011-03-22  Richard Henderson  <rth@redhat.com>
9427         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9428         TARGET_ABI_WINDOWS_NT.
9429         (alpha_output_function_end_prologue): Likewise.
9430         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9431         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9432         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9433         (trap, *movsi_nt_vms): Likewise.
9434         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9435         (*tablejump_osf_nt_internal): Remove.
9436         * config/alpha/predicates.md (input_operand): Only test Pmode.
9438 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9440         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9441         via opts pointer.  Use error_at.  Don't assert that global
9442         structures are in use.
9444 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9446         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9447         (ix86_handle_option): Access ix86_isa_flags and
9448         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9449         global structures are in use.
9450         (ix86_function_specific_save, ix86_function_specific_restore):
9451         Update ix86_isa_flags_explicit field name.
9452         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9453         (ix86_isa_flags_explicit): Rename TargetSave entry to
9454         x_ix86_isa_flags_explicit.
9456 2011-03-22  Richard Henderson  <rth@redhat.com>
9458         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9459         (alpha_option_override, direct_return): Likewise.
9460         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9461         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9462         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9463         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9464         (alpha_expand_epilogue, alpha_end_function): Likewise.
9465         (alpha_init_libfuncs): Likewise.
9466         (struct machine_function): Remove unicosmk members.
9467         (print_operand) ['t']: Remove.
9468         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9469         unicosmk_output_module_name, unicosmk_output_common,
9470         current_section_align, unicosmk_output_text_section_asm_op,
9471         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9472         unicosmk_section_type_flags, unicosmk_unique_section,
9473         unicosmk_asm_named_section, unicosmk_insert_attributes,
9474         unicosmk_output_align, unicosmk_defer_case_vector,
9475         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9476         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9477         unicosmk_output_ssib, unicosmk_add_call_info_word,
9478         unicosmk_extern_head, unicosmk_output_default_externs,
9479         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9480         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9481         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9482         * config/alpha/alpha-protos.h: Update.
9483         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9484         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9485         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9486         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9487         (*mulsi_se, mulvsi3): Likewise.
9488         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9489         (*divmodsi_internal, call, call_value, realign): Likewise.
9490         (moddi3, umoddi3): Likewise; remove duplicate expander.
9491         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9492         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9493         (*movdi_nofix): Remove r/U alternative.
9494         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9495         * config/alpha/constraints.md ("U"): Remove.
9496         * config/alpha/predicates.md (call_operand"): Don't test
9497         TARGET_ABI_UNICOSMK.
9499 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9501         * target.def (handle_option): Take gcc_options and
9502         cl_decoded_option pointers and location_t.
9503         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9504         * doc/tm.texi: Regenerate.
9505         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9506         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9507         * lto-opts.c (lto_reissue_options): Generate option structure for
9508         targetm.handle_option call.
9509         * opts.c (target_handle_option): Update call to
9510         targetm.handle_option.  Remove assertions about values now passed
9511         down to hook.
9512         * targhooks.c (default_target_handle_option): New.
9513         * targhooks.h (default_target_handle_option): Declare.
9514         * config/alpha/alpha.c: Include opts.h.
9515         (alpha_handle_option): Update to new hook interface.
9516         * config/arm/arm.c: Include opts.h.
9517         (arm_handle_option): Update to new hook interface.
9518         * config/arm/t-arm (arm.o): Update dependencies.
9519         * config/bfin/bfin.c: Include opts.h.
9520         (bfin_handle_option): Update to new hook interface.
9521         * config/cris/cris.c: Include opts.h.
9522         (cris_handle_option): Update to new hook interface.
9523         * config/frv/frv.c: Include opts.h.
9524         (frv_handle_option): Update to new hook interface.
9525         * config/i386/i386.c: Include opts.h.
9526         (ix86_handle_option): Update to new hook interface.
9527         (ix86_valid_target_attribute_inner_p): Generate option structure
9528         for call to ix86_handle_option.
9529         * config/i386/t-i386 (i386.o): Update dependencies.
9530         * config/ia64/ia64.c: Include opts.h.
9531         (ia64_handle_option): Update to new hook interface.
9532         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9533         * config/iq2000/iq2000.c: Include opts.h.
9534         (iq2000_handle_option): Update to new hook interface.
9535         * config/m32c/m32c.c: Include opts.h.
9536         (m32c_handle_option): Update to new hook interface.
9537         * config/m32r/m32r.c: Include opts.h.
9538         (m32r_handle_option): Update to new hook interface.
9539         * config/m68k/m68k.c: Include opts.h.
9540         (m68k_handle_option): Update to new hook interface.
9541         * config/mep/mep.c: Include opts.h.
9542         (mep_handle_option): Update to new hook interface.
9543         * config/microblaze/microblaze.c: Include opts.h.
9544         (microblaze_handle_option): Update to new hook interface.
9545         * config/mips/mips.c: Include opts.h.
9546         (mips_handle_option): Update to new hook interface.
9547         * config/mn10300/mn10300.c: Include opts.h.
9548         (mn10300_handle_option): Update to new hook interface.
9549         * config/pa/pa.c: Include opts.h.
9550         (pa_handle_option): Update to new hook interface.
9551         * config/pdp11/pdp11.c: Include opts.h.
9552         (pdp11_handle_option): Update to new hook interface.
9553         * config/rs6000/rs6000.c: Include opts.h.
9554         (rs6000_handle_option): Update to new hook interface.
9555         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9556         * config/rx/rx.c: Include opts.h.
9557         (rx_handle_option): Update to new hook interface.
9558         * config/s390/s390.c: Include opts.h.
9559         (s390_handle_option): Update to new hook interface.
9560         * config/score/score.c: Include opts.h.
9561         (score_handle_option): Update to new hook interface.
9562         * config/sh/sh.c: Include opts.h.
9563         (sh_handle_option): Update to new hook interface.
9564         * config/sparc/sparc.c: Include opts.h.
9565         (sparc_handle_option): Update to new hook interface.
9566         * config/v850/v850.c: Include opts.h.
9567         (v850_handle_option): Update to new hook interface.
9569 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9571         * gcc.c (driver_unknown_option_callback): Only permit and save
9572         unknown -Wno- options.
9573         (driver_wrong_lang_callback): Save options directly instead of via
9574         driver_unknown_option_callback.
9576 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9578         * combine.c (simplify_set): Try harder to find the best CC mode when
9579         simplifying a nested COMPARE on the RHS.
9581 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9583         * config/alpha/gnu.h: Remove.
9584         * config/arc: Remove directory.
9585         * config/arm/netbsd.h: Remove.
9586         * config/arm/t-pe: Remove.
9587         * config/crx: Remove directory.
9588         * config/i386/netbsd.h: Remove.
9589         * config/m68hc11: Remove directory.
9590         * config/m68k/uclinux-oldabi.h: Remove.
9591         * config/mcore/mcore-pe.h: Remove.
9592         * config/mcore/t-mcore-pe: Remove.
9593         * config/netbsd-aout.h: Remove.
9594         * config/rs6000/gnu.h: Remove.
9595         * config/sh/sh-symbian.h: Remove.
9596         * config/sh/symbian-base.c: Remove.
9597         * config/sh/symbian-c.c: Remove.
9598         * config/sh/symbian-cxx.c: Remove.
9599         * config/sh/symbian-post.h: Remove.
9600         * config/sh/symbian-pre.h: Remove.
9601         * config/sh/t-symbian: Remove.
9602         * config/svr3.h: Remove.
9603         * config/vax/netbsd.h: Remove.
9604         * config.build: Don't handle i[34567]86-*-pe.
9605         * config.gcc: Remove handling of deprecations for most deprecated
9606         targets.
9607         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9608         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9609         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9610         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9611         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9612         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9613         Remove cases.
9614         * config.host: Don't handle i[34567]86-*-pe.
9615         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9616         (ASM_SPEC32): Don't handle -mcall-gnu.
9617         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9618         -mcall-gnu.
9619         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9620         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9621         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9622         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9623         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9624         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9625         conditional on SYMBIAN.
9626         * configure.ac: Don't handle powerpc*-*-gnu*.
9627         * configure: Regenerate.
9628         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9629         * doc/install-old.texi (m6811, m6812): Don't mention.
9630         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9631         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9632         (m68k-uclinuxoldabi): Don't mention.
9633         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9634         Remove.
9635         (-mcall-gnu): Remove.
9636         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9637         families): Remove constraint documentation.
9639 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9641         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9642         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9643         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9645 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9647         PR target/48226
9648         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9649         vector when peeking at the next token for vector, don't expand the
9650         keywords.
9652 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9654         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9655         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9656         * config/avr/avr.c (init_cumulative_args)
9657         (avr_function_arg_advance): Use it.
9658         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9659         sibcall epilogues.
9660         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9661         (avr_function_ok_for_sibcall): ...this new function.
9662         (avr_lookup_function_attribute1): New static Function.
9663         (avr_naked_function_p, interrupt_function_p)
9664         (signal_function_p, avr_OS_task_function_p)
9665         (avr_OS_main_function_p): Use it.
9666         * config/avr/avr.md ("sibcall", "sibcall_value")
9667         ("sibcall_epilogue"): New expander.
9668         ("*call_insn", "*call_value_insn"): New insn.
9669         ("call_insn", "call_value_insn"): Remove
9670         ("call", "call_value", "epilogue"): Change expander to handle
9671         sibling calls.
9673 2011-03-21  Nick Clifton  <nickc@redhat.com>
9675         * doc/invoke.texi (Overall Options): Move closing brace to end of
9676         options list.
9677         (Optimization Options): Add missing @gol.
9678         (Directory Options): Likewise.
9679         (i386 and x86-64 Options): Likewise.
9680         (RS6000 and PowerPC Options): Likewise.
9681         (i386 and x86-64 Windows Options): Likewise.
9682         (V850 Options): Add text missing from descriptions.
9684 2011-03-22  Richard Henderson  <rth@redhat.com>
9686         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9687         (avr_incoming_return_addr_rtx): New.
9688         (emit_push_byte): New.
9689         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9690         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9691         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9692         (emit_pop_byte): New.
9693         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9694         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9695         (INCOMING_RETURN_ADDR_RTX): New.
9696         (INCOMING_FRAME_SP_OFFSET): New.
9697         (ARG_POINTER_CFA_OFFSET): New.
9698         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9699         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9700         (pophi): Remove.
9702         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9704 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9706         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9707         (FUNCTION_ARG_ADVANCE): Likewise.
9708         * tm.texi.in: Change references to them to hook references.
9709         * tm.texi: Regenerate.
9710         * targhooks.c (default_function_arg): Eliminate check for target
9711         macro.
9712         (default_function_incoming_arg): Likewise.
9713         (default_function_arg_advance): Likewise.
9714         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9715         (function_arg_advance): Likewise.
9716         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9718 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9720         * tree.c (build_call_1): New function.
9721         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9723 2011-03-22  Richard Guenther  <rguenther@suse.de>
9725         PR tree-optimization/48228
9726         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9727         for single-arg PHIs.
9729 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9731         PR rtl-optimization/48143
9732         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9733         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9734         sse2_cvtps2pd): Likewise.
9736 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9738         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9740 2011-03-22  Richard Guenther  <rguenther@suse.de>
9742         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9743         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9744         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9745         and REALIGN_LOAD_EXPR.
9746         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9747         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9748         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9749         DOT_PROD_EXPR case ...
9750         (expand_expr_real_2): ... here.
9751         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9752         and REALIGN_LOAD_EXPR.
9753         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9754         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9755         (vect_create_epilog_for_reduction): Likewise.
9756         (vectorizable_reduction): Likewise.
9757         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9758         * tree-vect-stmts.c (vectorizable_load): Likewise.
9760 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9762         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9764 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9766         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9767         handling for PLTOFF/GOTOFF.
9769 2011-03-22  Nick Clifton  <nickc@redhat.com>
9771         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9772         trailing backslash from the end of the macro definition.
9774 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9776         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9777         and PLT unspecs.
9779 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9781         * expr.h (prepare_operand): Move to...
9782         * optabs.h (prepare_operand): ...here and change the insn code
9783         parameter from "int" to "enum insn_code".
9784         (insn_operand_matches): Declare.
9785         * expr.c (init_expr_target): Use insn_operand_matches.
9786         (compress_float_constant): Likewise.
9787         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9788         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9789         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9790         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9791         Likewise.
9792         (gen_cond_trap): Likewise.
9793         (prepare_operand): Likewise.  Change icode to an insn_code.
9794         (insn_operand_matches): New function.
9795         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9796         * reload1.c (gen_reload): Likewise.
9797         * targhooks.c (default_secondary_reload): Likewise.
9799 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9801         * config/alpha/alpha.md (unspec): New define_c_enum.
9802         (unspecv): Ditto.
9804 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9806         PR debug/48214
9807         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9808         between a call and its CALL_ARG_LOCATION note.
9810 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9812         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9814 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9816         PR c/42544
9817         PR c/48197
9818         * c-common.c (shorten_compare): If primopN is first sign-extended
9819         to opN and then zero-extended to result type, set primopN to opN.
9821 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9823         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9824         for barrier handlers.
9826 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9828         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9829         UNSPEC constants to be in the unspec enumeration, and redefine
9830         all UNSPECV constants to be in the unspecv enumeration, so that
9831         dumps print which unspec/unspec_volatile this is.
9832         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9833         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9834         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9835         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9836         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9838         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9839         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9840         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9841         * config/rs6000/sync.md (isync, lwsync): Ditto.
9843 2011-03-21  Richard Guenther  <rguenther@suse.de>
9845         * params.def (lto-min-partition): Fix typo.
9847 2011-03-21  Richard Guenther  <rguenther@suse.de>
9849         PR c/47939
9850         * c-decl.c (grokdeclarator): Drop to the main variant only
9851         for array types.  Drop flag_gen_aux_info check.
9853 2011-03-21  Richard Guenther  <rguenther@suse.de>
9855         PR translation/47911
9856         * params.def (lto-partitions): Fix typo.
9857         (lto-min-partition): Fix wording.
9859 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9861         * config/rs6000/t-freebsd: Remove duplication from file.
9863 2011-03-21  Richard Guenther  <rguenther@suse.de>
9865         PR middle-end/47661
9866         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9868 2011-03-21  Richard Guenther  <rguenther@suse.de>
9870         PR lto/48210
9871         * params.def (lto-partitions): Require at least 1 partition.
9873 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9875         * gthr-solaris.h: Remove.
9876         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9877         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9878         (LIB_SPEC): Likewise.
9879         * config/sol2.opt (threads): Remove.
9880         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9881         (sparc*-*-solaris2*): Likewise.
9882         * configure.ac (enable_threads): Enable solaris support.
9883         * configure: Regenerate.
9884         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9885         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9886         solaris.
9888 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9890         * config.gcc: Obsolete *-*-solaris2.8*.
9891         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9893 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9895         PR bootstrap/48135
9896         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9897         reference.  Solaris 8 perl works.
9899 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9901         PR bootstrap/48135
9902         * doc/install.texi (Prerequisites): Move jar etc. up.
9903         Explain support library version requirements.
9905 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9907         PR bootstrap/48135
9908         * doc/install.texi (Prerequisites): Move Perl to build
9909         requirements.  Always necessary on Solaris 2 with Sun ld.
9911 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9913         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9914         binutils 2.21.
9915         (Specific, i?86-*-solaris2.[89]): Likewise.
9916         (Specific, i?86-*-solaris2.10): Likewise.
9917         (Specific, mips-sgi-irix6): Likewise.
9918         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9919         Update for binutils 2.21.
9921 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9923         * configure.ac (gcc_cv_lto_plugin): Fix typo.
9924         Allow -fuse-linker-plugin for non-default plugin linker.
9925         * configure: Regenerate.
9927 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9929         PR bootstrap/48167
9930         * gengtype.c (files_rules): Added rule for cp/parser.h.
9932 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9934         PR target/48213
9935         * config/s390/s390.c (s390_delegitimize_address): Don't call
9936         lowpart_subreg if orig_x has BLKmode.
9938 2011-03-21  Kai Tietz  <ktietz@redhat.com>
9940         PR target/12171
9941         * doc/plugins.texi: Adjust documentation for plugin register_callback.
9942         * tree.h (attribute_spec): Add new member affects_type_identity.
9943         * attribs.c (empty_attribute_table): Adjust attribute_spec
9944         initializers.
9945         * config/alpha/alpha.c: Likewise.
9946         * config/arc/arc.c: Likewise.
9947         * config/arm/arm.c: Likewise.
9948         * config/avr/avr.c: Likewise.
9949         * config/bfin/bfin.c: Likewise.
9950         * config/crx/crx.c: Likewise.
9951         * config/darwin.h: Likewise.
9952         * config/h8300/h8300.c: Likewise.
9953         * config/i386/cygming.h: Likewise.
9954         * config/i386/i386.c: Likewise.
9955         * config/ia64/ia64.c: Likewise.
9956         * config/m32c/m32c.c: Likewise.
9957         * config/m32r/m32r.c: Likewise.
9958         * config/m68hc11/m68hc11.c: Likewise.
9959         * config/m68k/m68k.c: Likewise.
9960         * config/mcore/mcore.c: Likewise.
9961         * config/mep/mep.c: Likewise.
9962         * config/microblaze/microblaze.c: Likewise.
9963         * config/mips/mips.c: Likewise.
9964         * config/rs6000/rs6000.c: Likewise.
9965         * config/rx/rx.c: Likewise.
9966         * config/sh/sh.c: Likewise.
9967         * config/sol2.h: Likewise.
9968         * config/sparc/sparc.c: Likewise.
9969         * config/spu/spu.c: Likewise.
9970         * config/stormy16/stormy16.c: Likewise.
9971         * config/v850/v850.c: Likewise.
9973 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
9975         * simplify-rtx.c (simplify_binary_operation_1): Handle
9976         (xor (and A B) C) case when B and C are both constants.
9978 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
9980         * tree-dfa.c (add_referenced_var): Fix typo in comment.
9982 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
9984         PR bootstrap/48168
9985         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9987 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
9989         PR rtl-optimization/48156
9990         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9991         assume df and df_lr are not NULL.
9993 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9995         PR debug/48023
9996         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9997         between a call and its CALL_ARG_LOCATION note.
9999 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10001         PR debug/48178
10002         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10003         between a call and its corresponding CALL_ARG_LOCATION note.
10005 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10007         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10008         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10009         * haifa-sched.c (setup_ref_regs): Ditto.
10010         * caller-save.c (add_used_regs_1): Ditto.
10011         * dse.c (look_for_hardregs): Ditto.
10012         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10013         * sched-rgn.c (check_live_1): Ditto.
10015 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10017         * c-decl.c (diagnose_mismatched_decls): Give an error for
10018         redefining a typedef with variably modified type.
10020 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10022         * c-decl.c (grokfield): Don't allow typedefs for structures or
10023         unions with no tag by default.
10024         * doc/extend.texi (Unnamed Fields): Update.
10026 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10028         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10029         Rewrite using indirect functions.
10030         (lwp_slwpcb): Ditto.
10031         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10032         (avx_vinsertf128<mode>): Ditto.
10034 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10036         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10037         unspecs.
10039 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10041         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10042         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10044 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10046         PR rtl-optimization/48170
10047         * gcse.c (hoist_code): Remove bogus asserts.
10049 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10051         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10052         computation for prologue/epilogue.
10054 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10056         * Makefile.in (check-consistency): Remove.
10058 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10060         PR debug/48176
10061         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10062         arange_table_in_use is 0, but either text_section_used or
10063         cold_text_section_used is true.  Don't call it if
10064         !info_section_emitted.
10066 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10068         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10069         FUNCTION_VALUE_REGNO_P): Remove.
10070         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10071         Remove.
10072         * config/avr/avr.c (avr_ret_register): Make static inline.
10073         (avr_function_value_regno_p): New function.
10074         (avr_libcall_value): Make static. Add 'func' argument.
10075         (avr_function_value): Make static. Rename 'func' argument to
10076         'fn_decl_or_type', forward it to avr_libcall_value. Call
10077         avr_ret_register function instead of RET_REGISTER macro.
10078         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10080 2011-03-18  Jason Merrill  <jason@redhat.com>
10082         PR c++/23372
10083         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10085 2011-03-18  Richard Guenther  <rguenther@suse.de>
10087         * doc/install.texi (--enable-gold): Remove.
10088         (--with-plugin-ld): Document.
10089         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10091 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10093         PR middle-end/47790
10094         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10095         again after expansion changes.
10097 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10099         * combine.c (try_combine): Do simplification only call of
10100         subst() on i2 even when i1 is present. Update comments.
10102 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10104         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10105         and UNSPEC_PCREL_SYMOFF.
10107 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10109         * config/s390/s390.md: Use define_c_enum for the unspec constant
10110         definitions.
10112 2011-03-18  Richard Henderson  <rth@redhat.com>
10113             Jakub Jelinek  <jakub@redhat.com>
10115         PR bootstrap/48161
10116         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10117         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10119 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10121         PR middle-end/47725
10122         * combine.c (cant_combine_insn_p): Don't check zero/sign
10123         extended hard registers.
10125 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10127         PR middle-end/47725
10128         * combine.c (cant_combine_insn_p): Check zero/sign extended
10129         hard registers.
10131 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10133         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10134         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10135         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10136         Change return type to bool.
10137         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10139 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10141         PR debug/48163
10142         * var-tracking.c (prepare_call_arguments): If CALL target
10143         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10144         pc instead of looking it up using cselib_lookup and use
10145         Pmode for it if x has VOIDmode.
10146         * dwarf2out.c (gen_subprogram_die): If also both first and
10147         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10149         PR debug/48163
10150         * function.c (assign_parms): For data.passed_pointer parms
10151         use MEM of data.entry_parm instead of data.entry_parm itself
10152         as DECL_INCOMING_RTL.
10153         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10154         also when passed and declared mode is the same, DECL_RTL
10155         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10156         a MEM too.
10158 2011-03-16  Jeff Law  <law@redhat.com>
10160         PR rtl-optimization/37273
10161         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10162         handle them like argument loads from stack slots.  Do not double
10163         count memory for memory constants and argument loads from stack slots.
10165 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10167         PR debug/48160
10168         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10170 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10172         PR target/48171
10173         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10175 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10177         PR bootstrap/48153
10178         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10179         if dwarf_strict.
10180         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10181         Clear call_arg_locations and call_arg_loc_last always.
10183         PR middle-end/48152
10184         * var-tracking.c (prepare_call_arguments): If argument needs to be
10185         passed by reference, adjust argtype and mode.
10187 2011-03-17  Richard Guenther  <rguenther@suse.de>
10189         PR middle-end/48134
10190         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10191         a value make sure to fold the statement.
10193 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10195         PR target/43872
10196         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10197         return condition with !cfun->calls_alloca.
10199 2011-03-17  Richard Guenther  <rguenther@suse.de>
10201         PR bootstrap/48148
10202         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10203         origin for decls in other ltrans units.
10204         (input_varpool_node): Likewise.
10206 2011-03-17  Richard Guenther  <rguenther@suse.de>
10208         PR middle-end/48165
10209         * tree-object-size.c (compute_object_offset): Properly return
10210         the offset operand of MEM_REFs as sizetype.
10212 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10214         PR rtl-optimization/48141
10215         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10216         * dse.c: Include params.h.
10217         (active_local_stores_len): New variable.
10218         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10219         to NULL.
10220         (record_store, check_mem_read_rtx): Decrease it when removing
10221         from the chain.
10222         (scan_insn): Likewise.  Increase it when adding to chain, if it
10223         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10224         set active_local_stores to NULL before the addition.
10225         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10227         PR rtl-optimization/48141
10228         * dse.c (record_store): If no positions are needed in an insn
10229         that cannot be deleted, at least unchain it from active_local_stores.
10231 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10233         PR debug/47510
10234         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10235         (lookup_type_die_strip_naming_typedef): ... here.
10236         (get_context_die): Use it.
10237         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10238         the anonymous struct named by the naming typedef.
10240 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10242         PR target/48154
10243         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10244         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10246 2011-03-16  Jeff Law  <law@redhat.com>
10248         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10249         check for operands of conditional.  Allow type to be a pointer.
10251 2011-03-16  Richard Guenther  <rguenther@suse.de>
10253         PR tree-optimization/48149
10254         * fold-const.c (fold_binary_loc): Fold
10255         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10257 2011-03-16  Richard Guenther  <rguenther@suse.de>
10259         PR tree-optimization/26134
10260         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10261         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10262         (non_rewritable_mem_ref_base): Handle complex type component
10263         accesses, constrain offsets for vector and complex extracts
10264         more properly.
10266 2011-03-16  Richard Guenther  <rguenther@suse.de>
10268         PR tree-optimization/48146
10269         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10270         operands avoiding the need for renaming.
10272 2011-03-16  Richard Guenther  <rguenther@suse.de>
10274         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10275         constant folding.  Move MEM_REF canonicalization first.
10276         Rely on fold_const_aggregate_ref for initializer folding.
10277         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10279 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10281         PR middle-end/48136
10282         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10283         arg0/arg1 or their arguments are always fold converted to matching
10284         types.
10286         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10287         to nargs.
10289 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10291         PR lto/46944
10292         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10293         Handle in-tree gold.
10294         (ld_vers): Extract binutils version for gold.
10295         (gcc_cv_ld_hidden): Handle gold here.
10296         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10297         * configure: Regenerate.
10298         * config.in: Regenerate.
10299         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10300         -fuse-linker-plugin otherwise.
10301         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10302         (LINK_COMMAND_SPEC): Use it.
10303         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10305 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10307         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10308         * calls.c: Remove debug.h include.
10309         (emit_call_1): Don't call virtual_call_token debug hook.
10310         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10311         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10312         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10313         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10314         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10315         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10316         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10317         dwarf2out_virtual_call): Remove.
10318         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10319         copy_call_info and virtual_call hooks.
10320         (dwarf2out_init): Don't initialize vcall_insn_table,
10321         debug_dcall_section and debug_vcall_section.
10322         (prune_unused_types): Don't mark nodes from dcall_table.
10323         (dwarf2out_finish): Don't output dcall or vcall tables.
10324         * final.c (final_scan_insn): Don't call direct_call or
10325         virtual_call debug hooks.
10326         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10327         virtual_call_token, copy_call_info and virtual_call hooks.
10328         (debug_nothing_uid): Remove prototype.
10329         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10330         copy_call_info and virtual_call hooks.
10331         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10332         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10333         * debug.c (do_nothing_debug_hooks): Likewise.
10334         (debug_nothing_uid): Remove.
10335         * doc/invoke.texi (-fenable-icf-debug): Remove.
10336         * common.opt (-fenable-icf-debug): Likewise.
10338         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10339         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10340         call's MEM.  Handle functions returning aggregate through a hidden
10341         first pointer.  For virtual calls add clobbered pc to call arguments
10342         chain.
10343         * dwarf2out.c (gen_subprogram_die): Emit
10344         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10345         can't be emitted.
10347         PR debug/45882
10348         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10349         * rtl.h (ENTRY_VALUE_EXP): Define.
10350         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10351         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10352         * print-rtl.c (print_rtx): Likewise.
10353         * gengtype.c (adjust_field_rtx_def): Likewise.
10354         * var-tracking.c (vt_add_function_parameter): Adjust
10355         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10356         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10357         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10358         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10359         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10361         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10362         Call var_location debug hook even on CALL_INSNs.
10363         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10364         * rtl.def (ENTRY_VALUE): New.
10365         * dwarf2out.c: Include cfglayout.h.
10366         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10367         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10368         (struct call_arg_loc_node): New type.
10369         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10370         tail_call_site_count): New variables.
10371         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10372         DW_TAG_GNU_call_site_parameter.
10373         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10374         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10375         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10376         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10377         and DW_AT_GNU_all_source_call_sites.
10378         (mem_loc_descriptor): Handle ENTRY_VALUE.
10379         (add_src_coords_attributes): Don't add enything if
10380         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10381         (dwarf2out_abstract_function): Save and clear call_arg_location,
10382         call_site_count and tail_call_site_count around dwarf2out_decl call.
10383         (gen_call_site_die): New function.
10384         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10385         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10386         (dwarf2out_function_decl): Clear call_arg_locations,
10387         call_arg_loc_last, set call_site_count and tail_call_site_count
10388         to -1 and free block_map.
10389         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10390         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10391         followed by any real instructions.
10392         (dwarf2out_begin_function): Set call_site_count and
10393         tail_call_site_count to 0.
10394         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10395         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10396         attempt to force a DIE for it and worst case remove the attribute.
10397         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10398         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10399         the decl itself.
10400         * var-tracking.c: Include tm_p.h.
10401         (vt_stack_adjustments): For calls call note_register_arguments.
10402         (argument_reg_set): New variable.
10403         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10404         ensure the VALUE is resolved.
10405         (call_arguments): New variable.
10406         (prepare_call_arguments): New function.
10407         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10408         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10409         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10410         always use the best expression.
10411         (vt_expand_loc): Add ignore_cur_loc argument.
10412         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10413         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10414         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10415         note for all calls.
10416         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10417         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10418         argument.  Don't call cselib_preserve_only_values and
10419         cselib_reset_table.
10420         (note_register_arguments): New function.
10421         (vt_initialize): Compute argument_reg_set.  Call
10422         vt_add_function_parameters before processing basic blocks instead of
10423         afterwards.  For calls call prepare_call_arguments before calling
10424         cselib_process_insn.
10425         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10426         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10427         (var-tracking.o): Depend on $(TM_P_H).
10428         * cfglayout.h (insn_scope): New prototype.
10429         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10430         * cfglayout.c (insn_scope): No longer static.
10431         * insn-notes.def (CALL_ARG_LOCATION): New.
10432         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10433         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10434         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10435         nothing for DECL_EXTERNAL BLOCK_VARS.
10437 2011-03-16  Alan Modra  <amodra@gmail.com>
10439         PR target/45844
10440         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10441         create invalid offset address for vsx splat insn.
10442         * config/rs6000/predicates.md (splat_input_operand): New.
10443         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10445 2011-03-15  Xinliang David Li  <davidxl@google.com>
10447         PR c/47837
10448         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10449         (normalize_preds): New function.
10450         (is_use_properly_guarded): Normalize def predicates.
10452 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10454         PR target/46788
10455         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10456         in the output template.
10458 2011-03-15  Richard Guenther  <rguenther@suse.de>
10460         PR middle-end/47650
10461         * tree-pretty-print.c (dump_function_declaration): Properly
10462         dump unprototyped and varargs function types.
10464 2011-03-15  Richard Guenther  <rguenther@suse.de>
10466         PR tree-optimization/13954
10467         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10468         and friends.
10470 2011-03-15  Richard Guenther  <rguenther@suse.de>
10472         PR tree-optimization/48037
10473         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10474         selects into BIT_FIELD_REFs.
10475         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10476         vector select.
10478 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10480         PR tree-optimization/48129
10481         * builtins.c (fold_builtin_snprintf): Convert to type of
10482         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10483         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10485 2011-03-15  Richard Guenther  <rguenther@suse.de>
10487         PR tree-optimization/41490
10488         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10489         value but with VUSE.
10490         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10491         return statements.
10492         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10493         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10494         * tree-tailcall.c (find_tail_calls): Ignore returns.
10496 2011-03-15  Richard Guenther  <rguenther@suse.de>
10498         PR middle-end/48031
10499         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10500         or variable-indexed array accesses when in gimple form.
10502 2011-03-15  Richard Guenther  <rguenther@suse.de>
10504         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10506 2011-03-15  Alan Modra  <amodra@gmail.com>
10508         PR target/48032
10509         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10510         presume symbol_refs without a symbol_ref_decl are suitably
10511         aligned, nor other trees we may see here.  Handle anchor symbols.
10512         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10513         Check cmodel=medium addresses.  Adjust all calls.
10514         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10515         creating cmodel=medium optimized access to locals.
10516         * config/rs6000/constraints.md (R): Pass QImode to
10517         legitimate_constant_pool_address_p.
10518         * config/rs6000/predicates.md (input_operand): Pass mode to
10519         legitimate_constant_pool_address_p.
10520         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10521         Update prototype.
10523 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10525         PR target/48053
10526         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10527         64-bit constants being loaded into registers other than GPRs such
10528         as loading 0 into a VSX register.
10530 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10532         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10534 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10536         PR middle-end/47917
10537         * builtins.c (fold_builtin_snprintf): New function.
10538         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10539         (fold_builtin_4): Likewise.
10541         PR middle-end/38878
10542         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10543         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10544         and C - X == X also strip nops from +/-/p+ operand.
10545         When optimizing -X == C, fold C to arg0's type.
10547         PR debug/47946
10548         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10549         emit it as add_AT_int instead of add_AT_unsigned.
10551 2011-03-14  Tom Tromey  <tromey@redhat.com>
10553         * unwind-dw2.c: Include sys/sdt.h if it exists.
10554         (_Unwind_DebugHook): Use STAP_PROBE2.
10555         * config.in, configure: Rebuild.
10556         * configure.ac: Check for sys/sdt.h.
10558 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10560         * config/i386/i386.md (ROUND_FLOOR): New constant.
10561         (ROUND_CEIL): Ditto.
10562         (ROUND_TRUNC): Ditto.
10563         (ROUND_MXCSR): Ditto.
10564         (ROUND_NO_EXC): Ditto.
10565         (rint<mode>2): Use new defines instead of numerical constants.
10566         (floor<mode>2): Ditto.
10567         (ceil<mode>2): Ditto.
10568         (btrunc<mode>2): Ditto.
10569         * config/i386/i386-builtin-types.def: Define ROUND function type
10570         aliases.
10571         * config/i386/i386.c (enum ix86_builtins): Add
10572         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10573         (struct builtin_description): Add
10574         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10575         (ix86_expand_sse_round): New static function.
10576         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10577         function types.
10578         (ix86_builtin_vectorized_function): Handle
10579         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10581 2011-03-14  Tom Tromey  <tromey@redhat.com>
10583         * c-parser.c (c_parser_asm_string_literal): Clear
10584         warn_overlength_strings.
10586 2011-03-14  Tom Tromey  <tromey@redhat.com>
10588         * c-parser.c (disable_extension_diagnostics): Save
10589         warn_overlength_strings.
10590         (restore_extension_diagnostics): Restore warn_overlength_strings.
10592 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10594         * BASE-VER: Change to 4.7.0.
10596 2011-03-14  Richard Guenther  <rguenther@suse.de>
10598         PR middle-end/48098
10599         * tree.c (build_vector_from_val): Adjust assert to requirements
10600         and reality.
10602 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10604         PR bootstrap/48102
10605         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10607 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10609         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10610         terms of target_flags_explicit. Adjust copyright year.
10612         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10613         * config/rs6000/t-freebsd: New file. Add override for
10614         LIB2FUNCS_EXTRA.
10616 2011-03-13  Chris Demetriou  <cgd@google.com>
10618         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10619         (-fno-diagnostics-show-option): this, to reflect current default.
10620         (-Werror=): Update text about -fno-diagnostics-show-option.
10622 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10624         PR target/48053
10625         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10626         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10627         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10628         mode is not V2DImode or V2DFmode.
10629         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10630         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10631         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10632         registers to 0.
10633         (movdi_internal64): Likewise.
10635 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10637         PR tree-optimization/47127
10638         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10639         parameter.
10640         (set_cloog_options): Same.
10641         (scop_to_clast): Same.
10642         (print_clast_stmt): Do not call cloog_state_malloc and
10643         cloog_state_free.
10644         (print_generated_program): Same.
10645         (gloog): Same.
10646         * graphite-clast-to-gimple.h (cloog_state): Declared.
10647         (scop_to_clast): Adjust declaration.
10648         * graphite.c (cloog_state): Defined here.
10649         (graphite_initialize): Call cloog_state_malloc.
10650         (graphite_finalize): Call cloog_state_free.
10652 2011-03-11  Jason Merrill  <jason@redhat.com>
10654         * attribs.c (lookup_attribute_spec): Take const_tree.
10655         * tree.h: Adjust.
10657 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10659         * config/sparc/sparc.c (sparc_option_override): Use
10660         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10662 2011-03-11  Richard Guenther  <rguenther@suse.de>
10664         PR tree-optimization/48067
10665         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10666         multiplication result will be only used once on the target
10667         stmt.
10669 2011-03-11  Richard Guenther  <rguenther@suse.de>
10671         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10673 2011-03-11  Richard Guenther  <rguenther@suse.de>
10675         PR lto/48073
10676         * tree.c (find_decls_types_r): Do not walk types only reachable
10677         from IDENTIFIER_NODEs.
10679 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10681         PR middle-end/48044
10682         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10683         all vnode->force_output nodes as needed.
10685 2011-03-11  Jason Merrill  <jason@redhat.com>
10687         PR c++/48069
10688         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10689         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10691 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10693         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10694         cgraph_node.
10696 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10698         PR tree-optimization/48063
10699         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10700         inline functions called once if !tree_can_inline_p (node->callers).
10702 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10704         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10705         extra_objs.
10706         * config/score/score3.c: Delete.
10707         * config/score/score3.h: Delete.
10708         * config/score/mul-div.S: Delete.
10709         * config/score/sfp-machine.h: Add new file.
10710         * config/score/constraints.md: Add new file.
10711         * config/score/t-score-softfp: Add new file.
10712         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10713         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10714         (score7_extra_constraint): Delete.
10715         (score7_option_override): Remove unused code.
10716         * config/score/score.c: Remove score3 and score5 define and code.
10717         * config/score/score.h: Remove score3 and score5 define and code.
10718         * config/score/score.md: Remove score3 template and unusual insn.
10719         * config/score/score.opt: Remove score3 and score5 options.
10721 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10723         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10724         when _HPUX_SOURCE is defined.
10725         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10727 2011-03-10  Jason Merrill  <jason@redhat.com>
10729         PR c++/48029
10730         * stor-layout.c (layout_type): Don't set structural equality
10731         on arrays of incomplete type.
10732         * tree.c (type_hash_eq): Handle comparing them properly.
10734 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10736         PR debug/48043
10737         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10738         result mode matches original rtl mode.
10740 2011-03-10  Nick Clifton  <nickc@redhat.com>
10742         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10743         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10745 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10747         PR rtl-optimization/47866
10748         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10749         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10750         if target wasn't scalar.
10751         * function.c (assign_stack_temp_for_type): Assert that neither
10752         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10753         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10754         macro.
10755         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10757 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10759         * config/s390/s390-protos.h (s390_label_align): New prototype.
10760         * config/s390/s390.c (s390_label_align): New function.
10761         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10763 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10765         PR target/47755
10766         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10767         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10768         (output_vec_const_move): Ditto.
10770 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10772         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10773         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10774         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10775         Change 'rclass' argument and result type to reg_class_t.
10776         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10778 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10780         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10781         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10782         (TARGET_MEMORY_MOVE_COST): Define.
10783         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10785 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10787         PR debug/47881
10788         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10789         removed anything.
10791         PR tree-optimization/48022
10792         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10793         for EQ/NE_EXPR.
10795 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10797         PR debug/47991
10798         * var-tracking.c (find_use_val): Return NULL for
10799         cui->sets && cui->store_p BLKmode MEMs.
10801 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10803         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10804         Remove.
10805         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10806         xstormy16_print_operand_address): Remove.
10807         * config/stormy16/stormy16.c (xstormy16_print_operand,
10808         xstormy16_print_operand_address): Make static.
10809         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10811 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10813         PR target/47862
10814         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10815         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10816         before definition.
10818 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10820         PR bootstrap/48000
10821         * cfgloopmanip.c (fix_bb_placements): Return immediately
10822         if FROM is BASE_LOOP's header.
10824 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10826         * gimplify.c (gimplify_function_tree): Fix building calls
10827         to __builtin_return_address.
10829 2011-03-07  Alan Modra  <amodra@gmail.com>
10831         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10832         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10833         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10834         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10835         return_mode args.
10836         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10837         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10838         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10839         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10840         * config/rs6000/rs6000.c
10841         (rs6000_elf_end_indicate_exec_stack): Rename to..
10842         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10843         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10844         (rs6000_file_start): ..here.
10845         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10846         file scope variables.
10847         (call_ABI_of_interest): New function.
10848         (init_cumulative_args): Set above vars when function return value
10849         is a float, vector, or small struct.
10850         (rs6000_function_arg_advance_1): Likewise for function args.
10851         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10852         references float args.
10854 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10856         * doc/cfg.texi: Remove "See" before @ref.
10857         * doc/invoke.texi: Likewise.
10859 2011-03-05  Jason Merrill  <jason@redhat.com>
10861         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10863 2011-03-05  Anthony Green  <green@moxielogic.com>
10865         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10867 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10869         PR rtl-optimization/47899
10870         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10871         to flow_loop_nested_p when moving the loop upward.
10873 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10875         PR target/47719
10876         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10878 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10880         PR tree-optimization/47967
10881         * ipa-cp.c (build_const_val): Return NULL instead of creating
10882         VIEW_CONVERT_EXPR for mismatching sizes.
10883         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10884         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10885         give up on versioning.
10887 2011-03-05  Alan Modra  <amodra@gmail.com>
10889         PR target/47986
10890         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10891         full cmodel medium/large lo_sum + high addresses.
10893 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10895         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10896         pool references in UNSPEC_LTREL_OFFSET.
10898 2011-03-04  Jan Hubicka  <jh@suse.cz>
10900         PR lto/47497
10901         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10902         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10903         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10904         Add node pointers.
10905         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10906         cgraph_add_thunk): Add node pointers.
10907         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10908         associated to right node.
10909         (input_node): Update use of cgraph_same_body_alias
10910         and cgraph_add_thunk.
10912 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10914         * config/i386/i386.opt (mprefer-avx128): New flag.
10915         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10916         modes when the flag -mprefer-avx128 is on.
10918 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10920         * dwarf2out.c (compare_loc_operands): Fix address handling.
10922 2011-03-04  Alan Modra  <amodra@gmail.com>
10924         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10926 2011-03-04  Richard Guenther  <rguenther@suse.de>
10928         PR middle-end/47968
10929         * expmed.c (extract_bit_field_1): Prefer vector modes that
10930         vec_extract patterns can handle.
10932 2011-03-04  Richard Guenther  <rguenther@suse.de>
10934         PR middle-end/47975
10935         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10937 2011-03-04  Richard Henderson  <rth@redhat.com>
10939         * explow.c (emit_stack_save): Remove 'after' parameter.
10940         (emit_stack_restore): Likewise.
10941         * expr.h: Update to match.
10942         * builtins.c, calls.c, stmt.c: Likewise.
10943         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10944         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10945         * function.c (expand_function_end): Insert the emit_stack_save
10946         sequence before parm_birth_insn instead of after.
10948 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
10950         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10951         (ssse3_pmaddubsw128): Ditto.
10952         (ssse3_pmaddubsw): Ditto.
10954 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
10956         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10958 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
10960         PR c/47963
10961         * gimplify.c (omp_add_variable): Only call omp_notice_variable
10962         on TYPE_SIZE_UNIT if it is a DECL.
10964         PR debug/47283
10965         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10966         first operand is not is_gimple_mem_ref_addr, try to fold it.
10967         If the operand still isn't is_gimple_mem_ref_addr, clear
10968         MEM_EXPR on op0.
10970 2011-03-03  Richard Guenther  <rguenther@suse.de>
10972         PR middle-end/47283
10973         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10974         match comment.
10975         (refs_may_alias_p_1): For release branches return true if
10976         we are confused by our input.
10978 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10980         * config/s390/s390.c (s390_function_value): Rename to ...
10981         (s390_function_and_libcall_value): ... this.
10982         (s390_function_value): New function.
10983         (s390_libcall_value): New function.
10984         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
10985         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10986         target macro definitions.
10987         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10989 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
10991         * config/i386/freebsd64.h (CC1_SPEC): Define.
10992         * config/i386/linux64.h (CC1_SPEC): Define.
10993         * config/i386/x86-64.h (CC1_SPEC): Don't define.
10995 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
10997         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10998         Remove.
10999         * config/stormy16/stormy16.c: Include reload.h.
11000         (xstormy16_memory_move_cost): New function.
11001         (TARGET_MEMORY_MOVE_COST): Define.
11003 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11005         PR rtl-optimization/47925
11006         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11007         with side effects.  Remove the more-specific check for volatile asms.
11009 2011-03-02  Alan Modra  <amodra@gmail.com>
11011         PR target/47935
11012         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11013         toc relative addresses for valid offsets.
11015 2011-03-01  Richard Guenther  <rguenther@suse.de>
11017         PR tree-optimization/47890
11018         * tree-vect-loop.c (get_initial_def_for_induction): Set
11019         related stmt properly.
11021 2011-03-01  Richard Guenther  <rguenther@suse.de>
11023         PR lto/47924
11024         * lto-streamer.c (lto_record_common_node): Also register
11025         the canonical type.
11027 2011-03-01  Richard Guenther  <rguenther@suse.de>
11029         PR lto/46911
11030         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11031         Do not stream DECL_ABSTRACT_ORIGIN.
11032         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11033         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11034         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11035         Do not stream DECL_ABSTRACT_ORIGIN.
11036         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11037         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11039 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11041         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11042         FUNCTION_VALUE_REGNO_P): Remove.
11043         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11044         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11045         Add 'outgoing' argument.
11046         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11047         function.
11048         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11049         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11051 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11053         PR debug/28047
11054         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11055         (lookup_filename): Likewise.
11056         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11058 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11059             Jakub Jelinek  <jakub@redhat.com>
11061         PR middle-end/47893
11062         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11063         (assign_stack_local_1): Change last argument type to int.
11064         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11065         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11066         don't record padding space into frame_space_list nor use those areas.
11067         (assign_stack_local): Adjust caller.
11068         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11069         of assign_stack_local, pass 0 as last argument.
11070         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11071         callers.
11073 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11075         PR debug/47283
11076         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11077         Use target address_mode and pointer_mode hooks instead of hardcoded
11078         Pmode and ptr_mode.  Handle some simple cases of extending if
11079         POINTERS_EXTEND_UNSIGNED < 0.
11080         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11081         Call convert_debug_memory_address.
11082         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11083         convert_debug_memory_address.
11085         PR middle-end/46790
11086         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11087         * configure: Regenerated.
11088         * config.in: Regenerated.
11089         * varasm.c (default_function_section): Return NULL
11090         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11092 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11094         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11095         the description to match the printed values.
11097 2011-02-28  Richard Guenther  <rguenther@suse.de>
11099         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11100         of the copied scope tree.
11102 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11104         * doc/extend.texi (Function Attributes): Avoid deeply (and
11105         wrongly) nested tables.
11107 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11109         PR middle-end/47903
11110         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11111         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11112         r isn't op0 nor op1.
11114 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11116         * config/avr/avr.md: Remove magic comment for emacs.
11118 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11120         PR target/45261
11121         * config/avr/avr.c (avr_option_override): Use error on bad options.
11122         (avr_help): New function.
11123         (TARGET_HELP): Define.
11125 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11127         PR target/42240
11128         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11129         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11131 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11133         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11134         (ARM Options): Ditto.
11135         (i386 and x86-64 Options): Ditto.
11136         (RX Options): Ditto.
11137         (SPARC Options): Ditto.
11139 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11141         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11142         FreeBSD 6 and later.  Generally use cpu generic.
11144 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11146         * doc/cpp.texi: Update copyright years.
11148 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11150         PR target/46898
11151         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11153 2011-02-25  Jon Beniston  <jon@beniston.com>
11155         PR target/46898
11156         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11157         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11158         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11159         (lm32_block_move_inline): Add type cast to remove warning.
11160         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11161         (gen_int_relational): Move declarations to start of function.
11163 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11165         PR tree-optimization/45470
11166         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11167         can throw internally only.
11168         * tree-vect-stmts.c (vectorizable_call): Likewise.
11170 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11172         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11173         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11174         * config/stormy16/stormy16-protos.h
11175         (xstormy16_preferred_reload_class): Remove.
11176         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11177         static. Change 'rclass' argument and return type to reg_class_t.
11178         (TARGET_PREFERRED_RELOAD_CLASS,
11179         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11181 2011-02-24  Richard Guenther  <rguenther@suse.de>
11183         * lto-streamer-in.c (input_bb): Do not find referenced vars
11184         in debug statements.
11186 2011-02-23  Jason Merrill  <jason@redhat.com>
11188         * common.opt (fabi-version): Document v5 and v6.
11190 2011-02-23  Richard Guenther  <rguenther@suse.de>
11192         PR tree-optimization/47849
11193         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11195 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11197         * opts-common.c (decode_cmdline_option): Print empty string
11198         argument as "" in decoded->orig_option_with_args_text.
11199         * gcc.c (execute): Print empty string argument as ""
11200         in the verbose output.
11201         (do_spec_1): Keep empty string argument.
11203 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11205         * config.gcc: Declare score-* and crx-* obsolete.
11207 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11209         PR rtl-optimization/47763
11210         * web.c (web_main): Ignore naked clobber when replacing register.
11212 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11214         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11215         Remove.
11217 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11219         PR doc/47848
11220         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11222 2011-02-22  Mike Stump  <mikestump@comcast.net>
11224         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11225         assembler.
11226         * configure: Regenerate.
11228 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11230         PR rtl-optimization/46002
11231         * ira-color.c (update_copy_costs): Change class intersection
11232         test to reg_class_contents[] test of 'hard_regno'.
11234 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11236         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11237         than Driver option.
11238         * config/hpux11.opt (mt): Likewise.
11239         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11240         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11241         * config/vax/elf.opt (mno-asm-pic): Likewise.
11242         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11244 2011-02-21  Mike Stump  <mikestump@comcast.net>
11246         PR target/47822
11247         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11248         tree so we can get save the type.
11249         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11250         for CFString instead of trying to use past the end of the builtins.
11251         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11252         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11253         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11254         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11255         Rename to darwin_builtin_cfstring.
11256         (darwin_init_cfstring_builtins): Return the built type.
11258 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11260         PR target/47840
11261         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11262         (_mm256_insert_epi64): Use _mm_insert_epi64.
11264 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11266         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11267         * config/stormy16/stormy16-protos.h
11268         (xstormy16_mode_dependent_address_p): Remove.
11269         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11270         Make static. Change return type to bool. Change argument type to
11271         const_rtx. Remove dead code.
11272         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11274 2011-02-21  Richard Guenther  <rguenther@suse.de>
11276         PR lto/47820
11277         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11278         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11279         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11280         TUs context.
11281         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11282         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11284 2011-02-20  Richard Guenther  <rguenther@suse.de>
11286         PR lto/47822
11287         * tree.c (free_lang_data_in_decl): Clean builtins from
11288         the TU decl BLOCK_VARS.
11290 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11292         PR debug/47620
11293         PR debug/47630
11294         * haifa-sched.c (fix_tick_ready): Skip tick computation
11295         for debug insns.
11297 2011-02-19  Richard Guenther  <rguenther@suse.de>
11299         PR lto/47647
11300         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11301         Remove lazy BLOCK_VARS streaming.
11302         (lto_input_ts_block_tree_pointers): Likewise.
11303         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11305 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11307         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11309 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11311         * config/i386/biarch32.h, config/i386/mach.h,
11312         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11314 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11316         PR target/47800
11317         * config/i386/i386.md (peephole2 for shift and plus): Use
11318         operands[1] original mode in the first insn.
11320 2011-02-18  Mike Stump  <mikestump@comcast.net>
11322         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11324 2011-02-18  Jan Hubicka  <jh@suse.cz>
11326         PR middle-end/47788
11327         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11328         to zero when the function is not inlinable at all.
11330 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11332         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11333         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11334         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11335         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11336         * config/pa/t-pa64: Likewise.
11337         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11339 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11341         PR driver/47787
11342         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11344 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11346         PR target/47792
11347         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11349 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11351         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11352         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11353         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11354         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11355         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11356         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11357         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11358         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11359         m32r_legitimate_address_p): New functions.
11360         * config/m32r/constraints.md (constraint "S"): Don't use
11361         STORE_PREINC_PREDEC_P.
11362         (constraint "U"): Don't use LOAD_POSTINC_P.
11364 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11366         PR rtl-optimization/46178
11367         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11368         compute ira_hard_regno_cover_class[].
11370 2011-02-18  Richard Guenther  <rguenther@suse.de>
11372         PR lto/47798
11373         * lto-streamer.h (lto_global_var_decls): Declare.
11374         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11375         statics for global var processing.
11377 2011-02-18  Richard Guenther  <rguenther@suse.de>
11379         PR tree-optimization/47737
11380         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11381         edge dominance check.
11383 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11385         PR debug/47780
11386         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11387         avoid invalid rtx sharing.
11389 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11391         * doc/cpp.texi (Obsolete Features): Add background on the
11392         origin of assertions.
11394 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11396         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11397         objc_abi == 2.
11398         * config/darwin.c (output_objc_section_asm_op): Added support for
11399         ABI v1 and v2.
11400         (is_objc_metadata): New.
11401         (darwin_objc2_section): New.
11402         (darwin_objc1_section): New.
11403         (machopic_select_section): Added support for ABI v1 and v2.
11404         (darwin_emit_objc_zeroed): New.
11405         (darwin_output_aligned_bss): Detect objc metadata and treat it
11406         appropriately.
11407         (darwin_asm_output_aligned_decl_common): Same.
11408         (darwin_asm_output_aligned_decl_local): Same.
11409         * config/darwin-sections.def: Updated for ABI v1 and v2.
11410         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11411         compiling Objective-C code for the NeXT runtime, default to using
11412         ABI version 0 for 32-bit, and version 2 for 64-bit.
11414 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11416         * common.opt (optimize_fast): New Variable.
11417         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11418         instead of local variable ofast.
11420 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11422         * doc/invoke.texi (fobjc-abi-version): Documented.
11423         (fobjc-nilcheck): Documented.
11424         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11425         version.
11427 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11429         PR driver/47390
11430         * common.opt (export-dynamic): New Driver option.
11431         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11433 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11435         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11437 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11438             Jan Hubicka  <jh@suse.cz>
11440         PR debug/47106
11441         PR debug/47402
11442         * cfgexpand.c (account_used_vars_for_block): Remove.
11443         (estimated_stack_frame_size): Use referenced vars.
11444         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11445         that were referenced in the original function.  Test src_fn
11446         rather than cfun.  Drop redundant get_var_ann.
11447         (setup_one_parameter): Drop redundant get_var_ann.
11448         (declare_return_variable): Likewise.
11449         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11450         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11451         * ipa-inline.c (compute_inline_parameters): Do not compute
11452         disregard_inline_limits here.
11453         (compute_inlinable_for_current, pass_inlinable): New.
11454         (pass_inline_parameters): Require PROP_referenced_vars.
11455         * cgraphunit.c (cgraph_process_new_functions): Don't run
11456         compute_inline_parameters explicitly unless function is in SSA form.
11457         (cgraph_analyze_function): Set .disregard_inline_limits.
11458         * tree-sra.c (convert_callers): Compute inliner parameters
11459         only for functions already in SSA form.
11461 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11463         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11464         -mlittle-endian-data.
11466 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11468         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11469         -mno-fpu, not -fpu and -no-fpu.
11470         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11471         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11473 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11475         PR target/43653
11476         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11477         input reload with PLUS RTX.
11479 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11481         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11482         of InverseVar(MDMX).
11484 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11486         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11487         --m4-340.
11489 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11491         * config/mn10300/mn10300.opt (mno-crt0): New.
11493 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11495         * config/m68k/uclinux.opt (static-libc): New Driver option.
11497 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11499         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11501 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11503         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11504         %{muser-extend-enabled}.
11506 2011-02-16  Richard Guenther  <rguenther@suse.de>
11508         PR tree-optimization/47738
11509         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11510         the TODO from tree_predictive_commoning.
11512 2011-02-15  Jeff Law  <law@redhat.com>
11514         Revert
11515         2011-01-25  Jeff Law  <law@redhat.com>
11517         PR rtl-optimization/37273
11518         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11519         handle them like argument loads from stack slots.  Do not double
11520         count memory for memory constants and argument loads from stack slots.
11522 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11524         PR middle-end/47725
11525         * combine.c (cant_combine_insn_p): Revert the last change.
11527 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11529         PR target/47755
11530         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11531         mode for vector constants.  Remove code that checks for TImode.
11533 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11535         PR debug/47106
11536         PR debug/47402
11537         * cgraph.h (compute_inline_parameters): Return void.
11538         * ipa-inline.c (compute_inline_parameters): Adjust.
11540 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11542         PR debug/47106
11543         PR debug/47402
11544         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11545         rather than decl.
11546         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11547         * ipa-inline.c (compute_inline_parameters): Adjust.
11549 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11551         PR debug/47106
11552         PR debug/47402
11553         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11554         Adjust all users.  Pass FN to...
11555         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11556         fn argument.
11557         * ipa-struct-reorg.c: Adjust.
11558         * tree-dfa.c: Adjust.
11559         * tree-into-ssa.c: Adjust.
11560         * tree-sra.c: Adjust.
11561         * tree-ssa-alias.c: Adjust.
11562         * tree-ssa-live.c: Adjust.
11563         * tree-ssa.c: Adjust.
11564         * tree-ssanames.c: Adjust.
11565         * tree-tailcall.c: Adjust.
11567 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11569         PR debug/47106
11570         PR debug/47402
11571         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11572         Adjust all callers.
11573         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11574         * tree-flow-inline.h: Adjust.
11575         * gimple-pretty-print.c: Adjust.
11576         * tree-into-ssa.c: Adjust.
11577         * tree-ssa.c: Adjust.
11578         * cfgexpand.c: Adjust.
11580 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11582         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11583         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11584         (EXTRA_CONSTRAINT): Delete.
11585         * config/iq2000/constraints.md: New file.
11586         * config/iq2000/iq2000.md: Include it.
11587         (define_insn ""): Delete.
11588         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11589         unsupported constraint letters from patterns.
11590         (call_value, call_value_internal1): Likewise.
11591         (call_value_multiple_internal1): Likewise.
11593 2011-02-15  Nick Clifton  <nickc@redhat.com>
11595         * config/mn10300/mn10300.c: Include tm-constrs.h.
11596         (struct liw_data): New data structure describing an LIW candidate
11597         instruction.
11598         (extract_bundle): Use struct liw_data.  Allow small integer
11599         operands for some instructions.
11600         (check_liw_constraints): Use struct liw_data.  Remove swapped
11601         parameter.  Add comments describing the checks.  Fix bug when
11602         assigning the source of liw1 to the source of liw2.
11603         (liw_candidate): Delete.  Code moved into extract_bundle.
11604         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11605         before swapping.
11606         * config/mn10300/predicates.md (liw_operand): New predicate.
11607         Allows registers and small integer constants.
11608         * config/mn10300/constraints.md (O): New constraint.  Accetps
11609         integers in the range -8 to +7 inclusive.
11610         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11611         for moving a small integer into a register.  Give this alternative
11612         LIW attributes.
11613         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11614         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11615         using the J,K,L and M constraints,
11616         (liw): Remove SI mode on second operands to allow for HI and QI
11617         mode values.
11618         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11619         instruction.
11621 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11623         PR middle-end/47725
11624         * combine.c (cant_combine_insn_p): Check zero/sign extended
11625         hard registers.
11627 2011-02-15  Richard Guenther  <rguenther@suse.de>
11629         PR tree-optimization/47743
11630         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11631         for a non-type-compatible VN lookup bail out.
11633 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11635         * config/fr30/constraints.md: New file.
11636         * config/fr30/fr30.md: Include it.
11637         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11638         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11639         (EXTRA_CONSTRAINT): Delete.
11641 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11643         * config/frv/constraints.md: New file.
11644         * config/frv/predicates.md: Include it.
11645         * config/frv/frv.c (reg_class_from_letter): Delete.
11646         (frv_option_override): Don't initialize it.
11647         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11648         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11649         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11650         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11651         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11652         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11653         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11654         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11655         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11656         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11657         (REG_CLASS_FROM_CONSTRAINT): Delete.
11659 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11661         PR middle-end/47581
11662         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11663         if frame size is 0 in a leaf function.
11665 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11667         PR pch/14940
11668         * config/alpha/host-osf.c: New file.
11669         * config/alpha/x-osf: New file.
11670         * config.host (alpha*-dec-osf*): Use it.
11672 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11674         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11675         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11676         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11677         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11678         type to const_rtx.
11679         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11681 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11683         * config/stormy16/constraints.md: New file.
11684         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11685         Use satisfies_constraint_Q and satisfies_constraint_R.
11686         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11687         Delete.
11688         (xstormy16_legitiamte_address_p): Declare.
11689         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11690         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11691         (EXTRA_CONSTRAINT): Delete.
11692         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11693         Un-staticize.
11694         (xstormy16_extra_constraint_p): Delete.
11696 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11698         PR tree-optimization/46494
11699         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11700         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11701         (pass_rtl_loop_done): Add TODO_verify_flow.
11702         * fwprop.c (pass_rtl_fwprop): Likewise.
11703         * modulo-sched.c (pass_sms): Likewise.
11704         * tree-ssa-dom.c (pass_dominator): Likewise.
11705         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11706         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11707         (pass_tree_loop_done): Likewise.
11708         * tree-ssa-pre.c (execute_pre): Likewise.
11709         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11710         * tree-ssa-sink.c (pass_sink_code): Likewise.
11711         * tree-vrp.c (pass_vrp): Likewise.
11713 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11715         * config/v850/constraints.md: New file.
11716         * config/v850/v850.md: Include it.
11717         * config/v850/predicates.md (reg_or_0_operand): Use
11718         satisfies_constraint_G.
11719         (special_symbolref_operand): Use satisfies_constraint_K.
11720         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11721         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11722         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11723         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11724         (EXTRA_CONSTRAINT): Delete.
11725         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11726         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11727         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11729 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11731         PR target/47696
11732         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11733         description.
11735 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11737         * config/mcore/constraints.md: New file.
11738         * config/mcore/mcore.md: Include it.
11739         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11740         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11741         (REG_CLASS_FROM_LETTER): Delete.
11742         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11743         insn_const_int_ok_for_constraint.
11744         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11745         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11746         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11747         (EXTRA_CONSTRAINT): Delete.
11749 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11751         PR ada/41929
11752         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11753         (IS_SIGHANDLER): Define.
11754         (sparc64_is_sighandler): New function, split off from
11755         sparc64_fallback_frame_state.
11756         (sparc_is_sighandler): New function, split off from
11757         sparc_fallback_frame_state.
11758         (sparc64_fallback_frame_state): Merge with ...
11759         (sparc_fallback_frame_state): ... this into ...
11760         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11761         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11762         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11763         stack instead of hardcoded offsets.
11765 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11767         PR target/45808
11768         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11770 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11772         * configure: Regenerate.
11774 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11776         PR driver/45731
11777         * gcc.c (asm_options): Correct spec matching --target-help.
11779 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11781         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11782         to gimple call error.
11784 2011-02-12  Mike Stump  <mikestump@comcast.net>
11786         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11787         comments in backslash regions.
11789 2011-02-12  Mike Stump  <mikestump@comcast.net>
11790             Jakub Jelinek  <jakub@redhat.com>
11791             Iain Sandoe  <iains@gcc.gnu.org>
11793         PR target/47324
11794         * dwarf2out.c (output_cfa_loc): When required, apply the
11795         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11796         (output_loc_sequence): Likewise.
11797         (output_loc_operands_raw): Likewise.
11798         (output_loc_sequence_raw): Likewise.
11799         (output_cfa_loc): Likewise.
11800         (output_loc_list): Suppress register number adjustment when
11801         calling output_loc_sequence()
11802         (output_die): Likewise.
11804 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11806         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11807         Remove macros.
11808         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11809         xtensa_memory_move_cost): New functions.
11810         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11812 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11814         PR lto/47225
11815         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11816         in the current directory.
11817         * configure: Rebuilt.
11819 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11821         * config/darwin.c (darwin_override_options): Add a hunk missed
11822         from the commit of r168571.  Trim comment line lengths and
11823         correct indents of the preceding block.
11825 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11827         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11828         the switch.
11830 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11832         * common.opt (nostartfiles): New Driver option.
11834 2011-02-11  Xinliang David Li  <davidxl@google.com>
11836         PR tree-optimization/47707
11837         * tree-chrec.c (convert_affine_scev): Keep type precision.
11839 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11841         PR tree-optimization/47420
11842         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11844 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11846         PR rtl-optimization/47614
11847         * rtl.h (check_for_inc_dec): Declare.
11848         * dse.c (check_for_inc_dec): Externalize...
11849         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11850         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11852 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11854         PR driver/47678
11855         * gcc.c (main): Do not compile inputs if there were errors in
11856         option handling.
11857         * opts-common.c (read_cmdline_option): Check for wrong language
11858         after other error checks.
11860 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11862         * cgraph.c: Fix comment typos.
11863         * cgraph.h: Likewise.
11864         * cgraphunit.c: Likewise.
11865         * ipa-cp.c: Likewise.
11866         * ipa-inline.c: Likewise.
11867         * ipa-prop.c: Likewise.
11868         * ipa-pure-const.c: Likewise.
11869         * ipa-ref.c: Likewise.
11870         * ipa-reference.c: Likewise.
11872 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11874         PR debug/47684
11875         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11877 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11879         PR testsuite/47400
11880         * doc/sourcebuild.texi (Require Support): Document
11881         dg-require-ascii-locale.
11883 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11885         * doc/lto.texi (Write summary): Fix missing parentheses.
11887 2011-02-10  DJ Delorie  <dj@redhat.com>
11889         * config/m32c/m32c.c (m32c_option_override): Disable
11890         -fcombine-stack-adjustments until flag value tracking and compare
11891         optimization can be rewritten.
11893 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11895         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11896         PROCESSOR_POWER7.
11897         (PROCESSOR_DEFAULT64): Likewise.
11899 2011-02-10  Richard Henderson  <rth@redhat.com>
11901         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11902         change from 2011-02-03.
11903         * config/rx/rx.c (flags_from_code): Likewise.
11904         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11905         is valid, n/pz otherwise.
11906         (rx_select_cc_mode): Return CCmode if Y is not zero.
11908 2011-02-10  Richard Guenther  <rguenther@suse.de>
11910         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11912 2011-02-10  Richard Guenther  <rguenther@suse.de>
11914         PR tree-optimization/47677
11915         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11917 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11919         PR target/47665
11920         * combine.c (make_compound_operation): Only change shifts into
11921         multiplication for SCALAR_INT_MODE_P.
11923 2011-02-10  Jie Zhang  <jie@codesourcery.com>
11925         PR testsuite/47622
11926         Revert
11927         2011-02-05  Jie Zhang  <jie@codesourcery.com>
11928         PR debug/42631
11929         * web.c (entry_register): Don't clobber the number of the
11930         first uninitialized reference in used[].
11932 2011-02-09  Richard Guenther  <rguenther@suse.de>
11934         PR tree-optimization/47664
11935         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11936         all edges again.
11938 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
11940         PR target/46481
11941         PR target/47032
11942         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11943         PROCESSOR_POWER7.
11944         (PROCESSOR_DEFAULT64): Same.
11945         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11947 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11949         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11951 2011-02-09  Martin Jambor  <mjambor@suse.cz>
11953         PR middle-end/45505
11954         * tree-sra.c (struct access): New flags grp_scalar_read and
11955         grp_scalar_write.  Changed description of assignment read and write
11956         flags.
11957         (dump_access): Dump new flags, reorder all of them.
11958         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11959         to detect multiple scalar reads.
11960         (analyze_access_subtree): Use the new scalar read write flags instead
11961         of the old flags.  Adjusted comments.
11963 2011-02-08  DJ Delorie  <dj@redhat.com>
11965         PR target/47548
11966         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11967         patterns.
11969 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11971         * config/m68k/uclinux.opt: New.
11972         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11974 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11976         * config/cris/elf.opt (sim): New Driver option.
11978 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11980         * config/xtensa/elf.opt: New.
11981         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11983 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11985         * config/vax/elf.opt: New.
11986         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11988 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11990         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11992 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
11994         * config/gnu-user.opt: New.
11995         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11996         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11997         *-*-uclinux*): Use gnu-user.opt.
11999 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12001         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12002         * config/i386/gnu.h (CPP_SPEC): Likewise.
12004 2011-02-08  Ian Lance Taylor  <iant@google.com>
12006         * common.opt (fcx-limited-range): Add SetByCombined flag.
12007         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12008         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12009         (fassociative-math, freciprocal-math): Likewise.
12010         (funsafe-math-optimizations): Likewise.
12011         * opth-gen.awk: Handle SetByCombined.
12012         * optc-gen.awk: Likewise.
12013         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12014         (set_unsafe_math_optimizations_flags): Likewise.
12015         * doc/options.texi (Option properties): Document SetByCombined.
12017 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12019         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12020         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12021         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12022         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12023         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12025 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12027         PR tree-optimization/46834
12028         PR tree-optimization/46994
12029         PR tree-optimization/46995
12030         * graphite-sese-to-poly.c (used_outside_reduction): New.
12031         (detect_commutative_reduction): Call used_outside_reduction.
12032         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12033         translate_scalar_reduction_to_array only when at least one
12034         loop-phi/close-phi tuple has been detected.
12036 2011-02-08  Richard Guenther  <rguenther@suse.de>
12038         PR middle-end/47639
12039         * tree-vect-generic.c (expand_vector_operations_1): Update
12040         stmts here ...
12041         (expand_vector_operations): ... not here.  Cleanup EH info
12042         and the CFG if required.
12044 2011-02-08  Richard Guenther  <rguenther@suse.de>
12046         PR tree-optimization/47641
12047         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12048         require type compatibility.
12050 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12052         * gimple-low.c (lower_function_body): Don't remove the location of
12053         the return statement here.
12054         (lower_gimple_return): Do it here instead but only if the return
12055         statement is actually used twice.
12057 2011-02-08  Richard Guenther  <rguenther@suse.de>
12059         PR tree-optimization/47632
12060         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12061         unused up_to_stmt parameter, return whether cfg-cleanup is
12062         necessary, remove EH info properly.
12063         (forward_propagate_into_gimple_cond): Adjust caller.
12064         (forward_propagate_into_cond): Likewise.
12065         (forward_propagate_comparison): Likewise.
12066         (tree_ssa_forward_propagate_single_use_vars): Make
12067         forward_propagate_comparison case similar to the two others.
12069 2011-02-08  Nick Clifton  <nickc@redhat.com>
12071         * config/mn10300/mn10300.opt (mliw): New command line option.
12072         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12073         (liw_bundling): New automaton.
12074         (liw): New attribute.
12075         (liw_op): New attribute.
12076         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12077         (movsi_internal): Add LIW attributes.
12078         (andsi3): Likewise.
12079         (iorsi3): Likewise.
12080         (xorsi3): Likewise.
12081         (addsi3): Separate register and immediate alternatives.
12082         Add LIW attributes.
12083         (subsi3): Likewise.
12084         (cmpsi): Likewise.
12085         (aslsi3): Likewise.
12086         (lshrsi3): Likewise.
12087         (ashrsi3): Likewise.
12088         (liw): New pattern.
12089         * config/mn10300/mn10300.c (liw_op_names): New
12090         (mn10300_print_operand): Handle 'W' operand descriptor.
12091         (extract_bundle): New function.
12092         (check_liw_constraints): New function.
12093         (liw_candidate): New function.
12094         (mn10300_bundle_liw): New function.
12095         (mn10300_reorg): New function.
12096         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12097         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12098         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12099         __LIW__ or __NO_LIW__.
12100         * doc/invoke.texi: Describe the -mliw command line option.
12102 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12104         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12105         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12106         pthread_mutex_unlock): Remove.
12107         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12108         * config/pa/t-pa64: Likewise.
12109         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12110         shared libc if not linking against libpthread.
12111         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12113 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12115         PR target/47558
12116         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12117         on 10.6 and later to ensure that we always use the unwinder from
12118         the system.  Only add -no_compact_unwind when tarteting darwin
12119         10.6 or later.
12121 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12123         PR target/46997
12124         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12125         (vec_interleave_lowv2sf): Ditto.
12126         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12127         (vec_extract_oddv2sf): Ditto.
12129 2011-02-07  Mike Stump  <mikestump@comcast.net>
12131         PR target/42333
12132         Add __ieee_divdc3 entry point.
12133         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12134         entry point.
12135         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12136         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12137         * config/darwin.c (darwin_rename_builtins): Add.
12138         * config/darwin-protos.h (darwin_rename_builtins): Add.
12140 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12142         PR target/47636
12143         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12144         for the condition.
12146 2011-02-07  Mike Stump  <mikestump@comcast.net>
12148         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12150 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12152         PR target/47534
12153         * config/avr/libgcc.S (exit): Move .endfunc
12155 2011-02-07  Richard Guenther  <rguenther@suse.de>
12157         PR tree-optimization/47615
12158         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12159         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12160         (run_scc_vn): Initialize it.
12161         (visit_reference_op_load): Use it.
12162         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12164 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12166         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12167         DImode trapping arithmetic libfuncs.
12169 2011-02-07  Richard Guenther  <rguenther@suse.de>
12171         PR tree-optimization/47621
12172         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12173         two duplicates ...
12174         (execute_update_addresses_taken): ... here.  Make it more
12175         conservative in what we accept.
12177 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12179         * config/sparc/freebsd.h (ASM_SPEC): Define.
12180         * config/sparc/vxworks.h (ASM_SPEC): Define.
12182 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12184         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12186 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12188         * doc/invoke.texi: Remove reference to compiler internals from
12189         user documentation.
12191         * reg-notes.def: Remove REG_VALUE_PROFILE.
12192         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12194 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12196         PR middle-end/47610
12197         * varasm.c (default_section_type_flags): If decl is NULL,
12198         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12200 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12202         PR debug/42631
12203         * web.c (entry_register): Don't clobber the number of the
12204         first uninitialized reference in used[].
12206 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12208         PR tree-optimization/46194
12209         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12210         (build_classic_dist_vector_1): Do not represent classic distance
12211         vectors when the access functions are variating in different loops.
12213 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12215         * config/mips/iris6.opt: New.
12216         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12218 2011-02-04  Richard Henderson  <rth@redhat.com>
12219             Steve Ellcey  <sje@cup.hp.com>
12221         PR target/46997
12222         * config/ia64/predicates.md (mux1_brcst_element): New.
12223         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12224         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12225         (ia64_unpack_sign): New.
12226         (ia64_expand_unpack): Rewrite using new routines.
12227         (ia64_expand_widen_sum): Ditto.
12228         (ia64_expand_dot_prod_v8qi): Ditto.
12229         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12230         routines, add endian check.
12231         (pmpy2_even): Rename from pmpy2_r, add endian check.
12232         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12233         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12234         (vec_widen_smult_hi_v4hi): Ditto.
12235         (vec_widen_umult_lo_v4hi): Ditto.
12236         (vec_widen_umult_hi_v4hi): Ditto.
12237         (mulv2si3): Change endian checks.
12238         (sdot_prodv4hi): Rewrite with new calls.
12239         (udot_prodv4hi): New.
12240         (vec_pack_ssat_v4hi): Add endian check.
12241         (vec_pack_usat_v4hi): Ditto.
12242         (vec_pack_ssat_v2si): Ditto.
12243         (max1_even): Rename from max1_r, add endian check.
12244         (max1_odd): Rename from max1_l, add endian check.
12245         (*mux1_rev): Format change.
12246         (*mux1_mix): Ditto.
12247         (*mux1_shuf): Ditto.
12248         (*mux1_alt): Ditto.
12249         (*mux1_brcst_v8qi): Use new predicate.
12250         (vec_extract_evenv8qi): Remove endian check.
12251         (vec_extract_oddv8qi): Ditto.
12252         (vec_interleave_lowv4hi): Format change.
12253         (vec_interleave_highv4hi): Ditto.
12254         (mix2_even): Rename from mix2_r, add endian check.
12255         (mix2_odd): Rename from mux2_l, add endian check.
12256         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12257         (vec_extract_evenodd_helper): Format change.
12258         (vec_extract_evenv4hi): Remove endian check.
12259         (vec_extract_oddv4hi): Remove endian check.
12260         (vec_interleave_lowv2si): Format change.
12261         (vec_interleave_highv2si): Format change.
12262         (vec_initv2si): Remove endian check.
12263         (vecinit_v2si): Add endian check.
12264         (reduc_splus_v2sf): Add endian check.
12265         (reduc_smax_v2sf): Ditto.
12266         (reduc_smin_v2sf): Ditto.
12267         (vec_initv2sf): Remove endian check.
12268         (fpack): Add endian check.
12269         (fswap): Add endian check.
12270         (vec_interleave_highv2sf): Add endian check.
12271         (vec_interleave_lowv2sf): Add endian check.
12272         (fmix_lr): Add endian check.
12273         (vec_setv2sf): Format change.
12274         (*vec_extractv2sf_0_be): Use shift to extract operand.
12275         (*vec_extractv2sf_1_be): New.
12276         (vec_pack_trunc_v4hi): Add endian check.
12277         (vec_pack_trunc_v2si): Format change.
12279 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12281         PR inline-asm/23200
12282         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12283         do bb, locus and block comparison and disallow loads if it is not set.
12284         (stmt_is_replaceable_p): New function.
12285         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12286         callers.
12287         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12288         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12289         SSA_NAME_DEF_STMT.
12290         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12292 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12294         * config/rs6000/xilinx.opt: New.
12295         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12297 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12299         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12301 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12303         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12304         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12305         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12306         secondary_reload_info, xtensa_secondary_reload): Remove.
12307         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12308         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12309         (xtensa_preferred_reload_class): Make static. Change return and
12310         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12311         Use CONST_DOUBLE_P predicate.
12312         (xtensa_preferred_output_reload_class): New function.
12313         (xtensa_secondary_reload): Make static.
12315 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12317         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12318         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12319         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12321 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12323         PR middle-end/31490
12324         * output.h (SECTION_RELRO): Define.
12325         (SECTION_MACH_DEP): Adjust.
12326         (get_variable_section): New prototype.
12327         * varpool.c (varpool_finalize_named_section_flags): New function.
12328         (varpool_assemble_pending_decls): Call it.
12329         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12330         * cgraphunit.c (cgraph_output_in_order): Call
12331         varpool_finalize_named_section_flags.
12332         * varasm.c (get_section): Allow section flags conflicts between
12333         relro and read-only sections if the section hasn't been declared yet.
12334         Set SECTION_OVERRIDE after diagnosing section type conflict.
12335         (get_variable_section): No longer static.
12336         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12337         readonly sections that need relocations.
12338         (decl_readonly_section_1): New function.
12339         (decl_readonly_section): Use it.
12341         Revert:
12342         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12343                     Steve Ellcey  <sje@cup.hp.com>
12345         PR middle-end/31490
12346         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12347         if section attribute used.
12349 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12351         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12352         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12353         (darwin_init_sections): Remove assertion.
12355 2011-02-03  Nick Clifton  <nickc@redhat.com>
12357         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12358         lt and ge.
12359         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12360         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12361         instead of "n" and "pz".
12362         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12363         CC_FLAG_S.
12365 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12367         PR target/47312
12368         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12369         fma, expand FMA_EXPR as fma{,f,l} call.
12371         PR lto/47274
12372         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12373         copy them into a unsigned char variable and pass address of it to
12374         lto_output_data_stream.
12376         PR target/47564
12377         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12378         around backend_init_target and lang_dependent_init_target calls.
12379         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12380         (verify_cgraph_node): Don't call set_cfun here.  Use
12381         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12382         Set error_found for incorrectly represented calls to thunks.
12384 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12386         PR debug/43092
12387         PR rtl-optimization/43494
12388         * rtl.h (for_each_inc_dec_fn): New type.
12389         (for_each_inc_dec): Declare.
12390         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12391         (for_each_inc_dec_find_inc_dec): New fn.
12392         (for_each_inc_dec_find_mem): New fn.
12393         (for_each_inc_dec): New fn.
12394         * dse.c (struct insn_size): Remove.
12395         (replace_inc_dec, replace_inc_dec_mem): Remove.
12396         (emit_inc_dec_insn_before): New fn.
12397         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12398         (canon_address): Pass mem modes to cselib_lookup.
12399         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12400         (cselib_lookup_from_insn): Likewise.
12401         (cselib_subst_to_values): Likewise.
12402         * cselib.c (find_slot_memmode): New var.
12403         (cselib_find_slot): New fn.  Use it instead of
12404         htab_find_slot_with_hash everywhere.
12405         (entry_and_rtx_equal_p): Use find_slot_memmode.
12406         (autoinc_split): New fn.
12407         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12408         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12409         Deal with autoinc.  Special-case recursion into MEMs.
12410         (cselib_hash_rtx): Likewise.
12411         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12412         address and MEM modes.
12413         (cselib_subst_to_values): Add memmode, pass it on.
12414         Deal with autoinc.
12415         (cselib_lookup): Add memmode argument, pass it on.
12416         (cselib_lookup_from_insn): Add memmode.
12417         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12418         (struct cselib_record_autoinc_data): New.
12419         (cselib_record_autoinc_cb): New fn.
12420         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12421         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12422         (cselib_process_insn): ... here.
12423         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12424         to cselib_lookup.
12425         (add_uses): Likewise, also to cselib_subst_to_values.
12426         (add_stores): Likewise.
12427         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12428         cselib_subst_to_values.
12429         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12430         * gcse.c (do_local_cprop): Adjusted.
12431         * postreload.c (reload_cse_simplify_set): Adjusted.
12432         (reload_cse_simplify_operands): Adjusted.
12433         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12435 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12437         PR tree-optimization/45122
12438         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12439         unsafe assumptions when there's more than one loop exit.
12441 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12443         PR target/47272
12444         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12445         Document using vector double with the load/store builtins, and
12446         that the load/store builtins always use Altivec instructions.
12448         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12449         to use altivec memory instructions, even on VSX.
12450         (vector_altivec_store_<mode>): Ditto.
12452         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12453         function.
12455         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12456         V2DF, V2DI support to load/store overloaded builtins.
12458         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12459         altivec load/store builtins for V2DF/V2DI types.
12461         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12462         set avoid indexed addresses on power6 if -maltivec.
12463         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12464         vector_altivec_load/vector_altivec_store builtins.
12465         (altivec_expand_st_builtin): Ditto.
12466         (altivec_expand_builtin): Add VSX memory builtins.
12467         (rs6000_init_builtins): Add V2DI types to internal types.
12468         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12469         load/store builtins.
12470         (rs6000_address_for_altivec): Insure memory address is appropriate
12471         for Altivec.
12473         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12474         vec_vsx_ld and vec_vsx_st.
12475         (vsx_store_<mode>): Ditto.
12477         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12478         variables to hold long long types for VSX vector memory builtins.
12479         (RS6000_BTI_unsigned_long_long): Ditto.
12480         (long_long_integer_type_internal_node): Ditti.
12481         (long_long_unsigned_type_internal_node): Ditti.
12483         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12484         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12485         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12487         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12488         short cuts.
12489         (vec_vsx_st): Ditto.
12491 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12493         * config/pa/pa-hpux10.opt: New.
12494         * config/hpux11.opt (pthread): New Driver option.
12495         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12496         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12498 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12500         * config/ia64/vms.opt: New.
12501         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12503 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12505         PR target/47580
12506         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12507         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12508         generator functions.
12509         (vsx_floatuns<VSi><mode>2): Ditto.
12510         (vsx_fix_trunc<mode><VSi>2): Ditto.
12511         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12513 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12515         * config/i386/djgpp.opt (posix): New Driver option.
12517 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12519         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12520         Move to the unsupported targets list.
12522 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12524         PR rtl-optimization/47525
12525         * df-scan.c: Update copyright years.
12526         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12527         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12529 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12531         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12532         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12533         (ASM_OUTPUT_ASCII): Remove.
12534         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12536 2011-02-02  Jeff Law  <law@redhat.com>
12538         PR middle-end/47543
12539         * reload.c (find_reloads_address): Handle reg+d address where both
12540         components are invalid by reloading the entire address.
12542 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12543             Richard Guenther  <rguenther@suse.de>
12545         PR tree-optimization/40979
12546         PR bootstrap/47044
12547         * passes.c (init_optimization_passes): After LIM call copy_prop
12548         and DCE to clean up.
12549         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12551 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12553         PR tree-optimization/47576
12554         PR tree-optimization/47555
12555         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12556         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12557         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12558         * tree-scalar-evolution.c (follow_ssa_edge): Use
12559         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12561 2011-02-02  Richard Guenther  <rguenther@suse.de>
12563         PR tree-optimization/47566
12564         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12566 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12568         PR debug/47106
12569         PR debug/47402
12570         * tree-inline.c (declare_return_variable): Remove unused caller
12571         variable.
12573         PR debug/47106
12574         PR debug/47402
12575         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12576         * cfgexpand.c (account_used_vars_for_block): Use them.
12577         * tree-nrv.c (tree_nrv): Likewise.
12578         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12579         (dump_scope_block): Likewise.
12580         (remove_unused_locals): Likewise.
12582         PR debug/47106
12583         PR debug/47402
12584         * tree-inline.c (declare_return_variable): Add result decl to
12585         local decls only once.
12586         * gimple-low.c (record_vars_into): Mark newly-created variables
12587         as referenced.
12589 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12591         PR debug/47498
12592         PR debug/47501
12593         PR debug/45136
12594         PR debug/45130
12595         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12596         debug insns.
12597         (no_real_insns_p, schedule_block, set_priorities): Drop special
12598         treatment of boundary debug insns.
12599         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12600         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12601         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12602         (BOUNDARY_DEBUG_INSN_P): Likewise.
12603         (SCHEDULE_DEBUG_INSN_P): Likewise.
12604         * sched-rgn.c (init_ready_list): Drop special treatment of
12605         boundary debug insns.
12606         * final.c (rest_of_clean_state): Clear notes' BB.
12608 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12610         * config/openbsd.opt (assert=): New Driver option.
12612 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12614         * config/i386/nto.opt: New.
12615         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12617 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12619         * config/i386/netware.opt: New.
12620         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12622 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12624         * config/interix.opt (posix): New Driver option.
12626 2011-02-01  DJ Delorie  <dj@redhat.com>
12628         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12630         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12631         class for A0/A1.
12633 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12635         PR tree-optimization/47561
12636         * toplev.c (process_options): Print the Graphite flags.  Add
12637         flag_loop_flatten to the list of options requiring Graphite.
12639 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12641         * config/i386/cygming.opt (posix): New Driver option.
12643 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12645         * config/arm/vxworks.opt: New.
12646         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12648 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12650         * config/alpha/elf.opt: New.
12651         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12652         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12654 2011-02-01  Richard Guenther  <rguenther@suse.de>
12656         PR tree-optimization/47559
12657         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12658         store-motion on references that can throw.
12660 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12662         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12663         * tree-pass.h (TDF_CSELIB): New macro.
12664         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12665         cselib_lookup): Check for it rather than for TDF_DETAILS.
12667 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12669         PR driver/47547
12670         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12671         is HOST_BIT_BUCKET.
12673         * opts.c (finish_options): Don't add x_aux_base_name if it is
12674         HOST_BIT_BUCKET.
12676 2011-02-01  Richard Guenther  <rguenther@suse.de>
12678         PR tree-optimization/47555
12679         Revert
12680         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12682         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12684 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12686         PR gcc/46692
12687         * config/lm32/t-lm32: Add multilib for all CPU options.
12689 2011-02-01  Richard Guenther  <rguenther@suse.de>
12691         PR tree-optimization/47541
12692         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12693         sure to have a field at offset zero.
12695 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12697         * config/arc/arc.opt (EB, EL): New Driver options.
12699 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12701         * config/alpha/osf5.opt: New.
12702         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12704 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12706         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12708 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12710         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12711         -floop-interchange.
12712         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12713         is an alias of -floop-interchange and that it requires the
12714         Graphite infrastructure.
12715         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12716         flag_loop_interchange based on the value of flag_tree_loop_linear.
12718 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12719             Richard Guenther  <rguenther@suse.de>
12721         PR tree-optimization/47538
12722         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12723         type instead of r1type, except for comparisons.  For right
12724         shifts and comparisons punt if there are mismatches in
12725         sizetype vs. non-sizetype types.
12727 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12729         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12730         avx_runtime.
12732 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12734         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12735         version number.
12736         * configure: Regenerate.
12738 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12740         * configure.ac (gcc_cv_ld_static_option): Define.
12741         (gcc_cv_ld_dynamic_option): Define.
12742         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12743         instead.
12744         (HAVE_LD_STATIC_DYNAMIC): Update message.
12745         (LD_STATIC_OPTION): Define.
12746         (LD_DYNAMIC_OPTION): Define.
12747         * configure: Regenerate.
12748         * config.in: Regenerate.
12749         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12750         HAVE_LD_STATIC_DYNAMIC]: Use them.
12752 2011-01-31  Nick Clifton  <nickc@redhat.com>
12754         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12755         registers inside interrupt handlers if the handler is not a leaf
12756         function.
12758 2011-01-31  Nick Clifton  <nickc@redhat.com>
12760         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12761         reg_renumber returning an INVALID_REGNUM.
12763 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12765         PR libgcj/44341
12766         * doc/install.texi: Document host options discarded when cross
12767         configuring target libraries.
12769 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12771         Reverted:
12772         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12773         PR debug/45136
12774         PR debug/45130
12775         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12776         debug insns.
12777         (no_real_insns_p, schedule_block, set_priorities): Drop special
12778         treatment of boundary debug insns.
12779         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12780         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12781         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12782         (BOUNDARY_DEBUG_INSN_P): Likewise.
12783         (SCHEDULE_DEBUG_INSN_P): Likewise.
12784         * sched-rgn.c (init_ready_list): Drop special treatment of
12785         boundary debug insns.
12786         * final.c (rest_of_clean-state): Clear notes' BB.
12788 2011-01-31  Alan Modra  <amodra@gmail.com>
12790         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12791         toc relative expressions as we do in print_operand_address.
12793 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12795         * doc/extend.texi: Follow spelling conventions.
12796         * doc/invoke.texi: Fix a typo.
12798 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12800         * config/hpux11.opt: New.
12801         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12802         ia64*-*-hpux*): Use hpux11.opt.
12804 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12806         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12807         to tmake_file.
12809 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12811         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12812         support sites.
12814 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12816         * doc/install.texi (Binaries): Remove outdated reference for
12817         Motorola 68HC11/68HC12 downloads.
12819 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12821         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12822         Drepper's paper.
12824 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12826         PR bootstrap/47147
12827         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12828         used by NetBSD.
12830 2011-01-28  Ahmad Sharif  <asharif@google.com>
12832         * value-prof.c (check_counter): Corrected error message.
12834 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12836         * config/arm/arm.c (arm_legitimize_reload_address): New.
12837         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12838         arm_legitimize_reload_address.
12839         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12841 2011-01-28  Ian Lance Taylor  <iant@google.com>
12843         * godump.c (go_define): Ignore macros whose definitions include
12844         two adjacent operands.
12846 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12848         PR target/42894
12849         * varasm.c (force_const_mem): Store copy of x in desc->constant
12850         instead of x itself.
12851         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12852         itself into REG_EQUAL note.
12854 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12856         * config/freebsd.opt (posix, rdynamic): New Driver options.
12858 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12860         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12861         -Bstatic/-Bdynamic.
12862         * configure: Regenerate.
12864 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12866         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12867         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12869 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12871         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12872         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12873         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12874         (s390_preferred_reload_class): Make static. Change return and
12875         'rclass' argument type to reg_class_t.
12877 2011-01-27  Jan Hubicka  <jh@suse.cz>
12879         PR middle-end/46949
12880         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12881         (process_function_and_variable_attributes): Check defined weakrefs.
12883 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12885         PR tree-optimization/47228
12886         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12887         build_ref_for_offset.
12889 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12891         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12893 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12895         PR rtl-optimization/46856
12896         * postreload.c (reload_combine_recognize_const_pattern): Do not
12897         separate cc0 setter and user on cc0 targets.
12899 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12901         PR c/43082
12902         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12903         passed a VOID_TYPE expression, immediately emit an error and
12904         return error_mark_node.
12906 2011-01-26  Jeff Law  <law@redhat.com>
12908         PR rtl-optimization/47464
12909         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12910         rather than may_trap_p as needed.
12912 2011-01-26  DJ Delorie  <dj@redhat.com>
12914         PR rtl-optimization/46878
12915         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12916         setter/user dependency as well.
12918 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12920         PR rtl-optimization/44469
12921         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12922         after removing trivially dead basic blocks.
12924 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12926         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12927         * config/frv/frv.h (LINK_SPEC): Likewise.
12928         * config/i386/netware.h (LINK_SPEC): Likewise.
12929         * config/m68k/linux.h (ASM_SPEC): Likewise.
12930         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12931         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12932         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12933         * config/sparc/linux.h (ASM_SPEC): Likewise.
12934         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12935         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12937 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12939         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12940         * config/frv/frv.h (ASM_SPEC): Likewise.
12941         * config/m68k/linux.h (ASM_SPEC): Likewise.
12942         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12943         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12944         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12945         * config/sparc/linux.h (ASM_SPEC): Likewise.
12946         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12947         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12949 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12951         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12952         * config/frv/frv.h (LINK_SPEC): Likewise.
12953         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12955 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
12957         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12958         * config/frv/frv.h (ASM_SPEC): Likewise.
12959         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12960         * config/m68k/linux.h (ASM_SPEC): Likewise.
12961         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12962         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12963         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12964         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12965         * config/sparc/linux.h (ASM_SPEC): Likewise.
12966         * config/sparc/linux64.h (ASM_SPEC): Likewise.
12967         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12968         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12970 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
12972         PR target/46997
12973         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12974         (*mux2): Ditto.
12975         (vec_extract_evenodd_help): Ditto.
12976         (vec_extract_evenv4hi): Ditto.
12977         (vec_extract_oddv4hi): Ditto.
12978         (vec_interleave_lowv2si): Ditto.
12979         (vec_interleave_highv2si): Ditto.
12980         (vec_extract_evenv2si): Ditto.
12981         (vec_extract_oddv2si: Ditto.
12982         (vec_pack_trunc_v2si): Ditto.
12984 2011-01-22  Jan Hubicka  <jh@suse.cz>
12986         PR target/47237
12987         * cgraph.h (cgraph_local_info): New field can_change_signature.
12988         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12989         signature can change.
12990         (ipcp_estimate_growth): Call sequence simplify only if calle signature
12991         can change.
12992         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12993         (cgraph_function_versioning): We can not change signature of functions
12994         that don't allow that.
12995         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12996         (lto_input_node): Likewise.
12997         * ipa-inline.c (compute_inline_parameters): Compute
12998         local.can_change_signature.
12999         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13000         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13001         functions that can not change signature.
13002         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13003         init_cumulative_args): Do not use local calling conventions
13004         for functions that can not change signature.
13006 2011-01-22  Jan Hubicka  <jh@suse.cz>
13008         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13010 2011-01-26  Richard Guenther  <rguenther@suse.de>
13012         PR tree-optimization/47190
13013         * cgraphunit.c (process_common_attributes): New function.
13014         (process_function_and_variable_attributes): Use it.
13016 2011-01-26  Richard Guenther  <rguenther@suse.de>
13018         PR lto/47423
13019         * cgraphbuild.c (record_eh_tables): Record reference to personality
13020         function.
13022 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13024         PR debug/45454
13025         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13026         non-debug insns from moving up.
13028 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13030         PR target/40125
13031         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13032         t-dlldir{,-x} fragment for build and add it to tmake_file.
13033         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13034         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13035         * config/i386/t-dlldir: New file.
13036         (SHLIB_DLLDIR): Define.
13037         * config/i386/t-dlldir-x: New file.
13038         (SHLIB_DLLDIR): Define.
13039         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13040         (SHLIB_INSTALL): Use it.
13042 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13044         PR target/47246
13045         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13046         lower bound of the allowed Thumb-2 coprocessor load/store
13047         index range to -256. Add explaining comment.
13049 2011-01-25  Ian Lance Taylor  <iant@google.com>
13051         * godump.c (go_define): Improve lexing of macro expansion to only
13052         accept expressions which match Go spec.
13054 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13056         PR c++/43601
13057         * tree.c (handle_dll_attribute): Handle it.
13058         * doc/extend.texi (@item dllexport): Mention it.
13059         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13061 2011-01-25  Ian Lance Taylor  <iant@google.com>
13063         PR tree-optimization/26854
13064         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13065         (decl_jump_unsafe): Move higher in file, with no other change.
13066         (bind): Set has_jump_unsafe_decl if appropriate.
13067         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13068         (check_earlier_gotos): Likewise.
13069         (c_check_switch_jump_warnings): Likewise.
13071 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13073         * doc/invoke.texi (Warning Options): Add missing hyphen.
13074         (-fprofile-dir): Minor grammatical fixes.
13075         (-fbranch-probabilities): Likewise.
13077 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13079         PR debug/45136
13080         PR debug/45130
13081         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13082         debug insns.
13083         (no_real_insns_p, schedule_block, set_priorities): Drop special
13084         treatment of boundary debug insns.
13085         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13086         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13087         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13088         (BOUNDARY_DEBUG_INSN_P): Likewise.
13089         (SCHEDULE_DEBUG_INSN_P): Likewise.
13090         * sched-rgn.c (init_ready_list): Drop special treatment of
13091         boundary debug insns.
13092         * final.c (rest_of_clean-state): Clear notes' BB.
13094 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13096         * Makefile.in (LAMBDA_H): Removed.
13097         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13098         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13099         lambda-trans.o, and tree-loop-linear.o.
13100         (lto-symtab.o): Remove dependence on LAMBDA_H.
13101         (tree-loop-linear.o): Remove rule.
13102         (lambda-mat.o): Same.
13103         (lambda-trans.o): Same.
13104         (lambda-code.o): Same.
13105         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13106         (tree-vect-slp.o): Same.
13107         * hwint.h (gcd): Moved here.
13108         (least_common_multiple): Same.
13109         * lambda-code.c: Removed.
13110         * lambda-mat.c: Removed.
13111         * lambda-trans.c: Removed.
13112         * lambda.h: Removed.
13113         * tree-loop-linear.c: Removed.
13114         * lto-symtab.c: Do not include lambda.h.
13115         * omega.c (gcd): Removed.
13116         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13117         * tree-data-ref.c (print_lambda_vector): Moved here.
13118         (lambda_vector_copy): Same.
13119         (lambda_matrix_copy): Same.
13120         (lambda_matrix_id): Same.
13121         (lambda_vector_first_nz): Same.
13122         (lambda_matrix_row_add): Same.
13123         (lambda_matrix_row_exchange): Same.
13124         (lambda_vector_mult_const): Same.
13125         (lambda_vector_negate): Same.
13126         (lambda_matrix_row_negate): Same.
13127         (lambda_vector_equal): Same.
13128         (lambda_matrix_right_hermite): Same.
13129         * tree-data-ref.h: Do not include lambda.h.
13130         (lambda_vector): Moved here.
13131         (lambda_matrix): Same.
13132         (dependence_level): Same.
13133         (lambda_transform_legal_p): Removed declaration.
13134         (lambda_collect_parameters): Same.
13135         (lambda_compute_access_matrices): Same.
13136         (lambda_vector_gcd): Same.
13137         (lambda_vector_new): Same.
13138         (lambda_vector_clear): Same.
13139         (lambda_vector_lexico_pos): Same.
13140         (lambda_vector_zerop): Same.
13141         (lambda_matrix_new): Same.
13142         * tree-flow.h (least_common_multiple): Removed declaration.
13143         * tree-parloops.c (lambda_trans_matrix): Moved here.
13144         (LTM_MATRIX): Same.
13145         (LTM_ROWSIZE): Same.
13146         (LTM_COLSIZE): Same.
13147         (LTM_DENOMINATOR): Same.
13148         (lambda_trans_matrix_new): Same.
13149         (lambda_matrix_vector_mult): Same.
13150         (lambda_transform_legal_p): Same.
13151         * tree-pass.h (pass_linear_transform): Removed declaration.
13152         * tree-ssa-loop.c (tree_linear_transform): Removed.
13153         (gate_tree_linear_transform): Removed.
13154         (pass_linear_transform): Removed.
13155         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13156         flag_loop_interchange.
13158 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13160         PR tree-optimization/47265
13161         PR tree-optimization/47443
13162         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13163         if name still has some uses.
13165 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13167         PR tree-optimization/47382
13168         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13169         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13171 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13173         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13174         sjlj_except_unwind_info.
13176 2011-01-25  Richard Guenther  <rguenther@suse.de>
13178         PR tree-optimization/47426
13179         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13180         visible functions results escape.
13182 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13184         PR target/45701
13185         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13186         (arm_get_frame_offsets): Use it.
13188 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13189             Jakub Jelinek  <jakub@redhat.com>
13191         PR tree-optimization/47271
13192         * tree-if-conv.c (bb_postdominates_preds): New.
13193         (if_convertible_bb_p): Call bb_postdominates_preds.
13194         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13195         (predicate_scalar_phi): Call bb_postdominates_preds.
13197 2011-01-25  Nick Clifton  <nickc@redhat.com>
13199         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13200         * config/rx/rx.c (rx_function_value): Likewise.
13201         (rx_promote_function_mode): Likewise.
13202         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13203         in order to make it legitimate.
13204         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13205         make sure that the first operand is the same as the result register.
13206         (addsi3_unspec): Delete.
13207         (subdi3): Do not accept immediate operands.
13208         (subdi3_internal): Likewise.
13210 2011-01-25  Jeff Law  <law@redhat.com>
13212         PR rtl-optimization/37273
13213         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13214         handle them like argument loads from stack slots.  Do not double
13215         count memory for memory constants and argument loads from stack slots.
13217 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13219         PR tree-optimization/47427
13220         PR tree-optimization/47428
13221         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13222         coalesce if the new root var would be TREE_READONLY.
13224 2011-01-25  Richard Guenther  <rguenther@suse.de>
13226         PR middle-end/47414
13227         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13228         correct type for TBAA.
13230 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13232         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13233         (close_phi_written_to_memory): Call for_each_index with
13234         dr_indices_valid_in_loop.
13236 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13238         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13239         when it is initialized.
13241 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13243         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13244         call to graphite_find_data_references_in_stmt.
13245         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13246         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13247         call to graphite_find_data_references_in_stmt.
13248         (analyze_drs_in_stmts): Same.
13249         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13250         in which the scalar analysis of indices is performed.
13251         (create_data_ref): Same.  Update call to dr_analyze_indices.
13252         (find_data_references_in_stmt): Update call to create_data_ref.
13253         (graphite_find_data_references_in_stmt): Same.
13254         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13255         declaration.
13256         (create_data_ref): Same.
13257         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13258         call to create_data_ref.
13260 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13262         * graphite-sese-to-poly.c (build_poly_scop): Move
13263         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13265 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13267         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13268         VAR_DECL, PARM_DECL, and RESULT_DECL.
13270 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13272         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13273         in a reduction PBB.
13274         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13275         that have already been marked as PBB_IS_REDUCTION.
13277 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13279         * graphite-scop-detection.c (same_close_phi_node): New.
13280         (remove_duplicate_close_phi): New.
13281         (make_close_phi_nodes_unique): New.
13282         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13284 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13286         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13287         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13288         of both data references to be the same.
13290 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13292         * graphite-dependences.c (build_lexicographical_constraint): Remove
13293         the gdim parameter.
13294         (build_lexicographical_constraint): Adjust call to
13295         ppl_powerset_is_empty.
13296         (dependence_polyhedron): Same.
13297         (graphite_legal_transform_dr): Same.
13298         (graphite_carried_dependence_level_k): Same.
13299         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13300         parameter.
13301         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13303 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13305         * graphite-sese-to-poly.c
13306         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13307         (close_phi_written_to_memory): New.
13308         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13309         and unshare_expr.
13311 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13313         * doc/install.texi: Update the expected version number of PPL to 0.11.
13314         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13315         #if PPL_VERSION_MINOR < 11.
13317 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13319         * graphite-dependences.c: Include graphite-cloog-util.h.
13320         (new_poly_ddr): Inlined into dependence_polyhedron.
13321         (free_poly_ddr): Moved close by new_poly_ddr.
13322         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13323         Early return NULL when ppl_powerset_is_empty returns true.
13324         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13325         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13326         (graphite_legal_transform_dr): Call new_poly_ddr.
13327         (graphite_carried_dependence_level_k): Same.
13328         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13329         (dot_transformed_deps_stmt_1): Removed.
13330         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13331         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13332         (dot_deps_1): Call dot_deps_2.
13333         * Makefile.in (graphite-dependences.o): Add missing dependence on
13334         graphite-cloog-util.h.
13336 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13338         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13339         (build_lexicographical_constraint): Same.
13340         (dependence_polyhedron_1): Same.
13341         (graphite_legal_transform_dr): Same.
13342         (graphite_carried_dependence_level_k): Same.
13343         * graphite-ppl.c (ppl_powerset_is_empty): New.
13344         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13345         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13347 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13349         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13350         the "a followed by b" relation and document it.
13352 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13354         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13355         iteration when the bag of constraints is empty.
13357 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13359         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13361 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13363         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13364         nest and two loop depths as parameters.
13365         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13366         lst_perfect_nestify.
13368 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13370         * graphite-dependences.c (print_pddr): Call
13371         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13373 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13375         * graphite-ppl.c (debug_gmp_value): New.
13376         * graphite-ppl.h (debug_gmp_value): Declared.
13378 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13380         * doc/install.texi: Document availability of cloog-0.16.
13382 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13384         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13385         invalid postdominance info.
13387 2011-01-24  Jan Hubicka  <jh@suse.cz>
13389         PR c/21659
13390         * doc/extend.texi (weak pragma): Drop claim that it must
13391         appear before definition.
13392         * varasm.c (merge_weak, declare_weak): Only sanity check
13393         that DECL is not output at a time it is declared weak.
13395 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13397         * machmode.def: Fixed comments.
13399 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13401         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13403 2011-01-24  Paul Koning  <ni1d@arrl.net>
13405         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13406         WORDS_BIG_ENDIAN.
13408 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13410         PR target/46519
13411         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13412         (block_info): Add scanned and prev.
13413         (move_or_delete_vzeroupper_2): Return if the basic block
13414         has been scanned and the upper 128bit state is unchanged
13415         from the last scan.
13416         (move_or_delete_vzeroupper_1): Return true if the exit
13417         state is changed.
13418         (move_or_delete_vzeroupper): Visit basic blocks using the
13419         work-list based algorithm based on vt_find_locations in
13420         var-tracking.c.
13422         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13424 2011-01-24  Nick Clifton  <nickc@redhat.com>
13426         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13427         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13428         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13429         then define __v850e1__.
13430         * doc/invoke.texi: Document -mv850es.
13432 2011-01-24  Richard Henderson  <rth@redhat.com>
13434         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13435         compound unordered comparisons.
13436         * config/rx/rx.c (rx_split_fp_compare): Remove.
13437         * config/rx/rx-protos.h: Update.
13438         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13439         (cbranchsf4): Don't call rx_split_fp_compare.
13440         (*cbranchsf4): Use rx_split_cbranch.
13441         (*cmpsf): Don't accept "i" constraint.
13442         (*conditional_branch): Only valid after reload.
13443         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13445 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13447         PR target/47385
13448         * config/rs6000/altivec.md (vector constant splitters): Add
13449         support for creating vector single precision constants if -mvsx is
13450         used and we would create the constant using Altivec primitives.
13452 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13453             Richard Sandiford  <rdsandiford@googlemail.com>
13455         PR rtl-optimization/47166
13456         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13457         mechanism for PRE_MODIFY and POST_MODIFY.
13458         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13459         reloadreg.
13461 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13463         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13465 2011-01-22  Jan Hubicka  <jh@suse.cz>
13467         PR lto/47333
13468         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13470 2011-01-22  Jan Hubicka  <jh@suse.cz>
13472         PR tree-optimization/43884
13473         PR lto/44334
13474         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13475         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13477 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13479         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13480         * config/s390/s390.c (s390_register_move_cost,
13481         s390_memory_move_cost): New.
13482         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13484 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13486         PR middle-end/47401
13487         * except.c (sjlj_assign_call_site_values): Move setting the
13488         crtl->uses_eh_lsda flag to ...
13489         (sjlj_mark_call_sites): ... here.
13490         (sjlj_emit_function_enter): Support NULL dispatch label.
13491         (sjlj_build_landing_pads): In a function with no landing pads
13492         that still has must-not-throw regions, generate code to register
13493         a personality function with empty LSDA.
13495 2011-01-21  Richard Henderson  <rth@redhat.com>
13497         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13499         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13501         * compare-elim.c: New file.
13502         * Makefile.in (OBJS-common): Add it.
13503         (compare-elim.o): New.
13504         * common.opt (fcompare-elim): New.
13505         * opts.c (default_options_table): Add OPT_fcompare_elim.
13506         * tree-pass.h (pass_compare_elim_after_reload): New.
13507         * passes.c (init_optimization_passes): Add it.
13508         * recog.h: Protect against re-inclusion.
13509         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13510         * doc/invoke.texi (-fcompare-elim): Document it.
13511         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13512         * doc/tm.texi: Rebuild.
13514 2011-01-22  Nick Clifton  <nickc@redhat.com>
13516         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13517         rx_split_fp_compare.
13519 2011-01-22  Nick Clifton  <nickc@redhat.com>
13521         * config/rx/rx.md (UNSPEC_CONST): New.
13522         (deallocate_and_return): Wrap the amount popped off the stack in
13523         an UNSPEC_CONST in order to stop it being rejected by
13524         -mmax-constant-size.
13525         (pop_and_return): Add a "(return)" rtx.
13526         (call): Drop the immediate operand.
13527         (call_internal): Likewise.
13528         (call_value): Likewise.
13529         (call_value_internal): Likewise.
13530         (sibcall_internal): Likewise.
13531         (sibcall_value_internal): Likewise.
13532         (sibcall): Likewise.  Generate an explicit call using
13533         sibcall_internal.
13534         (sibcall_value): Likewise.
13535         (mov<>): FAIL if a constant operand is not legitimate.
13536         (addsi3_unpsec): New pattern.
13538         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13539         (ok_for_max_constant): New function.
13540         (gen_safe_add): New function.
13541         (rx_expand_prologue): Use gen_safe_add.
13542         (rx_expand_epilogue): Likewise.
13543         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13544         UNSPEC CONSTs.
13546 2011-01-21  Jeff Law  <law@redhat.com>
13548         PR tree-optimization/47053
13549         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13550         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13551         statements are deleted.
13552         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13553         is nonempty, then purge dead edges and cleanup the CFG.
13555 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13557         PR debug/47402
13558         Temporarily revert:
13559         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13560         PR debug/47106
13561         * tree-dfa.c (create_var_ann): Mark variable as used.
13563 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13565         PR middle-end/45566
13566         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13567         notes from other section in hot/cold partitioning even if
13568         last_action is -3.  Increment call_site_base.
13570         PR rtl-optimization/47366
13571         * fwprop.c (forward_propagate_into): Return bool.  If
13572         any changes are made, -fnon-call-exceptions is used and
13573         REG_EH_REGION note is present, call purge_dead_edges
13574         and return true if it purged anything.
13575         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13576         any EH edges were purged.
13578 2011-01-21  Jeff Law  <law@redhat.com>
13580         PR rtl-optimization/41619
13581         * caller-save.c (setup_save_areas): Break out code to determine
13582         which hard regs are live across calls by examining the reload chains
13583         so that it is always used.
13584         Eliminate code which checked REG_N_CALLS_CROSSED.
13586 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13588         PR tree-optimization/47355
13589         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13590         NOP has non-debug uses beyond PHIs in new_bb.
13592 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13594         PR debug/47106
13595         * cfgexpand.c (account_used_vars_for_block): Only account vars
13596         that are annotated as used.
13597         (estimated_stack_frame_size): Don't set TREE_USED.
13598         * tree-dfa.c (create_var_ann): Mark variable as used.
13600 2011-01-21  Richard Guenther  <rguenther@suse.de>
13602         PR middle-end/47395
13603         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13605 2011-01-21  Richard Guenther  <rguenther@suse.de>
13607         PR tree-optimization/47365
13608         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13609         (vn_reference_lookup_pieces): Adjust.
13610         (vn_reference_lookup): Likewise.
13611         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13612         (vn_reference_lookup_3): Only look through kills if in
13613         VN_WALKREWRITE mode.
13614         (vn_reference_lookup_pieces): Adjust.
13615         (vn_reference_lookup): Likewise.
13616         (visit_reference_op_load): Likewise.
13617         (visit_reference_op_store): Likewise.
13618         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13619         (compute_avail): Likewise.
13620         (eliminate): Likewise.
13622 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13624         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13625         DECL_IGNORED_P non-reg vars if they are used.
13627         PR tree-optimization/47391
13628         * varpool.c (const_value_known_p): Return false if
13629         decl is volatile.
13631 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13633         PR bootstrap/47215
13634         * config/i386/i386.c (ix86_local_alignment): Handle
13635         case for va_list_type_node is nil.
13636         (ix86_canonical_va_list_type): Likewise.
13638 2011-01-21  Alan Modra  <amodra@gmail.com>
13640         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13641         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13643 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13645         * config/arm/arm.md (define_attr type): Rename f_load
13646         and f_store to f_fpa_load and f_fpa_store. Update.
13647         (write_conflict): Deal with rename fallout.
13648         (*push_fp_multi): Likewise.
13649         * config/arm/fpa.md (f_load): Use f_fpa_load.
13650         (f_store): Use f_fpa_store.
13651         (*movsf_fpa): Likewise.
13652         (*movdf_fpa): Likewise.
13653         (*movxf_fpa): Likewise.
13654         (*thumb2_movsf_fpa): Likewise.
13655         (*thumb2_movdf_fpa): Likewise.
13656         (*thumb2_movxf_fpa): Likewise.
13657         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13658         f_loadd and f_stored.
13659         (*thumb2_movdi_vfp): Likewise.
13660         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13661         (*thumb2_movsi_vfp): Likewise.
13662         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13663         Use f_loads instead of f_load.
13664         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13666 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13668         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13669         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13670         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13671         (xtensa_mode_dependent_address_p): New function.
13672         (constantpool_address_p): Make static. Change return type to bool.
13673         Change argument type to const_rtx. Use CONST_INT_P predicate.
13675 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13677         PR debug/46583
13678         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13680 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13682         PR debug/47283
13683         * cfgexpand.c (expand_debug_expr): Instead of generating
13684         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13685         etc. handling.
13687 2011-01-20  Richard Guenther  <rguenther@suse.de>
13689         PR middle-end/47370
13690         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13691         the pointer operand of MEM_REFs.
13693 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13695         PR tree-optimization/46130
13696         * ipa-split.c (consider_split): If return_bb contains non-virtual
13697         PHIs other than for retval or if split_function would not adjust it,
13698         refuse to split.
13700 2011-01-20  Richard Guenther  <rguenther@suse.de>
13702         PR tree-optimization/47167
13703         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13704         Revert previous change, only avoid enumeral type changes.
13706 2011-01-19  Mike Stump  <mikestump@comcast.net>
13708         * doc/tm.texi.in (BRANCH_COST): Englishify.
13709         * doc/tm.texi (BRANCH_COST): Likewise.
13711 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13713         PR c++/47291
13714         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13715         (gen_scheduled_generic_parms_dies): New functions.
13716         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13717         generation for the end of CU compilation.
13718         (dwarf2out_finish): Generate template parameters DIEs here.
13720 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13722         PR debug/46240
13723         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13724         debug bind stmt on merge edges.
13726 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13728         PR debug/47079
13729         PR debug/46724
13730         * function.c (instantiate_expr): Instantiate incoming rtl of
13731         implicit arguments, and recurse on VALUE_EXPRs.
13732         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13733         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13735 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13737         * c-parser.c (c_parser_for_statement): Initialize
13738         collection_expression.
13740 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13742         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13744 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13746         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13747         (LINK_SHLIB_SPEC): Don't use %(link_path).
13748         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13750 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13752         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13753         (NO_SHARED_LIB_SUPPORT): Remove.
13754         (LINK_SHLIB_SPEC): Remove one conditional definition.
13756 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13758         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13759         %{call_shared}.
13760         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13761         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13762         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13763         %{call_shared} and conditionals on these options not being passed.
13764         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13765         %{call_shared}.
13767 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13769         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13770         simplify.
13772         * ipa-split.c: Spelling fixes.
13774 2011-01-19  Richard Henderson  <rth@redhat.com>
13776         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13777         (*mulsi3): Likewise.
13779         * longlong.h [__mn10300__] (count_leading_zeros): New.
13780         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13781         [__mn10300__] (add_ssaaaa, subddmmss): New.
13782         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13783         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13785 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13787         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13789 2011-01-19  Richard Henderson  <rth@redhat.com>
13791         * config/mn10300/mn10300.md (addsi3_flags): New.
13792         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13793         (subsi3_flags, subc_internal, subdi3): New.
13794         (subdi3_internal, *subdi3_degenerate): New.
13795         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13797         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13798         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13799         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13800         * config/mn10300/mn10300-protos.h: Update.
13801         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13802         (return_ret): Likewise.  Rename from return_internal_regs.
13803         (return_internal): Remove.
13805         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13806         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13807         (mn10300_legitimate_constant_p): Likewise.
13808         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13809         (mn10300_frame_size): New.
13810         (mn10300_expand_prologue): Use it.
13811         (mn10300_expand_epilogue): Likewise.
13812         (mn10300_initial_offset): Likewise.
13813         * config/mn10300/mn10300-protos.h: Update.
13814         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13815         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13816         (prologue, epilogue, return_internal): Tidy output code.
13817         (mn10300_store_multiple_operation, return): Likewise.
13818         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13819         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13820         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13821         (load_pic, am33_load_pic): New.
13822         (mn10300_load_pic0, mn10300_load_pic1): New.
13824         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13825         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13826         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13827         (cc_flags_for_mode, cc_flags_for_code): New.
13828         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13829         overflow flag is not valid.  Validate that the flags we need
13830         for the comparison are valid.
13831         (mn10300_output_cmp): Remove.
13832         (mn10300_output_add): New.
13833         (mn10300_select_cc_mode): Use cc_flags_for_code.
13834         (mn10300_split_cbranch): New.
13835         (mn10300_match_ccmode): New.
13836         (mn10300_split_and_operand_count): New.
13837         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13838         to the function.
13839         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13840         (addsi3): ... here.  Use mn10300_output_add.
13841         (*addsi3_flags): New.
13842         (*am33_subsi3, *mn10300_subsi3): Merge...
13843         (subsi3): ... here.  Use attribute isa.
13844         (*subsi3_flags): New.
13845         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13846         when possible.
13847         (*am33_andsi3, *mn10300_andsi3): Merge...
13848         (andsi3): ... here.
13849         (*andsi3_flags): New.
13850         (andsi3 splitters): New.
13851         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13852         (iorsi3): ... here.
13853         (*iorsi3_flags): New.
13854         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13855         (xorsi3): ... here.
13856         (*xorsi3_flags): New.
13857         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13858         (one_cmplsi2): ... here.
13859         (*one_cmplsi2_flags): New.
13860         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13861         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13862         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13863         use matching constraints to eliminate a self-comparison.
13864         (*integer_conditional_branch): Rename from integer_conditional_branch.
13865         Use int_mode_flags to match CC_REG.
13866         (*cbranchsi4_btst, *btstsi): New.
13867         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13868         mn10300_split_cbranch.
13869         (*am33_cmpsf): Rename from am33_cmpsf.
13870         (*float_conditional_branch): Rename from float_conditional_branch.
13871         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13872         (zero_extendqisi2): ... here.
13873         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13874         (zero_extendhisi2): ... here.
13875         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13876         (extendqisi2): ... here.
13877         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13878         (extendhisi2): ... here.
13879         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13880         (ashlsi3): ... here.
13881         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13882         (lshrsi3): ... here.
13883         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13884         (ashrsi3): ... here.
13885         (consecutive add peephole): Remove.
13886         * config/mn10300/predicates.md (label_ref_operand): New.
13887         (int_mode_flags): New.
13888         (CCZN_comparison_operator): New.
13890         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13891         (throughput_42_latency_43): New reservation.
13892         (mulsidi3, umulsidi3): New expanders.
13893         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13894         the MDR register to allocation; separately allocate the low and
13895         high parts of the DImode result.
13896         (umulsidi3_internal): Similarly.
13897         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13898         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13899         (udivsi3, umodsi3): Remove.
13900         (udivmodsi4, divmodsi4): New expanders.
13901         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13902         (*divmodsi4): Simiarly.
13903         (ext_internal): New.
13905         * config/mn10300/constraints.md ("z"): New constraint.
13906         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13907         (FIXED_REGISTERS): Don't fix MDR.
13908         (CALL_USED_REGSITERS): Reformat nicely.
13909         (REG_ALLOC_ORDER): Add MDR.
13910         (enum regclass): Add MDR_REGS.
13911         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13912         (IRA_COVER_CLASSES): Add MDR_REGS.
13913         (REGNO_REG_CLASS): Handle MDR_REG.
13914         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13915         (mn10300_register_move_cost): Likewise.
13916         * config/mn10300/mn10300.md (MDR_REG): New.
13917         (*movsi_internal): Handle moves to/from MDR_REGS.
13919         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13920         POST_MODIFY.
13921         (mn10300_secondary_reload): Tidy combination reload classes.
13922         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13923         addresses for AM33.  Allow symbolic offsets for reg+imm.
13924         (mn10300_regno_in_class_p): New.
13925         (mn10300_legitimize_reload_address): New.
13926         * config/mn10300/mn10300.h (enum reg_class): Remove
13927         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13928         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
13929         SP_OR_GENERAL_REGS.
13930         (REG_CLASS_NAMES): Update to match.
13931         (REG_CLASS_CONTENTS): Likewise.
13932         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13933         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13934         (REGNO_IN_RANGE_P): Remove.
13935         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13936         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13937         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13938         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13939         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13940         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13941         (REGNO_GENERAL_P): New.
13942         (HAVE_POST_MODIFY_DISP): New.
13943         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13944         (LEGITIMIZE_RELOAD_ADDRESS): New.
13945         * config/mn10300/mn10300-protos.h: Update.
13947         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13948         DATA_REGS for AM33 stack-pointer destination.
13949         (mn10300_preferred_output_reload_class): Likewise.
13950         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13951         into a form appropriate for ...
13952         (TARGET_SECONDARY_RELOAD): New.
13953         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13954         * config/mn10300/mn10300-protos.h: Update.
13955         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13956         reload_insi; use the "A" constraint for the scratch; handle AM33
13957         moves of sp to non-address registers.
13959         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13960         (*movqi_internal): ... here.
13961         (*am33_movhi, *mn10300_movhi): Merge into...
13962         (*movhi_internal): ... here.
13963         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
13964         as the source/destination of moves from/to SP.
13965         (movsf): Only allow for AM33-2.
13966         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
13967         any integer constant constraint.  Only allow for AM33-2.  Tidy
13968         all of the alternative outputs.
13969         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13970         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
13971         for MN103.
13972         (udivsi3, umodsi3): New patterns for MN103 only.
13974 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
13976         * doc/tm.texi.in: Spell out that a lack of register class unions
13977         can lead to ICEs.
13978         * doc/tm.texi: Regenerate.
13980 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13982         PR rtl-optimization/47337
13983         * dce.c (check_argument_store): New function.
13984         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
13986         PR tree-optimization/47290
13987         * tree-eh.c (infinite_empty_loop_p): New function.
13988         (cleanup_empty_eh): Use it.
13990 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
13992         PR target/46997
13993         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13994         (a64_expand_widen_sum): Ditto.
13995         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13996         (vec_extract_evenodd_help): Ditto.
13997         (vec_extract_evenv4hi): Ditto.
13998         (vec_extract_oddv4hi): Ditto.
13999         (vec_extract_evenv2si): Ditto.
14000         (vec_extract_oddv2si): Ditto.
14001         (vec_extract_evenv2sf): Ditto.
14002         (vec_extract_oddv2sf): Ditto.
14003         (vec_pack_trunc_v4hi: Ditto.
14004         (vec_pack_trunc_v2si): Ditto.
14005         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14006         (vec_interleave_highv8qi): Ditto.
14007         (mix1_r): Ditto.
14008         (vec_extract_oddv8qi): Ditto.
14009         (vec_interleave_lowv4hi): Ditto.
14010         (vec_interleave_highv4hi): Ditto.
14011         (vec_interleave_lowv2si): Ditto.
14012         (vec_interleave_highv2si): Ditto.
14014 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14016         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14017         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14018         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14019         (pa_c_mode_for_suffix): New.
14020         (TARGET_EXPAND_BUILTIN): Define.
14021         (TARGET_C_MODE_FOR_SUFFIX): Define.
14022         (pa_builtins): Define.
14023         (pa_init_builtins): Register __float128 type and init new support
14024         builtins.
14025         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14026         * config/pa/quadlib.c (_U_Qfcopysign): New.
14028 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14030         PR middle-end/46894
14031         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14032         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14033         are defined.
14035 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14037         PR tree-optimization/47179
14038         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14039         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14041 2011-01-18  Richard Guenther  <rguenther@suse.de>
14043         PR rtl-optimization/47216
14044         * emit-rtl.c: Include tree-flow.h.
14045         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14046         of replicating it with different semantics.
14047         * Makefile.in (emit-rtl.o): Adjust.
14049 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14051         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14052         (cortex_a9_dp): Handle neon types correctly.
14054 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14056         PR rtl-optimization/47299
14057         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14058         subtarget.  Use normal multiplication if both operands are constants.
14059         * expmed.c (expand_widening_mult): Don't try to optimize constant
14060         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14061         before using it.
14063 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14065         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14066         spacing after 'e.g.', typos, comma, hyphenation.
14068 2011-01-17  Richard Henderson  <rth@redhat.com>
14070         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14071         (rx_restricted_mem_operand): New.
14072         (rx_shift_operand): Use register_operand.
14073         (rx_source_operand, rx_compare_operand): Likewise.
14074         * config/rx/rx.md (addsi3_flags): New expander.
14075         (adddi3): Rewrite as expander.
14076         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14077         (subsi3_flags): New expander.
14078         (subdi3): Rewrite as expander.
14079         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14081         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14082         (rx_init_builtins): Remove sat builtin.
14083         (rx_expand_builtin): Likewise.
14084         * config/rx/rx.md (ssaddsi3): New.
14085         (*sat): Rename from sat.  Represent the CC_REG input.
14087         * config/rx/predicates.md (rshift_operator): New.
14088         * config/rx/rx.c (rx_expand_insv): Remove.
14089         * config/rx/rx-protos.h: Update.
14090         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14091         operand to the canonical position.
14092         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14093         (*bitclr, *bitclr_in_memory): Similarly.
14094         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14095         (insv): Retain the zero_extract in the expansion.
14097         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14098         (bswaphi2, bitinvert, revw): Likewise.
14100         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14101         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14102         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14103         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14104         (bitset, bitset_in_memory): Likewise.
14105         (bitinvert, bitinvert_in_memory): Likewise.
14106         (bitclr, bitclr_in_memory): Likewise.
14107         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14108         (rx_strend, rx_cmpstrn): Likewise.
14109         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14110         (bitop peep2 patterns): Remove.
14112         * config/rx/rx.c (rx_match_ccmode): New.
14113         * config/rx/rx-protos.h: Update.
14114         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14115         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14116         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14117         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14118         (fix_truncsfsi2, floatsisf2): Likewise.
14119         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14120         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14121         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14122         (*subsi3_flags, *xorsi3_flags): New.
14124         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14126         * config/rx/rx.c (rx_print_operand): Remove workaround for
14127         unsplit comparison operations.
14129         * config/rx/rx.md (movsicc): Split after reload.
14130         (*movsicc): Merge *movsieq and *movsine via match_operator.
14131         (*stcc): New pattern.
14133         * config/rx/rx.c (rx_float_compare_mode): Remove.
14134         * config/rx/rx.h (rx_float_compare_mode): Remove.
14135         * config/rx/rx.md (cstoresi4): Split after reload.
14136         (*sccc): New pattern.
14138         * config/rx/predicates.md (label_ref_operand): New.
14139         (rx_z_comparison_operator): New.
14140         (rx_zs_comparison_operator): New.
14141         (rx_fp_comparison_operator): New.
14142         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14143         Validate that the flags are set properly for the comparison.
14144         (rx_gen_cond_branch_template): Remove.
14145         (rx_cc_modes_compatible): Remove.
14146         (mode_from_flags): New.
14147         (flags_from_code): Rename from flags_needed_for_conditional.
14148         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14149         (rx_select_cc_mode): Likewise.
14150         (rx_split_fp_compare): New.
14151         (rx_split_cbranch): New.
14152         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14153         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14154         (*cbranchsf4): Similarly.
14155         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14156         match_operator and rx_split_cbranch.
14157         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14158         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14159         (*cmpsi): Rename from cmpsi.
14160         (*tstsi): Rename from tstsi.
14161         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14162         (*conditional_branch): Rename from conditional_branch.
14163         (*reveresed_conditional_branch): Remove.
14164         (b<code>): Remove expander.
14165         * config/rx/rx-protos.h: Update.
14167         * config/rx/rx.c (rx_compare_redundant): Remove.
14168         * config/rx/rx.md (cmpsi): Don't use it.
14169         * config/rx/rx-protos.h: Update.
14171         * config/rx/rx-modes.def (CC_F): New mode.
14172         * config/rx/rx.c (rx_select_cc_mode): New.
14173         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14174         * config/rx/rx-protos.h: Update.
14176 2011-01-17  Richard Henderson  <rth@redhat.com>
14178         * except.c (dump_eh_tree): Fix stray ; after for statement.
14180 2011-01-17  Richard Guenther  <rguenther@suse.de>
14182         PR tree-optimization/47313
14183         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14184         handling before copying the body.  Properly deal with
14185         by-reference result in SSA form.
14187 2011-01-17  Ian Lance Taylor  <iant@google.com>
14189         PR target/47219
14190         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14191         (struct_value_alias_set): Don't define.
14192         (sparc_option_override): Don't set sparc_sr_alias_set and
14193         struct_value_alias_set.
14194         (save_or_restore_regs): Use gen_frame_mem rather than calling
14195         set_mem_alias_set.
14196         (sparc_struct_value_rtx): Likewise.
14198 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14200         PR target/47318
14201         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14202         (_mm_maskstore_pd): Likewise.
14203         (_mm_maskload_ps): Likewise.
14204         (_mm_maskstore_ps): Likewise.
14205         (_mm256_maskload_pd): Change mask to __m256i.
14206         (_mm256_maskstore_pd): Likewise.
14207         (_mm256_maskload_ps): Likewise.
14208         (_mm256_maskstore_ps): Likewise.
14210         * config/i386/i386-builtin-types.def: Updated.
14211         (ix86_expand_special_args_builtin): Likewise.
14213         * config/i386/i386.c (bdesc_special_args): Update
14214         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14215         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14216         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14217         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14219         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14220         Use <avxpermvecmode> on mask register.
14221         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14223 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14224             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14225             Eric Botcazou  <ebotcazou@adacore.com>
14227         PR target/46655
14228         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14229         if <= USHRT_MAX in 32-bit mode.
14231 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14233         * doc/install.texi (Configuration, Specific): Wrap long
14234         lines in examples.  Allow line wrapping in long options
14235         and URLs where beneficial for PDF output.
14237 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14239         * config/mips/mips.c (mips_classify_symbol): Don't return
14240         SYMBOL_PC_RELATIVE for nonlocal labels.
14242 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14244         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14246 2011-01-15  Jan Hubicka  <jh@suse.cz>
14248         PR tree-optimization/47276
14249         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14250         declarations as needed.
14252 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14254         * common.opt (fdevirtualize): New flag.
14255         * doc/invoke.texi (Option Summary): Document it.
14256         * opts.c (default_options_table): Add devirtualize flag.
14257         * ipa-prop.c (detect_type_change): Return immediately if
14258         devirtualize flag is not set.
14259         (detect_type_change_ssa): Likewise.
14260         (compute_known_type_jump_func): Likewise.
14261         (ipa_analyze_virtual_call_uses): Likewise.
14263 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14265         PR tree-optimization/45934
14266         PR tree-optimization/46302
14267         * ipa-prop.c (type_change_info): New type.
14268         (stmt_may_be_vtbl_ptr_store): New function.
14269         (check_stmt_for_type_change): Likewise.
14270         (detect_type_change): Likewise.
14271         (detect_type_change_ssa): Likewise.
14272         (compute_complex_assign_jump_func): Check for dynamic type change.
14273         (compute_complex_ancestor_jump_func): Likewise.
14274         (compute_known_type_jump_func): Likewise.
14275         (compute_scalar_jump_functions): Likewise.
14276         (ipa_analyze_virtual_call_uses): Likewise.
14277         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14279 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14281         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14282         * config/i386/i386.opt (msse5): New Alias.
14284 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14286         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14287         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14288         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14289         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14291 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14293         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14294         -mcpu options.
14295         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14296         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14297         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14298         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14299         Likewise.
14300         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14302 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14304         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14306 2011-01-14  Mike Stump  <mikestump@comcast.net>
14308         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14309         * config/fr30/fr30.md: Likweise
14310         (movsi_push): Likewise.
14311         (movsi_pop): Likewise.
14312         (enter_func): Likewise.
14313         * config/moxie/moxie.md (movsi_push): Likewise.
14314         (movsi_pop): Likewise.
14316 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14318         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14319         %{no_archive} %{exact_version}.
14320         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14321         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14322         %{no_archive} %{exact_version}.
14323         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14324         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14325         * config/mips/vxworks.h: Likewise.
14327 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14329         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14331 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14333         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14334         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14336 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14338         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14339         -nodefaultlib.
14341 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14343         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14344         for mcpu not cpu.
14345         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14346         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14347         not cpu.
14348         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14349         Don't handle -shlib.
14351 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14353         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14354         (CC1_SPEC): Don't handle -profile.
14356 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14358         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14359         * config/mips/mips.h (CC1_SPEC): Likewise.
14361 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14363         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14364         * config/mips/mips.h (CC1_SPEC): Likewise.
14366 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14368         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14369         * config/m32r/linux.h (LINK_SPEC): Likewise.
14370         * config/mips/linux.h (LINK_SPEC): Likewise.
14371         * config/mips/linux64.h (LINK_SPEC): Likewise.
14372         * config/sparc/linux.h (LINK_SPEC): Likewise.
14373         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14374         LINK_SPEC): Likewise.
14375         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14377 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14379         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14380         %{version:-v}.
14381         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14383 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14385         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14386         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14388 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14390         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14392 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14394         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14395         supports -Bstatic/-Bdynamic.
14396         * configure: Regenerate.
14398 2011-01-14  Jan Hubicka  <jh@suse.cz>
14399             Jack Howarth  <howarth@bromo.med.uc.edu>
14401         PR target/46037
14402         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14403         when checking debug_info_level. Test write_symbols instead of
14404         debug_hooks->var_location when setting flag_var_tracking_uninit.
14406 2011-01-14  Richard Guenther  <rguenther@suse.de>
14408         PR tree-optimization/47179
14409         * target.def (ref_may_alias_errno): New target hook.
14410         * targhooks.h (default_ref_may_alias_errno): Declare.
14411         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14412         (default_ref_may_alias_errno): New function.
14413         * target.h (struct ao_ref_s): Declare.
14414         * tree-ssa-alias.c: Include target.h.
14415         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14416         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14417         (targhooks.o): Likewise.
14418         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14419         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14421 2011-01-14  Richard Guenther  <rguenther@suse.de>
14423         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14425 2011-01-14  Richard Guenther  <rguenther@suse.de>
14427         PR tree-optimization/47280
14428         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14429         return CFG changes.
14430         (tree_ssa_forward_propagate_single_use_vars): Deal with
14431         CFG changes from associate_plusminus.
14433 2011-01-14  Richard Guenther  <rguenther@suse.de>
14435         PR middle-end/47281
14436         Revert
14437         2011-01-11  Richard Guenther  <rguenther@suse.de>
14439         PR tree-optimization/46076
14440         * tree-ssa.c (useless_type_conversion_p): Conversions from
14441         unprototyped to empty argument list function types are useless.
14443 2011-01-14  Richard Guenther  <rguenther@suse.de>
14445         PR tree-optimization/47286
14446         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14448 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14450         PR middle-end/46823
14451         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14453 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14455         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14456         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14457         * config/xtensa/xtensa.c (xtensa_libcall_value,
14458         xtensa_function_value_regno_p): New functions.
14459         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14461 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14463         PR c++/47213
14464         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14465         PE specific hook.
14466         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14467         New function prototype.
14468         * config/i386/winnt.c (i386_pe_assemble_visibility):
14469         Warn only if attribute was specified by user.
14471 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14473         PR target/47251
14474         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14475         floating point.
14476         (floatunsdidf2_fcfidu): Ditto.
14478 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14480         * config/s390/s390.c (print_operand_address): Replace 'error' with
14481         'output_operand_lossage'.
14482         (print_operand): Likewise.
14484 2011-01-13  Jeff Law  <law@redhat.com>
14486         PR rtl-optimization/39077
14487         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14488         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14489         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14490         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14491         * gcse.c (prune_insertions_deletions): New function.
14492         (compute_pre_data): Use it.
14494 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14496         PR debug/PR46973
14497         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14498         static function.
14499         (prune_unused_types_mark): Use it.
14501 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14503         PR rtl-optimization/45352
14504         * sel-sched.c: Update copyright years.
14505         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14506         in the advancing loop when we have issued issue_rate insns.
14508 2011-01-12  Richard Henderson  <rth@redhat.com>
14510         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14511         (TARGET_MD_ASM_CLOBBERS): New.
14513         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14514         (TARGET_DELEGITIMIZE_ADDRESS): New.
14516         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14517         (clzsi2, *bsch): New patterns.
14519         * config/mn10300/mn10300.md (INT): New mode iterator.
14520         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14522         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14523         flag_split_wide_types.
14525         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14526         (mn10300_trampoline_init): Rewrite without a template, an immediate
14527         load and a direct branch.
14528         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14530 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14532         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14533         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14534         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14535         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14537 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14539         PR debug/47209
14540         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14541         of type.
14543 2011-01-12  Jan Hubicka  <jh@suse.cz>
14545         PR driver/47244
14546         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14547         (PLUGIN_COND_CLOSE): New macro.
14548         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14550 2011-01-12  Richard Guenther  <rguenther@suse.de>
14552         PR lto/47259
14553         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14554         register variables in a MEM_REF.
14556 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14558         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14559         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14560         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14561         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14562         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14563         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14564         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14565         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14566         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14567         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14568         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14569         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14570         * config/gnu-user.h: New.  Copied from linux.h.
14571         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14572         GNU_USER_TARGET_STARTFILE_SPEC.
14573         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14574         GNU_USER_TARGET_ENDFILE_SPEC.
14575         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14576         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14577         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14578         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14579         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14580         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14581         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14582         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14583         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14584         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14585         * config/arm/linux-eabi.h (CC1_SPEC): Use
14586         GNU_USER_TARGET_CC1_SPEC.
14587         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14588         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14589         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14590         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14591         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14592         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14593         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14594         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14596 2011-01-12  Richard Guenther  <rguenther@suse.de>
14598         PR other/46946
14599         * doc/invoke.texi (ffast-math): Document it is turned on
14600         with -Ofast.
14602 2011-01-12  Jan Hubicka  <jh@suse.cz>
14604         PR tree-optimization/47233
14605         * opts.c (common_handle_option): Disable ipa-reference with profile
14606         feedback.
14608 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14610         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14611         error message.
14613 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14615         * c-parser.c (c_lex_one_token): Updated and reindented some
14616         comments.  No changes in code.
14618 2011-01-11  Ian Lance Taylor  <iant@google.com>
14620         * godump.c (go_output_var): Don't output the variable if there is
14621         already a type with the same name.
14623 2011-01-11  Ian Lance Taylor  <iant@google.com>
14625         * godump.c (go_format_type): Don't generate float80.
14627 2011-01-11  Richard Henderson  <rth@redhat.com>
14629         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14630         declaration.  Rewrite for both speed and size.
14631         (mn10300_address_cost_1): Remove.
14632         (mn10300_register_move_cost): New.
14633         (mn10300_memory_move_cost): New.
14634         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14635         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14636         extensions, shifts, BSWAP, CLZ.
14637         (mn10300_wide_const_load_uses_clr): Remove.
14638         (TARGET_REGISTER_MOVE_COST): New.
14639         (TARGET_MEMORY_MOVE_COST): New.
14640         * config/mn10300/mn10300-protos.h: Update.
14641         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14643         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14644         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14645         * config/mn10300/mn10300-protos.h: Update.
14646         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14647         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14648         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14649         (*test_int_bitfield, *test_byte_bitfield): Remove.
14650         (*bit_test, *subreg_bit_test): Remove.
14651         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14653         * config/mn10300/constraints.md ("c"): Rename from "A".
14654         ("A", "D"): New constraint letters.
14655         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14656         (fmssf4, fnmasf4, fnmssf4): Likewise.
14658         * config/mn10300/mn10300.md (isa): New attribute.
14659         (enabled): New attribute.
14661         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14662         (abssf2, negsf2): Define only for hardware fp.
14663         (sqrtsf2): Reformat.
14664         (addsf3, subsf3, mulsf3): Merge expander and insn.
14666         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14667         (DEBUGGER_AUTO_OFFSET): Remove.
14668         (DEBUGGER_ARG_OFFSET): Remove.
14670         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14671         Emit register stores with the same offsets as the hardware.
14672         (mn10300_store_multiple_operation): Don't check that the register
14673         save offsets are monotonic.
14674         * config/mn10300/mn10300-protos.h: Update.
14676         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14678         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14679         in terms of the value on the stack, not the MDR register.
14681 2011-01-11  Jan Hubicka  <jh@suse.cz>
14683         PR lto/45721
14684         PR lto/45375
14685         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14686         (symbol_alias_set_destroy, symbol_alias_set_contains,
14687         propagate_aliases_backward): Declare.
14688         * lto-streamer-out.c (struct sets): New sturcture.
14689         (trivally_defined_alias): New function.
14690         (output_alias_pair_p): Rewrite.
14691         (output_unreferenced_globals): Fix output of alias pairs.
14692         (produce_symtab): Likewise.
14693         * ipa.c (function_and_variable_visibility): Set weak alias destination
14694         as needed in lto.
14695         * varasm.c (symbol_alias_set_t): Remove.
14696         (symbol_alias_set_destroy): Export.
14697         (propagate_aliases_forward, propagate_aliases_backward): New functions
14698         based on ...
14699         (compute_visible_aliases): ... this one; remove.
14700         (trivially_visible_alias): New
14701         (trivially_defined_alias): New.
14702         (remove_unreachable_alias_pairs): Rewrite.
14703         (finish_aliases_1): Reorganize code checking if alias is defined.
14704         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14705         in LTO mode.
14707 2011-01-11  Richard Guenther  <rguenther@suse.de>
14709         PR tree-optimization/46076
14710         * tree-ssa.c (useless_type_conversion_p): Conversions from
14711         unprototyped to empty argument list function types are useless.
14713 2011-01-11  Richard Guenther  <rguenther@suse.de>
14715         PR middle-end/45235
14716         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14717         volatile MEMs as MEM_READONLY_P.
14719 2011-01-11  Richard Guenther  <rguenther@suse.de>
14721         PR tree-optimization/47239
14722         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14724 2011-01-11  Jeff Law  <law@redhat.com>
14726         PR tree-optimization/47086
14727         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14728         IVs from statements that might throw.
14730 2011-01-10  Jan Hubicka  <jh@suse.cz>
14732         PR lto/45375
14733         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14735 2011-01-10  Jan Hubicka  <jh@suse.cz>
14737         PR lto/45375
14738         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14739         when correcting profile.
14741 2011-01-10  Jan Hubicka  <jh@suse.cz>
14743         PR lto/46083
14744         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14745         DECL_FINI_PRIORITY.
14746         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14747         Restore DECL_FINI_PRIORITY.
14749 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14751         * doc/gimple.texi: Fix quoting of multi-word return values in
14752         @deftypefn statements.  Ensure presence of return value.  Wrap
14753         overlong @deftypefn lines.
14754         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14755         descriptions of removed functions.
14756         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14757         of multi-word return value in @deftypefn statement.
14759 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14761         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14762         (Conditional Expressions, Logical Operators)
14763         (Statement and operand traversals): Do not indent smallexample
14764         code.  Fix duplicate function argument in example.
14766 2011-01-10  Jeff Law  <law@redhat.com>
14768         PR tree-optimization/47141
14769         * ipa-split.c (split_function): Handle case where we are
14770         returning a value and the return block has a virtual operand phi.
14772 2011-01-10  Jan Hubicka  <jh@suse.cz>
14774         PR tree-optimization/47234
14775         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14776         (pass_feedback_split_functions): Declare.
14777         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14778         tree-profile.
14779         * ipa-split.c (gate_split_functions): Update comments; disable
14780         split-functions for profile_arc_flag and branch_probabilities.
14781         (gate_feedback_split_functions): New function.
14782         (execute_feedback_split_functions): New function.
14783         (pass_feedback_split_functions): New global var.
14785 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14787         PR lto/46760
14788         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14789         calling gimple_call_set_cannot_inline.
14791 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14793         * config/darwin-sections.def: Remove unused section.
14795 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14797         PR c++/47218
14798         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14800 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14802         PR objc/47232
14803         * c-parser.c (c_parser_declaration_or_fndef): Improved
14804         error message.
14806 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14808         * config/i386/winnt.c (i386_pe_start_function): Make sure
14809         to switch back to function's section.
14811 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14813         PR gcc/46902
14814         PR testsuite/46912
14815         * plugin.c: Move include of dlfcn.h from here...
14816         * system.h: ... to here.
14818 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14820         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14821         file name.
14822         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14823         two extra empty pages in PDF output.
14825 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14827         PR objc/47078
14828         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14829         for error recovery purposes behave as if it was not specified so
14830         that the default type is usd.
14832 2011-01-07  Jan Hubicka  <jh@suse.cz>
14834         PR tree-optmization/46469
14835         * ipa.c (function_and_variable_visibility): Clear needed flags on
14836         nodes with external decls; handle weakrefs merging correctly.
14838 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14840         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14841         not false.
14843 2011-01-07  Jan Hubicka  <jh@suse.cz>
14845         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14846         and no longer claim that gold is required for linker plugin.
14847         * configure: Regenerate.
14848         * gcc.c (PLUGIN_COND): New macro.
14849         (LINK_COMMAND_SPEC): Use it.
14850         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14851         * config.in (HAVE_LTO_PLUGIN): New.
14852         * configure.ac (--with-lto-plugin): New parameter; autodetect
14853         HAVE_LTO_PLUGIN.
14855 2011-01-07  Jan Hubicka  <jh@suse.cz>
14857         PR tree-optimization/46367
14858         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14859         when we can update original.
14860         (cgraph_mark_inline_edge): Sanity check.
14861         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14863 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14865         * config/spu/spu.h (ASM_COMMENT_START): Define.
14867 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14869         PR driver/42445
14870         * gcc.c (%>S): New.
14871         (SWITCH_KEEP_FOR_GCC): Likewise.
14872         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14873         (do_spec_1): Handle "%>".
14875         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14877 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14879         PR target/47201
14880         * config/i386/i386.c (ix86_delegitimize_address): If
14881         simplify_gen_subreg fails, return orig_x.
14883         PR bootstrap/47187
14884         * value-prof.c (gimple_stringop_fixed_value): Handle
14885         lhs of the call properly.
14887 2011-01-07  Jan Hubicka  <jh@suse.cz>
14889         PR lto/45375
14890         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14892 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14894         * target.def (function_switched_text_sections): New hook.
14895         * doc/tm.texi: Regenerated.
14896         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14897         * final.c (default_function_switched_text_sections): New.
14898         (final_scan_insn): Call function_switched_text_sections when a
14899         mid-function section change occurs.
14900         * output.h (default_function_switched_text_sections): Declare.
14901         * config/darwin-protos.h (darwin_function_switched_text_sections):
14902         Likewise.
14903         * config/darwin.c (darwin_function_switched_text_sections): New.
14904         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14906 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14908         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14909         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14910         the secondary code fragment when outputting for DWARF == 2.
14912 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14914         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14915         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14916         Remove.
14917         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14918         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14920 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14922         PR debug/46704
14923         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14924         when it is not empty.
14926 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
14928         Bobcat Enablement
14929         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
14930         (case ${target}): Add btver1.
14931         * config/i386/driver-i386.c (host_detect_local_cpu): Let
14932         -march=native recognize btver1 processors.
14933         * config/i386/i386-c.c (ix86_target_macros_internal): Add
14934         btver1 def_and_undef
14935         * config/i386/i386.c (struct processor_costs btver1_cost): New
14936         btver1 cost table.
14937         (m_BTVER1): New definition.
14938         (m_AMD_MULTIPLE): Includes m_BTVER1.
14939         (initial_ix86_tune_features): Add btver1 tune.
14940         (processor_target_table): Add btver1 entry.
14941         (static const char *const cpu_names): Add btver1 entry.
14942         (software_prefetching_beneficial_p): Add btver1.
14943         (ix86_option_override_internal): Add btver1 instruction sets.
14944         (ix86_issue_rate): Add btver1.
14945         (ix86_adjust_cost): Add btver1.
14946         * config/i386/i386.h (TARGET_BTVER1): New definition.
14947         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14948         (enum processor_type): Add PROCESSOR_BTVER1.
14949         * config/i386/i386.md (define_attr "cpu"): Add btver1.
14951 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14953         PR target/43309
14954         * config/i386/i386.c (legitimize_tls_address)
14955         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14956         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14957         (tls_initial_exec_64_sun): New pattern.
14959 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
14961         * doc/invoke.texi (Overall Options): Improve wording and markup
14962         of the description of -wrapper.
14964 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14966         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14967         rdynamic, threads): New Driver options.
14969 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14971         PR target/38118
14972         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14973         if coming from .tdata.
14974         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14976 2011-01-06  Jan Hubicka  <jh@suse.cz>
14978         PR lto/47188
14979         * collect2.c (main): Do not enable LTOmode when plugin is active.
14981 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14983         PR other/45915
14984         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14985         --version output if supported.
14986         * configure: Regenerate.
14988 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
14990         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14991         Driver options.
14993 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
14995         PR c/47150
14996         * c-convert.c (convert): When converting a complex expression
14997         other than COMPLEX_EXPR to a different complex type, ensure
14998         c_save_expr is called instead of save_expr, unless in_late_binary_op.
14999         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15000         when converting COMPLEX_TYPE.
15002 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15004         PR tree-optimization/47139
15005         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15006         only the last reduction value is used outside the loop.  Update
15007         documentation.
15009 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15011         * config/rtems.opt: New.
15012         * config.gcc (*-*-rtems*): Use rtems.opt.
15014 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15016         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15017         processors do not support 3DNow instructions.
15019 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15021         * config/spu/spu.c (spu_option_override): Set parameter
15022         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15024 2011-01-05  Jan Hubicka  <jh@suse.cz>
15026         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15027         at the command line.
15029 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15031         PR lto/47162
15032         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15033         deltas on streamed outgoing edges.
15034         (output_node_opt_summary): Output info for outgoing edges only when
15035         the node is in new parameter set.
15036         (output_cgraph_opt_summary): New parameter set, passed to the two
15037         aforementioned functions.  Update its forward declaration and its
15038         callee too.
15040 2011-01-05  Tom Tromey  <tromey@redhat.com>
15042         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15043         operator to c_finish_omp_atomic.
15044         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15045         (build_unary_op): Update.
15046         (build_modify_expr): Update.
15047         (build_asm_expr): Update.
15049 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15051         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15052         newly inserted insns.
15053         (pad_bb): Likewise.
15054         (spu_emit_branch_hint): Likewise.
15055         (insert_hbrp_for_ilb_runout): Likewise.
15056         (spu_machine_dependent_reorg): Call df_finish_pass after
15057         schedule_insns returns.
15059 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15061         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15063 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15065         PR tree-optimization/47005
15066         * tree-sra.c (struct access): Add 'non_addressable' bit.
15067         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15068         (decide_one_param_reduction): Return 0 if the parameter is passed by
15069         reference and one of the accesses in the group is non_addressable.
15071 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15073         PR tree-optimization/47056
15074         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15075         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15076         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15078 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15080         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15081         initializer.  Skip view conversions from aggregate types.
15083 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15085         PR bootstrap/47055
15086         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15088 2011-01-04  Philipp Thomas  <pth@suse.de>
15090         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15091         obvious typo.
15093 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15095         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15096         on empty epilogue sequences.
15098 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15100         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15101         non-static): New Driver options.
15103 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15105         PR driver/47137
15106         * gcc.c (default_compilers[]): Set combinable field to 0
15107         for all assembly languages.
15109 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15111         * config/mips/loongson3a.md: New file.
15112         * config/mips/mips.md: Include loongson3a.md.
15113         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15114         TUNE_LOONGSON_3A.
15116 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15118         PR middle-end/47017
15119         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15120         instead of convert_memory_address_addr_space on the base expression.
15122 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15124         * config/spu/spu.c (spu_option_override): Update error text
15125         for bad -march= / -mtune= values.
15127 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15129         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15130         if branch-hint optimization will be performed.
15132 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15134         PR tree-optimization/47148
15135         * ipa-split.c (split_function): Convert arguments to
15136         DECL_ARG_TYPE if possible.
15138         PR tree-optimization/47155
15139         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15140         when computing uns.
15142         PR rtl-optimization/47157
15143         * combine.c (try_combine): If undobuf.other_insn becomes
15144         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15145         and set *new_direct_jump_p too.
15147 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15149         PR tree-optimization/47021
15150         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15152 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15154         * gcc.c (process_command): Update copyright notice dates.
15155         * gcov.c (print_version): Likewise.
15156         * gcov-dump.c (print_version): Likewise.
15157         * mips-tfile.c (main): Likewise.
15158         * mips-tdump.c (main): Likewise.
15160 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15162         PR tree-optimization/46801
15163         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15164         aggregate fields start at byte boundary instead of the bit-field flag.
15166 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15168         PR driver/47137
15169         * gcc.c (main): Revert revision 168407.
15171 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15173         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15175 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15177         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15178         vector optab to expand vector/scalar shift, update gimple to vector.
15180 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15182         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15183         a thunk.
15185 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15187         PR tree-optimization/46984
15188         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15189         HOST_WIDE_INT.
15190         (cgraph_create_indirect_edge): Fixed line length.
15191         (cgraph_indirect_call_info): Declare.
15192         (cgraph_make_edge_direct) Update declaration.
15193         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15194         (cgraph_create_indirect_edge): Use it.
15195         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15196         callees.
15197         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15198         the new thunk_delta representation.
15199         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15200         HOST_WIDE_INT.
15201         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15202         (ipa_read_indirect_edge_info): Likewise.
15203         * lto-cgraph.c (output_edge_opt_summary): New function.
15204         (output_node_opt_summary): Call it on all outgoing edges.
15205         (input_edge_opt_summary): New function.
15206         (input_node_opt_summary): Call it on all outgoing edges.
15208 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15210         PR driver/47137
15211         * gcc.c (main): Don't check have_o when settting combine_inputs.
15213 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15215         * regrename.c: Add general comment describing the pass.
15216         (struct du_head): Remove 'length' field.
15217         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15218         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15219         Force renaming to the preferred class (if any) in the first pass and do
15220         not consider registers that belong to it in the second pass.
15221         (create_new_chain): Do not set 'length' field.
15222         (scan_rtx_reg): Likewise.
15224 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15226         PR tree-optimization/47140
15227         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15228         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15229         to bit_value_binop.
15231         PR rtl-optimization/47028
15232         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15233         parm_birth_insn instead of at the beginning of first bb.
15235 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15237         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15238         Remove the word "see" before "@pxref".
15239         * doc/rtl.texi: Remove the word "see" before "@pxref".
15241 2011-01-01  Jan Hubicka  <jh@suse.cz>
15243         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15244         memory.
15246 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15248         PR target/38662
15249         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15252 Copyright (C) 2011 Free Software Foundation, Inc.
15254 Copying and distribution of this file, with or without modification,
15255 are permitted in any medium without royalty provided the copyright
15256 notice and this notice are preserved.