2011-05-13 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blobee5f9f5f85ca6f11c1282444f15b9f85c7772121
1 2011-05-13  Vladimir Makarov  <vmakarov@redhat.com>
3         PR rtl-optimization/48971
4         * ira.c (setup_pressure_classes): Don't check register move cost
5         for classes with one registers.  Don't add pressure class if there
6         is a pressure class with the same available hard registers.
7         Check contains_reg_of_mode.  Fix a typo in collecting
8         temp_hard_regset.  Ignore hard registers not belonging to a class.
10 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
12         PR target/49133
13         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
15 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
16             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18         PR gcov-profile/48845
19         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
21 2011-05-24  Richard Guenther  <rguenther@suse.de>
23         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
24         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
25         (gimple_types_compatible_p_1): Adjust.
26         (iterative_hash_canonical_type): Do not bother about complete vs.
27         incomplete types.
28         (gimple_canonical_types_compatible_p): Likewise.
30 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
34 2011-05-24  Richard Guenther  <rguenther@suse.de>
36         PR bootstrap/49078
37         * gimple.c (gimple_register_canonical_type): Revert
38         previous change.
39         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
40         does not for a tree for the case where it matters.  Cache
41         pointer-type alias-sets.
43 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
45         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
46         (OBJS): Remove options.o, opts-common.o and prefix.o.
47         (OBJS-libcommon-target): New.
48         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
49         (BACKEND): Include libcommon-target.a.
50         (MOSTLYCLEANFILES): Include libcommon-target.a.
51         (libcommon-target.a): New.
52         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
53         prefix.o.
55 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
57         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
58         parts of output shared with the driver.
59         * optc-gen.awk: Don't generate parts of output not shared with the
60         driver.
61         * opth-gen.awk: Remove GCC_DRIVER conditionals.
62         * doc/options.texi (SourcerInclude): Mention options-save.c.
63         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
64         (OBJS): Add options-save.o.
65         (options-save.c, options-save.o): New.
66         (options.o): Update dependencies.
67         (gcc-options.o): Remove.
68         (mostlyclean): Remove options-save.c.
70 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
72         PR debug/49032
73         * dbxout.c: Include cgraph.h.
74         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
75         and without value expr, return NULL if no varpool node exists for
76         it or if it is not needed.
77         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
79         PR c/49120
80         * c-decl.c (start_decl): Convert expr to void_type_node.
82 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
84         PR rtl-optimization/48826
85         * emit-rtl.c (try_split): When splitting a call that is followed
86         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
88 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
90         * cfgexpand.c (expand_debug_expr): For unused non-addressable
91         parameters passed in memory prefer using DECL_INCOMING_RTL over
92         the pseudos it will be copied into.
94 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
96         PR target/47315
97         * config/i386/i386.c (ix86_option_override_internal): Save the
98         initial options after checking vzeroupper.
100 2011-05-23  David Li  <davidxl@google.com>
102         PR tree-optimization/48988
103         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
104         Initialize has_valid_pred for each pred chain.
106 2011-05-23  Richard Guenther  <rguenther@suse.de>
108         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
109         (iterative_hash_gimple_type): Always hash type names.
111 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
113         * c-typeck.c (build_function_call_vec): Tweak call to
114         check_function_arguments.
116 2011-05-23  Richard Guenther  <rguenther@suse.de>
118         PR tree-optimization/49115
119         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
120         is not necessarily carried out, do not claim it kills the ref.
121         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
123 2011-05-23  Richard Guenther  <rguenther@suse.de>
125         PR middle-end/15419
126         * builtins.c (fold_builtin_memory_op): Be less restrictive about
127         what pointer types we accept for folding.
129 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
131         * gthr-gnat.c: Remove.
132         * gthr-gnat.h: Remove.
133         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
134         * config/t-freebsd (LIB2ADDEH): Likewise.
135         * config/t-linux (LIB2ADDEH): Likewise.
136         * config/t-sol2 (LIB2ADDEH): Likewise.
137         * config/ia64/t-vms (LIB2ADDEH): Likewise.
138         * configure.ac (target_thread_file): Remove gnat handling.
139         * configure: Regenerate.
140         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
142 2011-05-23  Tristan Gingold  <gingold@adacore.com>
143             Eric Botcazou  <ebotcazou@adacore.com>
145         * gcov.c (create_file_names): If no object directory is specified,
146         keep the directory of the file.
148 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
150         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
151         * configure: Regenerate.
153 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
155         PR middle-end/48973
156         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
157         failed and the comparison has a single bit signed type, use
158         constm1_rtx instead of const1_rtx for true value.
159         (do_store_flag): If ops->type is single bit signed type, disable
160         signel bit test optimization and pass -1 instead of 1 as last
161         parameter to emit_store_flag_force.
163 2011-05-23  Tom de Vries  <tom@codesourcery.com>
165         PR target/45098
166         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
167         function.
168         (infer_loop_bounds_from_undefined): Use new function.
170 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
172         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
173         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
174         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
175         and -O0 otherwise.
176         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
178 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
180         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
181         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
182         returns true.
184 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
186         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
188 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
190         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
191         UNSPEC_MOVE_PIC pattern.
193 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
195         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
196         (sparc-*-rtems*): Likewise.
197         (sparc64-*-elf*): Likewise.
198         (sparc64-*-rtems*): Likewise.
199         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
200         * config/sparc/t-crtin: New file.
201         * config/sparc/t-sol2 (crti.o): Delete rule.
202         (crtn.o): Likewise.
203         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
204         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
205         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
206         (ENDFILE_SPEC): Add crtn.o.
208 2011-05-22  Tom de Vries  <tom@codesourcery.com>
210         PR middle-end/48689
211         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
212         CODE_CONTAINS_STRUCT (TS_COMMON).
214 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
216         PR middle-end/49029
217         * expmed.c (extract_fixed_bit_field): Test whether target can be used
218         only after deciding which mode to use.
220 2011-05-22  Tom de Vries  <tom@codesourcery.com>
222         PR target/45098
223         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
224         for call to get_shiftadd_cost.
226 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
228         PR target/49104
229         * config/i386/cpuid.h (bit_MMXEXT): New define.
231 2011-05-22  Nick Clifton  <nickc@redhat.com>
233         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
234         initialisation of non-existant args[2] element.  Use args[] array
235         not arg[] array to pass arguments to build_function_type_list.
237 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
239         PR tree-optimization/49087
240         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
242 2011-05-21  Jason Merrill  <jason@redhat.com>
244         PR c++/49092
245         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
246         static storage duration.
248 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
250         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
251         frame pointer.
253 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
255         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
256         false if there are call-saved registers here...
257         (sparc_can_use_return_insn_p): ...but here instead.
258         (save_or_restore_regs): Fix thinko.
259         (sparc_expand_prologue): Use current_function_is_leaf.
260         (sparc_frame_pointer_required): Likewise.
262 2011-05-21  Nick Clifton  <nickc@redhat.com>
264         PR target/49098
265         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
267 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
269         * gengtype.c (walk_type): Implemented "atomic" GTY option.
270         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
272 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
274         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
275         * optc-gen.awk: Move common code to opt-read.awk.
276         * opth-gen.awk: Likewise.
277         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
279 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
281         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
283 2011-05-20  Tom de Vries  <tom@codesourcery.com>
285         PR target/45098
286         * tree-ssa-loop-ivopts.c: Include expmed.h.
287         (get_shiftadd_cost): New function.
288         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
290 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
292         PR bootstrap/49086
293         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
294         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
296 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
298         * Makefile.in: Update comment referring to $(OBJS-common).
300 2011-05-20  Ian Lance Taylor  <iant@google.com>
302         * godump.c (go_output_typedef): Put enum constants in the macro
303         hash table to avoid duplicate Go const definitions.
305 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
307         * Makefile.in (LIBDEPS): Add libcommon.a.
308         (LIBS): Likewise.
309         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
310         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
311         pretty-print.o and version.o.
312         (OBJS-libcommon): New.
313         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
314         (BACKEND): Add libcommon.a.
315         (MOSTLYCLEANFILES): Likewise.
316         (libcommon.a): New.
317         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
318         (cpp$(exeext)): Likewise.
319         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
320         pretty-print.o and input.o.
321         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
322         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
323         (errors.o): Remove.
324         (mips-tfile): Don't explicitly use version.o.
325         (mips-tdump): Likewise.
326         (gcov.o): Depend on $(DIAGNOSTIC_H).
327         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
328         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
329         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
330         * gcov-dump.c: Include intl.h and diagnostic.h.
331         (main): Initialize diagnostics.
332         * gcov.c: Include diagnostic.h.
333         (fnotice): Remove.
334         (main): Initialize diagnostics.
335         * lto-wrapper.c: Include diagnostic.h.
336         (main): Initialize diagnostics.
338 2011-05-20  Michael Matz  <matz@suse.de>
340         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
342 2011-05-20  Michael Matz  <matz@suse.de>
343             Richard Guenther  <rguenther@suse.de>
345         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
346         use lto_streamer_cache_append directly instead of returning a VEC.
347         (preload_common_node): Remove.
348         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
349         track seen nodes.
350         (lto_streamer_cache_create): Call lto_preload_common_nodes.
352 2011-05-20  Richard Guenther  <rguenther@suse.de>
354         PR tree-optimization/49079
355         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
356         MEM_REFs correctly for the trailing array access detection.
357         Special case constants the same way as decls for overall size
358         constraining.
360 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
362         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
363         argument expansion.
365 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
367         PR tree-optimization/49073
368         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
369         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
370         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
372 2011-05-20  Richard Guenther  <rguenther@suse.de>
374         PR middle-end/48849
375         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
376         of pointer types the same way the middle-end does.
378 2011-05-20  Richard Guenther  <rguenther@suse.de>
380         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
381         or pointer-to chains.  Delay all fixup to uniquify_nodes.
383 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
385         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
386         (fma4_fmaddsub): Likewise
388 2011-05-19  Jan Hubicka  <jh@suse.cz>
390         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
391         (GIMPLE_TYPE_PAIR_SIZE): New macro.
392         (type_pair_cache): New static var.
393         (lookup_type_pair): Use fixed sized custom hash; make inline.
394         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
395         calls of lookup_type_pair.
396         (print_gimple_types_stats): Remove cache stats.
397         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
398         and gtc_ob.
400 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
402         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
403         when TARGET_RDRND is active.
404         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
405         Generate dummy SImode target register when target is NULL.
407 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
409         * config/arm/arm-fpus.def: New.
410         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
411         arm-fpus.def.
412         * config/arm/arm-tables.opt: Regenerate.
413         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
414         (arm_option_override): Don't decode FPU name to string here.
415         * config/arm/arm.opt (mfpu=): Use Enum.
416         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
417         Update dependencies.
419 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
421         * collect2.c: Include diagnostic.h.
422         (fatal_perror, fatal, error, fancy_abort): Remove.
423         (main): Set progname.  Call xmalloc_set_program_name and
424         diagnostic_initialize.
425         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
426         scan_libraries, resolve_lib_name): Call fatal_error instead of
427         fatal and fatal_perror.
428         * collect2.h (error, fatal, fatal_perror): Don't declare.
429         * tlink.c: Include diagnostic-core.h.
430         (recompile_files): Call fatal_error instead of fatal_perror.
431         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
432         pretty-print.o and input.o.
433         (collect2.o, tlink.o): Update dependencies.
435 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
437         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
439 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
441         PR target/40483
442         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
443         COMDAT group syntax, both SPARC and x86 variants.
444         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
445         * configure: Regenerate.
446         * config/sol2.h (TARGET_SOLARIS): Define.
447         (PUSHSECTION_FORMAT): Remove.
448         (SECTION_NAME_FORMAT): Define.
449         * config/sol2.c: Include hashtab.h.
450         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
451         expansion, using SECTION_NAME_FORMAT.
452         (solaris_comdat_htab): New variable.
453         (struct comdat_entry): Define.
454         (comdat_hash): New function.
455         (comdat_eq): New function.
456         (solaris_elf_asm_comdat_section): New function.
457         (solaris_define_comdat_signature): New function.
458         (solaris_code_end): New function.
459         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
460         (solaris_code_end): Declare.
461         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
462         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
463         solaris_code_end.
464         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
465         Remove ATTRIBUTE_UNUSED.
466         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
467         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
468         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
469         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
470         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
471         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
472         (PUSHSECTION_FORMAT): Remove.
473         (SECTION_NAME_FORMAT): Redefine.
475 2011-05-19  Kai Tietz  <ktietz@redhat.com>
477         * tree-cfg.c (verify_gimple_assign_binary): Barf on
478         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
479         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
481 2011-05-19  Anatoly Sokolov <aesok@post.ru>
482             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
484         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
486 2011-05-19  Richard Guenther  <rguenther@suse.de>
488         PR middle-end/48985
489         * tree-object-size.c (addr_object_size): If the pointed-to
490         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
492 2011-05-19  Richard Guenther  <rguenther@suse.de>
494         * gimple.c (gimple_types_compatible_p_1): Compare names of
495         the types themselves.
496         (iterative_hash_gimple_type): And hash them that way.
497         (gimple_register_type_1): If we register a main variant properly
498         initialize the leader to ourselves.
500 2011-05-19  Tom de Vries  <tom@codesourcery.com>
502         PR target/45098
503         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
504         get_loop_invariant_expr_id.
505         (get_loop_invariant_expr_id): Use get_expr_id.
506         (parm_decl_cost): New function.
507         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
508         Improve bound cost estimation.  Use different inv_expr_id for elim and
509         express cases.
511 2011-05-19  Tom de Vries  <tom@codesourcery.com>
513         PR target/45098
514         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
515         cost_base.cost == 0.
517 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
519         PR target/49002
520         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
521         Properly handle load cast.
523 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
525         PR tree-optimization/49039
526         * tree-vrp.c (extract_range_from_binary_expr): For
527         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
528         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
530 2011-05-18  Tom de Vries  <tom@codesourcery.com>
532         PR target/45098
533         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
535 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
537         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
538         (*tls_global_dynamic_64): Ditto.
539         (*tls_local_dynamic_base_32_gnu): Ditto.
540         (*tls_local_dynamic_base_64): Ditto.
541         (tls_initial_exec_64_sun): Ditto.
543 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
545         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
546         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
547         bf592-none.
548         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
549         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
550         * config/bfin/bfin.c (bfin_cpus): Add bf592.
551         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
552         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
553         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
554         * config/bfin/elf.h (LIB_SPEC): Add bf592.
556 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
558         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
559         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
560         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
561         target_thread_pointer, arm_structure_size_boundary, struct
562         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
563         struct abi_name, arm_all_abis): Remove.
564         (arm_option_override) Don't process most enumerated option values here.
565         Don't process target_fpe_name here.  Work with integer not string for
566         structure size boundary; use separate diagnostics for each case.
567         * config/arm/arm.h (enum float_abi_type, enum
568         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
569         to arm-opts.h.
570         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
571         arm_structure_size_boundary): Remove.
572         * config/arm/arm.opt (mabi=): Use Enum and Init.
573         (arm_abi_type): New Enum and EnumValue entries.
574         (mfloat-abi=): Use Enum and Init.
575         (float_abi_type): New Enum and EnumValue entries.
576         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
577         (mfp16-format=): Use Enum and Init.
578         (arm_fp16_format_type): New Enum and EnumValue entries.
579         (mstructure-size-boundary=): Use UInteger and Init.
580         (mtp=): Use Enum and Init.
581         (arm_tp_type): New Enum and EnumValue entries.
583 2011-05-18  Richard Guenther  <rguenther@suse.de>
585         PR tree-optimization/49018
586         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
587         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
588         gimple_has_side_effects.
590 2011-05-18  Richard Guenther  <rguenther@suse.de>
592         * gimple.c (gimple_register_type_1): New function, split out from ...
593         (gimple_register_type): ... here.  Avoid infinite recursion.
595 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
597         PR tree-optimization/41881
598         * tree-vectorizer.h (struct _loop_vec_info): Add new field
599         reduction_chains along with a macro for its access.
600         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
601         (destroy_loop_vec_info): Free reduction chains.
602         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
603         (vect_is_slp_reduction): New function.
604         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
605         (vect_create_epilog_for_reduction): Support SLP reduction chains.
606         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
607         definition types for reduction chains.
608         (vect_supported_load_permutation_p): Don't allow permutations for
609         reduction chains.
610         (vect_analyze_slp_instance): Support reduction chains.
611         (vect_analyze_slp): Try to build SLP instance from reduction chains.
612         (vect_get_constant_vectors):  Handle reduction chains.
613         (vect_schedule_slp_instance): Mark the first statement of the
614         reduction chain as reduction.
616 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
618         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
619         names for group elements access.
620         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
621         reduction chains as well.  Remove data reference and interleaving
622         related words from the fields names.
623         * tree-vect-loop.c (vect_transform_loop): Use new names for group
624         elements access.
625         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
626         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
627         vect_update_interleaving_chain, vect_same_range_drs,
628         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
629         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
630         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
631         vect_analyze_group_access, vect_analyze_data_ref_access,
632         vect_create_data_ref_ptr, vect_transform_strided_load,
633         vect_record_strided_load_vectors): Likewise.
634         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
635         vect_model_load_cost, vectorizable_store, vectorizable_load,
636         vect_remove_stores, new_stmt_vec_info): Likewise.
637         * tree-vect-slp.c (vect_build_slp_tree,
638         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
640 2011-05-18  Richard Guenther  <rguenther@suse.de>
642         PR middle-end/48989
643         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
644         operand verification.
645         (verify_gimple_assign_binary): Likewise.
646         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
647         to non-1-precision BOOLEAN_TYPEs.
649 2011-05-18  Tom de Vries  <tom@codesourcery.com>
651         PR target/45098
652         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
654 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
656         PR tree-optimization/49000
657         * tree-ssa.c (execute_update_addresses_taken): Call
658         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
659         be rewritten and decl has been marked for renaming, reset
660         the debug stmt.
662 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
664         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
665         enum_opts_set when testing if attributes have set -mfpmath=.
667 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
669         * config/mips/mips.c (mips_handle_option): Remove unused variable.
671 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
673         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
674         info->entry with 0
675         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
676         id.transform_lang_insert_block with NULL.
678 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
680         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
681         (output_fp_compare): Change args 3 and 4 to bool.
682         (ix86_expand_call): Change arg 6 to bool.
683         (ix86_attr_length_immediate_default): Change arg 2 to bool.
684         (ix86_attr_length_vex_default): Change arg 3 to bool.
685         * config/i386/i386.md: Update all uses.
686         * config/i386/i386.c: Ditto.
687         (ix86_flags_dependent): Change return type to bool.
689 2011-05-17  Richard Guenther  <rguenther@suse.de>
691         * gimple.c (type_hash_pair_compare): Fix comparison.
693 2011-05-17  Richard Guenther  <rguenther@suse.de>
695         * gimple.c (iterative_hash_gimple_type): Simplify singleton
696         case some more, fix final hash value of the non-singleton case.
698 2011-05-17  Richard Guenther  <rguenther@suse.de>
700         PR bootstrap/49013
701         Revert
702         2011-05-16  Richard Guenther  <rguenther@suse.de>
704         * gimple.c (gimple_types_compatible_p_1): Use names of the
705         type itself, not its main variant.
706         (iterative_hash_gimple_type): Likewise.
708 2011-05-17  Richard Guenther  <rguenther@suse.de>
710         * gimple.c (gimple_register_canonical_type): Use the main-variant
711         leader for computing the canonical type.
713 2011-05-17  Nick Clifton  <nickc@redhat.com>
715         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
716         moves.
718         * config/rx/rx.md: Add peephole to remove redundant extensions
719         after loads.
720         (bitset_in_memory): Use rx_restricted_mem_operand.
721         (bitinvert_in_memory): Likewise.
722         (bitclr_in_memory): Likewise.
724 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
725             Nick Clifton  <nickc@redhat.com>
727         * config/rx/rx.md: Add peepholes to match a register move followed
728         by a comparison of the moved register.  Replace these with an
729         addition of zero that does both actions in one instruction.
731 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
733         PR target/48986
734         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
735         predicate to allow CONST_INT.
736         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
738 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
740         * opts-common.c (opt_enum_arg_to_value): New.
741         * opts.h (opt_enum_arg_to_value): Declare.
742         * config/i386/i386.opt (fpmath): Remove.
743         (mfpmath=): Use Enum, Init and Save.
744         (fpmath_unit): New Enum and EnumValue entries.
745         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
746         name for function fpmath state.
747         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
748         * config/i386/i386.c: Include diagnostic.h.
749         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
750         (ix86_target_string): Take enum fpmath_unit value instead of string.
751         (ix86_debug_options): Update call to ix86_target_string.
752         (ix86_option_override_internal): Don't process fpmath strings here.
753         (x86_function_specific_save, ix86_function_specific_restore):
754         Don't handle fpmath state specially.
755         (ix86_function_specific_print): Pass fpmath state to
756         ix86_target_string instead of printing in this function.
757         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
758         Handle enum attributes.
759         (IX86_ATTR_ENUM, ix86_opt_enum): New.
760         (ix86_valid_target_attribute_tree): Update option_strings
761         handling.  Handle fpmath as enum option.
762         (ix86_can_inline_p): Update field names for function fpmath state.
763         (ix86_expand_builtin): Update call to ix86_target_string.
764         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
765         (ix86_fpmath): Remove.
766         * config/i386/t-i386 (i386.o): Update dependencies.
768 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
770         PR preprocessor/48677
771         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
772         from decoded_options[0], not from itself.
774 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
776         * config/i386/constraints.md (z): New constraint.
777         * config/i386/i386.c (c): New mode attribute.
778         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
779         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
780         constraint for operand 0.
781         (*call_vzeroupper): Ditto.
782         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
783         (*call_rex64_ms_sysv_vzeroupper): Ditto.
784         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
785         Use "lzm" constraint for operand 0.
786         (*call_pop_vzeroupper): Ditto.
787         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
788         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
789         constraint for operand 0.
790         (*sibcall_vzeroupper): Ditto.
791         (*sibcall_rex64_ms_sysv): Ditto.
792         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
793         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
794         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
795         (*sibcall_pop_vzeroupper): Ditto.
796         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
797         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
798         mode iterator.  Use "<c>zm" constraint for operand 1.
799         (*call_value_vzeroupper): Ditto.
800         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
801         for operand 1.
802         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
803         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
804         *call_value_pop_1.  Use "lzm" constraint for operand 1.
805         (*call_value_pop_vzeroupper): Ditto.
806         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
807         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
808         mode iterator.  Use "Uz" constraint for operand 1.
809         (*sibcall_value_vzeroupper): Ditto.
810         (*sibcall_value_rex64_ms_sysv): Ditto.
811         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
812         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
813         constraint for operand 1.
814         (*sibcall_value_pop_vzeroupper): Ditto.
815         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
816         and "z" constraint for operand 2.
817         (*tls_global_dynamic_32_gnu): Ditto.
818         (*tls_local_dynamic_base_32_gnu): Ditto.
819         (*tls_local_dynamic_base_64): Ditto.
820         (*tls_local_dynamic_32_once): Ditto.
821         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
822         Update all callers.
823         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
825 2011-05-16  Richard Guenther  <rguenther@suse.de>
827         * gimple.c (gimple_types_compatible_p_1): Use names of the
828         type itself, not its main variant.
829         (iterative_hash_gimple_type): Likewise.
831 2011-05-16  Richard Guenther  <rguenther@suse.de>
833         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
834         always visit pointer target and function result and argument types.
836 2011-05-16  Jason Merrill  <jason@redhat.com>
838         PR c++/48999
839         * tree-inline.c (copy_statement_list): Put back recursion.
841 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
843         PR target/27663
844         PR target/41076
845         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
846         * config/avr/avr.md ("*ior<mode>qi.byte0",
847         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
849 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
851         PR target/45099
852         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
853         register is needed for a function argument.
855 2011-05-16  Richard Guenther  <rguenther@suse.de>
857         * gimple.c (struct type_hash_pair): New type.
858         (type_hash_pair_compare): New function.
859         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
861 2011-05-16  Revital Eres  <revital.eres@linaro.org>
863         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
865 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
867         * config/i386/i386.md (floating point move splitters): Fix
868         usage of standard_80387_constant_p.
869         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
871 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
873         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
875 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
877         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
878         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
879         (tree_ssa_lim_finalize): Likewise.
881 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
883         * config/i386/constraint.md (Yd, Yx): New register constraints.
884         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
885         Yd conditional register constraint.
886         (*movtf_internal): Use standard_sse_constant_opcode.
887         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
888         Yx conditional register constraint.
889         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
890         Yd conditional register constraint.  Use standard_sse_constant_p to
891         check for valid SSE constants and call standard_sse_constant_opcode to
892         output SSE insn.
893         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
894         constants and call standard_sse_constant_opcode to output SSE insn.
895         * config/i386/i386.c (ix86_option_ovverride_internal): Set
896         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
897         optimize_size is set.
898         (standard_sse_constant_opcode): Output conditional AVX insn templates.
900 2011-05-14  Tobias Burnus  <burnus@net-b.de>
902         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
904 2011-05-13  Martin Jambor  <mjambor@suse.cz>
906         * ipa-prop.c (ipa_cst_from_jfunc): New function.
907         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
908         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
909         (evaluate_conditions_for_ipcp_clone): Removed.
910         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
911         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
912         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
914 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
916         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
917         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
918         lieu of MAY_HAVE_DEBUG_STMTS.
919         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
920         debug statements if !MAY_HAVE_DEBUG_STMTS.
922 2011-05-13  Martin Thuresson  <martint@google.com>
924         PR gcov-profile/47793
925         * libgcov.c (gcov_exit): Support relative profile paths.
926         * doc/invoke.texi (-fprofile-dir): Update for above change.
928 2011-05-13  Richard Guenther  <rguenther@suse.de>
930         * gimple.c (gimple_canonical_types_compatible_p): Do not use
931         type-pair caching, do not compare hashes.
933 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
935         PR middle-end/48965
936         * tree-cfg.c (edge_to_cases_cleanup): Return true.
937         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
939 2011-05-13  Kai Tietz  <ktietz@redhat.com>
941         * gimplify.c (gimplify_expr): Make sure operand is boolified.
942         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
943         compatible type for TRUTH_NOT_EXPR.
945 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
947         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
948         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
949         can_create_pseudo_p ().
951 2011-05-13  Richard Guenther  <rguenther@suse.de>
953         PR lto/48978
954         * gimple.c (iterative_hash_gimple_type): Revert change in
955         pointer target and function result and argument hashing.
957 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
959         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
960         (*movxf_internal_nointeger): Ditto.
961         (*movdf_internal_rex64): Ditto.
962         (*movdf_internal): Ditto.
963         (*movdf_internal_nointeger): Ditto.
964         (*movsf_internal): Ditto.
965         (sincos splitters): Use can_create_pseudo ().
967 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
969         * config/i386/i386-opts.h: New.
970         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
971         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
972         ix86_section_threshold): Remove.
973         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
974         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
975         OPT_mbranch_cost_.
976         (ix86_option_override_internal): Don't decode strings for options
977         other than -march=, -mtune= and -mfpmath=.  Don't allow for
978         __attribute__ uses in remaining diagnostics for options with
979         string arguments.  Don't check for integer arguments being negative.
980         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
981         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
982         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
983         ix86_branch_cost, ix86_section_threshold): Remove.
984         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
985         HeaderInclude.
986         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
987         but not Var.
988         (masm=): Use Enum and Init.
989         (asm_dialect): New Enum and EnumValue entries.
990         (mbranch-cost=): Use UInteger.
991         (mlarge-data-threshold=): Use UInteger and Init.
992         (mcmodel=): Use Enum and Init.
993         (cmodel): New Enum and EnumValue entries.
994         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
995         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
996         mregparm=): Use UInteger.
997         (mstringop-strategy=): Use Enum and Init.
998         (stringop_alg): New Enum and EnumValue entries.
999         (mtls-dialect=): Use Enum and Init.
1000         (tls_dialect): New Enum and EnumValue entries.
1001         (mabi=): Use Enum and Init.
1002         (calling_abi): New Enum and EnumValue entries.
1003         (mveclibabi=): Use Enum and Init.
1004         (ix86_veclibabi): New Enum and EnumValue entries.
1006 2011-05-13  Nick Clifton  <nickc@redhat.com>
1008         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1009         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1011 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1013         PR middle-end/48984
1014         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1015         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1016         (gimple_boolify): Check for cast for boolean_type_node instead for
1017         BOOLEAN_TYPE.
1019 2011-05-13  Richard Guenther  <rguenther@suse.de>
1021         PR tree-optimization/48172
1022         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1023         multiplying by number of iterations for equal step.
1024         (vect_create_cond_for_alias_checks): Likewise.
1026 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1028         * configure.ac: Use AS_HELP_STRING throughout.
1029         * configure: Regenerate.
1031 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1033         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1034         (ix86_emit_restore_regs_using_mov): Likewise.
1035         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1037 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1039         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1040         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1041         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1042         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1043         RTX_OK_FOR_OLO10_P): ...here.
1044         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1045         SYMBOLIC_CONST.
1047 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1049         * gimplify.c (gimple_boolify): Re-boolify expression
1050         arguments even if expression type is of kind BOOLEAN_TYPE.
1051         (gimplify_boolean_expr): Removed.
1052         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1053         and XOR. Additional take care that we keep expression's type.
1054         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1055         of TRUTH_AND|OR|XOR_EXPR.
1057 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1059         PR tree-optimization/48975
1060         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1061         on all bbs here and free and clear ifc_bbs at the end.
1063 2011-05-12  Richard Guenther  <rguenther@suse.de>
1065         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1066         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1067         until after simple checks.
1068         (gimple_types_compatible_p): Likewise.
1069         (iterative_hash_gimple_type): Always hash pointer targets
1070         and function return and argument types.
1071         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1072         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1073         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1074         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1075         completely in the simple compare section.
1076         (gimple_register_canonical_type): Query the cache again after
1077         registering.
1079 2011-05-12  Richard Guenther  <rguenther@suse.de>
1081         PR tree-optimization/48172
1082         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1083         the number of iterations from the segment size calculation.
1084         (vect_create_cond_for_alias_checks): Adjust.
1086 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1088         PR debug/48967
1089         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1090         if validate_subreg fails.
1092 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1094         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1095         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1096         early.
1098 2011-05-12  DJ Delorie  <dj@redhat.com>
1100         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1101         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1102         created builtin into rx_builtins array.
1103         (rx_builtin_decl): New function.
1104         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1106 2011-05-12  DJ Delorie  <dj@redhat.com>
1107             Nick Clifton  <nickc@redhat.com>
1109         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1110         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1111         (rx_is_legitimate_address): Add pre-decrement and post-increment
1112         addressing in HImode and QImode.  Fix test for out of range
1113         REG+INT addressing.
1114         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1115         (rx_align_for_label): Test label before extracting its usage count.
1116         (rx_adjust_insn_lengths): Fix selection of insn codes.
1117         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1119 2011-05-11  Jason Merrill  <jason@redhat.com>
1121         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1123 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1125         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1126         reindent the subsequent block.
1128 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1129             Paul Pluzhnikov  <ppluzhnikov@google.com>
1131         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1132         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1133         * config.in: Add LINKER_HASH_STYLE.
1134         * configure.ac: Add --with-linker-hash-style.
1135         * configure: Regenerate.
1137 2011-05-11  Richard Guenther  <rguenther@suse.de>
1139         PR middle-end/48964
1140         * gimple.c (iterative_hash_canonical_type): Fix typo.
1142 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1144         * config/i386/i386.c (legitimize_tls_address)
1145         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1146         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1147         __tls_get_addr symbol reference here.  Update call to
1148         gen_tls_global_dynamic_{32,64} for added arguments.
1149         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1150         expanders directly for TARGET_GNU2_TLS.  Determine
1151         __tls_get_addr symbol reference here.  Update call to
1152         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1153         unique UNSPEC REG_EQUIV to libcall block.
1154         (ix86_tls_get_addr): Declare static.
1155         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1156         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1157         Do not determine pic and __tls_get_addr symbol reference here. Do not
1158         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1159         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1160         (tls_global_dynamic_64): Add operand 2.  Do not determine
1161         __tls_get_addr symbol reference here.  Do not call
1162         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1163         (tls_local_dynamic_base64): Ditto for operand 1.
1165 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1167         * function.c (expand_function_start): Initialize stack_check_probe_note
1168         only if the generic stack checking mechanism is used.
1170 2011-05-11  Richard Guenther  <rguenther@suse.de>
1172         PR tree-optimization/15256
1173         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1174         (A & B) | C, combine (A op CST1) op CST2.
1175         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1176         visit assigns that have uses.
1178 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1180         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1181         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1182         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1183         (unpack_value_fields): Adjust for renaming.
1184         (lto_input_ts_type_tree_pointers): Split into...
1185         (lto_input_ts_type_common_tree_pointer): ...this and...
1186         (lto_input_ts_type_non_common_tree_pointers): ...this.
1187         (lto_input_tree_pointers): Adjust for above split.
1188         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1189         (pack_ts_type_common_value_fields): ...this.  Update comment.
1190         (lto_output_ts_type_tree_pointers): Split into...
1191         (lto_output_ts_type_common_tree_pointers): ...this and...
1192         (lto_output_ts_type_non_common_tree_pointers): ...this.
1193         (lto_output_tree_pointers): Adjust for above split.
1194         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1195         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1196         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1197         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1198         Define.
1199         (struct tree_type): Split into...
1200         (struct tree_type_common: ...this and...
1201         (struct tree_type_with_lang_specific): ...this and...
1202         (struct tree_type_non_common): ...this.  Adjust accessor macros
1203         accordingly.
1204         (TYPE_VALUES_RAW): Define.
1205         (union tree_node): Update for above changes.
1206         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1207         TS_TYPE_NON_COMMON.
1208         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1209         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1210         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1211         * treestructu.def (TS_TYPE): Remove.
1212         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1213         Define.
1215 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1217         PR debug/48159
1218         * tree-ssa.c (reset_debug_uses): New function.
1219         * tree-flow.h (reset_debug_uses): New prototype.
1220         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1221         * tree-loop-distribution.c (generate_loops_for_partition): Call
1222         reset_debug_uses on the stmts that will be removed.  Keep around
1223         all debug stmts, don't count them as bits in partition bitmap.
1224         (generate_builtin): Don't count debug stmts or labels as bits in
1225         partition bitmap.
1227 2011-05-11  Richard Guenther  <rguenther@suse.de>
1229         * gimple.c (gimple_type_hash_1): Merge with ...
1230         (gimple_type_hash): ... this.
1231         (gtc_visit): Remove mode parameter and simplify accordingly.
1232         (gimple_types_compatible_p_1): Likewise.
1233         (gimple_types_compatible_p): Likewise.
1234         (iterative_hash_gimple_type): Likewise.
1235         (visit): Likewise.
1236         (gimple_type_eq): Adjust.
1238 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1240         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1241         enters the branch create an anti edge in the opposite direction
1242         to prevent the creation of reg-moves.
1243         * modulo-sched.c: Adjust comment to reflect the fact we are
1244         scheduling closing branch.
1245         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1246         (stage_count): New field in struct partial_schedule.
1247         (calculate_stage_count): New function.
1248         (normalize_sched_times): Rename to reset_sched_times and handle
1249         incrementing the sched time of the nodes by a constant value
1250         passed as parameter.
1251         (duplicate_insns_of_cycles): Skip closing branch.
1252         (sms_schedule_by_order): Schedule closing branch.
1253         (ps_insn_find_column): Handle closing branch.
1254         (sms_schedule): Call reset_sched_times and adjust the code to
1255         support scheduling of the closing branch.
1256         (ps_insert_empty_row): Update calls to normalize_sched_times
1257         and rotate_partial_schedule functions.
1259 2011-05-11  Richard Guenther  <rguenther@suse.de>
1261         PR middle-end/48953
1262         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1264 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1266         * opts.c (finish_options): Move warning settings from process_options.
1267         * toplev.c (process_options): Move warning settings to finish_options.
1269 2011-05-11  Richard Guenther  <rguenther@suse.de>
1271         PR tree-optimization/18041
1272         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1273         (simplify_bitwise_binary): ... this.  Handle operand conversions
1274         by applying them to the result instead.
1275         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1277 2011-05-11  Richard Guenther  <rguenther@suse.de>
1279         * gimple.c (gimple_canonical_types_compatible_p): Split out
1280         from gimple_types_compatible_p and friends.  Do not recurse
1281         to pointed-to types.
1282         (gimple_canonical_type_eq): Use it.
1283         (iterative_hash_canonical_type): Split out from
1284         iterative_hash_gimple_type and friends.  Do not recurse
1285         to pointed-to types.
1286         (gimple_canonical_type_hash): Use it, allocate the hash here.
1288 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1290         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1291         recognizing doloop.
1293 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1295         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1296         instead of PREV_INSN.
1298 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1300         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1301         * loop-doloop.c (doloop_condition_get): Likewise.
1302         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1303         (doloop_end): New.
1304         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1306 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1308         * tree.def (CASE_LABEL_EXPR): Add an operand.
1309         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1311 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1313         * c-decl.c (c_override_global_bindings_to_false): Remove.
1314         (global_bindings_p): Don't check
1315         c_override_global_bindings_to_false.
1316         * c-tree.h (c_override_global_bindings_to_false): Remove.
1317         * c-typeck.c (composite_type): Don't set
1318         c_override_global_bindings_to_false.
1320 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1322         PR target/48857, 48495
1323         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1324         (VSX_MODE): Ditto.
1325         (VSX_MOVE_MODE): Ditto.
1326         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1327         VSX vector types.  Add V2DImode.
1328         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1329         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1330         (MODES_TIEABLE_P): Ditto.
1332         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1333         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1334         VSX_VECTOR_MODE.
1335         (init_cumulative_args): Ditto.
1336         (rs6000_function_arg_boundary): Ditto.
1337         (rs6000_function_arg_advance_1): Ditto.
1338         (rs6000_function_arg): Ditto.
1339         (rs6000_function_ok_for_sibcall): Ditto.
1340         (emit_frame_save): Ditto.
1341         (rs6000_function_value): Ditto.
1342         (rs6000_libcall_value): Ditto.
1344 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1346         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1347         i386/darwin-lib.h to $libgcc_tm_file.
1348         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1350 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1352         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1354 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1356         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1357         * config/rs6000/rs6000-tables.opt: New file (generated).
1358         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1359         rs6000/rs6000-tables.opt to extra_options.
1360         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1361         * config/rs6000/rs6000.c (rs6000_select): Remove.
1362         (processor_target_table): Move contents to rs6000-cpus.def.
1363         (darwin_rs6000_override_options): Check
1364         global_options_set.x_rs6000_cpu_index instead of
1365         rs6000_select[1].string.
1366         (rs6000_option_override_internal): Likewise.
1367         (rs6000_handle_option): Don't assert that global structures are in
1368         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1369         (rs6000_default_cpu): New variable.
1370         (rs6000_file_start): Set it instead of local default_cpu.  Check
1371         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1372         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1373         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1374         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1375         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1376         rs6000_select): Remove.
1377         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1378         Remove.
1379         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1380         * config/rs6000/t-rs6000
1381         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1382         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1383         global_options_set.x_rs6000_cpu_index instead of
1384         rs6000_select[1].string.
1385         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1386         global_options_set.x_rs6000_cpu_index instead of
1387         rs6000_select[1].string.
1389 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1391         * config.gcc (libgcc_tm_file): Define instead of including files
1392         from ../../libgcc/config/ in tm_file.
1393         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1394         * configure: Regenerate.
1395         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1396         libgcc_tm.h, cs-libgcc_tm.h): New.
1397         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1398         (clean): Remove libgcc_tm.h.
1399         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1400         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1401         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1403 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1405         PR target/48896
1406         * config/avr/avr.c (avr_ret_register): Return unsigned int
1407         instead of int.
1408         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1409         it to avr_libcall_value.
1410         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1411         expand_expr.
1412         (avr_expand_binop_builtin): Ditto.
1413         (avr_expand_unop_builtin): Ditto.
1415 2011-05-10  DJ Delorie  <dj@redhat.com>
1417         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1418         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1419         * config/rx/rx.c (rx_align_for_label): Add label and
1420         uses_threshold parameters.  Do not align when the label is not
1421         used enough.
1422         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1424 2011-05-10  Richard Guenther  <rguenther@suse.de>
1426         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1427         a series of conversions and apply foldings similar to what
1428         fold-const does.
1429         (tree_ssa_forward_propagate_single_use_vars): Call it.
1431 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1433         PR tree-optimization/48611
1434         PR tree-optimization/48794
1435         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1436         referenced from RESX or EH_DISPATCH arguments.
1438         PR debug/48928
1439         * dfp.c (decimal_to_decnumber): Handle conversion from
1440         dconst{1,2,m1,half}.
1442 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1444         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1445         for !flag_prefer_avx128.
1446         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1448 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1450         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1451         (fold_ternary_loc): Use expr_location_or.
1453 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1455         PR debug/48853
1456         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1457         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1458         Pmode and mem_mode is not VOIDmode.
1460 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1462         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1463         TYPE_QUAL_RESTRICT): Convert to enum.
1465 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1467         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1468         (const_pow2_1_to_8_operand): Ditto.
1469         (const_pow2_1_to_128_operand): Ditto.
1470         (const_pow2_1_to_32768_operand): Ditto.
1471         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1472         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1473         in insn constraint to check integer value of operand 3.
1474         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1476         (PINSR_MODE): New mode iterator.
1477         (sse2p4_1): New mode attribute.
1478         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1479         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1480         iterator.  Use const_int_operand instead of
1481         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1482         exact_log2 in insn constraint to check integer value of operand 3.
1484 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1486         * config/i386/sse.md (blendbits): Remove mode attribute.
1487         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1488         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1489         Check integer value of operand 3 in insn constraint.
1491 2011-05-09  Richard Guenther  <rguenther@suse.de>
1493         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1494         for diagnostics.
1495         (lto_symtab_merge): Likewise.  Do not register types here.
1496         (lto_symtab_merge_decls_2): Likewise.
1497         (lto_symtab_merge_decls_1): Likewise.
1498         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1499         * gimple.c (enum gtc_mode): Declare.
1500         (gimple_types_compatible_p): Make static.
1502 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1504         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1505         temporary register to match Pmode.
1507 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1509         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1510         and *vec_concatv4si_1_avx.
1512 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1514         PR rtl-optimization/48927
1515         * ira-conflicts.c (commutative_constraint_p): Use
1516         recog_data.alternative_enabled_p to disable alternatives where
1517         "enabled" attribute is false.
1518         (get_dup_num): Ditto.
1519         * ira-lives.c (single_reg_class): Ditto.
1520         (ira_implicitly_set_insn_hard_regs): Ditto.
1522 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1524         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1525         (dataflow_set_preserve_mem_locs): Likewise.
1527 2011-05-09  Philipp Thomas  <pth@suse.de>
1529         * config/mep/mep.c (mep_validate_vliw): Syntax description
1530         should not be translated.
1532 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1534         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1535         * config/mips/mips-tables.opt: New file (generated).
1536         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1537         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1538         MIPS_ARCH_OPTION_NATIVE): Define.
1539         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1540         mips-cpus.def.
1541         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1542         mips_parse_cpu): Remove.
1543         (mips_cpu_info_from_opt, mips_default_arch): New.
1544         (mips_handle_option): Don't assert that global structures are in
1545         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1546         (mips_option_override): Use new variables and functions to set
1547         state of these options.  Use strcmp to check for individual CPU names.
1548         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1549         definition.
1550         * config/mips/mips.opt (march=): Use ToLower and Enum.
1551         (mips): Use ToLower, Enum and Var.
1552         (mtune=): Use ToLower and Enum.
1553         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1555 2011-05-08  Jan Hubicka  <jh@suse.cz>
1557         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1558         Arrange type pairs to be UID ordered.
1559         (gimple_lookup_type_leader): Make inline.
1561 2011-05-09  Nick Clifton  <nickc@redhat.com>
1563         PR target/48899
1564         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1565         PROCESSOR_DEFAULT.
1567         PR target/48897
1568         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1569         variable 's'.
1571 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1573         * combine.c (simplify_comparison): Abstract out parts into...
1574         (simplify_compare_const): ... new function.
1575         (try_combine): Generalize parallel arithmetic/compare combining
1576         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1578 2011-05-08  Jan Hubicka  <jh@suse.cz>
1580         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1581         (cgraph_create_virtual_clone): Call hooks once virtual clone
1582         is finished.
1583         * cgraph.h (cgraph_clone_node): Update prototype.
1584         * ipa-cp.c (ipcp_estimate_growth): Use
1585         estimate_ipcp_clone_size_and_time.
1586         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1587         * lto-cgraph.c (input_node): Update.
1588         * ipa-inline.c (recursive_inlining): Update.
1589         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1590         (evaluate_conditions_for_known_args): Break out from ...
1591         (evaluate_conditions_for_edge): ... here.
1592         (evaluate_conditions_for_ipcp_clone): New function.
1593         (inline_node_duplication_hook): Update clone summary based
1594         on parameter map.
1595         (estimate_callee_size_and_time): Rename to ...
1596         (estimate_node_size_and_time): take NODE instead of EDGE;
1597         take POSSIBLE_TRUTHS as argument.
1598         (estimate_callee_size_and_time): Update.
1599         (estimate_ipcp_clone_size_and_time): New function.
1600         (do_estimate_edge_time): Update.
1602 2011-05-08  Richard Guenther  <rguenther@suse.de>
1604         PR middle-end/48908
1605         PR middle-end/48905
1606         * expmed.c (expand_shift_1): Compute adjusted constant shift
1607         amount manually.
1609 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1611         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1613 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1615         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1617 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1619         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1621 2011-05-07  Jan Hubicka  <jh@suse.cz>
1623         * ipa-inline-transform.c (inline_call): Account when program size
1624         decreases.
1625         * ipa-inline.c (relative_time_benefit): New function.
1626         (edge_badness): Reorganize to be power 2 based; fix thinko when
1627         computing badness for negative growth; update comments to match
1628         reality; better dumps.
1630 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1632         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1633         type to bool and adjust comment.
1634         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1635         (fold_mathfn_compare): Remove calls to global_bindings_p.
1636         (fold_inf_compare): Likewise.
1637         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1638         * c-tree.h (global_bindings_p): Adjust prototype.
1639         * c-decl.c (global_bindings_p): Return bool and simplify.
1641 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1643         PR tree-optimization/48837
1644         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1645         when accumulator transformation is performed.
1647 2011-05-06  Jan Hubicka  <jh@suse.cz>
1649         * i386.h (ix86_tune_indices): Add
1650         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1651         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1652         * i386.c (initial_ix86_tune_features): Add
1653         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1654         (software_prefetching_beneficial_p): Remove predicate.
1655         (ix86_option_override_internal): Use new macro.
1657 2011-05-06  Jan Hubicka  <jh@suse.cz>
1659         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1661 2011-05-06  Jan Hubicka  <jh@suse.cz>
1663         * cgraph.c (cgraph_add_thunk): Create real function node instead
1664         of alias node; finalize it and mark needed/reachale; arrange visibility
1665         to be right and add it into the corresponding same comdat group list.
1666         (dump_cgraph_node): Dump thunks.
1667         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1668         cgraph_function_with_gimple_body_p,
1669         cgraph_first_function_with_gimple_body,
1670         cgraph_next_function_with_gimple_body): New functions.
1671         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1672         New macros.
1673         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1674         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1675         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1676         devirtualization when optimizing.
1677         (verify_cgraph_node): Verify thunks.
1678         (cgraph_analyze_function): Analyze thunks.
1679         (cgraph_mark_functions_to_output): Output thunks only in combination
1680         with function they are assigned to.
1681         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1682         alias into normal node.
1683         (assemble_thunks): New functoin.
1684         (cgraph_expand_function): Use it.
1685         * lto-cgraph.c (lto_output_node): Stream thunks.
1686         (input_overwrite_node): Stream in thunks.
1687         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1688         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1689         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1690         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1691         (inline_analyze_function): Do not care about thunk jump functions.
1692         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1693         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1694         cgraph_function_with_gimple_body_p.
1695         * passes.c (do_per_function_toporder): Use
1696         cgraph_function_with_gimple_body_p.
1697         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1698         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1699         (function_called_by_processed_nodes_p): Likewise.
1701 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1703         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1704         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1705         entries.
1706         (mabi=): Replace with separate entries for mabi=altivec,
1707         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1708         mabi=ieeelongdouble and mabi=ibmlongdouble.
1709         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1710         check for -mabi=spe without SPE ABI support here.
1711         (rs6000_handle_option): Replace OPT_mabi_ handling with
1712         OPT_mabi_altivec and OPT_mabi_spe handling.
1714 2011-05-06  Cary Coutant  <ccoutant@google.com>
1716         * dwarf2out.c (contains_subprogram_definition): New function.
1717         (should_move_die_to_comdat): Call it.
1719 2011-05-06  Jeff Law  <law@redhat.com>
1721         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1722         remove_ctrl_stmt_and_useless_edges.
1723         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1724         (fixup_template_block, thread_single_edge): Likewise.
1725         (mark_threaded_blocks): Use THREAD_TARGET.
1727 2011-05-06  Alan Modra  <amodra@gmail.com>
1729         PR target/48900
1730         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1731         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1733 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1735         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1736         constraint modifier to "r".
1738 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1740         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1741         fall through for OPT_mcmodel_.
1743 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1745         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1746         instruction sizes.
1747         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1749 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1751         PR target/47930
1752         * config/arm/arm.opt (marm): Document it.
1753         (mthumb): Reject negative variant.
1755 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1757         PR target/48898
1758         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1759         Fix typo in "ccvt" variable name.
1761 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1763         PR target/48895
1764         * config/vms/vms-ar.c (main): Remove cwd variable.
1766 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1768         PR debug/48902
1769         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1771 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1773         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1774         * gimplify.c (gimplify_switch_expr): Likewise.
1775         * omp-low.c (expand_omp_sections): Likewise.
1776         * tree-eh.c (lower_try_finally_switch): Likewise.
1777         (lower_eh_dispatch): Likewise.
1778         * tree.h (build_case_label): Declare.
1779         * tree.c (build_case_label): Define.
1781 2011-05-05  Jason Merrill  <jason@redhat.com>
1783         PR c++/40975
1784         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1785         (copy_statement_list): Don't recurse.
1786         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1787         STATEMENT_LIST.
1789 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1791         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1792         through from -mfpu= handling.
1793         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1795 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1797         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1798         POST_MODIFY.
1800 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1802         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1803         for 11.31.
1804         (hppa[12]*-*-hpux11*): Ditto.
1805         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1806         * config/ia64/hpux-unix2003.h: New.
1807         * config/pa/pa-hpux1131.opt: New.
1808         * config/pa/pa-hpux1131.h: New.
1809         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1810         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1811         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1813 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1815         PR debug/48853
1816         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1817         instead of mode as 3rd argument to recursive call.
1818         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1819         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1820         VOIDmode.
1821         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1822         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1823         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1824         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1826 2011-05-05  Julian Brown  <julian@codesourcery.com>
1828         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1829         parenthesis in D-register case.
1831 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1833         * opt-functions.awk (var_type_struct): Handle Enum options.
1834         * optc-gen.awk: Don't check range of variables of character type.
1835         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1836         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1837         rs6000_sdata_name, rs6000_explicit_options): Remove.
1838         (rs6000_option_override_internal): Check for -malign-power here.
1839         Use global_options_set instead of rs6000_explicit_options.
1840         (rs6000_parse_fpu_option): Remove.
1841         (rs6000_handle_option): Access variables via opts and opts_set
1842         pointers.  Use error_at and warning_at.  Add fall-through
1843         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1844         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1845         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1846         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1847         here.  Don't use rs6000_parse_fpu_option.
1848         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1849         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1850         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1851         (mrecip=): Use Var.
1852         (mspe): Use Var and Save.
1853         (mtraceback=): Use Enum and Var.
1854         (rs6000_traceback_type): New Enum and EnumValue entries.
1855         (mfloat-gprs=): Use Enum, Var and Save.
1856         (rs6000_float_gprs): New Enum and EnumValue entries.
1857         (mlong-double-): use Var and Save.
1858         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1859         (malign-): Use Enum and Var.
1860         (rs6000_alignment_flags): New Enum and EnumValue entries.
1861         (mfpu=): Use Enum.
1862         (fpu_type_t): New Enum and EnumValue entries.
1863         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1864         global_options_set instead of rs6000_explicit_options.
1865         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1866         global_options_set instead of rs6000_explicit_options.
1867         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1868         global_options_set instead of rs6000_explicit_options.
1869         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1870         global_options_set instead of rs6000_explicit_options.
1871         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1872         global_options_set instead of rs6000_explicit_options.
1873         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1874         global_options_set instead of rs6000_explicit_options.
1875         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1876         definition.
1877         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1878         global_options_set instead of rs6000_explicit_options.
1879         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1880         (rs6000_cmodel): New Enum and EnumValue entries.
1881         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1882         global_options_set instead of rs6000_explicit_options.
1883         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1884         (mtls-size=): Use Enum and Var.
1885         (rs6000_tls_size): New Enum and EnumValue entries.
1887 2011-05-05  Michael Matz  <matz@suse.de>
1889         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1890         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1891         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1892         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1893         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1894         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1895         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1896         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1897         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1898         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1899         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1900         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1901         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1902         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1903         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1904         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1906 2011-05-05  Richard Guenther  <rguenther@suse.de>
1908         * expmed.c (expand_variable_shift): Rename to ...
1909         (expand_shift_1): ... this.  Take an expanded shift amount.
1910         For rotates recurse directly not building trees for the shift amount.
1911         (expand_variable_shift): Wrap around expand_shift_1.
1912         (expand_shift): Adjust.
1914 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1916         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1918 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1920         * tree.h (get_pending_sizes): Remove prototype.
1921         (put_pending_size): Likewise.
1922         (put_pending_sizes): Likewise.
1923         * stor-layout.c (pending_sizes): Delete.
1924         (get_pending_sizes): Likewise.
1925         (put_pending_size): Likewise.
1926         (put_pending_sizes): Likewise.
1927         (variable_size): Do not call put_pending_size and tidy up.
1928         * function.h (struct function): Remove dont_save_pending_sizes_p.
1929         * lto-streamer-in.c (input_function): Do not stream it.
1930         * lto-streamer-out.c (output_function): Likewise.
1931         * tree-inline.c (initialize_cfun): Do not copy it.
1932         * c-decl.c (store_parm_decls): Do not set it.
1933         * omp-low.c (create_task_copyfn): Likewise.
1934         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1936 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1938         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1939         conditions.
1940         (*movdf_internal): Ditto.
1941         (*movdf_internal_nointeger): Ditto.
1942         (*movsf_internal): Ditto.
1944 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1946         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1947         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
1948         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
1949         (c_variable_size): Remove.
1950         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
1951         call put_pending_sizes.
1952         (get_parm_info): Add parameter expr.  Use it to set
1953         arg_info->pending_sizes.
1954         (store_parm_decls): Use arg_info->pending_sizes instead or calling
1955         get_pending_sizes.
1956         * c-parser.c (c_parser_parms_declarator): Update call to
1957         c_parser_parms_list_declarator.
1958         (c_parser_parms_list_declarator): Take parameter expr.  Update
1959         call to push_parm_decl.  Update recursive call.  Don't call
1960         get_pending_sizes.  Update calls to get_parm_info.
1961         (c_parser_objc_method_definition): Update calls to
1962         c_parser_objc_method_decl and objc_start_method_definition.
1963         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
1964         (c_parser_objc_method_decl): Add parameter expr.  Update call to
1965         grokparm.
1966         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
1967         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1968         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1970 2011-05-05  Michael Hope  <michael.hope@linaro.org>
1972         PR pch/45979
1973         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1974         __ARM_EABI__ hosts.
1976 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1978         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1979         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1980         (spu_output_mi_thunk): New function.
1982 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1984         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1985         targetm.asm_out.print_operand.
1986         * config/sol2.c: Include target.h.
1988 2011-05-04  Jan Hubicka  <jh@suse.cz>
1990         * ipa-inline.c (reset_edge_caches): New function.
1991         (update_caller_keys): Add check_inlinablity_for; do not
1992         reset edge caches; remove now unnecesary loop.
1993         (update_callee_keys): Add comments; reset node_growth_cache of callee.
1994         (update_all_callee_keys): Likewise.
1995         (inline_small_functions): Sanity check cache; update code
1996         recomputing it.
1998 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2000         PR rtl-optimization/47612
2001         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2002         as the last insn of the sequence to be moved.
2004 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2006         PR fortran/48864
2007         * doc/invoke.texi (Ofast): Document that it
2008         enables Fortran's -fno-protect-parens.
2010 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2012         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2014 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2016         * stor-layout.c (variable_size): Do not issue errors.
2018 2011-05-04  Richard Guenther  <rguenther@suse.de>
2020         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2021         for array-ref indices.
2022         (tree_coverage_counter_addr): Likewise.
2023         (build_fn_info_type): Use size_int for index types.
2024         (build_gcov_info): Likewise.
2026 2011-05-04  Richard Guenther  <rguenther@suse.de>
2028         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2029         to build_int_cst.
2030         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2031         for constructor indices.
2032         (push_init_level): Likewise.
2034 2011-05-04  Richard Guenther  <rguenther@suse.de>
2036         * explow.c (promote_mode): Move variable declarations before code.
2038 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2040         * tree.h (build_function_type_array): Declare.
2041         (build_varargs_function_type_array): Declare.
2042         (build_function_type_vec, build_varargs_function_type_vec): Define.
2043         * tree.c (build_function_type_array_1): New function.
2044         (build_function_type_array): New function.
2045         (build_varargs_function_type_array): New function.
2047 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2049         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2050         before setting STMT_VINFO_TYPE.
2052 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2054         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2055         instead of spu_pass_by_reference.
2057 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2059         * calls.c (emit_library_call_value_1): Invoke
2060         promote_function_mode hook on libcall arguments.
2061         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2062         argument being NULL.
2063         * targhooks.c (default_promote_function_mode): Lisewise.
2064         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2065         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2067         * doc/tm.texi: Document that TYPE argument might be NULL.
2069 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2071         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2073 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2075         From Bernd Schmidt
2076         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2078 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2080         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2081         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2082         Move ...
2083         * mips-tfile.c: ... here.
2084         Don't include coretypes.h, tm.h, filenames.h.
2085         (saber_stop): Remove definition and all calls.
2086         [__SABER__]: Remove.
2087         (__LINE__): Remove default.
2088         (Size_t, Ptrdiff_t): Remove definitions.
2089         Replace by size_t, ptrdiff_t.
2090         [!MIPS_DEBUGGING_INFO]: Remove.
2091         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2092         (progname): Add const.
2093         (STATIC): Remove.
2094         Replace all uses by static.
2095         (ALIGN_SYMTABLE_OFFSET): Remove default.
2096         * mips-tdump.c: Don't include coretypes.h, tm.h.
2097         Remove !MIPS_IS_STAB guard.
2098         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2099         $(TM_H), filenames.h dependencies.
2100         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2102 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2104         From Jie Zhang
2105         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2106         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2108 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2110         From Bernd Schmidt
2111         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2112         account and save/restore RETS.
2113         (PROFILE_BEFORE_PROLOGUE): Define.
2114         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2115         the push insn to use predecrement.
2117 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2119         From Jie Zhang
2120         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2122 2011-05-04  Nick Clifton  <nickc@redhat.com>
2124         * config/mn10300/mn10300.c: Include cfgloop.h.
2125         (DUMP): New macro.
2126         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2127         Lcc or a FLcc insn into the instruction stream.
2128         (mn10300_block_contains_call): New function.  Returns true if the
2129         given basic block contains a CALL insn.
2130         (mn10300_loop_contains_call_insn): New function.  Returns true if
2131         the given loop contains a CALL insn.
2132         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2133         to use the SETLB and Lcc or FLcc insns.
2134         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2135         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2136         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2137         disable the SETLB optimization.
2138         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2139         __SETLB__ or __NO_SETLB__.
2140         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2141         (movsf_internal): Handle MDR register.
2142         (cmpsi): Make visible.
2143         (setlb): New pattern.
2144         (Lcc): New pattern.
2145         (FLcc): New pattern.
2147 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2149         PR target/48860
2150         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2151         for reg<->xmm moves.
2152         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2153         (vec_concatv2di_rex64_sse): Ditto.
2154         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2155         (*vec_extractv2di_1_rex64): Ditto.
2157         Revert:
2158         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2160         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2161         reg<->xmm moves.
2162         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2164 2011-05-04  Richard Guenther  <rguenther@suse.de>
2166         * tree.h (int_const_binop): Remove notrunc argument.
2167         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2168         create integer constants that are properly truncated.
2169         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2170         (const_binop): Remove zero notrunc argument to int_const_binop.
2171         (size_binop_loc): Likewise.
2172         (fold_div_compare): Likewise.
2173         (maybe_canonicalize_comparison_1): Likewise.
2174         (fold_comparison): Likewise.
2175         (fold_binary_loc): Likewise.
2176         (multiple_of_p): Likewise.
2177         * expr.c (store_constructor): Likewise.
2178         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2179         (maybe_fold_stmt_addition): Likewise.
2180         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2181         * stor-layout.c (layout_type): Likewise.
2182         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2183         * tree-sra.c (build_ref_for_offset): Likewise.
2184         (build_user_friendly_ref_for_offset): Likewise.
2185         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2186         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2187         * tree-ssa-loop-niter.c (inverse): Likewise.
2188         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2189         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2190         * tree-switch-conversion.c (check_range): Likewise.
2191         (build_constructors): Likewise.
2192         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2193         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2194         (extract_range_from_assert): Likewise.
2195         (vrp_int_const_binop): Likewise.
2196         (extract_range_from_binary_expr): Likewise.
2197         (extract_range_from_unary_expr): Likewise.
2198         (check_array_ref): Likewise.
2199         (find_case_label_range): Likewise.
2200         (simplify_div_or_mod_using_ranges): Likewise.
2201         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2202         comparing case labels for merging.
2204 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2206         * dwarf2out.c (debug_str_hash_forced): Removed.
2207         (gen_label_for_indirect_string): Removed.
2208         (get_debug_string_label): Removed.
2209         (AT_string_form): Generate label directly.
2210         (output_indirect_string): Test indirect_string_node for
2211         DW_FORM_strp instead of checking label and refcount.
2212         (prune_indirect_string): Removed.
2213         (prune_unused_types): Don't check debug_str_hash_forced or
2214         call prune_indirect_string.
2216 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2218         PR other/48093
2219         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2221 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2223         PR debug/47994
2224         PR debug/47919
2225         * combine.c (try_combine): Skip debug insns at m_split tests.
2227 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2229         PR42288
2230         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2231         when info_section_emitted.
2233 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2235         * config/mips/mips-opts.h: New.
2236         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2237         to mips-opts.h.
2238         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2239         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2240         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2241         via opts pointer.
2242         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2243         mips-opts.h.
2244         (mips_abi, mips_code_readable): Don't declare.
2245         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2246         (mabi=): Use Enum and Var.
2247         (mips_abi): New Enum and EnumValue entries.
2248         (mcode-readable=): Use Enum and Var.
2249         (mips_code_readable_setting): New Enum and EnumValue entries.
2250         (mr10k-cache-barrier=): Use Enum and Var.
2251         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2253 2011-05-03  Jan Hubicka  <jh@suse.cz>
2255         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2256         replace hash by pointer map.
2257         (cgraph_node_set_element_def, cgraph_node_set_element,
2258         const_cgraph_node_set_element, varpool_node_set_element_def,
2259         varpool_node_set_element, const_varpool_node_set_element): Remove.
2260         (free_cgraph_node_set, free_varpool_node_set): New function.
2261         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2262         * tree-emutls.c: Free varpool node set.
2263         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2264         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2265         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2266         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2267         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2268         Move here from ipa.c; implement using pointer_map
2269         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2270         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2271         debug_cgraph_node_set, varpool_node_set_new,
2272         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2273         dump_varpool_node_set, debug_varpool_node_set):
2274         Move to ipa-uitls.c.
2275         * passes.c (ipa_write_summaries): Update.
2277 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2279         From Mike Frysinger:
2280         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2281         bf542/bf544/bf547/bf548/bf549.
2283 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2285         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2287 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2289         From Bernd Schmidt:
2290         * config/bfin/bfin.md (MOVCC): New mode_macro.
2291         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2292         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2293         comments from generated assembly.
2295 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2297         From Bernd Schmidt
2298         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2299         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2300         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2301         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2302         * config/bfin/lib1funcs.asm (___muldi3): New function.
2304 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2306         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2307         build_function_type_list instead of build_function_type.
2308         Rearrange initialization of `args' to do so.
2310 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2312         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2313         instead of build_function_type.
2315 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2317         * config/rs6000/rs6000.c (spe_init_builtins): Call
2318         build_function_type_list instead of build_function_type.
2319         (paired_init_builtins, altivec_init_builtins): Likewise.
2320         (builtin_function_type): Likewise.
2322 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2324         * config/sh/sh.c (sh_media_init_builtins): Call
2325         build_function_type_list instead of build_function_type.
2327 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2329         * config/sparc/sparc.c (sparc_file_end): Call
2330         build_function_type_list instead of build_function_type.
2332 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2334         * config/alpha/alpha.c (alpha_init_builtins): Call
2335         build_function_type_list instead of build_function_type.
2337 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2339         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2340         build_function_type_list instead of build_function_type.
2342 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2344         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2345         build_function_type_list instead of build_function_type.
2346         Delete `endlink' variable.
2348 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2350         * config/avr/avr.c (avr_init_builtins): Call
2351         build_function_type_list instead of build_function_type.
2353 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2355         * config/picochip/picochip.c (picochip_init_builtins): Call
2356         build_function_type_list instead of build_function_type.
2357         Delete `endlink' variable.
2359 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2361         * config/bfin/bfin.c (bfin_init_builtins): Call
2362         build_function_type_list instead of build_function_type.
2364 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2366         From Bernd Schmidt
2367         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2368         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2370 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2372         From Jie Zhang:
2373         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2374         libbffastfp overrides libgcc when -mfast-fp.
2376 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2378         Originally from Bernd Schmidt
2379         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2380         * config/bfin/bfin.c (override_options): Test it and error if
2381         TARGET_FDPIC.
2383 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2385         Originally From Bernd Schmidt
2386         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2387         FD-PIC.
2389 2011-05-03  Jeff Law  <law@redhat.com>
2391         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2392         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2393         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2394         than accessing AUX field directly.  Free the AUX field before
2395         clearing it.
2396         (thread_block, thread_through_loop_header): Likewise.
2397         (thread_single_edge, mark_threaded_blocks): Likewise.
2398         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2399         (register_jump_thread): Do not attempt to thread to a NULL edge.
2401 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2403         * function.c (init_function_start): Call decide_function_section.
2404         * varasm.c (decide_function_section): New function.
2405         (assemble_start_function): When not using
2406         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2407         or first_function_block_is_cold.
2408         * rtl.h (decide_function_section): Declare.
2410 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2411             Jakub Jelinek  <jakub@redhat.com>
2413         PR target/48774
2414         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2415         only succeed if req_mode is the same as set_mode.
2417 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2419         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2420         * genemit.c (gen_exp): Handle RETURN.
2421         * emit-rtl.c (verify_rtx_sharing): Likewise.
2422         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2423         * rtl.c (copy_rtx): RETURN is shared.
2424         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2425         (ret_rtx): New.
2426         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2427         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2428         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2429         * config/cris/cris.c (cris_expand_return): Likewise.
2430         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2431         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2432         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2433         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2434         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2435         Likewise.
2436         * config/v850/v850.c (expand_epilogue): Likewise.
2437         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2438         * config/arm/arm.md (epilogue): Likewise.
2439         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2440         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2441         variable to ret_reg.
2443 2011-05-03  Richard Guenther  <rguenther@suse.de>
2445         PR lto/48846
2446         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2447         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2448         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2450 2011-05-03  Richard Guenther  <rguenther@suse.de>
2452         * c-decl.c (grokdeclarator): Instead of looking at
2453         TREE_OVERFLOW check if the constant fits in the index type.
2455 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2457         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2458         (vec_store_lanes<mode><mode>): Likewise.
2460 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2462         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2463         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2464         convert_optab_index values.
2465         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2466         * genopinit.c (optabs): Initialize the new optabs.
2467         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2468         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2469         (expand_STORE_LANES): New functions.
2470         * tree.h (build_array_type_nelts): Declare.
2471         * tree.c (build_array_type_nelts): New function.
2472         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2473         (vect_model_load_cost): Likewise.
2474         (vect_store_lanes_supported, vect_load_lanes_supported)
2475         (vect_record_strided_load_vectors): Declare.
2476         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2477         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2478         (vect_transform_strided_load): Split out statement recording into...
2479         (vect_record_strided_load_vectors): ...this new function.
2480         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2481         (write_vector_array, create_array_ref): New functions.
2482         (vect_model_store_cost): Add store_lanes_p argument.
2483         (vect_model_load_cost): Add load_lanes_p argument.
2484         (vectorizable_store): Try to use store-lanes functions for
2485         interleaved stores.
2486         (vectorizable_load): Likewise load-lanes and loads.
2487         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2488         to vect_model_store_cost.
2489         (vect_build_slp_tree): Likewise vect_model_load_cost.
2491 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2493         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2494         * hooks.c (hook_bool_mode_uhwi_false): New function.
2495         * target.def (array_mode_supported_p): New hook.
2496         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2497         * doc/tm.texi: Regenerate.
2498         * stor-layout.c (mode_for_array): New function.
2499         (layout_type): Use it.
2500         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2501         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2503 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2505         PR target/48723
2506         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2507         for -fstack-check if the size to allocate is negative.
2509 2011-05-02  Lawrence Crowl  <crowl@google.com>
2511         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2512         (timevar_cond_start): New for starting a timer only when it is not
2513         already running.
2514         (timevar_cond_stop): New for stopping a timer when it was not already
2515         running.
2517         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2518         (timevar_cond_start): New as above.
2519         (timevar_cond_stop): New as above.
2521         * timevar.def: Add start/stop timers for compiler phases,
2522         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2523         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2524         and TV_PHASE_FINALIZE.
2525         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2526         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2527         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2528         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2529         Make unused TV_OVERLOAD into a start/stop timer.
2531         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2532         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2533         to indicate that they are start/stop timers.
2535         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2536         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2537         Move initialization to do_compile.
2538         (do_compile): Add initialization from above.
2539         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2541         * c-decl.c (c_write_global_declarations): Add start/stop of
2542         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2544         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2545         or TV_PARSE_INLINE, as appropriate.
2546         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2547         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2549 2011-05-02  Jason Merrill  <jason@redhat.com>
2551         PR c++/40975
2552         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2554 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2556         PR c/35445
2557         * c-decl.c (finish_decl): Only create a composite if the types are
2558         compatible.
2560 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2562         * config/fr30/fr30-protos.h (Mmode): Don't define.
2563         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2564         definition where used.
2565         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2566         define.  Expand definitions where used.
2567         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2568         Expand definitions where used.
2569         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2570         rx_function_arg, rx_function_arg_advance,
2571         rx_function_arg_boundary): Expand definitions of those macros.
2572         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2573         definition where used.
2575 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2577         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2578         reg<->xmm moves.
2579         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2580         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2581         with *movv2sf_internal_rex64_avx.
2582         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2583         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2584         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2585         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2586         "vex" in "prefix" attribute calculation.
2587         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2589 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2591         PR target/47951
2592         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2593         inputs match the output.
2595 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2597         PR target/47955
2598         * config/m68k/m68k.c (m68k_expand_prologue): Set
2599         current_function_static_stack_size.
2601 2011-05-02   Jan Hubicka  <jh@suse.cz>
2603         * lto-streamer.c (lto_streamer_cache_insert_1,
2604         lto_streamer_cache_lookup, lto_streamer_cache_create,
2605         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2606         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2608 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2610         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2611         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2612         config/m68k/t-opts: New files.
2613         * config/m68k/m68k-tables.opt: New file (generated).
2614         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2615         extra_options and m68k/t-opts to tmake_file.
2616         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2617         (all_isas): Initialize using m68k-isas.def.
2618         (all_microarchs): Initialize using m68k-microarchs.def.
2619         (m68k_find_selection): Remove.
2620         (m68k_handle_option): Don't assert that global structures are in
2621         use.  Use error_at.  Access variables via opts pointer.  Don't
2622         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2623         directly for -m68020-40 and -m68020-60.
2624         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2625         m68k_tune_entry here.
2626         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2627         to m68k-opts.h.
2628         (m68k_library_id_string): Remove declaration.
2629         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2630         (m68k_library_id_string): New Variable.
2631         (march=, mcpu=, mtune=): Use Enum and Var.
2633 2011-05-02  Richard Guenther  <rguenther@suse.de>
2635         * varasm.c (output_constructor_regular_field): Compute zero-based
2636         index with double-ints.  Make sure to ICE instead of producing
2637         wrong code.
2638         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2639         in asserts.  Properly use a signed type.
2641 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2643         * config/i386/sse.md (V): New mode iterator.
2644         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2645         TARGET_SSE2.
2646         (V_256): Rename from AVX256MODE.
2647         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2648         condition to all users.
2649         (VF1): Ditto.
2650         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2651         condition to all users.
2652         (VF_128): Make V4SF mode unconditional.
2653         (VF_256): Rename from AVX256MODEF2P.
2654         (VI4F_128): Rename from SSEMODE4S.
2655         (VI8F_128): Rename from SSEMODE2D.
2656         (VI4F_256): Rename from AVX256MODE8P.
2657         (VI8F_256): Rename from AVX256MODE4P.
2658         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2659         (ssescalarmodesuffix): Remove SF and DF modes.
2660         (SSEMODE124): Remove.
2661         (SSEMODE1248): Ditto.
2662         (SSEMODEF2P): Ditto.
2663         (AVXMODEF2P): Ditto.
2664         (AVXMODEFDP): Ditto.
2665         (AVXMODEFSP): Ditto.
2666         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2667         unconditional.
2668         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2669         unconditional.
2670         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2671         xop_pcmov_<mode>256.  Use V mode iterator.
2673         Adjust RTX patterns globally for renamed mode attributes.
2675 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2677         * haifa-sched.c (sched_emit_insn): Emit insn before first
2678         non-scheduled insn.  Inform back-end about new insn.  Add
2679         new insn to scheduled_insns list.
2681 2011-05-02  Richard Guenther  <rguenther@suse.de>
2683         PR tree-optimization/48822
2684         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2685         (process_scc): Indicate which iteration we start.
2687 2011-05-02  Jan Hubicka  <jh@suse.cz>
2689         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2690         (lto_section_overrun): New.
2691         * lto-section-out.c (append_block): Rename to ...
2692         (lto_append_block): ... this one; export.
2693         (lto_output_1_stream): Move lto lto-streamer.h
2694         (lto_output_data_stream): Update.
2695         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2696         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2697         functions.
2699 2011-05-02  Richard Guenther  <rguenther@suse.de>
2701         * tree.c (tree_code_counts): New global array.
2702         (record_node_allocation_statistics): Count individual tree codes.
2703         (dump_tree_statistics): Dump individual code stats.
2705 2011-05-01  Jan Hubicka  <jh@suse.cz>
2707         * ipa-inline.c (caller_growth_limits): Fix thinko when
2708         looking for largest stack frame.
2709         * ipa-inline.h (dump_inline_summary): Declare.
2710         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2711         on stack usage.
2712         (dump_inline_summary): Export.
2713         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2715 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2717         * reginfo.c (memory_move_cost): Change rclass argument type form
2718         'enum reg_class' to reg_class_t.
2719         * reload.h (memory_move_cost): Update prototype.
2720         * postreload.c reload_cse_simplify_set): Change type dclass var to
2721         reg_class_t.
2722         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2723         Update prototype.
2724         (ira_allocate_and_set_costs): Change aclass argument type form
2725         'enum reg_class' to reg_class_t.
2726         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2727         Change aclass argument type to reg_class_t.
2728         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2729         to reg_class_t.
2730         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2731         memory_move_cost call.
2733         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2734         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2735         Change type tmp var to reg_class_t.
2737 2011-04-30  Jan Hubicka  <jh@suse.cz>
2739         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2740         inlining into function with flatten attribute.
2741         (want_inline_small_function_p): Be more realistic about inlining
2742         cold calls where callee size grows.
2744 2011-04-30  Jan Hubicka  <jh@suse.cz>
2746         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2747         flags.
2749 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2751         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2752         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2753         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2754         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2755         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2756         (print_operand): Rename to...
2757         (sparc_print_operand): ...this. Make static. Adjust
2758         sparc_print_operand function call.
2759         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2760         functions.
2762 2011-04-30  Jan Hubicka  <jh@suse.cz>
2764         PR middle-end/48752
2765         * ipa-inline.c (early_inliner): Disable when doing late
2766         addition of function.
2768 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2770         * dwarf2out.c (get_address_mode): New inline.
2771         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2772         if not dwarf_strict emit
2773         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2774         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2775         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2776         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2777         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2778         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2779         mem_loc_descriptor callers.
2780         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2781         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2782         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2783         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2784         (base_types): New variable.
2785         (get_base_type_offset, calc_base_type_die_sizes,
2786         base_type_for_mode, mark_base_types, base_type_cmp,
2787         move_marked_base_types): New functions.
2788         (calc_die_sizes): Assert that die_offset is 0 or equal to
2789         next_die_offset.
2790         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2791         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2792         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2793         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2794         (gen_subprogram_die): Don't give up on call site parameters
2795         with non-integral or large integral modes.  Adjust
2796         mem_loc_descriptor callers.
2797         (prune_unused_types): Call prune_unused_types_mark on base_types
2798         vector entries.
2799         (resolve_addr): Call mark_base_types.
2800         (dwarf2out_finish): Call move_marked_base_types.
2802         PR tree-optimization/48809
2803         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2804         type.
2805         (gen_inbound_check): Don't compute index_expr - range_min in utype
2806         again, instead reuse SSA_NAME initialized in build_arrays.
2807         Remove two useless gsi_for_stmt calls.
2809 2011-04-29  Jeff Law  <law@redhat.com>
2811         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2813 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2815         * cgraph.h (cgraph_postorder): Remove declaration.
2816         * ipa-utils.h (ipa_free_postorder_info): Declare.
2817         (ipa_reverse_postorder): Likewise.
2818         * cgraphunit.c: Include ipa-utils.h.
2819         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2820         * ipa-inline.c: Include ipa-utils.h.
2821         (ipa_inline): Update call to ipa_reverse_postorder.
2822         * ipa-pure-const.c (propagate_pure_const): Update call to
2823         ipa_reduced_postorder and ipa_print_order.  Call
2824         ipa_free_postorder_info to clean up.
2825         (propagate_nothrow): Likewise.
2826         * ipa-reference.c (propagate): Removed a useless call to
2827         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2828         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2829         * ipa.c: Include ipa-utils.h.
2830         (ipa_profile): Update call to ipa_reverse_postorder.
2831         (cgraph_postorder): Moved to...
2832         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2833         (ipa_utils_print_order): Renamed to ipa_print_order.
2834         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2835         comments.
2836         (ipa_free_postorder_info): New function.
2837         * passes.c: Include ipa-utils.h.
2838         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2839         (ipa_write_summaries): Likewise.
2840         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2841         (cgraphunit.o): Likewise.
2842         (ipa.o): Likewise.
2843         (ipa-inline.o): Likewise.
2845 2011-04-29  Jan Hubicka  <jh@suse.cz>
2847         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2848         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2849         * ipa-inline.h (clause_t): Turn into unsigned int.
2850         * ipa-inline-analysis.c (add_clause): Do more simplification.
2851         (and_predicates): Shortcut more cases.
2852         (predicates_equal_p): Move forward; check that clauses are properly
2853         ordered.
2854         (or_predicates): Shortcut more cases.
2855         (edge_execution_predicate): Rewrite as...
2856         (set_cond_stmt_execution_predicate): ... this function; handle
2857         __builtin_constant_p.
2858         (set_switch_stmt_execution_predicate): New .
2859         (compute_bb_predicates): New.
2860         (will_be_nonconstant_predicate): Update TODO.
2861         (estimate_function_body_sizes): Use compute_bb_predicates
2862         and free them later, always try to estimate if stmt is constant.
2863         (estimate_time_after_inlining, estimate_size_after_inlining):
2864         Gracefully handle optimized out edges.
2865         (read_predicate): Fix off by one error.
2867 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2869         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2871 2011-04-27  Xinliang David Li  <davidxl@google.com>
2873         * tree-profile.c (init_ic_make_global_vars): Set
2874         tls attribute on ic vars.
2875         * coverage.c (coverage_end_function): Initialize
2876         function_list with zero.
2878 2011-04-29  Richard Guenther  <rguenther@suse.de>
2880         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2881         for the type of the result.
2882         (fold_builtin_isascii): Likewise.
2883         (fold_builtin_toascii): Use integer_type_node where appropriate.
2884         (fold_builtin_logb): Likewise.
2885         (fold_builtin_frexp): Likewise.
2886         (fold_builtin_strstr): Likewise.
2887         (fold_builtin_strpbrk): Likewise.
2888         (fold_builtin_fputs): Likewise.
2889         (fold_builtin_sprintf): Likewise.
2890         (fold_builtin_snprintf): Likewise.
2891         (fold_builtin_printf): Likewise.
2892         (do_mpfr_remquo): Use a proper type for the assigned constant.
2893         (do_mpfr_lgamma_r): Likewise.
2894         * dwarf2out.c (resolve_one_addr): Use size_int.
2895         * except.c (init_eh): Likewise.
2896         (assign_filter_values): Use integer_type_node for filter values.
2897         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2898         indices.
2899         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2900         for EH region numbers.
2901         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2902         for the shift amount.
2904 2011-04-29  Richard Guenther  <rguenther@suse.de>
2906         * expr.h (expand_shift): Rename to ...
2907         (expand_variable_shift): ... this.
2908         (expand_shift): Take a constant shift amount.
2909         * expmed.c (expand_shift): Rename to ...
2910         (expand_variable_shift): ... this.
2911         (expand_shift): New wrapper around expand_variable_shift.
2912         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2913         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2914         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2915         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2916         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2917         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2918         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2919         emit_store_flag_1, emit_store_flag): Likewise.
2920         * builtins.c (expand_builtin_signbit): Likewise.
2921         * calls.c (load_register_parameters): Likewise.
2922         * function.c (assign_parm_setup_block): Likewise.
2923         * lower-subreg.c (resolve_shift_zext): Likewise.
2924         * optabs.c (widen_bswap, expand_abs_nojump,
2925         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2926         * spu/spu.c (spu_expand_extv): Likewise.
2927         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2929 2011-04-29  Richard Guenther  <rguenther@suse.de>
2931         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2932         for the remapped region number.
2933         * predict.c (build_predict_expr): Use integer_type_node for the
2934         predict kind.
2935         * fold-const.c (fold_binary_loc): Use integer_type_node for
2936         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2938 2011-04-29  Michael Matz  <matz@suse.de>
2940         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2941         other trees that just builtins.
2942         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2944 2011-04-29  Richard Guenther  <rguenther@suse.de>
2946         * tree-nested.c (get_trampoline_type): Use size_int.
2947         (get_nl_goto_field): Likewise.
2948         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2949         for all indexes.
2950         (lower_eh_constructs_2): Likewise.
2951         (lower_resx): Likewise.
2952         (lower_eh_dispatch): Likewise.
2953         * tree-mudflap.c (mf_build_string): Use size_int.
2954         (mudflap_register_call): Use integer_type_node for the flag.
2955         (mudflap_enqueue_constant): Use size_int.
2956         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2957         instead of rebuilding it.
2959 2011-04-29  Richard Guenther  <rguenther@suse.de>
2961         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2962         Handle OBJ_TYPE_REF.
2963         (find_func_aliases_for_call): Use it more consistently.
2965 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
2967         * haifa-sched.c (last_nondebug_scheduled_insn): New.
2968         (rank_for_schedule): Use it.
2969         (schedule_block): Set it.
2971 2011-04-28  David Li  <davidxl@google.com>
2973         * tree.c (crc32_string): Use crc32_byte.
2974         (crc32_byte): New function.
2975         * tree.h (crc32_byte): New function.
2976         * gcov.c (read_graph_file): Handle new cfg_cksum.
2977         (read_count_file): Ditto.
2978         * profile.c (instrument_values): Ditto.
2979         (get_exec_counts): Ditto.
2980         (read_profile_edge_counts): Ditto.
2981         (compute_branch_probabilities): Ditto.
2982         (compute_value_histograms): Ditto.
2983         (branch_prob): Ditto.
2984         (end_branch_prob): Ditto.
2985         * coverage.c (read_counts_file): Ditto.
2986         (get_coverage_counts): Ditto.
2987         (tree_coverage_counter_addr): Ditto.
2988         (coverage_checksum_string): Ditto.
2989         (coverage_begin_output): Ditto.
2990         (coverage_end_function): Ditto.
2991         (build_fn_info_type): Ditto.
2992         (build_fn_info_value): Ditto.
2993         * libgcov.c (gcov_exit): Ditto.
2994         * gcov-dump.c (tag_function): Ditto.
2995         (compute_checksum): Remove.
2997 2011-04-29  Alan Modra  <amodra@gmail.com>
2999         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3000         unspec plus offset.  Tidy macho code.
3002 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3004         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3005         node instead of a decl.  Update all callers.
3006         * cgraph.h: Update declaration.
3008 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3010         PR tree-optimization/48765
3011         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3012         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3013         to indicate if loop aware SLP is being used.  Scan the statements
3014         and update the vectorization factor according to the type of
3015         vectorization before statement analysis.
3016         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3017         pass it to vect_analyze_loop_operations.
3018         (vectorizable_reduction): Set number of copies to 1 in case of pure
3019         SLP statement.
3020         * tree-vect-stmts.c (vectorizable_conversion,
3021         vectorizable_assignment, vectorizable_shift,
3022         vectorizable_operation, vectorizable_type_demotion,
3023         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3024         Likewise.
3025         (vectorizable_condition): Move the check that it is not SLP
3026         vectorization before the number of copies check.
3027         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3028         to vectorize the loop using SLP.
3030 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3032         PR middle-end/48597
3033         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3034         inline asm.
3036 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3038         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3039         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3040         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3041         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3042         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3043         linux*.h headers.
3044         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3045         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3046         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3047         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3048         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3049         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3050         REG_NAME.
3051         * config/i386/linux.h (REG_NAME): Don't define.
3052         * config/i386/linux64.h (REG_NAME): Don't define.
3053         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3054         Undefine before defining.
3056 2011-04-28  Jan Hubicka  <jh@suse.cz>
3058         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3059         nonconstant_names array.
3060         (estimate_function_body_sizes): Build nonconstant_names array; handle
3061         BUILT_IN_CONSTANT_P.
3063 2011-04-28  Richard Guenther  <rguenther@suse.de>
3065         PR bootstrap/48804
3066         Revert
3067         2011-04-28  Richard Guenther  <rguenther@suse.de>
3069         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3070         as late as possible.
3072 2011-04-28  Richard Guenther  <rguenther@suse.de>
3074         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3075         (debug_constraint): Do it here.
3076         (dump_constraints): And here.
3077         (rewrite_constraints): And here.
3078         (dump_constraint_edge): Remove.
3079         (dump_constraint_graph): Rewrite to produce DOT output.
3080         (solve_constraints): Build succ graph as late as possible.
3081         Dump constraint graphs before and after solving.
3083 2011-04-28  Richard Guenther  <rguenther@suse.de>
3085         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3086         New function split out from ...
3087         (find_func_aliases): ... here.  Call it.
3088         (find_func_aliases_for_call): Likewise.
3090 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3092         * internal-fn.h (internal_fn_name_array): Declare.
3093         (internal_fn_flags_array): Likewise.
3095 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3097         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3098         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3099         Move from sse.md.
3100         (ssemodefsuffix): Remove.
3101         (ssevecmodesuffix): New mode attribute.
3102         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3103         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3104         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3105         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3106         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3107         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3108         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3109         ssemodesuffix mode attribute.
3110         (float splitters): Use ssevecmodesuffix mode attribute.
3111         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3112         (sseinsmode): Rename from avxvecmode.
3113         (avxsizesuffix): Rename from avxmodesuffix.
3114         (sseintvecmode): Rename from avxpermvecmode.
3115         (ssedoublevecmode): Rename from ssedoublesizemode.
3116         (ssehalfvecmode): Rename from avxhalfvecmode.
3117         (ssescalarmode): Rename from avxscalarmode.
3118         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3119         templates for ssemodesuffix mode attribute.
3120         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3121         mode attribute.
3123         Adjust RTX patterns globally for renamed mode attributes.
3125 2011-04-27  Jan Hubcika  <jh@suse.cz>
3127         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3128         * ipa-inline-analysis.c: Include alloc-pool.h.
3129         (edge_predicate_pool): New.
3130         (trye_predicate_p): New function
3131         (false_predicate_p): New function.
3132         (add_clause): Sanity check that false clauses are "optimized";
3133         never add clauses to predicate that is already known to be false.
3134         (and_predicate): Use flase_predicate_p.
3135         (evaulate_predicate): Rename to ...
3136         (evaluate_predicate): ... this one; update all callers; assert
3137         that false is not listed among possible truths.
3138         (dump_predicate): Use true_predicate_p.
3139         (account_size_time): Use false_predicate_p.
3140         (evaulate_conditions_for_edge): Rename to ...
3141         (evaluate_conditions_for_edge) ... this one.
3142         (edge_set_predicate): New function.
3143         (inline_edge_duplication_hook): Duplicate edge predicates.
3144         (inline_edge_removal_hook): Free edge predicates.
3145         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3146         (dump_inline_summary): Update.
3147         (estimate_function_body_sizes): Set edge predicates.
3148         (estimate_calls_size_and_time): Handle predicates.
3149         (estimate_callee_size_and_time): Update.
3150         (remap_predicate): Add toplev_predicate; update comment.
3151         (remap_edge_predicates): New function.
3152         (inline_merge_summary): Compute toplev predicate; update.
3153         (read_predicate): New function.
3154         (read_inline_edge_summary): Use it.
3155         (inline_read_section): Likewise.
3156         (write_predicate): New function.
3157         (write_inline_edge_summary): Use it.
3158         (inline_write_summary): Likewise.
3159         (inline_free_summary): Free alloc pool and edge summary vec.
3161 2011-04-27  Richard Guenther  <rguenther@suse.de>
3163         * tree-ssa-structalias.c (changed_count): Remove.
3164         (changed): Use a bitmap.
3165         (unify_nodes): Adjust.
3166         (do_sd_constraint): Likewise.
3167         (do_ds_constraint): Likewise.
3168         (do_complex_constraint): Likewise.
3169         (solve_graph): Likewise.
3171 2011-04-27  Jan Hubicka  <jh@suse.cz>
3173         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3175 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3177         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3178         (avx_vperm2f128_*_operand): Ditto.
3179         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3180         Use avx_vpermilp_parallel in insn condition.
3181         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3182         Use avx_vperm2f128_parallel in insn condition.
3184 2011-04-27  Richard Guenther  <rguenther@suse.de>
3186         * Makefile.in (tree-ssa-structalias.o): Remove
3187         gt-tree-ssa-structalias.h dependency.
3188         (GTFILES): Remove tree-ssa-structalias.c.
3189         * tree.c (allocate_decl_uid): New function.
3190         (make_node_stat): Use it.
3191         (copy_node_stat): Likewise.
3192         * tree.h (allocate_decl_uid): Declare.
3193         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3194         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3195         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3196         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3197         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3198         (struct heapvar_map): Likewise.
3199         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3200         heapvar_insert): Likewise.
3201         (make_heapvar_for): Rename to ...
3202         (make_heapvar): ... this.  Simplify.
3203         (fake_var_decl_obstack): New global var.
3204         (build_fake_var_decl): New function.
3205         (make_constraint_from_heapvar): Adjust.
3206         (handle_lhs_call): Likewise.
3207         (create_function_info_for): Likewise.
3208         (intra_create_variable_infos): Likewise.
3209         (init_alias_vars): Allocate fake_var_decl_obstack.
3210         (init_alias_heapvars, delete_alias_heapvars): Remove.
3211         (compute_points_to_sets): Do not call init_alias_heapvars.
3212         (ipa_pta_execute): Likewise.
3213         (delete_points_to_sets): Free fake_var_decl_obstack.
3215 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3217         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3218         (si_from_UTItype, si_to_UTItype): New functions.
3219         (__udivmodti4): Use them to implement type-punning.
3220         * config/spu/multi3.c (union qword_TItype): New data type.
3221         (si_from_TItype, si_to_TItype): New functions.
3222         (__multi3): Use them to implement type-punning.
3224 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3226         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3228 2011-04-27  Jan Hubicka  <jh@suse.cz>
3230         * ipa-prop.c (function_insertion_hook_holder): New holder.
3231         (ipa_add_new_function): New function.
3232         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3233         Register/deregister holder.
3235 2011-04-27  Richard Guenther  <rguenther@suse.de>
3237         PR tree-optimization/48772
3238         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3240 2011-04-27  Richard Guenther  <rguenther@suse.de>
3242         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3243         TARGET_MEM_REF handling.
3245 2011-04-27  Nick Clifton  <nickc@redhat.com>
3247         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3248         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3249         (REG_CLASS_NAMES): Likewise.
3250         (REG_CLASS_CONTENTS): Likewise.
3251         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3252         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3253         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3254         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3255         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3256         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3257         duplicate register classes.
3258         (frv_class_likely_spilled_p): Likewise.
3259         (frv_register_move_cost): Likewise.
3261         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3262         end of the regno_reg_class array.
3264 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3266         PR c/48742
3267         * c-typeck.c (build_binary_op): Don't wrap arguments if
3268         int_operands is true.
3270 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3272         PR target/48767
3273         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3274         targetm.calls.must_pass_in_stack for void type.
3276 2011-04-26  Jan Hubicka  <jh@suse.cz>
3278         * cgraphbuild.c (build_cgraph_edges): Update call
3279         of cgraph_create_edge and cgraph_create_indirect_edge.
3280         * cgraph.c (cgraph_create_edge_including_clones,
3281         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3282         cgraph_update_edges_for_call_stmt_node): Do not take nest
3283         argument; do not initialize call_stmt_size/time.
3284         (dump_cgraph_node): Do not dump nest.
3285         (cgraph_clone_edge): Do not take loop_nest argument;
3286         do not propagate it; do not clone call_stmt_size/time.
3287         (cgraph_clone_node): Likewise.
3288         (cgraph_create_virtual_clone): Update.
3289         * cgraph.h (struct cgraph_edge): Remove
3290         call_stmt_size/call_stmt_time/loop_nest.
3291         (cgraph_create_edge, cgraph_create_indirect_edge,
3292         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3293         prototype.
3294         * tree-emutls.c (gen_emutls_addr): Update.
3295         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3296         loop_nest; handle indirect calls, too.
3297         (clone_inlined_nodes): Do not care about updating inline summaries.
3298         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3299         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3300         stream call_stmt_size/call_stmt_time/loop_nest.
3301         * ipa-inline.c (edge_badness): Update.
3302         (ipa_inline): dump summaries after inlining.
3303         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3304         New.
3305         (inline_edge_summary): New function.
3306         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3307         (inline_edge_removal_hook): Handle edge summaries.
3308         (inline_edge_duplication_hook): New hook.
3309         (inline_summary_alloc): Alloc hooks.
3310         (initialize_growth_caches): Do not register removal hooks.
3311         (free_growth_caches); Do not free removal hook.
3312         (dump_inline_edge_summary): New function.
3313         (dump_inline_summary): Use it.
3314         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3315         (inline_update_callee_summaries): New function.
3316         (inline_merge_summary): Use it.
3317         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3318         (read_inline_edge_summary): New function.
3319         (inline_read_section): Use it.
3320         (write_inline_edge_summary): New function.
3321         (inline_write_summary): Use it.
3322         (inline_free_summary): Free edge new holders.
3323         * tree-inline.c (copy_bb): Update.
3325 2011-04-26  Jason Merrill  <jason@redhat.com>
3327         * tree-eh.c (lower_try_finally_switch): Create the label along with
3328         the CASE_LABEL_EXPR.
3330 2011-04-26  David S. Miller  <davem@davemloft.net>
3331             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3333         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3334         * configure: Regenerate.
3336 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3338         PR target/48258
3339         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3340         reduction.
3341         (VEC_reduc): New code iterator and splitters for vector reduction.
3342         (VEC_reduc_name): Ditto.
3343         (VEC_reduc_rtx): Ditto.
3344         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3345         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3347         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3348         support for extracting SF on VSX.
3350         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3351         generating xscvspdp.
3352         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3353         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3354         double add, minimum, maximum vector reduction.
3355         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3356         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3357         optimize double vector reduction.
3358         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3360 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3362         * config/fr30/fr30.h (inhibit_libc): Don't define.
3363         * config/m32r/m32r-protos.h: Correct comment.
3364         * config/v850/v850.h (GHS_default_section_names,
3365         GHS_current_section_names): Use tree, not union tree_node *.
3367 2011-04-26  Xinliang David Li  <davidxl@google.com>
3369         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3370         * c-family/c-opts.c (c_common_handle_option): Set
3371         warn_maybe_uninitialized.
3372         * opts.c (common_handle_option): Ditto.
3373         * common.opt:  New option.
3374         * tree-ssa.c (warn_uninit): Add one more parameter.
3375         (warn_uninitialized_var): Pass warning code.
3376         * tree-flow.h: Interface change.
3379 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3381         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3382         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3383         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3385 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3387         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3388         * config/mips/mips.opt (mmips-tfile): Remove.
3390         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3391         mips-tdump reference to ...
3392         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3393         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3394         reference by Tru64 UNIX.
3396 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3398         PR debug/48768
3399         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3400         is error_mark_node, set value to NULL.
3402         PR tree-optimization/48734
3403         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3404         if return value from maybe_fold_*_comparsions isn't something
3405         the code is prepared to handle.
3407 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3409         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3410         mode check.
3411         (ext_QIreg_nomode_operands): Remove.
3412         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3413         (*andsi_1): Ditto.
3414         (*andhi_1): Ditto.
3416 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3418         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3420 2011-04-26  Richard Guenther  <rguenther@suse.de>
3422         * c-typeck.c (build_unary_op): Do not expand array-refs via
3423         pointer arithmetic.  Only adjust qualifiers for function types.
3425 2011-04-26  Richard Guenther  <rguenther@suse.de>
3427         PR middle-end/48694
3428         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3429         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3430         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3431         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3433 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3435         * doc/extend.texi: Document __underlying_type.
3437 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3439         * config/rs6000/titan.md (automata_option "progress"): Remove.
3441 2011-04-25  Jeff Law  <law@redhat.com>
3443         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3445 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3447         * system.h (ENUM_BITFIELD): Remove.
3449 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3450             Eric Botcazou  <ebotcazou@adacore.com>
3452         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3453         for STORE_FLAG_VALUE==-1 case.
3455 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3457         PR target/43804
3458         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3459         LEGITIMATE_PIC_OPERAND_P.
3461 2011-04-24  Jan Hubicka  <jh@suse.cz>
3463         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3464         WPA hack.
3465         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3466         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3467         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3468         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3469         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3470         Sanity check predicate length.
3471         (remap_predicate): Likewise; sanity check jump functions.
3472         (inline_read_section, inline_write_summary): Sanity check
3473         predicate length.
3475 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3477         PR other/48748
3478         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3479         __is_literal_type, and __is_trivial; update throughout about
3480         possibly cv-qualified void types.
3482 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3484         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3485         testsuite and make it version agnostic.
3487 2011-04-22  Jan Hubicka  <jh@suse.cz>
3489         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3491 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3493         PR c/48685
3494         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3495         to VOID_TYPE even around MODIFY_EXPR.
3497 2011-04-22  Mike Stump  <mikestump@comcast.net>
3499         * gensupport.c (read_md_rtx): Fix typo in comment.
3500         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3501         comment.
3503 2011-04-22  Jan Hubicka  <jh@suse.cz>
3505         * gengtype.c (open_base_files): Add ipa-inline.h include.
3506         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3507         ipa-prop.c; update all uses.
3508         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3509         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3510         merge summary of inlined function into former caller.
3511         * ipa-inline.c (max_benefit): Remove.
3512         (edge_badness): Compensate for removal of benefits.
3513         (update_caller_keys): Use
3514         reset_node_growth_cache/reset_edge_growth_cache.
3515         (update_callee_keys): Likewise.
3516         (update_all_callee_keys): Likewise.
3517         (inline_small_functions): Do not collect max_benefit; do not reset
3518         estimated_growth; call free_growth_caches and initialize_growth_caches.
3519         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3520         struct size_time_entry): New structures.
3521         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3522         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3523         and estimated_growth.
3524         (edge_growth_cache_entry): New structure.
3525         (node_growth_cache, edge_growth_cache): New global vars.
3526         (estimate_growth): Turn into inline.
3527         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3528         initialize_growth_caches, free_growth_caches): Declare.
3529         (estimate_edge_growth): Rewrite.
3530         (estimate_edge_time): Implement as inline cache lookup.
3531         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3532         functions.
3533         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3534         (NUM_CONDITIONS): New constant.
3535         (predicate_conditions): New enum.
3536         (IS_NOT_CONSTANT): New constant.
3537         (edge_removal_hook_holder): New var.
3538         (node_growth_cache, edge_growth_cache): New global vars.
3539         (true_predicate, single_cond_predicate, false_predicate,
3540         not_inlined_predicate, add_condition, add_clause, and_predicates,
3541         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3542         dump_clause, dump_predicate, account_size_time,
3543         evaulate_conditions_for_edge): New functions.
3544         (inline_summary_alloc): Move to heap.
3545         (inline_node_removal_hook): Clear condition and entry vectors.
3546         (inline_edge_removal_hook): New function.
3547         (initialize_growth_caches, free_growth_caches): New function.
3548         (dump_inline_summary): Update.
3549         (edge_execution_predicate): New function.
3550         (will_be_nonconstant_predicate): New function.
3551         (estimate_function_body_sizes): Compute BB and constantness predicates.
3552         (compute_inline_parameters): Do not clear estimated_growth.
3553         (estimate_edge_size_and_time): New function.
3554         (estimate_calls_size_and_time): New function.
3555         (estimate_callee_size_and_time): New function.
3556         (remap_predicate): New function.
3557         (inline_merge_summary): New function.
3558         (do_estimate_edge_time): New function based on...
3559         (estimate_edge_time): ... this one.
3560         (do_estimate_edge_growth): New function.
3561         (do_estimate_growth): New function based on....
3562         (estimate_growth): ... this one.
3563         (inline_analyze_function): Analyze after deciding on jump functions.
3564         (inline_read_section): New function.
3565         (inline_read_summary): Use it.
3566         (inline_write_summary): Write all the new data.
3567         * ipa-prop.c (ipa_get_param_decl_index): Export.
3568         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3569         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3570         Declare.
3571         (ipa_get_lattice): Move here from ipa-cp.c
3572         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3573         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3574         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3575         cgraph_edge_inlinable_p): Remove.
3576         * cgraphunit.c: Include ipainline.h
3577         (cgraph_process_new_functions): Update call of
3578         compute_inline_parameters.
3580 2011-04-22  Richard Guenther  <rguenther@suse.de>
3582         * tree.c (build_int_cst): Properly create canonicalized integer
3583         constants.
3584         (build_int_cst_type): Remove scary comments.
3586 2011-04-22  Xinliang David Li  <davidxl@google.com>
3588         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3589         by default when -Wno-error is not specified.
3590         * opts-global.c (decode_options): Remove call to
3591         control_warning_options.
3593 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3595         PR tree-optimization/48717
3596         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3597         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3599 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3601         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3602         definition where used.
3604 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3606         PR c/48716
3607         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3608         TREE_STATIC variables declared inside of some OpenMP construct.
3610 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3612         PR middle-end/48585
3613         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3615 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3617         PR c/36750
3618         * c-typeck.c (pop_init_level): Do not warn about initializing
3619         with ` = {0}'.
3621 2011-04-22  Alan Modra  <amodra@gmail.com>
3623         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3624         when returning call_cookie.
3625         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3626         pointers, to functions with no more vector args than the current
3627         function, and some non-local calls for ABI_V4.
3628         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3629         sibcall_nonlocal_aix64): Combine to ..
3630         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3631         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3632         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3633         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3634         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3635         operand.
3636         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3637         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3638         sibcall_value_symbolic_64): Delete.
3640 2011-04-21  Xinliang David Li  <davidxl@google.com>
3642         * cgraph.h: Remove pid.
3643         * cgraph.c: Remove pid.
3644         * value-prof.c (init_node_map): New function.
3645         (del_node_map): New function.
3646         (find_func_by_funcdef_no): New function.
3647         (gimple_ic_transform): Call new function.
3648         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3649         * function.c (get_last_funcdef_no): New function.
3650         * function.h (get_last_funcdef_no): New function.
3651         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3652         to libgcov function.
3653         (tree-profiling): Call node map init and delete function.
3655 2011-04-21  Ian Lance Taylor  <iant@google.com>
3657         * godump.c (go_format_type): Use exported Go name for anonymous
3658         field name.
3660 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3662         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3663         Call builtin_function_type_list instead of builtin_function_type.
3664         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3666 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3668         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3669         build_function_type_list instead of build_function_type.
3670         Delete variable `endlink'.
3672 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3674         * config/s390/s390.c (s390_init_builtins): Call
3675         build_function_type_list instead of build_function_type.
3677 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3679         * config/ia64/ia64.c (ia64_init_builtins): Call
3680         build_function_type_list instead of builtin_function_type.
3682 2011-04-21  Easwaran Raman  <eraman@google.com>
3684         * cfgexpand.c (stack_var): Remove OFFSET...
3685         (add_stack_var): ...and its reference here...
3686         (expand_stack_vars): ...and here.
3687         (stack_var_cmp): Sort by descending order of size.
3688         (partition_stack_vars): Change heuristic.
3689         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3690         (dump_stack_var_partition): Add newline after each partition.
3692 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3693             Jeff Law  <law@redhat.com>
3695         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3696         * gengtype.c (matching_file_name_substitute): Likewise.
3698 2011-04-21  Richard Guenther  <rguenther@suse.de>
3700         PR lto/48703
3701         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3703 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3705         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3707 2011-04-21  Richard Guenther  <rguenther@suse.de>
3709         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3710         file name.
3712 2011-04-21  Richard Guenther  <rguenther@suse.de>
3714         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3715         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3716         Use DECL_P, not SSA_VAR_P.
3717         (ptr_derefs_may_alias_p): Likewise.
3718         (ptr_deref_may_alias_ref_p_1): Likewise.
3719         (decl_refs_may_alias_p): Likewise.
3720         (refs_may_alias_p_1): Likewise.
3721         (ref_maybe_used_by_call_p_1): Likewise.
3722         (call_may_clobber_ref_p_1): Likewise.
3723         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3724         are either MEM_REF or TARGET_MEM_REF.
3725         (indirect_refs_may_alias_p): Likewise.
3726         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3727         for MEM_EXPR of indirect calls.
3729 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3731         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3732         (dst_file_info_struct): Remove flen field.
3733         (lookup_filename): Remove code that set flen field.
3735 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3737         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3739 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3741         PR target/48708
3742         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3743         vec_extract and vec_concat for non-SSE4_1 targets.
3745 2011-04-21  Richard Guenther  <rguenther@suse.de>
3747         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3748         return statements.
3750 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3752         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3753         undefine.
3754         (FILE): Don't undefine.
3756 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3758         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3759         struct rtx_def *.
3760         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3761         struct rtx_def *.
3762         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3763         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3764         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3765         rtx_def *.
3766         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3767         definitions where used.
3768         * config/microblaze/microblaze.h (struct microblaze_args): Use
3769         rtx, not struct rtx_def *.
3770         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3771         rtx_def *.
3772         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3773         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3774         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3775         not struct rtx_def *.
3776         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3777         struct rtx_def *.
3778         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3779         rtx_def *.
3780         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3782 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3784         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3785         operand_equal_p to compare DR_BASE_ADDRESSes.
3786         (vect_check_interleaving): Likewise.
3788 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3790         PR target/46329
3791         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3792         for all Neon struct constants.
3794 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3796         * target.def (legitimate_constant_p): New hook.
3797         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3798         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3799         * doc/tm.texi: Regenerate.
3800         * hooks.h (hook_bool_mode_rtx_true): Declare.
3801         * hooks.c (hook_bool_mode_rtx_true): Define.
3802         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3803         * calls.c (precompute_register_parameters): Replace uses of
3804         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3805         (emit_library_call_value_1): Likewise.
3806         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3807         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3808         * ira-costs.c (scan_one_insn): Likewise.
3809         * recog.c (general_operand, immediate_operand): Likewise.
3810         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3811         * reload1.c (init_eliminable_invariants): Likewise.
3813         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3814         mode argument.
3815         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3816         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3817         argument.
3818         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3819         * config/alpha/predicates.md (input_operand): Update call to
3820         alpha_legitimate_constant_p.
3822         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3823         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3824         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3825         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3826         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3827         (arm_legitimate_constant_p): New functions.
3828         (arm_cannot_force_const_mem): Make static.
3830         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3832         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3833         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3834         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3835         instead of bfin_legitimate_constant_p.
3836         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3837         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3839         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3841         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3843         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3844         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3845         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3846         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3848         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3849         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3850         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3852         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3853         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3854         * config/i386/i386.c (legitimate_constant_p): Rename to...
3855         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3856         argument.
3857         (ix86_cannot_force_const_mem): Update accordingly.
3858         (ix86_legitimate_address_p): Likewise.
3859         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3860         * config/i386/i386.md: Update commentary.
3862         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3863         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3864         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3865         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3867         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3869         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3870         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3871         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3872         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3874         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3875         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3876         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3878         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3879         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3880         (m32r_legitimate_constant_p): New function.
3882         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3883         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3884         LEGITIMATE_CONSTANT_P.
3885         (LEGITIMATE_CONSTANT_P): Delete.
3886         * config/m68k/m68k.c (m68k_expand_prologue): Call
3887         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3888         (m68k_legitimate_constant_p): New function.
3889         * config/m68k/m68k.md: Update comments.
3891         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3892         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3893         (mcore_legitimate_constant_p): New function.
3895         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3896         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3897         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3898         Add a mode argument.
3899         (mep_legitimate_address): Update accordingly.
3900         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3902         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3903         Delete.
3904         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3905         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3906         static.  Check OP's mode for VOIDmode.
3907         (microblaze_legitimate_constant_p): New function.
3908         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3910         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3911         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3912         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3913         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3914         * config/mips/predicates.md: Update comments.
3916         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3917         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3918         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3919         (mmix_legitimate_constant_p): Make static, return a bool, and take
3920         a mode argument.
3921         (mmix_print_operand_address): Update accordingly.
3923         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3924         Delete.
3925         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3926         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3927         static.  Add a mode argument.
3928         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3930         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3932         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3933         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3934         (pa_legitimate_constant_p): New function.
3936         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3938         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3939         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3940         (pdp11_legitimate_constant_p): New function.
3942         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3943         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3944         (rs6000_legitimate_constant_p): New function.
3946         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3947         (rx_legitimate_constant_p): ...this.
3948         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3949         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3950         (rx_legitimate_constant_p): ...this.
3951         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3952         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3954         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3955         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3956         * config/s390/s390.c (legitimate_constant_p): Rename to...
3957         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
3958         and add a mode argument.
3959         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3961         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3963         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3964         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3965         (sh_legitimate_constant_p): New function.
3967         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3968         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3969         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3970         (legitimate_constant_p): Rename to...
3971         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
3972         argument.
3973         (constant_address_p): Update accordingly.
3975         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3976         argument and return a bool.
3977         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3978         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3979         (spu_legitimate_constant_p): Add a mode argument and return a bool.
3980         (spu_rtx_costs): Update accordingly.
3981         * config/spu/predicates.md (vec_imm_operand): Likewise.
3983         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3985         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3986         * config/v850/v850.c (v850_legitimate_constant_p): New function.
3987         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3989         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3990         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3991         * config/vax/vax.c (legitimate_constant_p): Likewise.
3993         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3994         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3995         (xtensa_legitimate_constant_p): New function.
3997 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3999         * target.def (cannot_force_const_mem): Add a mode argument.
4000         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4001         * doc/tm.texi: Regenerate.
4002         * hooks.h (hook_bool_mode_rtx_false): Declare.
4003         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4004         (hook_bool_mode_const_rtx_true): Likewise.
4005         (hook_bool_mode_rtx_false): New function.
4006         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4007         to be non-VOID.  Update call to cannot_force_const_mem.
4008         (find_reloads): Update accordingly.
4009         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4010         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4011         argument.
4012         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4013         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4014         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4015         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4016         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4017         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4018         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4019         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4020         (m68k_cannot_force_const_mem): ...this new function.
4021         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4022         argument.
4023         (mips_const_insns, mips_legitimize_const_move): Update calls.
4024         (mips_secondary_reload_class): Likewise.
4025         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4026         (pa_cannot_force_const_mem): ...this new function.
4027         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4028         (rs6000_cannot_force_const_mem): ...this new function.
4029         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4030         argument.
4031         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4032         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4033         to...
4034         (xtensa_cannot_force_const_mem): ...this new function.
4036 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4038         * config/mips/mips.c (mips16_build_function_stub): Call
4039         build_function_type_list instead of build_function_type.
4040         (mips16_build_call_stub): Likewise.
4042 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4044         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4045         instead of build_function_type.
4047 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4049         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4050         instead of build_function_type.
4052 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4054         PR target/48678
4055         * config/i386/i386.md (insv): Change operand 0 constraint to
4056         "register_operand".  Change operand 1 and 2 constraint to
4057         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4058         * config/i386/sse.md (sse4_1_pinsrb): Export.
4059         (sse2_pinsrw): Ditto.
4060         (sse4_1_pinsrd): Ditto.
4061         (sse4_1_pinsrq): Ditto.
4062         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4063         * config/i386/i386.c (ix86_expand_pinsr): New.
4065 2011-04-20  Easwaran Raman  <eraman@google.com>
4067         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4068         containing union type only with -fstrict-aliasing.
4070 2011-04-20  Jim Meyering  <meyering@redhat.com>
4072         Remove useless if-before-free tests.
4073         * calls.c (expand_call, save_area): Likewise.
4074         * cfgcleanup.c (try_forward_edges): Likewise.
4075         * collect2.c (collect_execute): Likewise.
4076         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4077         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4078         * coverage.c (coverage_checksum_string): Likewise.
4079         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4080         * cselib.c (cselib_init): Likewise.
4081         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4082         (df_set_clean_cfg): Likewise.
4083         * function.c (free_after_compilation): Likewise.
4084         * gcc.c (do_spec_1, main): Likewise.
4085         * gcov.c (create_file_names): Likewise.
4086         * gensupport.c (identify_predicable_attribute): Likewise.
4087         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4088         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4089         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4090         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4091         * ipa-pure-const.c (local_pure_const): Likewise.
4092         * ipa-reference.c (propagate): Likewise.
4093         * ira-costs.c (free_ira_costs): Likewise.
4094         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4095         * matrix-reorg.c (mat_free): Likewise.
4096         * prefix.c (get_key_value): Likewise.
4097         * profile.c (compute_value_histograms): Likewise.
4098         * reload1.c (free_reg_equiv): Likewise.
4099         * sched-deps.c (free_deps): Likewise.
4100         * sel-sched-ir.c (fence_clear): Likewise.
4101         * sese.c (set_rename, if_region_set_false_region): Likewise.
4102         * tree-data-ref.c (free_rdg): Likewise.
4103         * tree-eh.c (lower_try_finally): Likewise.
4104         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4105         * tree-ssa-live.c (delete_var_map): Likewise.
4106         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4107         * tree-ssa-pre.c (phi_trans_add): Likewise.
4109 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4111         PR tree-optimization/48611
4112         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4113         beyond ERT_MUST_NOT_THROW region.
4115 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4117         * config/mips/mips.opt (mfix-24k): New.
4118         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4119         * config/mips/mips.md (length): Increase by 4 for stores if
4120         fixing 24K errata.
4121         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4122         all noreorder if fixing 24K errata.
4123         * doc/invoke.texi: Document mfix-24k.
4125 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4127         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4128         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4130 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4132         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4133         (const_ok_for_op): ... to here.
4135 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4137         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4138         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4140 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4142         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4144 2011-04-20  Richard Guenther  <rguenther@suse.de>
4146         PR tree-optimization/47892
4147         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4148         are if-convertible.
4150 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4152         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4154 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4156         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4158 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4160         PR target/18145
4162         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4163         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4164         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4165         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4166         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4168         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4169         New prototype.
4171         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4172         (avr_asm_named_section, avr_asm_output_aligned_common,
4173         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4174         New functions to update...
4175         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4176         (avr_asm_init_sections): Overwrite section callbacks for
4177         data_section, bss_section.
4178         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4179         from here to...
4180         (avr_file_end): ...here.
4182 2011-04-20  Richard Guenther  <rguenther@suse.de>
4184         PR middle-end/48695
4185         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4186         objects and types here.  Adjust for their offset before comparing.
4188 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4190         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4191         statement per copy.
4193 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4195         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4196         (GIMPLE_H): Include $(INTERNAL_FN_H).
4197         (OBJS-common): Add internal-fn.o.
4198         (internal-fn.o): New rule.
4199         * internal-fn.def: New file.
4200         * internal-fn.h: Likewise.
4201         * internal-fn.c: Likewise.
4202         * gimple.h: Include internal-fn.h.
4203         (GF_CALL_INTERNAL): New gf_mask.
4204         (gimple_statement_call): Put fntype into a union with a new
4205         internal_fn field.
4206         (gimple_build_call_internal): Declare.
4207         (gimple_build_call_internal_vec): Likewise.
4208         (gimple_call_same_target_p): Likewise.
4209         (gimple_call_internal_p): New function.
4210         (gimple_call_internal_fn): Likewise.
4211         (gimple_call_fntype): Return null for internal calls.
4212         (gimple_call_set_fntype): Assert that the function is not internal.
4213         (gimple_call_set_fn): Likewise.
4214         (gimple_call_set_fndecl): Likewise.
4215         (gimple_call_set_internal_fn): New function.
4216         (gimple_call_addr_fndecl): Handle null functions.
4217         (gimple_call_return_type): Likewise null types.
4218         * gimple.c (gimple_build_call_internal_1): New function.
4219         (gimple_build_call_internal): Likewise.
4220         (gimple_build_call_internal_vec): Likewise.
4221         (gimple_call_same_target_p): Likewise.
4222         (gimple_call_flags): Handle calls to internal functions.
4223         (gimple_call_fnspec): New function.
4224         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4225         (gimple_has_side_effects): Handle null functions.
4226         (gimple_rhs_has_side_effects): Likewise.
4227         (gimple_call_copy_skip_args): Handle calls to internal functions.
4228         * cfgexpand.c (expand_call_stmt): Likewise.
4229         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4230         * gimple-fold.c (gimple_fold_call): Handle null functions.
4231         (gimple_fold_stmt_to_constant_1): Don't fold
4232         calls to internal functions.
4233         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4234         functions.
4235         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4236         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4237         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4238         (do_warn_unused_result): Likewise.
4239         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4240         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4241         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4242         the target of a call.
4243         (initialize_hash_element): Update accordingly.
4244         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4245         (iterative_hash_hashable_expr): Handle calls to internal functions.
4246         (print_expr_hash_elt): Likewise.
4247         * tree-ssa-pre.c (can_value_number_call): Likewise.
4248         (eliminate): Handle null functions.
4249         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4250         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4251         (find_func_aliases): Likewise.
4252         * value-prof.c (gimple_ic_transform): Likewise.
4253         (gimple_indirect_call_to_profile): Likewise.
4254         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4255         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4257 2011-04-19  Jan Hubicka  <jh@suse.cz>
4259         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4260         * ipa-inline.c (inline_small_functions): Compute summaries first,
4261         populate heap later.
4263 2011-04-19  Jan Hubicka  <jh@suse.cz>
4265         * cgraph.h (save_inline_function_body): Remove.
4266         * ipa-inline-transform.c: New file, broke out of...
4267         * ipa-inline.c: ... this one; Update toplevel comment.
4268         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4269         make global.
4270         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4271         (cgraph_mark_inline_edge): Rename to inline_call; move to
4272         ipa-inline-transform.c.
4273         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4274         move to ipa-inline-transform.c
4275         (recursive_inlining, inline_small_functions, flatten_function,
4276         ipa_inline, inline_always_inline_functions,
4277         early_inline_small_functions): Update.
4278         (inline_transform): Move to ipa-inline-transform.c.
4279         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4280         Declare.
4281         * Makefile.in (ipa-inline-transform.o): New file.
4282         * cgraphunit.c (save_inline_function_body): Move to
4283         ipa-inline-transform.c
4285 2011-04-19  DJ Delorie  <dj@redhat.com>
4287         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4288         registers if we already know there aren't any.
4289         (m32c_emit_epilogue): Don't emit a barrier here.
4290         (m32c_emit_eh_epilogue): Likewise.
4291         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4292         operands at expand time.
4293         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4294         int" wchar type.
4295         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4296         duplicates.  Provide aliases instead.
4297         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4298         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4299         the compiler.
4301 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4303         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4304         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4305         (general_or_i64_p, sparc_register_move_cost): New function.
4307 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4309         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4310         Add lynx, mipssde.  Sort table.
4312 2011-04-19  Xinliang David Li  <davidxl@google.com>
4314         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4315         not negative.
4317 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4319         PR target/48678
4320         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4321         is a SUBREG with non-MODE_INT mode inside of it.
4323 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4325         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4326         also according to actual contants.
4327         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4328         (gimple_fold_call): Use it.
4329         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4331 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4333         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4334         non-pointer assignments.
4336 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4338         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4339         account anc_offset and otr_type from the indirect edge info.
4340         * ipa-prop.c (get_ancestor_addr_info): New function.
4341         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4342         get_ancestor_addr_info, call it.
4343         (ipa_note_param_call): Do not initialize information about polymorphic
4344         calls, return the indirect call graph edge.  Remove the last
4345         parameter, adjust all callers.
4346         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4347         parameters.  Initialize polymorphic information in the indirect edge.
4349 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4351         PR lto/48148
4352         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4353         the types if they have different enumeration identifiers.
4355 2011-04-19  Jan Hubicka  <jh@suse.cz>
4357         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4358         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4359         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4360         (optimize_function_for_size_p) ... here.
4362 2011-04-19  Richard Guenther  <rguenther@suse.de>
4364         PR lto/48207
4365         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4366         langhook.
4368 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4370         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4371         if DECL_NO_INLINE_WARNING_P is set on the function.
4373 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4375         PR fortran/47976
4376         * reload1.c (inc_for_reload): Return void. All callers changed.
4377         (emit_input_reload_insns): Don't try to delete previous output
4378         reloads to a register, or record spill_reg_store for autoincs.
4380 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4382         * gengtype.h: Updated copyright year.
4383         (struct input_file_st): Add inpisplugin field.
4384         (type_fileloc): New function.
4385         * gengtype.c
4386         (write_typed_struct_alloc_def): Add gcc_assert.
4387         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4388         (write_typed_alloc_defns): Don't output for plugin files.
4389         (input_file_by_name): Clear inpisplugin field.
4390         (main): Set inpisplugin field for plugin files.
4392 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4394         * gengtype-state.c (string_eq): New.
4395         (read_state): Use string_eq instead of strcmp when creating the
4396         state_ident_tab.
4398 2011-04-19  Wei Guozhi  <carrot@google.com>
4400         PR target/47855
4401         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4402         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4403         linkage.
4404         * config/arm/constraints.md (Uu): New constraint.
4405         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4407 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4409         * config.gcc (-*-*-*vms): Added.
4410         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4411         definitions moved.
4412         * config/vms/vms-ld.c: New file.
4413         * config/vms/vms-ar.c: New file.
4414         * config/vms/t-vmsnative: New file.
4416 2011-04-18  Xinliang David Li  <davidxl@google.com>
4418         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4420 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4422         PR middle-end/48661
4423         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4424         if TREE_TYPE (v) is non-NULL.
4426         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4427         gimple_get_virt_mehtod_for_binfo.
4428         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4429         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4430         callers.
4431         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4433 2011-04-18  Michael Matz  <matz@suse.de>
4434             Steve Ellcey  <sje@cup.hp.com>
4436         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4437         use its mode as source mode if it isn't VOIDmode.
4439 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4441         * doc/passes.texi: Fill crossref nodes.
4443 2011-04-18  Jim Meyering  <meyering@redhat.com>
4445         Fix doubled-word typos in comments and strings
4446         * config/alpha/vms-unwind.h: s/for for/for/
4447         * config/arm/unwind-arm.h: Likewise.
4448         * config/microblaze/microblaze.c: Likewise.
4449         * config/sh/constraints.md: s/in in/in/
4450         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4452 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4454         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4455         (AVX_FLOAT_MODE_P): Ditto.
4456         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4457         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4458         (AVX_VEC_FLOAT_MODE_P): Ditto.
4459         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4460         (UNSPEC_MASKSTORE): Ditto.
4461         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4462         Merge from <sse>_movmsk<ssemodesuffix> and
4463         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4464         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4465         iterator.
4466         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4467         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4468         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4470 2011-04-18  Jan Hubicka  <jh@suse.cz>
4472         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4474         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4475         (want_inline_function_called_once_p): Break out the logic from
4476         ipa_inline.
4477         (edge_badness): Ensure that profile is not misupdated.
4478         (lookup_recursive_calls): Prioritize by call frequencies.
4479         (inline_small_functions): Move program size estimates here;
4480         actually process whole queue even when unit growth has been
4481         met. (to properly compute inline_failed reasons and for the
4482         case unit size decrease.) Revisit comments on recursive inlining.
4483         (ipa_inline): Remove unit summary code; first inline hot calls
4484         of functions called once, cold calls next.
4485         (order, nnodes): Remove unused variables.
4486         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4487         (GTFILES): Remove ipa-inline.c
4488         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4490 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4492         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4494 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4495             Richard Earnshaw  <rearnsha@arm.com>
4497         * arm.c (neon_builtin_type_bits): Remove.
4498         (typedef enum neon_builtin_mode): New.
4499         (T_MAX): Don't define.
4500         (typedef enum neon_builtin_datum): Remove bits, codes[],
4501         num_vars and base_fcode.  Add mode, code and fcode.
4502         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4503         VAR10): Change accordingly.
4504         (neon_builtin_data[]): Change accordingly
4505         (arm_init_neon_builtins): Change accordingly.
4506         (neon_builtin_compare): Remove.
4507         (locate_neon_builtin_icode): Remove.
4508         (arm_expand_neon_builtin): Change accordingly.
4510         * arm.h (enum arm_builtins): Move to ...
4511         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4513         * arm.c (arm_builtin_decl): Declare.
4514         (TARGET_BUILTIN_DECL): Define.
4515         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4516         (arm_builtin_decls[]): New.
4517         (arm_init_neon_builtins): Store builtin declarations in
4518         arm_builtin_decls[].
4519         (arm_init_tls_builtins): Likewise.
4520         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4521         (arm_builtin_decl): New.
4523 2011-04-18  Richard Guenther  <rguenther@suse.de>
4525         * tree.c (upper_bound_in_type): Build properly canonicalized
4526         INTEGER_CSTs.
4527         (lower_bound_in_type): Likewise.
4529 2011-04-18  Richard Guenther  <rguenther@suse.de>
4531         * gimple.h (gimple_call_addr_fndecl): New function.
4532         (gimple_call_fndecl): Use it.
4533         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4534         for direct calls.
4535         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4536         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4538 2011-04-18  Richard Guenther  <rguenther@suse.de>
4540         PR middle-end/48650
4541         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4543 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4545         PR lto/48492
4546         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4547         DECL_IN_CONSTANT_POOL without RTL.
4549 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4550             Ira Rosen  <ira.rosen@linaro.org>
4552         PR target/48252
4553         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4554         to match neon_vzip/vuzp/vtrn_internal.
4555         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4556         outputs explicitly dependent on both inputs.
4557         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4559 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4561         PR tree-optimization/48616
4562         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4563         whether the shift is by scalar or vector based on whether all SLP
4564         scalar stmts have the same rhs.
4566 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4568         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4569         memory operands.
4571 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4573         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4574         registers.
4576 2011-04-17  Jan Hubicka  <jh@suse.cz>
4578         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4579         * cgrpahunit.c (cgraph_finalize_function): Do not set
4580         finalized_by_frontend.
4581         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4582         finalized_by_frontend.
4584 2011-04-17  Jan Hubicka  <jh@suse.cz>
4586         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4587         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4588         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4589         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4590         method.
4591         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4592         gimple-fold.c
4593         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4595 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4597         PR lto/48538
4598         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4599         is non-null before accessing it.
4600         (input_cgraph): Remove trailing spaces.
4602 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4604         * params.def (sms-min-sc): New param flag.
4605         * modulo-sched.c (sms_schedule): Use it.
4606         * doc/invoke.texi (sms-min-sc): Document it.
4608 2011-04-17  Jan Hubicka  <jh@suse.cz>
4610         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4611         present, also set gimple_call_set_cannot_inline.
4612         * ipa-inline.c: Update toplevel comment.
4613         (MAX_TIME): Remove.
4614         (cgraph_clone_inlined_nodes): Fix linebreaks.
4615         (cgraph_check_inline_limits): Restructure to ...
4616         (caller_growth_limits): ... this one; be more tolerant
4617         on growth in nested inline chains; add explanatory comment;
4618         fix stack accounting thinko introduced by previous patch.
4619         (cgraph_default_inline_p): Remove.
4620         (report_inline_failed_reason): New function.
4621         (can_inline_edge_p): New function.
4622         (can_early_inline_edge_p): New function.
4623         (leaf_node_p): Move upwards in file.
4624         (want_early_inline_function_p): New function.
4625         (want_inline_small_function_p): New function.
4626         (want_inline_self_recursive_call_p): New function.
4627         (cgraph_edge_badness): Rename to ...
4628         (edge_badness) ... this one; fix linebreaks.
4629         (update_edge_key): Update call of edge_baddness; add
4630         detailed dump about queue updates.
4631         (update_caller_keys): Use can_inline_edge_p and
4632         want_inline_small_function_p.
4633         (cgraph_decide_recursive_inlining): Rename to...
4634         (recursive_inlining): Use can_inline_edge_p and
4635         want_inline_self_recursive_call_p; simplify and remove no longer
4636         valid FIXME.
4637         (cgraph_set_inline_failed): Remove.
4638         (add_new_edges_to_heap): Use can_inline_edge_p and
4639         want_inline_small_function_p.
4640         (cgraph_decide_inlining_of_small_functions): Rename to ...
4641         (inline_small_functions): ... this one; cleanup; use
4642         can/want predicates; cleanup debug ouput; work edges till fibheap
4643         is exhausted and do not stop once unit growth is reached; remove
4644         later loop processing remaining edges.
4645         (cgraph_flatten): Rename to ...
4646         (flatten_function): ... this one; use can_inline_edge_p
4647         and can_early_inline_edge_p predicates.
4648         (cgraph_decide_inlining): Rename to ...
4649         (ipa_inline): ... this one; remove unreachable nodes before
4650         inlining functions called once; simplify the pass.
4651         (cgraph_perform_always_inlining): Rename to ...
4652         (inline_always_inline_functions): ... this one; use
4653         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4654         (cgraph_decide_inlining_incrementally): Rename to ...
4655         (early_inline_small_functions): ... this one; simplify
4656         using new predicates; cleanup; make dumps prettier.
4657         (cgraph_early_inlining): Rename to ...
4658         (early_inliner): newer inline regular functions into always-inlines;
4659         fix updating of call stmt summaries.
4660         (pass_early_inline): Update for new names.
4661         (inline_transform): Fix formating.
4662         (gate_cgraph_decide_inlining): Rename to ...
4663         (pass_ipa_inline): ... this one.
4664         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4665         * ipa-inline-analysis.c (dump_inline_summary): Update.
4666         (compute_inline_parameters): Do not compute disregard_inline_limits;
4667         look for mismatching arguments.
4668         (estimate_growth): Fix handlig of non-trivial self recursion.
4669         (inline_read_summary): Do not read info->disregard_inline_limits.
4670         (inline_write_summary): Do not write info->disregard_inline_limits.
4671         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4672         and move all checks into can_inline_edge_p predicate; re-enable code
4673         comparing optimization levels.
4674         (expand_call_inline): Do not test inline_forbidden_into_p.
4675         * Makefile.in (ipa-inline.o): Update arguments.
4677 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4679         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4681 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4683         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4685 2011-04-17  Michael Matz  <matz@suse.de>
4687         PR tree-optimization/48622
4688         PR lto/48645
4689         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4690         in same order as they're written.
4692 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4694         * config/pa/predicates.md: Reorganize and simplify predicates.
4695         Eliminate duplicate code checks.
4696         (arith_operand): Rename to arith14_operand
4697         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4698         * config/pa/pa.md: Use renamed operands.
4699         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4700         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4701         arith11_operand, adddi3_operand, indexed_memory_operand,
4702         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4703         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4704         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4705         move_dest_operand, move_src_operand, prefetch_cc_operand,
4706         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4707         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4708         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4709         div_operand, int5_operand, movb_comparison_operator,
4710         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4711         arith_double_operand, ireg_operand, lhs_lshift_operand,
4712         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4713         integer_store_memory_operand): Likewise.
4714         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4715         (integer_store_memory_operand, read_only_operand,
4716         function_label_operand, borx_reg_operand,
4717         non_hard_reg_operand): Likewise.
4718         (eq_neq_comparison_operator): Delete unused operator.
4719         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4720         function_label_operand.
4721         (emit_move_sequence): Likewise.
4723 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4725         * config/i386/sse.md (sseunpackmode): New mode attribute.
4726         (ssepackmode): Ditto.
4727         (vec_pack_trunc_<mode>): Macroize expander from
4728         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4729         (vec_unpacks_lo_<mode>): Macroize expander from
4730         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4731         (vec_unpacks_hi_<mode>): Macroize expander from
4732         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4733         (vec_unpacku_lo_<mode>): Macroize expander from
4734         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4735         (vec_unpacku_hi_<mode>): Macroize expander from
4736         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4737         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4738         ix86_expand_sse4_unpack.
4739         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4741 2011-04-16  Jan Hubicka  <jh@suse.cz>
4743         * cgraphbuild.c: Include ipa-inline.h.
4744         (reset_inline_failed): Use initialize_inline_failed.
4745         * cgraph.c: Include ipa-inline.h.
4746         (cgraph_create_node_1): Do not initialize estimated_growth.
4747         (initialize_inline_failed): More to ipa-inline-analysis.c
4748         (dump_cgraph_node): Do not dump inline flags.
4749         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4750         and disregard_inline_limits flags.
4751         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4752         time, size, estimated_growth.
4753         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4754         Update.
4755         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4756         DECL_DISREGARD_INLINE_LIMITS.
4757         (cgraph_analyze_function): Do not initialize
4758         node->local.disregard_inline_limits.
4759         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4760         inlinable, versionable and disregard_inline_limits.
4761         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4762         cgraph_check_inline_limits, cgraph_default_inline_p,
4763         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4764         add_new_edges_to_heap): Update.
4765         (cgraph_decide_inlining_of_small_function): Update; set
4766         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4767         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4768         cgraph_decide_inlining_incrementally): Update.
4769         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4770         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4771         time, size and estimated_growth parameters.
4772         (estimate_edge_growth): Update.
4773         (initialize_inline_failed): Declare.
4774         * ipa-split.c: Include ipa-inline.h
4775         (execute_split_functions): Update.
4776         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4777         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4778         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4779         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4780         estimated_growth to INT_MIN.
4781         (inline_node_duplication_hook): Likewise.
4782         (dump_inline_summary): Dump new fields.
4783         (compute_inline_parameters): Update.
4784         (estimate_edge_time, estimate_time_after_inlining,
4785         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4786         inline_write_summary):
4787         (initialize_inline_failed): Move here from cgraph.c.
4788         * tree-sra.c: Include ipa-inline.h.
4789         (ipa_sra_preliminary_function_checks): Update.
4790         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4791         ipa-inline.h.
4793 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4795         * config/i386/sse.md (V16): New mode iterator.
4796         (VI1, VI8): Ditto.
4797         (AVXMODEQI, AVXMODEDI): Remove.
4798         (sse2, sse3): New mode attribute.
4799         (mov<mode>): Use V16 mode iterator.
4800         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4801         (push<mode>1): Use V16 mode iterator.
4802         (movmisalign<mode>): Ditto.
4803         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4804         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4805         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4806         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4807         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4808         avx_movdqu<avxmodesuffix>.
4809         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4810         *avx_movdqu<avxmodesuffix>.
4811         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4812         avx_lddqu<avxmodesuffix>.
4813         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4814         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4815         avx_movnt<AVXMODEDI:mode>.
4816         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4817         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4819 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4821         PR target/48629
4822         * haifa-sched.c (prune_ready_list, schedule_block): Use
4823         sched_pressure_p rather than flag_sched_pressure.
4825 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4827         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4828         cgraph_get_node instead of cgraph_get_create_node.
4830 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4832         * cfgexpand.c (expand_debug_expr): Use
4833         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4835 2011-04-15  Michael Matz  <matz@suse.de>
4837         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4838         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4839         * function.c (gimplify_parameters): Ditto.
4840         * gimplify.c (gimplify_vla_decl): Ditto.
4842         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4843         (gimple_call_set_alloca_for_var): New inline function.
4844         (gimple_call_alloca_for_var_p): Ditto.
4845         * gimple.c (gimple_build_call_from_tree): Remember
4846         CALL_ALLOCA_FOR_VAR_P state.
4847         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4849         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4850         calls if they were for VLA objects.
4852 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4854         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4855         of ADR_EXPRs.
4857 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4859         PR middle-end/48601
4860         * tree-emutls.c (lower_emutls_function_body): Call
4861         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4862         result is non-NULL.
4864 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4866         * c-decl.c (detect_field_duplicates): Call
4867         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4869 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4871         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4872         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4873         * ipa-pure-const.c (check_stmt): Call it.
4874         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4876 2011-04-15  Richard Guenther  <rguenther@suse.de>
4878         PR tree-optimization/48290
4879         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4880         Properly decide inhibiting propagation based on the valueized
4881         operand.  Do loop-closed SSA form preserving here ...
4882         (init_copy_prop): ... not here.
4884 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4886         PR target/48612
4887         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4888         (*ieee_smax<mode>3): Likewise.
4890 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4892         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4893         Replace match_operand with match_dup for the third operand in
4894         these expanders.
4896 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4898         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4899         to track processing of conditionals.  Update all callers.
4900         (try_combine, simplify_if_then_else): Update.
4902 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4904         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4905         -fsched-pressure.
4907 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4909         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4910         instead of match_operand for operand 3.
4912 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4914         * recog.h (insn_operand_data): Add an "allows_mem" field.
4915         * genoutput.c (output_operand_data): Initialize it.
4916         * optabs.c (maybe_legitimize_operand_same_code): New function.
4917         (maybe_legitimize_operand): Use it when matching the original
4918         op->value.
4920 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4922         * gimplify.c: Fix issues in comments throughout.
4923         (voidify_wrapper_expr): Fix long line.
4924         (build_stack_save_restore): Likewise.
4925         (gimplify_loop_expr): Likewise.
4926         (gimplify_compound_lval): Likewise.
4927         (gimplify_init_ctor_eval): Likewise.
4928         (gimplify_modify_expr_rhs): Likewise.
4929         (omp_notice_threadprivate_variable): Likewise.
4931 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4933         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4934         original one if this is not a builtin function.
4936 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4938         PR target/48605
4939         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4940         offset it as needed based on top 2 bits in operands[3], change
4941         MEM mode to SFmode and mask those 2 bits away from operands[3].
4943 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4945         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4946         change from objc_declare_protocols() to objc_declare_protocol().
4948 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
4950         * config/i386/sse.md (sse4_1): New mode attribute.
4951         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4952         avx_blend<ssemodesuffix><avxmodesuffix> and
4953         sse4_1_blend<ssemodesuffix> using VF mode iterator.
4954         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4955         avx_blendv<ssemodesuffix><avxmodesuffix> and
4956         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4957         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4958         avx_dp<ssemodesuffix><avxmodesuffix> and
4959         sse4_1_dp<ssemodesuffix> using VF mode iterator.
4960         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4961         (sse4_1_packusdw): Merge with *avx_packusdw.
4962         (sse4_1_pblendvb): Merge with *avx_pblendvb.
4963         (sse4_1_pblendw): Merge with *avx_pblendw.
4964         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4965         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4966         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4967         VF mode iterator.
4968         (sse4_1_round<ssescalarmodesuffix>): Merge with
4969         *avx_round<ssescalarmodesuffix>.
4970         (aesenc): Merge with *avx_aesenc.
4971         (aesenclast): Merge with *avx_aesenclast.
4972         (aesdec): Merge with *avx_aesdec.
4973         (aesdeclast): Merge with *avx_aesdeclast.
4974         (pclmulqdq): Merge with *pclmulqdq.
4975         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4976         New predicate.
4977         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4979 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
4981         PR middle-end/48608
4982         * cfgexpand.c (get_decl_align_unit): Renamed to ...
4983         (align_local_variable): This.  Update DECL_ALIGN.
4984         (add_stack_var): Updated.
4985         (expand_one_stack_var): Likewise.
4987 2011-04-14  Richard Guenther  <rguenther@suse.de>
4989         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4990         Remove.
4991         (dse_initialize_block_local_data, dse_leave_block,
4992         record_voperand_set, get_stmt_uid): Likewise.
4993         (dse_possible_dead_store_p): Allow any kind of killing stmt.
4994         (dse_optimize_stmt): Remove voperand set handling code.
4995         Simplify and improve to handle any kind of killing stmt.
4996         (dse_record_phi): Remove.
4997         (dse_enter_block): Simplify.
4998         (tree_ssa_dse): Likewise.
4999         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5001 2011-04-14  Jan Hubicka  <jh@suse.cz>
5003         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5004         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5005         (cgraph_local_info): Remove inline_summary.
5006         * ipa-cp.c: Include ipa-inline.h.
5007         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5008         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5009         accesor.
5010         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5011         (input_overwrite_node): Do not set inline summary.
5012         (input_node): Do not stream inline summary.
5013         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5014         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5015         growth; we do not have inline parameters computed for that anyway.
5016         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5017         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5018         (inline_summary_t): New type and VECtor.
5019         (debug_inline_summary, dump_inline_summaries): Declare.
5020         (inline_summary): Use VOCtor.
5021         (estimate_edge_growth): Kill hack computing call stmt size directly.
5022         * lto-section-in.c (lto_section_name): Add inline section.
5023         * ipa-inline-analysis.c: Include lto-streamer.h
5024         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5025         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5026         (inline_summary_vec): Define.
5027         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5028         dump_inline_summaries): New functions.
5029         (estimate_function_body_sizes): Properly compute size/time of outgoing
5030         calls.
5031         (compute_inline_parameters): Alloc inline_summary; do not compute
5032         size/time of incomming calls.
5033         (estimate_edge_time): Avoid missing time summary hack.
5034         (inline_read_summary): Read inline summary info.
5035         (inline_write_summary): Write inline summary info.
5036         (inline_free_summary): Free all hooks and inline summary vector.
5037         * lto-streamer.h: Add LTO_section_inline_summary section.
5038         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5039         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5041 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5043         * tree-vectorizer.h (vect_strided_store_supported): Add a
5044         HOST_WIDE_INT argument.
5045         (vect_strided_load_supported): Likewise.
5046         (vect_permute_store_chain): Return void.
5047         (vect_transform_strided_load): Likewise.
5048         (vect_permute_load_chain): Delete.
5049         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5050         count argument.  Check that the count is a power of two.
5051         (vect_strided_load_supported): Likewise.
5052         (vect_permute_store_chain): Return void.  Update after above changes.
5053         Assert that the access is supported.
5054         (vect_permute_load_chain): Likewise.
5055         (vect_transform_strided_load): Return void.
5056         * tree-vect-stmts.c (vectorizable_store): Update calls after
5057         above interface changes.
5058         (vectorizable_load): Likewise.
5059         (vect_analyze_stmt): Don't check for strided powers of two here.
5061 2011-04-14  Richard Guenther  <rguenther@suse.de>
5063         PR tree-optimization/48590
5064         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5065         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5066         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5067         BUILT_IN_STACK_SAVE.
5068         * tree-ssa-dce.c (propagate_necessity): Handle
5069         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5071 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5073         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5074         objc_declare_class.
5076 2011-04-14  Richard Guenther  <rguenther@suse.de>
5078         * tree.h (get_object_alignment_1): Declare.
5079         * builtins.c (get_object_alignment_1): Split out worker from ...
5080         (get_object_alignment): ... here.
5081         * fold-const.c (get_pointer_modulus_and_residue): Use
5082         get_object_alignment_1.
5084 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5086         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5087         type parameter.
5088         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5089         parameter.  Generalise code to handle arrays as well as vectors.
5090         (vect_setup_realignment): Update accordingly.
5091         * tree-vect-stmts.c (vectorizable_store): Likewise.
5092         (vectorizable_load): Likewise.
5094 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5096         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5097         within the per-copy loop.
5099 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5101         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5102         in the dump file.
5104 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5106         * doc/options.texi (Negative): Explicitly mention that the
5107         Negative chain must be circular.
5109 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5111         * function.h (block_chainon): Declare.
5112         * function.c (block_chainon): Define.
5114 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5115             Eric Weddington  <eric.weddington@atmel.com>
5116             Georg-Johann Lay  <avr@gjlay.de>
5118         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5119         New Includes
5120         (avr_init_builtins, avr_expand_builtin,
5121         avr_expand_delay_cycles, avr_expand_unop_builtin,
5122         avr_expand_binop_builtin ): New functions.
5123         (avr_builtin_id): New enum
5124         (struct avr_builtin_description): New struct
5125         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5126         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5128         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5129         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5130         UNSPECV_DELAY_CYCLES): new enumeration values
5131         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5132         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5133         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5134         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5135         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5136         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5137         "fmulsu"): New insns
5139         * config/avr/avr-c.c: fix line endings
5140         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5141         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5142         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5143         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5144         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5146         * doc/extend.texi (AVR Built-in Functions): New node
5147         (Target Builtins): Add documentation of AVR
5148         built-in functions.
5150 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5152         PR target/44643
5153         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5154         alone. Error if non-const data has attribute progmem.
5156 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5158         * tree.h (struct tree_constructor): Include tree_typed instead of
5159         tree_common.
5160         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5161         TS_TYPED instead of TS_COMMON.
5163 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5165         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5166         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5167         (sse2_psadbw): Merge with *avx_psadbw.
5168         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5169         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5170         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5171         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5172         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5173         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5174         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5175         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5176         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5177         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5178         (ssse3_palignrti): Merge with *avx_palignrti.
5180 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5182         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5183         * tree-ssanames.c (fini_ssanames): VEC_free it.
5184         (make_ssa_name_fn): Update for VECness of free_ssanames.
5185         (release_ssa_name, release_dead_ssa_names): Likewise.
5186         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5187         tree_common.
5188         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5189         TS_TYPED instead of TS_COMMON.
5191 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5193         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5194         statistics_counter_event.
5195         * tree-ssa-copyrename.c (stats): Define.
5196         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5197         statistics_counter_event.
5198         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5199         (bswap_stats, widen_mul_stats): Define.
5200         (insert_reciprocals): Increment rdivs_inserted.
5201         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5202         rfuncs_inserted.  Add calls to statistics_counter_event.
5203         (execute_cse_sincos_1): Increment inserted.
5204         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5205         statistics_counter_event.
5206         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5207         of bswap_stats.  Add calls to statistics_counter_event.
5208         (convert_mult_to_widen): Increment widen_mults_inserted.
5209         (convert_plusminus_to_widen): Increment maccs_inserted.
5210         (convert_mult_to_fma): Increment fmas_inserted.
5211         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5212         calls to statistics_counter_event.
5214 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5216         PR rtl-optimization/48455
5217         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5218         `temp_costs->mem_cost'.
5220 2011-04-13  Jan Hubicka  <jh@suse.cz>
5222         * ipa-inline.h: New file.
5223         * ipa-inline-analysis.c: New file. Broken out of ...
5224         * ipa-inline.c: ... this file; update toplevel comment;
5225         include ipa-inline.h
5226         (inline_summary): Move to ipa-inline.h
5227         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5228         ipa-inline-analysis.c.
5229         (cgraph_estimate_time_after_inlining): Rename to
5230         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5231         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5232         to estimate_edge_growth.
5233         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5234         rename to estimate_size_after_inlining.
5235         (cgraph_mark_inline_edge): Update for new naming convention.
5236         (cgraph_check_inline_limits): Likewise.
5237         (cgraph_edge_badness): Likewise.
5238         (cgraph_decide_recursive_inlining): Likewise.
5239         (cgraph_decide_inlining_of_small_functions): Likewise.
5240         (cgraph_decide_inlining_incrementally): Likewise.
5241         (cgraph_estimate_growth): Rename to estimate_growth; move to
5242         ipa-inline-analysis.c.
5243         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5244         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5245         (compute_inline_parameters): Likewise.
5246         (compute_inline_parameters_for_current): Likewise.
5247         (pass_inline_parameters): Likewise.
5248         (inline_indirect_intraprocedural_analysis): Likewise.
5249         (analyze_function): Rename to inline_analyze_function; likewise.
5250         (add_new_function): Move to ipa-inline-analysis.c.
5251         (inline_generate_summary): Likewise.
5252         (inline_read_summary): Likewise.
5253         (inline_write_summary): Likewise.
5254         * Makefile.in (ipa-inline-analysis.c): New file.
5256 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5258         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5259         * configure: Regenerate.
5261 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5263         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5264         instead of tree_common.
5265         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5266         Likewise.
5267         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5268         TS_TYPED rather than TS_COMMON.
5269         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5271 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5273         PR target/45263
5274         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5275         r20 around calls of __tablejump_elpm__
5277 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5279         PR middle-end/48591
5280         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5281         NULL.
5282         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5284 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5286         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5287         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5288         (cfi_vec): New typedef.
5289         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5290         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5291         (cie_cfi_vec): New static variable.
5292         (cie_cfi_head): Delete.
5293         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5294         declaration changed. Use vector rather than list operations.
5295         (new_cfi): Don't initialize the dw_cfi_next field.
5296         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5297         rather than list operations.
5298         (lookup_cfa): Use vector rather than list operations.
5299         (output_cfis): New argument upto. Accept a cfi_vec rather than
5300         a dw_cfi_ref list head as argument. All callers changed.
5301         Iterate over the vector using upto as a maximum index.
5302         (output_all_cfis): New static function.
5303         (output_fde): Use vector rather than list operations. Use the
5304         new upto argument for output_cfis rather than manipulating a
5305         list.
5306         (dwarf2out_begin_prologue): Change initializations to match
5307         new struct members.
5308         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5309         from the vector length rather than searching for the end of a list.
5310         Use output_all_cfis.
5311         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5313 2011-04-13  Nick Clifton  <nickc@redhat.com>
5315         * config/rx/rx.md (movmemsi): Do not use this pattern when
5316         volatile pointers are involved.
5318 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5320         * config/i386/sse.md (pinsrbits): Remove.
5321         (sse2_packsswb): Merge with *avx_packsswb.
5322         (sse2_packssdw): Merge with *avx_packssdw.
5323         (sse2_packuswb): Merge with *avx_packuswb.
5324         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5325         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5326         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5327         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5328         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5329         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5330         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5331         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5332         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5333         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5334         (sse2_loadld): Merge with *avx_loadld.
5335         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5336         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5337         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5338         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5339         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5341 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5343         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5344         calling TREE_CHAIN.
5345         * print-tree.c (print_node): Likewise.
5346         * tree-inline.c (copy_tree_r): Likewise.
5347         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5348         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5349         instead of TS_COMMON.
5350         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5351         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5352         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5353         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5354         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5355         ...and these...
5356         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5357         * tree.h: ...here.
5358         (TREE_CHAIN): Check for a TS_COMMON structure.
5359         (TREE_TYPE): Check for a TS_TYPED structure.
5361 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5363         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5364         cgraph_get_create_node instead of cgraph_node.
5366 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5368         * c-parser.c (c_parser_initelt): Updated call to
5369         objc_build_message_expr.
5370         (c_parser_postfix_expression): Likewise.
5372 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5374         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5375         MASK_MS_BITFIELD_LAYOUT bit.
5377 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5379         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5380         assert it is always true.
5381         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5382         moves.
5384 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5386         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5387         compiling Objective-C to be more efficient.
5389 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5391         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5392         argv_copied.
5394 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5396         * recog.h, genoutput.c, optabs.c: Revert last patch.
5398 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5400         PR target/48090
5401         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5403 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5405         * recog.h (insn_operand_data): Add an "allows_mem" field.
5406         * genoutput.c (output_operand_data): Initialize it.
5407         * optabs.c (maybe_legitimize_operand_same_code): New function.
5408         (maybe_legitimize_operand): Use it when matching the original
5409         op->value.
5411 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5413         * genpreds.c (process_define_predicate): Move most processing
5414         to gensupport.c.  Continue to validate the expression.
5415         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5416         (process_define_predicate): Move processing to gensupport.c.
5417         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5418         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5419         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5420         argument.
5421         (valid_predicate_name_p): New function, split out from old
5422         genpreds.c:process_define_predicate.
5423         (process_define_predicate): New function, combining code from
5424         old genpreds.c and genrecog.c functions.
5425         (process_rtx): Call it for DEFINE_PREDICATE and
5426         DEFINE_SPECIAL_PREDICATE.
5428 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5430         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5431         size of a '%A' memory reference.
5432         (T_DREG, T_QREG): New neon_builtin_type_bits.
5433         (arm_init_neon_builtins): Assert that the load and store operands
5434         are neon_struct_operands.
5435         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5436         (NEON_ARG_MEMORY): New builtin_arg.
5437         (neon_dereference_pointer): New function.
5438         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5439         Handle NEON_ARG_MEMORY.
5440         (arm_expand_neon_builtin): Update after above interface changes.
5441         Use NEON_ARG_MEMORY for loads and stores.
5442         * config/arm/predicates.md (neon_struct_operand): New predicate.
5443         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5444         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5445         (V_four_elem): Tweak formatting.
5446         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5447         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5448         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5449         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5450         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5451         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5452         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5453         Use %A in the output template.
5454         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5455         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5456         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5457         the width of the memory access.  Remove post-increment.
5458         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5460 2011-04-12  Nick Clifton  <nickc@redhat.com>
5462         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5463         instruction for interrupt handlers if the target is the basic V850
5464         architecture.
5465         (expand_epilogue): Likewise.
5467 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5469         PR rtl-optimization/48549
5470         * combine.c (propagate_for_debug): Also stop after BB_END of
5471         this_basic_block.  Process LAST and just stop processing after it.
5472         (combine_instructions): If last_combined_insn has been deleted,
5473         set last_combined_insn to its PREV_INSN.
5475 2011-04-12  Richard Guenther  <rguenther@suse.de>
5477         PR tree-optimization/46076
5478         * gimple.h (struct gimple_statement_call): Add fntype field.
5479         (gimple_call_fntype): Adjust.
5480         (gimple_call_set_fntype): New function.
5481         * gimple.c (gimple_build_call_1): Set the call function type.
5482         * gimplify.c (gimplify_call_expr): Preserve the function
5483         type the frontend used for the call.
5484         (gimplify_modify_expr): Likewise.
5485         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5486         function type.
5487         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5488         function type.
5489         * tree-ssa.c (useless_type_conversion_p): Function pointer
5490         conversions are useless.
5492 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5494         * cgraph.h (cgraph_node): Remove function declaration.
5495         (cgraph_create_node): Declare.
5496         (cgraph_get_create_node): Likewise.
5497         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5498         Updated all callers.
5499         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5500         the decl does not already exist.  Call cgraph_get_create_node instead
5501         of cgraph_node.
5502         (cgraph_get_create_node): New function.
5503         (cgraph_same_body_alias): Update comment.
5504         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5505         assert it does not return NULL.
5506         (cgraph_update_edges_for_call_stmt): Likewise.
5507         (cgraph_clone_edge): Likewise.
5508         (cgraph_create_virtual_clone): Likewise.
5509         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5510         instead of cgraph_node.
5511         (cgraph_add_new_function): Call cgraph_create_node or
5512         cgraph_get_create_node instead of cgraph_node.
5513         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5514         instead of cgraph_node.
5515         (record_eh_tables): Likewise.
5516         (mark_address): Likewise.
5517         (mark_load): Likewise.
5518         (build_cgraph_edges): Call cgraph_get_create_node instead
5519         of cgraph_node.
5520         (rebuild_cgraph_edges): Likewise.
5521         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5522         instead of cgraph_node.
5523         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5524         cgraph_node.
5525         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5526         cgraph_create_node instead of cgraph_node.
5527         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5528         of cgraph_node.
5529         * lto-cgraph.c (input_node): Likewise.
5530         * lto-streamer-in.c (input_function): Likewise.
5531         * varasm.c (mark_decl_referenced): Likewise.
5532         (assemble_alias): Likewise.
5534 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5536         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5537         instead of cgraph_node and assert it does not return NULL.
5538         * lto-streamer-in.c (lto_read_body): Likewise.
5539         * omp-low.c (new_omp_context): Likewise.
5540         (create_task_copyfn): Likewise.
5541         * tree-emutls.c (lower_emutls_function_body): Likewise.
5542         * matrix-reorg.c (transform_allocation_sites): Likewise.
5544 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5546         PR c/48552
5547         * c-typeck.c (build_asm_expr): Error out on attempts to use
5548         void type outputs or inputs for constraints that allow reg or
5549         don't allow memory.
5551 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5552             Richard Earnshaw  <rearnsha@arm.com>
5554         PR target/48250
5555         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5556         to use sign-magnitude offsets. Reject unsupported unaligned
5557         cases. Add detailed description in comments.
5558         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5559         condition from TARGET_32BIT to TARGET_ARM.
5561 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5563         * tree.h (struct typed_tree): New.
5564         (struct tree_common): Include it instead of tree_base.
5565         (TREE_TYPE): Update for new location of type field.
5566         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5567         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5568         (union tree_node): Add typed field.
5569         * treestruct.def (TS_TYPED): New.
5570         * lto-streamer.c (check_handled_ts_structures): Handle it.
5571         * tree.c (MARK_TS_TYPED): New macro.
5572         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5574 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5576         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5577         (force_nonfallthru): Do not alter the loop nest if no basic block
5578         was created.
5580 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5582         * config/i386/sse.md (VI): New mode iterator.
5583         (SSEMODEI): Remove.
5584         (AVX256MODEI): Ditto.
5585         (AVXMODEF4P): Ditto.
5586         (avxvecpsmode): Ditto.
5587         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5588         (sse2_andnot<mode>3): New expander.
5589         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5590         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5591         (<any_logic:code><mode>3): Use VI mode iterator.
5592         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5593         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5594         (*andnottf3): Handle AVX three-operand constraints.
5595         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5597 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5598             Robert Millan  <rmh@gnu.org>
5600         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5601         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5602         GNU_USER_DYNAMIC_LINKER64): Define.
5603         (REG_NAME): Don't undefine.
5604         (MD_UNWIND_SUPPORT): Undefine.
5605         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5606         (REG_NAME): Don't undefine.
5607         (MD_UNWIND_SUPPORT): Undefine.
5608         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5610 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5612         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5613         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5615 2011-04-11  Xinliang David Li  <davidxl@google.com>
5617         * value-profile.c (check_ic_target): New function.
5618         (gimple_ic_transform): Sanity check indirect call target.
5619         * gimple-low.c (gimple_check_call_args): Interface change.
5620         (gimple_check_call_matching_types): New function.
5621         * tree-inline.c (tree_can_inline_p): Call new function.
5623 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5625         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5626         tree-pretty-print.h & realmpfr.h.
5628 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5630         PR middle-end/48464
5631         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5632         (setup_allocno_and_important_classes): Ditto.
5634 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5636         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5637         GNU_USER_DYNAMIC_LINKER.
5638         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5639         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5640         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5641         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5642         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5643         GNU_USER_TARGET_OS_CPP_BUILTINS.
5644         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5645         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5646         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5647         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5648         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5649         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5650         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5651         GNU_USER_TARGET_OS_CPP_BUILTINS.
5652         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5653         GNU_USER_DYNAMIC_LINKER.
5654         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5655         GNU_USER_TARGET_OS_CPP_BUILTINS.
5656         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5657         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5658         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5659         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5660         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5661         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5662         GNU_USER_DYNAMIC_LINKER64): Remove.
5663         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5664         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5665         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5666         GNU_USER_DYNAMIC_LINKER.
5667         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5668         GNU_USER_TARGET_OS_CPP_BUILTINS.
5669         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5670         GNU_USER_TARGET_OS_CPP_BUILTINS.
5671         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5672         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5673         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5674         GNU_USER_TARGET_OS_CPP_BUILTINS.
5675         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5676         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5677         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5678         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5679         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5680         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5681         GNU_USER_DYNAMIC_LINKER.
5682         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5683         GNU_USER_TARGET_OS_CPP_BUILTINS.
5684         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5685         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5686         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5687         GNU_USER_DYNAMIC_LINKER.
5688         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5689         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5690         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5691         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5692         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5693         GNU_USER_DYNAMIC_LINKER.
5694         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5695         GNU_USER_DYNAMIC_LINKERN32.
5696         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5697         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5698         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5699         GNU_USER_DYNAMIC_LINKER32.
5700         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5701         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5702         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5703         GNU_USER_DYNAMIC_LINKER.
5704         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5705         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5706         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5707         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5708         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5709         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5710         GNU_USER_DYNAMIC_LINKER32.
5711         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5712         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5713         GNU_USER_DYNAMIC_LINKER.
5714         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5715         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5716         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5717         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5718         GNU_USER_DYNAMIC_LINKER64.
5719         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5720         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5721         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5722         GNU_USER_DYNAMIC_LINKER.
5723         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5724         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5725         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5726         GNU_USER_DYNAMIC_LINKER.
5727         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5728         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5729         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5730         GNU_USER_DYNAMIC_LINKER32.
5731         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5732         GNU_USER_DYNAMIC_LINKER64.
5733         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5734         GNU_USER_DYNAMIC_LINKER64.
5735         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5736         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5737         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5738         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5739         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5741 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5743         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5744         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5745         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5746         GNU_USER_DYNAMIC_LINKER.
5747         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5748         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5749         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5750         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5751         GNU_USER_DYNAMIC_LINKER64.
5752         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5753         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5754         GNU_USER_LINK_EMULATION.
5755         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5756         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5757         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5758         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5759         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5760         CPP_SPEC, CC1_SPEC): Remove.
5761         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5762         (GNU_USER_DYNAMIC_LINKER): Define.
5763         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5764         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5765         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5766         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5767         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5768         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5769         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5770         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5771         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5772         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5773         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5774         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5775         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5776         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5777         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5778         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5779         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5780         GNU_USER_DYNAMIC_LINKER.
5781         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5782         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5783         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5784         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5785         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5786         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5787         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5788         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5789         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5790         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5792 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5794         PR target/9601
5795         PR target/11772
5796         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5797         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5798         comment.
5799         (ix86_is_msabi_thiscall): Removed.
5800         (ix86_is_type_thiscall): Likewise.
5801         (ix86_get_callcvt): New function.
5802         (ix86_comp_type_attributes): Simplify check.
5803         (ix86_function_regparm): Use ix86_get_callcvt for calling
5804         convention attribute checks.
5805         (ix86_return_pops_args): Likewise.
5806         (ix86_static_chain): Likewise.
5807         (x86_this_parameter): Likewise.
5808         (x86_output_mi_thunk): Likewise.
5809         (ix86_function_type_abi): Optimize check for types without attributes.
5810         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5811         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5812         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5813         by flag-values.
5814         (IX86_BASE_CALLCVT): Helper macro.
5815         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5816         Use ix86_get_callcvt for calling convention attribute checks and avoid
5817         symbol-decoration for stdcall in TARGET_RTD case.
5818         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5819         Likewise.
5820         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5821         for declaration.
5823 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5825         * config/i386/sse.md (VI_128): New mode iterator.
5826         (VI12_128): Rename from SSEMODE12.
5827         (VI14_128): Rename from SSEMODE14.
5828         (VI124_128): New mode iterator.
5829         (VI24_128): Rename from SSEMODE248.
5830         (VI248_128): Rename from SSEMODE248.
5831         (SSEMODE124C8): Remove.
5832         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5833         (*sse2_<plusminus_insn><mode>3): Merge with
5834         *avx_<plusminus_insn><mode>3.
5835         (*mulv8hi3): Merge with *avx_mulv8hi3.
5836         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5837         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5838         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5839         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5840         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5841         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5842         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5843         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5844         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5845         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5846         (*<smaxmin:code>v8hi3): Ditto.
5847         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5848         (*<smaxmin:code>v16qi3): Ditto.
5849         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5850         (*sse2_eq<mode>3): Ditto.
5851         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5852         (*sse2_gt<mode>3): Ditto.
5853         (vcondv2di): Split out of vcond<mode>.
5854         (vconduv2di): Split out of vcondu<mode>.
5856 2011-04-11  Richard Guenther  <rguenther@suse.de>
5858         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5859         before calling tree_low_cst.
5861 2011-04-11  Richard Guenther  <rguenther@suse.de>
5863         * stor-layout.c (layout_type): Compute all array index size operations
5864         in the original type.
5865         (initialize_sizetypes): Add comment.
5866         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5868 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5870         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5872 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5874         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5875         of cgraph_node, handle NULL return value.
5876         (cgraph_global_info): Likewise.
5877         (cgraph_rtl_info): Likewise.
5878         * tree-inline.c (estimate_num_insns): Likewise.
5879         * gimplify.c (unshare_body): Likewise.
5880         (unvisit_body): Likewise.
5881         (gimplify_body): Likewise.
5882         * predict.c (optimize_function_for_size_p): Likewise.
5883         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5884         (call_may_clobber_ref_p_1): Likewise.
5885         * varasm.c (function_section_1): Likewise.
5886         (assemble_start_function): Likewise.
5888 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5890         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5891         of cgraph_node.
5892         * final.c (rest_of_clean_state): Likewise.
5893         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5894         * passes.c (pass_init_dump_file): Likewise.
5895         (execute_all_ipa_transforms): Likewise.
5896         (function_called_by_processed_nodes_p): Likewise.
5897         * predict.c (maybe_hot_frequency_p): Likewise.
5898         (probably_never_executed_bb_p): Likewise.
5899         (compute_function_frequency): Likewise.
5900         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5901         (unnest_nesting_tree_1): Likewise.
5902         (lower_nested_functions): Likewise.
5903         * tree-optimize.c (execute_fixup_cfg): Likewise.
5904         (tree_rest_of_compilation): Likewise.
5905         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5906         * tree-sra.c (ipa_early_sra): Likewise.
5907         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5908         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5909         * ipa.c (record_cdtor_fn): Likewise.
5910         * ipa-inline.c (cgraph_early_inlining): Likewise.
5911         (compute_inline_parameters_for_current): Likewise.
5912         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5913         * ipa-pure-const.c (local_pure_const): Likewise.
5914         * ipa-split.c (split_function): Likewise.
5915         (execute_split_functions): Likewise.
5916         * cgraphbuild.c (build_cgraph_edges): Likewise.
5917         (rebuild_cgraph_edges): Likewise.
5918         (cgraph_rebuild_references): Likewise.
5919         (remove_cgraph_callee_edges): Likewise.
5920         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5921         (verify_cgraph_node): Likewise.
5922         (cgraph_analyze_functions): Likewise.
5923         (cgraph_preserve_function_body_p): Likewise.
5924         (save_inline_function_body): Likewise.
5925         (save_inline_function_body): Likewise.
5926         * tree-inline.c (copy_bb): Likewise.
5927         (optimize_inline_calls): Likewise.
5929 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5931         PR tree-optimization/48195
5932         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5933         ipa_check_create_edge_args.
5934         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5935         ipa_check_create_edge_args.
5936         * ipa-inline.c (inline_generate_summary): Do not call
5937         ipa_check_create_node_params and ipa_check_create_edge_args.
5938         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5939         ipa_check_create_edge_args.
5941 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5943         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5944         instead of loop.
5945         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5946         * function.c (record_hard_reg_sets): Likewise.
5947         * ira.c (compute_regs_asm_clobbered): Likewise.
5948         * sched-deps.c (sched_analyze_1): Likewise.
5949         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5951 2011-04-09  Xinliang David Li  <davidxl@google.com>
5953         PR tree-optimization/PR48484
5954         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5955         has_valid_pred lazily
5957 2011-04-09  Duncan Sands  <baldrick@free.fr>
5959         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5961 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
5963         * combine.c (combine_validate_cost): Adjust comments.  Set registered
5964         cost of I0 to zero at the end, if any.
5966 2011-04-08  Xinliang David Li  <davidxl@google.com>
5968         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5969         to insane profile data.
5971 2011-04-08  Xinliang David Li  <davidxl@google.com>
5973         * ipa-cp.c (ipcp_update_profiling): Correct
5974          negative scale factor due to insane profile data.
5976 2011-04-08  Xinliang David Li  <davidxl@google.com>
5978         * final.c (dump_basic_block_info): New function.
5979         (final): Dump basic block.
5980         (final_scan_insn): Remove old dump.
5982 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
5984         PR target/47829
5985         * config.gcc (i386-*-freebsd): Disable unwind table generation for
5986         crtbegin/crtend.
5988 2011-04-08  Michael Matz  <matz@suse.de>
5990         PR middle-end/48389
5991         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5992         functions.
5993         (rebuild_jump_labels): Call rebuild_jump_labels_1.
5994         * rtl.h (rebuild_jump_labels_chain): Declare.
5995         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5996         insns inserted on edges.
5998 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6000         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6001         * config/arm/arm-arches.def: New.
6002         * config/arm/arm-opts.h: New.
6003         * config/arm/genopt.sh: New.
6004         * config/arm/arm-tables.opt: New (generated).
6005         * config/arm/arm.c (arm_handle_option, arm_target_help,
6006         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6007         (all_architectures): Get most table contents from arm-arches.def.
6008         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6009         arm_selected_tune here.
6010         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6011         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6012         (march=, mcpu=, mtune=): Use Enum and Var.
6013         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6014         (arm.o): Update dependencies.
6016 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6018         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6019         of header_file.
6020         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6021         (write_typed_alloc_defns): Likewise.
6022         (main): Calls write_typed_alloc_defns with output_header.
6024 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6026         PR inline-asm/48435
6027         * ira-color.c (setup_profitable_hard_regs): Add comments.
6028         Don't take prohibited hard regs into account.
6029         (setup_conflict_profitable_regs): Rename to
6030         get_conflict_profitable_regs.
6031         (check_hard_reg_p): Check prohibited hard regs.
6033 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6035         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6036         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6037         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6039 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6041         PR target/48366
6042         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6043         move from floating point to shift amount register.
6044         (emit_move_sequence): Remove secondary reload support for floating
6045         point to shift amount amount register copies.
6046         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6047         amount register copies.
6048         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6049         register, return false if mode isn't a scalar integer mode.
6050         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6052 2011-04-08  Richard Guenther  <rguenther@suse.de>
6054         * gimple.c (gimple_call_flags): Remove kludge.
6056 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6058         * sel-sched.c (sel_region_init): Move call to
6059         sel_setup_region_sched_flags after setup_current_loop_nest.
6061 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6063         PR rtl-optimization/48272
6064         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6065         init_insn_reg_pressure_info.  Adjust a caller.
6066         * sched-int.h (init_insn_reg_pressure_info): Declare.
6067         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6068         when sched-pressure is enabled.
6070 2011-04-08  Richard Guenther  <rguenther@suse.de>
6072         * gimple.c (gimple_set_modified): Do not queue calls to
6073         MODIFIED_NORETURN_CALLS here ...
6074         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6076 2011-04-08  Richard Guenther  <rguenther@suse.de>
6078         PR lto/48467
6079         * toplev.c (lang_dependent_init): Do not open asm_out_file
6080         in WPA mode, nor perform debug machinery initialization.
6081         (finalize): Do not unlink asm_out_file in WPA mode.
6083 2011-04-08  Richard Guenther  <rguenther@suse.de>
6085         * gimple.h (gimple_call_fntype): New function.
6086         (gimple_call_return_type): Use it.
6087         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6088         * gimple-low.c (gimple_check_call_args): Likewise.
6089         * gimple.c (gimple_call_flags): Likewise.
6090         (gimple_call_arg_flags): Likewise.
6091         (gimple_call_return_flags): Likewise.
6092         * tree-cfg.c (verify_gimple_call): Likewise.
6093         (do_warn_unused_result): Likewise.
6094         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6095         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6097 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6099         PR rtl-optimization/48235
6100         * sel-sched.c (code_motion_process_successors): Recompute the last
6101         insn in basic block if control flow changed.
6102         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6103         Update condition for ilist_remove.
6105 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6107         PR rtl-optimization/48302
6108         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6109         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6110         it to record added preheader blocks.
6111         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6112         on to sel_add_loop_preheaders.
6113         (sel_region_init): Move call to setup_current_loop_nest after
6114         sel_init_bbs.
6116 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6118         PR target/48273
6119         * cfgloop.h (loop_has_exit_edges): New helper.
6120         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6121         non-clonable.
6122         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6123         that have no exit edges.
6125 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6127         PR rtl-optimization/48442
6128         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6129         all callers.  Adjust assert.
6131 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6133         PR tree-optimization/48377
6134         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6135         is_packed to true even for types with smaller TYPE_ALIGN than
6136         TYPE_SIZE.
6138 2011-04-08  Richard Guenther  <rguenther@suse.de>
6140         PR bootstrap/48513
6141         * doc/tm.texi: Re-generate.
6143 2011-04-08  Wei Guozhi  <carrot@google.com>
6145         PR target/47855
6146         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6147         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6148         * config/arm/arm.md (*push_multi): Change the length computation to
6149         call a C function.
6151 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6153         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6154         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6155         * doc/tm.texi: Regenerate.
6156         * system.h (ASM_OUTPUT_BSS): Poison.
6157         * varasm.c (asm_output_bss): Remove function.
6158         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6160         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6161         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6162         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6163         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6164         Likewise.
6165         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6166         Likewise.
6167         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6168         Likewise.
6169         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6171 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6173         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6174         EnumValue lines.
6176 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6178         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6179         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6180         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6181         OPT_mcpu32.
6182         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6183         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6184         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6185         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6186         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6187         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6188         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6189         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6190         options.  Don't map other m68k options manually.  Don't handle
6191         old-style options as canonical.
6192         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6193         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6195 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6197         * basic-block.h (force_nonfallthru): Move to...
6198         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6199         (force_nonfallthru): ...here.
6200         * cfghooks.c (force_nonfallthru): New function.
6201         * cfgrtl.c (force_nonfallthru): Rename into...
6202         (rtl_force_nonfallthru): ...this.
6203         (commit_one_edge_insertion): Do not set AUX field.
6204         (commit_edge_insertions): Do not discover new basic blocks.
6205         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6206         (cfg_layout_rtl_cfg_hooks): Likewise.
6207         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6208         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6209         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6211 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6213         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6214         Remove macros.
6216 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6218         * config/i386/sse.md: Update copyright year.
6219         (avxcvtvecmode): Remove.
6220         (sse_movhlps): Merge with *avx_movhlps.
6221         (sse_movlhps): Merge with *avx_movlhps.
6222         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6223         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6224         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6225         (sse_loadhps): Merge with *avx_loadhps.
6226         (sse_storelps): Merge with *avx_storelps.
6227         (sse_loadlps): Merge with *avx_loadlps.
6228         (sse_movss): Merge with *avx_movss.
6229         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6230         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6231         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6232         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6233         (vec_set<mode>_0): Ditto.
6234         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6235         (sse4_1_insertps): Merge with *avx_insertps.
6236         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6237         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6238         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6239         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6240         (sse2_storehpd): Merge with *avx_storehpd.
6241         (sse2_loadhpd): Merge with *avx_loadhpd.
6242         (sse2_loadlpd): Merge with *avx_loadlpd.
6243         (sse2_movsd): Merge with *avx_movsd.
6244         (*vec_concatv2df): Merge with *vec_concatv2df.
6246 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6248         PR debug/48343
6249         * combine.c (combine_instructions): Add last_combined_insn,
6250         update it if insn is after it, pass it to all try_combine calls.
6251         (try_combine): Add last_combined_insn parameter, pass it instead of
6252         i3 to propagate_for_debug.
6254 2011-04-07  Nick Clifton  <nickc@redhat.com>
6256         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6257         to handle MDR <-> data register transfers.
6258         (movhi_internal): Likewise.
6260 2011-04-07  Alan Modra  <amodra@gmail.com>
6262         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6263         previous stack info.
6265 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6267         PR target/43920
6268         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6269         flow_find_cross_jump.  Swap variables to implement backward replacement.
6270         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6272 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6274         PR target/43920
6275         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6276         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6277         and bb2.
6278         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6279         src1 or src2.  Redirect edges to the last basic block.  Update
6280         frequency and count on multiple basic blocks in case of fallthru.
6282 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6284         PR target/43920
6285         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6286         function.
6287         (old_insns_match_p): Change return type.  Replace return false/true
6288         with return dir_none/dir_both.  Use can_replace_by.
6289         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6290         direction from dir_p.  Register replacement direction in dir, last_dir
6291         and afterlast_dir.  Handle new return type of old_insns_match_p using
6292         merge_dir.  Return replacement direction in dir_p.
6293         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6294         return type of old_insns_match_p.
6295         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6296         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6297         flow_find_cross_jump.
6298         * basic-block.h (enum replace_direction): New type.
6299         (flow_find_cross_jump): Add parameter to declaration.
6301 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6303         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6304         (AVXMODEDCVTPS2DQ): Ditto.
6305         (VEC_FLOAT_MODE): Ditto.
6306         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6307         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6308         (<any_logic:code><mode>3): Use VF mode iterator.
6309         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6310         Use VF mode iterator.
6311         (copysign<mode>3): Use VF mode iterator.
6312         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6313         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6314         (*<any_logic:code><MODEF:mode>3): Merge with
6315         *avx_<any_logic:code><MODEF:mode>3.
6316         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6317         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6318         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6319         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6320         (sse2_cvtdq2ps): Use %v modifier.
6321         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6322         (avx_cvtps2dq<avxmodesuffix>): Remove.
6323         (sse2_cvtps2dq): Use %v modifier.
6324         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6325         (avx_cvttps2dq<avxmodesuffix>): Remove.
6326         (sse2_cvttps2dq): Use %v modifier.
6327         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6328         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6329         (sse2_cvtsd2siq): Fix insn template.
6330         (sse2_cvtsd2siq_2): Ditto.
6331         (sse2_cvttsd2siq): Ditto.
6332         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6333         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6335 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6337         * gcov-io.c: Use GCC Runtime Library Exception.
6339 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6341         PR debug/48466
6342         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6343         as base_reg whatever register reg has been eliminated to, instead
6344         of hardcoding STACK_POINTER_REGNUM.
6346 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6348         * doc/tm.texi.in: Document C target hooks as separate from general
6349         target hooks.
6350         * doc/tm.texi: Regenerate.
6351         * genhooks.c (struct hook_desc): Add docname field.
6352         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6353         docname field.
6354         (hook_array): Include c-target.def.
6355         (emit_documentation): Use docname field in output.
6356         (emit_init_macros): Take docname argument.  Only emit definitions
6357         for hooks matching docname.
6358         (main): Expect additional arguments in all cases.  Pass argument
6359         to emit_init_macros.
6360         * target.def: Move initial macro definitions and comments to
6361         target-hooks-macros.h.
6362         (gcc_targetcm): Move to c-family/c-target.def.
6363         * target.h (targetcm): Move declaration to c-family/c-target.h.
6364         * targhooks.c (default_handle_c_option): Move to
6365         c-family/c-opts.c.
6366         * targhooks.h (default_handle_c_option): Move declaration to
6367         c-family/c-common.h.
6368         * target-hooks-macros.h: New file.
6369         * config.gcc (target_has_targetcm): Define and use to add to
6370         c_target_objs and cxx_target_objs.
6371         * config/default-c.c: New file.
6372         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6373         of target.h and target-def.h.
6374         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6375         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6376         darwin_check_cfstring_format_arg): Make static.
6377         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6378         TARGET_STRING_OBJECT_REF_TYPE_P,
6379         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6380         * config/darwin-protos.h (darwin_objc_construct_string,
6381         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6382         declare.
6383         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6384         TARGET_STRING_OBJECT_REF_TYPE_P,
6385         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6386         * config/t-darwin (darwin-c.o): Update dependencies.
6387         * system.h (TARGET_HAS_TARGETCM): Poison.
6388         * Makefile.in (TARGET_H): Update.
6389         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6390         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6391         (default-c.o): New target.
6392         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6393         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6394         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6395         c-target.def.
6396         (build/genhooks.o): Update dependencies.
6398 2011-04-06  Richard Guenther  <rguenther@suse.de>
6400         * ipa-inline.c (enum inlining_mode): Remove.
6401         (cgraph_flatten): Use some other token.
6402         (cgraph_edge_early_inlinable_p): New function, split out from ...
6403         (cgraph_perform_always_inlining): New function, split out from ...
6404         (cgraph_decide_inlining_incrementally): ... here.
6405         (cgraph_mark_inline_edge): Adjust.
6406         (cgraph_early_inlining): Re-structure.
6407         (pass_early_inline): Require SSA form.
6409 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6410             Julian Brown  <julian@codesourcery.com>
6411             Mark Shinwell  <shinwell@codesourcery.com>
6413         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6414         LO_REGS only for Thumb-1.
6415         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6416         be used in short instructions when optimising for size on Thumb-2.
6418 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6420         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6421         associated with user returns to be preserved.
6423 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6425         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6426         symbol_queue_size, DBXOUT_DECR_NESTING,
6427         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6428         if XCOFF_DEBUGGING_INFO.
6430 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6432         * config/i386/i386.md (attribute isa): New.
6433         (attribute enabled): New.
6434         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6435         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6436         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6437         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6438         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6439         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6440         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6441         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6443         * config/i386/sse.md (VF): New mode iterator.
6444         (VF1): Ditto.
6445         (VF2): Ditto.
6446         (VF_128): Ditto.
6447         (SSEMODEF4): Remove.
6448         (attribute sse): Handle V8SF and V4DF modes.
6449         (<absneg:code><mode>2): Use VF mode iterator.
6450         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6451         mode iterator.
6452         (<plusminus_insn><mode>3): Use VF mode iterator.
6453         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6454         Use VF mode iterator.
6455         (<sse>_vm<plusminus_insn><mode>3): Merge with
6456         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6457         (mul<mode>3): Use VF mode iterator.
6458         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6459         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6460         mode iterator.
6461         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6462         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6463         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6464         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6465         mode iterator.
6466         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6467         Use VF1 mode iterator.
6468         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6469         (sqrt<VF2:mode>2): New expander.
6470         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6471         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6472         and sqrtv2df2.  Use VF mode iterator.
6473         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6474         mode iterator.
6475         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6476         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6477         Use VF1 mode iterator.
6478         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6479         (<smaxmin:code><mode>3): Use VF mode iterator.
6480         (*<smaxmin:code><mode>3_finite): Merge with
6481         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6482         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6483         (<sse>_vm<smaxmin:code><mode>2): Merge with
6484         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6485         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6486         mode iterator.
6487         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6488         mode iterator.
6489         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6490         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6491         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6492         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6493         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6494         VF mode iterator.
6495         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6496         Use VF_128 mode iterator.
6497         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6498         mode iterator.
6499         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6500         VF_128 mode iterator.
6501         (vcond<mode>): Use VF mode iterator.
6502         * config/i386/predicates.md (sse_comparison_operator): Merge with
6503         avx_comparison_float_operator.  Do not declare as special_predicate.
6504         * config/i386/i386.c (struct builtin_description): Update for renamed
6505         compare patterns.
6506         (ix86_expand_args_builtin): Ditto.
6507         (ix86_expand_sse_compare_mask): Ditto.
6509 2011-04-06  Richard Guenther  <rguenther@suse.de>
6511         * tree-inline.c (estimate_num_insns): For calls simply account
6512         for all passed arguments and a used return value.
6514 2011-04-06  Richard Guenther  <rguenther@suse.de>
6516         PR tree-optimization/47663
6517         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6518         call_stmt_time fields.
6519         (cgraph_edge_inlinable_p): Declare.
6520         (cgraph_edge_recursive_p): New inline function.
6521         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6522         (cgraph_clone_edge): Copy it.
6523         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6524         Account for call stmt time.
6525         (cgraph_estimate_time_after_inlining): Take edge argument.
6526         (cgraph_estimate_edge_growth): Account call stmt size.
6527         (cgraph_estimate_size_after_inlining): Take edge argument.
6528         (cgraph_mark_inline_edge): Adjust.
6529         (cgraph_check_inline_limits): Likewise.
6530         (cgraph_recursive_inlining_p): Remove.
6531         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6532         (cgraph_decide_recursive_inlining): Take edge argument and
6533         adjust.
6534         (cgraph_decide_inlining_of_small_functions): Do not avoid
6535         diags for recursive inlining here.
6536         (cgraph_flatten): Adjust.
6537         (cgraph_decide_inlining_incrementally): Likewise.
6538         (estimate_function_body_sizes): Remove call cost handling.
6539         (compute_inline_parameters): Initialize caller edge call costs.
6540         (cgraph_estimate_edge_growth): New function.
6541         (cgraph_estimate_growth): Use it.
6542         (cgraph_edge_badness): Likewise.
6543         (cgraph_check_inline_limits): Take an edge argument.
6544         (cgraph_decide_inlining_of_small_functions): Adjust.
6545         (cgraph_decide_inlining): Likewise.
6546         * tree-inline.c (estimate_num_insns): Only account for call
6547         return value if it is used.
6548         (expand_call_inline): Avoid diagnostics on recursive inline
6549         functions here.
6550         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6551         (input_edge): Input edge call costs.
6553 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6555         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6557 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6559         * doc/invoke.texi (Spec Files): Fix typo.
6561 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6563         * profile.c (branch_prob): Move declaration of local variable.  Remove
6564         obsolete ??? comment.  Expand the location explicitly instead of using
6565         the LOCATION_FILE and LOCATION_LINE macros.
6567 2011-04-06  Wei Guozhi  <carrot@google.com>
6569         PR target/47855
6570         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6571         (arm_cond_branch): Likewise.
6572         (arm_cond_branch_reversed): Likewise.
6573         (arm_jump): Likewise.
6574         (push_multi): Likewise.
6575         * config/arm/constraints.md (Py): New constraint.
6577 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6579         PR bootstrap/48471
6580         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6581         Move these...
6582         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6583         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6584         #ifdef DBX_DEBUGGING_INFO.
6586 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6588         PR bootstrap/48403
6589         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6590         if old and new states differ.
6592 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6594         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6595         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6596         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6597         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6598         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6599         mcfv4e): Use Alias.
6600         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6601         ColdFire options to -mcpu= options.
6603 2011-04-05  Jeff Law  <law@redhat.com>
6605         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6606         check if BB is a successor of LOOP->header and return
6607         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6609 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6611         * cprop.c (struct reg_use): Remove.
6612         (reg_use_table): Make an array of RTX.
6613         (find_used_regs, constprop_register, local_cprop_pass,
6614         bypass_block): Simplify users of reg_use_table.
6615         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6616         on one of the uses found by find_used_regs.
6618 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6620         PR bootstrap/48469
6621         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6622         declaration.
6624 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6626         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6627         as an rtx.
6628         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6630 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6632         PR middle-end/48441
6633         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6635 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6637         * combine.c: Include obstack.h.
6638         (struct insn_link): Define.
6639         (uid_log_links): Adjust type.
6640         (FOR_EACH_LOG_LINK): New macro.
6641         (insn_link_obstack): Declare.
6642         (alloc_insn_link): Define.
6643         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6644         type of link variables.
6645         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6646         (try_combine, record_promoted_values, distribute_notes): Likewise.
6647         (distribute_links): Likewise.  Tweak prototype.
6648         (clear_log_links): Delete.
6649         (adjust_for_new_dest): Call alloc_insn_link.
6650         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6652 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6654         * gcse.c (modify_mem_list): Convert to an array of VECs.
6655         (canon_modify_mem_list, compute_transp): Tweak formatting.
6656         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6657         (load_killed_in_block_p): Likewise.
6658         (record_last_mem_set_info): Likewise.
6659         (clear_modify_mem_tables): Likewise.
6661 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6663         PR middle-end/48461
6664         * function.c (emit_use_return_register_into_block): Only define if
6665         HAVE_return.
6667 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6669         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6671 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6673         * config/rx/rx-opts.h: New.
6674         * config/rx/rx.c (rx_cpu_type): Remove.
6675         (rx_handle_option): Don't assert that global structures are in
6676         use.  Access variables via opts pointer.  Defer most handling of
6677         OPT_mint_register_.  Use error_at.
6678         (rx_option_override): Handle deferred OPT_mint_register_ here.
6679         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6680         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6681         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6682         (rx_cpu_types): New Enum and EnumValue entries.
6683         (mint-register=): Use Defer and use Var accordingly.
6685 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6687         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6688         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6689         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6690         Move these...
6691         (debug_free_queue, debug_nesting, symbol_queue_index):
6692         ...and these...
6693         * dbxout.c: ...to here.  Make static.
6695 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6697         * gcse.c (modify_pair): Define.  Define a VEC of it.
6698         (canon_modify_mem_list): Convert to an array of VECs.
6699         (free_insn_expr_list_list): Delete.
6700         (clear_modify_mem_tables): Call VEC_free instead.
6701         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6702         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6703         (canon_list_insert, compute_transp): Likewise.
6705 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6707         PR target/43920
6708         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6709         for size.
6711 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6713         PR target/43920
6714         * function.c (emit_use_return_register_into_block): New function.
6715         (thread_prologue_and_epilogue_insns): Use
6716         emit_use_return_register_into_block.
6718 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6720         PR target/43920
6721         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6722         insn.
6724 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6726         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6728 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6730         * config/arm/arm.md (define_constants for unspec): Replace with
6731         define_c_enum.
6732         (define_constants for unspecv): Replace with define_c_enum.
6733         * config/arm/neon.md (define_constants for unspec): Replace with
6734         define_c_enum.
6736 2011-04-04  Richard Henderson  <rth@redhat.com>
6738         PR bootstrap/48400
6739         * dwarf2out.c (output_line_info): Always emit line info from
6740         at least one section.
6741         (dwarf2out_init): Create text_section_line_info here ...
6742         (set_cur_line_info_table): ... not here.
6744 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6746         PR target/48380
6747         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6748         not called.
6750         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6752 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6754         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6755         (expr_equiv_p): Remove.
6756         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6757         (hash_scan_set): Update call to insert_set_in_table.
6758         (dump_hash_table): Dump <dest, src> pair.
6759         (lookup_set): Simplify.  Lookup <dest, src> pair.
6760         (compute_transp): Remove, fold heavily simplified code into...
6761         (compute_local_properties): ...here.  Expect COMP and TRANSP
6762         unconditionally.
6763         (find_avail_set): Take set directly from struct expr.
6764         (find_bypass-set): Likewise.
6765         (bypass_block): Likewise.
6766         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6768         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6769         checks on form of COND from find_implicit_sets to here.
6770         (find_implicit_sets): Cleanup control flow. Split critical edges
6771         if it exposes implicit sets.  Allocate/resize implicit_sets as
6772         necessary.
6773         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6774         changed something.  Run df_analyze after find_implicit_sets if any
6775         edges were split.  Do not allocate implicit_sets here.
6777         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6778         (gcse_obstack): Renamed to cprop_obstack.
6779         (GNEW, GNEWVEC, GNEWVAR): Remove.
6780         (gmalloc): Remove.
6781         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6782         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6783         (gcse_alloc): Likewise, and rename to cprop_alloc.
6784         (alloc_gcse_men, free_gcse_mem): Remove.
6785         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6786         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6787         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6789         * cprop.c (oprs_not_set_p): Remove.
6790         (mark_set, mark_clobber): Remove.
6791         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6792         (reg_not_set_p): New function.
6793         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6794         (cprop_insn): Likewise.
6795         (cprop_jump): Use FOR_EACH_EDGE.
6797 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6799         PR bootstrap/48403
6800         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6801         (rank_for_schedule): Use scheduled_insns vector instead of
6802         last_scheduled_insn.
6803         (ok_for_early_queue_removal): Likewise.
6804         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6805         we have a dbg_cnt.
6806         (choose_ready): Likewise.
6807         (commit_schedule): Use VEC_iterate.
6808         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6809         a dbg_cnt, use it and ensure the first insn is in the ready list.
6810         (haifa_sched_init): Allocate scheduled_insns.
6811         (sched_extend_ready_list): Don't allocate it; reserve space.
6812         (haifa_sched_finish): Free it.
6814 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6816         * optc-gen.awk: Always remove type from Variable entry before
6817         recording in var_seen.
6819 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6821         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6822         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6823         call to tidy_fallthru_edges.
6825 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6827         * doc/options.texi (ToLower): Document.
6828         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6829         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6830         * opts.h (cl_option): Add cl_tolower field.
6831         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6832         arguments with lowercase strings.
6833         * config/rx/rx.opt (mcpu=): Add ToLower.
6834         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6835         argument.
6837 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6839         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6841 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6843         * config/vax/vax.c: Include reload.h.
6845 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6847         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6848         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6849         (sparc_preferred_reload_class): New function.
6851 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6853         PR debug/48401
6854         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6855         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6857 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6859         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6860         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6862 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6864         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6865         (ASM_OUTPUT_ALIGNED_BSS): Define.
6867 2011-04-03  Michael Matz  <matz@suse.de>
6869         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6870         and next_slot members.
6871         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6872         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6873         (lto_streamer_cache_append): Declare.
6874         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6875         unsigned index, remove offset parameter, ensure that we append
6876         or update existing entries.
6877         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6878         parameter, update next_slot for append.
6879         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6880         parameter.
6881         (lto_streamer_cache_insert_at): Likewise.
6882         (lto_streamer_cache_append): New function.
6883         (lto_streamer_cache_lookup): Use unsigned index.
6884         (lto_streamer_cache_get): Likewise.
6885         (lto_record_common_node): Don't test tree_node_can_be_shared.
6886         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6887         (lto_streamer_cache_delete): Don't free offsets member.
6888         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6889         (lto_output_string_with_length): Use lto_output_data_stream.
6890         (lto_output_tree_header): Remove ix parameter, don't write it.
6891         (lto_output_builtin_tree): Likewise.
6892         (lto_write_tree): Adjust callers to above, don't track and write
6893         offset, write unsigned index.
6894         (output_unreferenced_globals): Don't emit all global vars.
6895         (write_global_references): Use unsigned indices.
6896         (lto_output_decl_state_refs): Likewise.
6897         (write_symbol): Likewise.
6898         * lto-streamer-in.c (lto_input_chain): Move earlier.
6899         (input_function): Use unsigned index.
6900         (input_alias_pairs): Don't read and then ignore all global vars.
6901         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6902         don't pass it back, use lto_streamer_cache_append.
6903         (lto_register_var_decl_in_symtab): Use unsigned index.
6904         (lto_register_function_decl_in_symtab): Likewise.
6905         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6906         index.
6907         (lto_get_builtin_tree): Don't read index, use
6908         lto_streamer_cache_append.
6909         (lto_read_tree): Adjust call to lto_materialize_tree.
6911         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6912         don't use function calls in arguments to MIN.
6914         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6915         twice.
6917         * gimple.c (gimple_type_leader_entry): Mark deletable.
6919 2011-04-03  Alan Modra  <amodra@gmail.com>
6921         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6923 2011-04-03  Michael Matz  <matz@suse.de>
6925         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6926         an integer.
6927         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6929 2011-04-03  Michael Matz  <matz@suse.de>
6931         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6932         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6933         without function context.
6934         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6935         current_function_decl and cfun.
6937 2011-04-03  Michael Matz  <matz@suse.de>
6939         * tree.c (decl_init_priority_insert): Don't create entry for
6940         default priority.
6941         (decl_fini_priority_insert): Ditto.
6942         (fields_compatible_p, find_compatible_field): Remove.
6943         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6944         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6946 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
6948         * combine.c (try_combine): Remove useless local variable.
6950 2011-04-03  Richard Guenther  <rguenther@suse.de>
6951             Ira Rosen  <ira.rosen@linaro.org>
6953         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6954         non-variable offsets and compare the remaining bases of the two
6955         accesses instead of looking for exact same data-ref.
6957 2011-04-02  Kai Tietz  <ktietz@redhat.com>
6959         PR target/48416
6960         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6962         * i386.c (ix86_is_msabi_thiscall): New helper function.
6963         (ix86_is_type_thiscall): New helper function.
6964         (ix86_comp_type_attributes): Handle thiscall for method-functions
6965         special.
6966         (init_cumulative_args): Likewise.
6967         (find_drap_reg): Likewise.
6968         (ix86_static_chain): Likewise.
6969         (x86_this_parameter): Likewise.
6970         (x86_output_mi_thunk): Likewise.
6972 2011-04-01  Olivier Hainque  <hainque@adacore.com>
6973             Nicolas Setton  <setton@adacore.com>
6974             Eric Botcazou  <ebotcazou@adacore.com>
6976         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6977         (add_gnat_descriptive_type_attribute): New function.
6978         (gen_array_type_die): Call it.
6979         (gen_enumeration_type_die): Likewise.
6980         (gen_struct_or_union_type_die): Likewise.
6981         (modified_type_die): Likewise.
6982         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6983         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6984         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6986 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
6988         PR bootstrap/48148
6989         * dwarf2out.c (resolve_addr): Don't call force_decl_die
6990         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6992         Revert:
6993         2011-03-17  Richard Guenther  <rguenther@suse.de>
6995         PR bootstrap/48148
6996         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6997         origin for decls in other ltrans units.
6998         (input_varpool_node): Likewise.
7000 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7002         PR middle-end/48335
7003         * expr.c (expand_assignment): Handle all possibilities
7004         if TO_RTX is CONCAT.
7005         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7006         (store_split_bit_field): If SUBREG_REG (op0) or
7007         op0 itself has smaller mode than word, return it
7008         for offset 0 and const0_rtx for out-of-bounds stores.
7009         If word is const0_rtx, skip it.
7011 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7013         * config/h8300/h8300.c (print_operand_address): Rename to...
7014         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7015         Call h8300_print_operand and h8300_print_operand_address instead of
7016         print_operand and print_operand_address. Declare.
7017         (print_operand): Renake to...
7018         (h8300_print_operand): ...this. Make static. Adjust comments.
7019         Call h8300_print_operand instead of print_operand. Declare.
7020         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7021         (h8300_register_move_cost): Likewise.
7022         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7023         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7024         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7025         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7026         * config/h8300/h8300-protos.h (print_operand): Delete.
7027         (print_operand_address): Delete.
7029 2011-04-01  Richard Henderson  <rth@redhat.com>
7031         PR 48400
7032         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7033         in strict mode before dwarf4.  Re-order tests to early out
7034         before switching sections.
7036 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7038         * config/h8300/constraints.md: New file.
7039         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7040         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7041         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7042         * config/h8300/predicates.md (bit_operand): Likewise.
7043         (incdec_operand): Use satisfies_constraint_M and
7044         satisfies_constraint_O.  Don't use C code block.
7045         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7046         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7047         (compute_mov_length): Use satisfies_constraint_G.
7048         (fix_bit_operand): Use satisfies_constraint_U.
7049         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7050         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7051         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7052         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7053         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7054         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7055         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7056         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7057         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7058         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7059         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7060         (EXTRA_MEMORY_CONSTRAINT): Delete.
7062 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7063             Michael Meissner  <meissner@linux.vnet.ibm.com>
7065         PR target/48262
7066         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7067         operands, as per the specifications.
7069         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7070         (vec_extract_evenv4sf): Ditto.
7071         (vec_extract_evenv8hi): Ditto.
7072         (vec_extract_evenv16qi): Ditto.
7073         (vec_extract_oddv4si): Ditto.
7075 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7077         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7078         high_pc attribute if the CU has no associated code. Only output
7079         DW_AT_entry_pc for CU if not generating strict dwarf and
7080         dwarf_version < 4.
7082 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7084         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7085         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7086         out of ...
7087         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7088         * final.c (final_start_function): Call the new function rather
7089         than using a NULL argument for dwarf2out_frame_debug.
7091         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7092         that contains the prologue.
7094         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7095         changed.  Print it in debugging output.
7097         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7099         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7100         Split most of the code into...
7101         (begin_move_insn): ... here.  New function.
7102         (ebb_sched_info): Add a pointer to it.
7103         * haifa-sched.c (scheduled_insns): New static variable.
7104         (sched_extend_ready_list): Allocate it.
7105         (schedule_block): Use it to record the order of scheduled insns.
7106         Perform RTL changes to move insns only after all scheduling
7107         decisions have been made.
7108         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7109         begin_move_insn field.
7110         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7111         * sched-int.h (struct haifa_sched_info): Remove second argument
7112         from begin_schedule_ready hook.  Add new member begin_move_insn.
7113         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7114         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7116         * haifa-sched.c (prune_ready_list): New function, broken out of
7117         schedule_block.
7118         (schedule_block): Use it.
7120 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7122         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7124 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7126         * config.gcc (*-*-mingw*): Allow as option the
7127         posix threading model.
7128         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7129         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7130         definition.
7131         (CPP_SPEC): Add pthread/no-pthread handling.
7132         (LIB_SPEC): Likewise.
7133         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7134         (LIB_SPEC): Likewise.
7135         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7136         flag to pass -pthread option for shared libgcc build.
7137         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7138         for shared libgcc build.
7139         * config/i386/t-mingw-pthread: New file.
7140         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7141         New define to enable use of library pthread by default.
7142         * config/i386/mingw.opt (pthread): New driver option.
7143         (no-pthread): New driver option.
7144         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7145         * config/i386/mingw-w64.opt: Likewise.
7147 2011-04-01  Gary Funck  <gary@intrepid.com>
7149         * c-decl.c (grokdeclarator): Fix formatting.
7151 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7153         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7154         instead of n_operands.
7155         (set_storage_via_setmem): Likewise.
7156         * optabs.c (maybe_gen_insn): Likewise.
7157         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7158         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7159         (mips_expand_builtin_direct): Likewise.
7160         * config/spu/spu.c (expand_builtin_args): Likewise.
7162 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7164         * recog.h (insn_data_d): Add n_generator_args.
7165         * genoutput.c (data): Likewise.
7166         (output_insn_data): Print it.
7167         (max_opno, num_dups): Delete.
7168         (scan_operands): Just fill in "d->operand[...]".
7169         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7171 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7173         * gensupport.h (pattern_stats): New structure.
7174         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7175         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7176         (max_operand_1, max_operand_vec): Delete.
7177         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7179 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7181         * emit-rtl.c (emit_pattern_after_setloc): New function.
7182         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7183         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7184         (emit_pattern_after): New function.
7185         (emit_insn_after, emit_jump_insn_after): Call it.
7186         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7187         (emit_pattern_before_setloc): New function.
7188         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7189         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7190         Likewise.
7191         (emit_pattern_before): New function.
7192         (emit_insn_before, emit_jump_insn_before): Call it.
7193         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7195 2011-03-31  Richard Henderson  <rth@redhat.com>
7197         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7198         (dw_separate_line_info_entry): Remove.
7199         (enum dw_line_info_opcode): New.
7200         (dw_line_info_entry): Use it.
7201         (dw_line_info_table, dw_line_info_table_p): New.
7202         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7203         (line_info_table, line_info_label_num): Remove.
7204         (line_info_table_in_use): Remove.
7205         (separate_line_info_table): Remove.
7206         (separate_line_info_table_allocated): Remove.
7207         (separate_line_info_table_in_use): Remove.
7208         (LINE_INFO_TABLE_INCREMENT): Remove.
7209         (line_info_label_num): New.
7210         (cur_line_info_table): New.
7211         (text_section_line_info, cold_text_section_line_info): New.
7212         (separate_line_info): New.
7213         (SEPARATE_LINE_CODE_LABEL): Remove.
7214         (print_dwarf_line_table): Remove.
7215         (debug_dwarf): Don't dump it.
7216         (output_one_line_info_table): New.
7217         (output_line_info): Use it.
7218         (new_line_info_table): New.
7219         (set_cur_line_info_table): New.
7220         (dwarf2out_switch_text_section): Use it.
7221         (dwarf2out_begin_function): Likewise.
7222         (push_dw_line_info_entry): New.
7223         (dwarf2out_source_line): Rewrite for new line info tables.
7224         (dwarf2out_init): Remove dead initailizations.
7226 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7228         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7229         various flags.
7230         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7231         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7232         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7233         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7234         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7235         * opt-functions.awk (flag_init, switch_bit_fields): New.
7236         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7237         generate CL_MISSING_OK or CL_SAVE.
7238         * optc-gen.awk: Update to generate bit-field output as well as
7239         flags field.
7240         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7241         bit-field instead of CL_REJECT_DRIVER flag.
7242         * opts-common.c (generate_canonical_option,
7243         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7244         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7245         instead of CL_REJECT_NEGATIVE flag.
7246         * toplev.c (print_switch_values): Use cl_report bit-field instead
7247         of CL_REPORT flag.
7249 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7251         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7252         a zero minimum index only if it is redundant.
7254 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7256         PR rtl-optimization/48381
7257         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7258         instead of ira_class_hard_reg_index for calculating conflicting
7259         hard registers.
7261 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7263         * cprop.c: Clean up hash table building.
7264         (reg_avail_info): Remove.
7265         (oprs_available_p): Remove.
7266         (record_last_reg_set_info): Remove.
7267         (record_last_set_info): Remove.
7268         (reg_available_p): New function.
7269         (gcse_constant_p): Do not treat unfolded conditions as constants.
7270         (make_set_regs_unavailable): New function.
7271         (hash_scan_set): Simplify with new reg_available_p.
7272         (compute_hash_table_work): Traverse insns stream only once.
7273         Do not compute reg_avail_info. Traverse insns in reverse order.
7274         Record implicit sets after recording explicit sets from the block.
7276 2011-03-31  Michael Matz  <matz@suse.de>
7278         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7280 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7282         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7283         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7284         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7285         (h8300_mode_dependent_address_p): New function.
7286         (h8300_get_index): Make static.
7288 2011-03-31  Jeff Law  <law@redhat.com>
7290         * reload1.c (elimination_effects): Fix typo in recent change.
7292         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7293         typo potentially leading to null pointer dereference.
7295         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7296         (setup_save_areas): Corresponding changes to avoid useless
7297         assignments.
7299         * jump.c (reversed_comparison_code_parts): Avoid successive return
7300         statements when REVERSE_CONDITION is defined.
7302         * expr.c (expand_assignment): Avoid useless assignments.
7303         (expand_expr_real_1): Likewise.
7304         (expand_expr_real_2): Avoid useless statements.
7306         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7308         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7310         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7311         statements.
7313         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7315 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7317         PR target/47109
7318         * doc/tm.texi.in (TARGET_VERSION): Remove.
7319         * doc/tm.texi: Regenerate.
7320         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7321         * collect2.c (main): Don't use TARGET_VERSION.
7322         * mips-tdump.c (main): Don't use TARGET_VERSION.
7323         * mips-tfile.c (main): Don't use TARGET_VERSION.
7324         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7325         * config/rs6000/vxworksae.h: Remove.
7326         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7327         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7328         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7329         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7330         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7331         * config/arm/arm.h (TARGET_VERSION): Remove.
7332         * config/arm/coff.h (TARGET_VERSION): Remove.
7333         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7334         * config/arm/elf.h (TARGET_VERSION): Remove.
7335         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7336         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7337         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7338         * config/arm/pe.h (TARGET_VERSION): Remove.
7339         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7340         * config/arm/semi.h (TARGET_VERSION): Remove.
7341         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7342         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7343         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7344         * config/avr/avr.h (TARGET_VERSION): Remove.
7345         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7346         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7347         * config/frv/frv.h (TARGET_VERSION): Remove.
7348         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7349         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7350         * config/i386/darwin.h (TARGET_VERSION): Remove.
7351         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7352         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7353         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7354         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7355         * config/i386/gnu.h (TARGET_VERSION): Remove.
7356         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7357         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7358         * config/i386/linux.h (TARGET_VERSION): Remove.
7359         * config/i386/linux64.h (TARGET_VERSION): Remove.
7360         * config/i386/lynx.h (TARGET_VERSION): Remove.
7361         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7362         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7363         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7364         * config/i386/netware.h (TARGET_VERSION): Remove.
7365         * config/i386/nto.h (TARGET_VERSION): Remove.
7366         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7367         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7368         * config/ia64/elf.h (TARGET_VERSION): Remove.
7369         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7370         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7371         * config/ia64/linux.h (TARGET_VERSION): Remove.
7372         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7373         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7374         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7375         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7376         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7377         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7378         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7379         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7380         * config/m68k/linux.h (TARGET_VERSION): Remove.
7381         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7382         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7383         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7384         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7385         * config/mep/mep.h (TARGET_VERSION): Remove.
7386         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7387         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7388         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7389         * config/mips/linux.h (TARGET_VERSION): Remove.
7390         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7391         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7392         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7393         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7394         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7395         * config/pa/pa.h (TARGET_VERSION): Remove.
7396         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7397         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7398         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7399         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7400         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7401         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7402         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7403         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7404         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7405         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7406         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7407         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7408         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7409         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7410         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7411         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7412         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7413         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7414         * config/s390/linux.h (TARGET_VERSION): Remove.
7415         * config/s390/s390.h (TARGET_VERSION): Remove.
7416         * config/s390/tpf.h (TARGET_VERSION): Remove.
7417         * config/score/score.h (TARGET_VERSION): Remove.
7418         * config/sh/linux.h (TARGET_VERSION): Remove.
7419         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7420         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7421         * config/sh/sh.h (TARGET_VERSION): Remove.
7422         * config/sh/sh64.h (TARGET_VERSION): Remove.
7423         * config/sh/superh.h (TARGET_VERSION): Remove.
7424         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7425         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7426         * config/sparc/linux.h (TARGET_VERSION): Remove.
7427         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7428         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7429         TARGET_NAME32, TARGET_NAME): Remove.
7430         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7431         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7432         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7433         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7434         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7435         * config/spu/spu.h (TARGET_VERSION): Remove.
7436         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7437         * config/v850/v850.h (TARGET_VERSION): Remove.
7438         * config/vax/linux.h (TARGET_VERSION): Remove.
7439         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7440         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7441         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7443 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7445         PR target/48142
7446         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7447         frame-related from frame-unrelated adjustments to the stack pointer.
7449 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7451         * common.opt (fdebug-types-section): Move earlier.
7452         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7454 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7456         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7457         var.
7459 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7461         * tree.h (CASE_CHAIN): Define.
7462         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7463         (gimple_redirect_edge_and_branch): Likewise.
7465 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7467         PR middle-end/48367
7468         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7469         calculation.
7471 2011-03-30  Jeff Law  <law@redhat.com>
7473         * PR bootstrap/48371
7474         * reload1.c (reload): Fix botch in last change.
7476         * reload.h (struct reload): Fix typo introduced in last change.
7478 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7480         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7481         Undocumented.  Remove help text.
7482         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7483         -mhard-float.
7485 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7487         * doc/options.texi (NegativeAlias): Document.
7488         (Alias): Mention NegativeAlias.
7489         * opt-functions.awk: Handle NegativeAlias.
7490         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7491         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7492         * opts.h (CL_NEGATIVE_ALIAS): Define.
7493         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7494         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7495         OPT_mspe_.
7496         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7497         Alias entries.
7498         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7499         mno-spe and mno-isel instead of mspe=no and -misel=no.
7501 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7503         * common.opt (fdebug-types-section): New flag.
7504         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7505         * dwarf2out.c (use_debug_types): New define.
7506         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7507         (print_die): Guard output of type unit signatures using
7508         use_debug_types.
7509         (build_abbrev_table): Replace assert of dwarf_version >= 4
7510         with assert on use_debug_types.
7511         (size_of_die): Likewise.
7512         (unmark_dies): Likewise.
7513         (value_format): Decide AT_ref_external form on use_debug_types.
7514         (output_die): Replace dwarf_version version check guard with
7515         use_debug_types where appropriate.
7516         (modified_type_die): Likewise.
7517         (gen_reference_type_die): Likewise.
7518         (dwarf2out_start_source_file): Likewise.
7519         (dwarf2out_end_source_file): Likewise.
7520         (prune_unused_types_walk_attribs): Likewise.
7521         (dwarf2out_finish): Likewise.
7523 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7525         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7527 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7529         PR rtl-optimization/48332
7530         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7531         mode of input operand N and modeN to its actual mode.
7533 2011-03-30  Jeff Law  <law@redhat.com>
7535         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7536         define accessor macro.
7537         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7538         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7539         (reg_equiv_init): Likewise.
7540         (reg_equivs_size): New variable.
7541         (reg_equiv_init_size): Remove.
7542         (allocate_initial_values): Move prototype to here from....
7543         * integrate.h (allocate_initial_values): Remove prototype.
7544         * integrate.c: Include reload.h.
7545         (allocate_initial_values): Corresponding changes.
7546         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7547         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7548         (update_equiv_regs): Corresponding changes.
7549         (ira): Corresponding changes.
7550         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7551         (push_secondary_reload): Corresponding changes.
7552         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7553         (make_memloc, find_reloads_address): Corresponding changes.
7554         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7555         (find_reloads_address_1): Corresponding changes.
7556         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7557         (refers_to_regno_for_reload_p): Corresponding changes.
7558         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7559         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7560         * reload1.c: Include ggc.h.
7561         (grow_reg_equivs): New function.
7562         (replace_pseudos_in, reload): Corresponding changes.
7563         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7564         (eliminate_regs_1, elimination_effects): Corresponding changes.
7565         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7566         (delete_output_reload): Likewise.
7567         * caller-save.c (mark_referenced_regs): Corresponding changes.
7568         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7569         * frv/predicates.md (frv_load_operand): Corresponding changes.
7570         * microblaze/microblaze.c (double_memory_operand): Corresponding
7571         changes.
7572         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7573         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7574         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7575         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7576         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7577         changes.
7578         * pa/pa.c (emit_move_sequence): Corresponding changes.
7579         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7581 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7583         PR target/47551
7584         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7585         structure modes.  Don't check neon_vector_mem_operand for
7586         vector or structure modes.
7588 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7589             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7591         PR target/43590
7592         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7593         operand 1 and reshuffle the operands to match.
7594         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7596 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7598         PR driver/48208
7599         * config/c.opt (F): Added 'Driver' to -F option.
7601         PR driver/48260
7602         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7603           handler function.
7604         * config/darwin.opt: Added '-arch' option.
7606 2011-03-30  Nick Clifton  <nickc@redhat.com>
7608         * config/rx/rx.md: Add peepholes and patterns to combine
7609         extending loads and simple arithmetic instructions.
7610         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7611         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7612         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7613         modes to use pre-decrement and post-increment addressing.
7614         (rx_is_restricted_memory_address): Add range checking of REG+INT
7615         addresses.
7616         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7617         (rx_memory_move_cost): Adjust cost of stores.
7618         (rx_adjust_insn_length): New function.
7620 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7622         PR c/48305
7623         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7624         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7625         matching arg00/arg01 types.
7627 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7629         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7630         last_location to UNKNOWN_LOCATION.
7632 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7634         PR target/48349
7635         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7636         FLOAT_SSE_REGS.
7638 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7639             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7641         PR bootstrap/48337
7642         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7643         Init(PROCESSOR_V7).
7644         (sparc_cpu): Likewise.
7645         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7646         PROCESSOR_V7.
7648 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7650         PR target/48336
7651         PR middle-end/48342
7652         PR rtl-optimization/48345
7653         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7654         hard regs for given mode from profitable regs when doing secondary
7655         allocation.
7657 2011-03-29  Jeff Law  <law@redhat.com>
7659         PR bootstrap/48327
7660         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7661         do_not_duplicate field.
7662         (lookup_redirection_data): Corresponding changes.
7663         (create_duplicates): Always create a template block.
7664         (redirect_edges): Remove code which reused the original block
7665         when it was going to become unreachable code.
7666         (thread_block): Don't set do_not_duplicate field.
7668 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7670         * lto-opts.c (register_user_option_p, lto_register_user_option):
7671         Make type argument unsigned.
7672         * lto-streamer.h (lto_register_user_option): Make type argument
7673         unsigned.
7674         * opth-gen.awk: Make CL_* macros unsigned.
7675         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7676         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7677         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7678         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7679         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7680         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7681         (find_opt): Make lang_mask argument unsigned.
7683 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7685         PR rtl-optimization/48331
7686         PR rtl-optimization/48334
7687         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7688         for any used algorithm.
7690 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7692         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7693         to parent_max.
7695 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7697         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7698         (alpha_option_override): Don't set alpha_sr_alias_set.
7699         (emit_frame_store_1): Use gen_frame_mem rather than calling
7700         set_mem_alias_set.
7701         (alpha_expand_epilogue): Ditto.
7703 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7705         PR tree-optimization/48290
7706         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7707         vectorization, check that relevant phis in the basic block after
7708         the inner loop are really inner loop's exit phis.
7710 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7712         PR debug/48190
7713         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7714         (cached_dw_loc_list_def): New structure.
7715         (cached_dw_loc_list): New typedef.
7716         (cached_dw_loc_list_table): New variable.
7717         (cached_dw_loc_list_table_hash): New function.
7718         (cached_dw_loc_list_table_eq): Likewise.
7719         (add_location_or_const_value_attribute): Take a bool cache_p.
7720         Cache the list when the parameter is true.
7721         (gen_formal_parameter_die): Update caller.
7722         (gen_variable_die): Likewise.
7723         (dwarf2out_finish): Likewise.
7724         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7725         while generating debug info for the decl.
7726         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7727         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7728         (resolve_addr): Cache the result of resolving a chain of
7729         location lists.
7731 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7733         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7734         conflict object hard regset nodes have intersecting hard reg sets.
7736         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7737         after regstat_init_n_sets_and_refs.
7739         * ira.c: Add more comments at the top.
7740         (setup_stack_reg_pressure_class, setup_pressure_classes):
7741         Add comments how we compute the register pressure classes.
7742         (setup_allocno_and_important_classes): Add more comments.
7743         (setup_class_translate_array, reorder_important_classes)
7744         (setup_reg_class_relations): Add comments.
7746         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7747         start of the file.
7749         * ira-color.c: Add 2011 to the Copyright line.
7750         (assign_hard_reg):  Add more comments.
7751         (improve_allocation): Ditto.
7753         * ira-costs.c: Add 2011 to the Copyright line.
7754         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7755         comments.
7756         (setup_regno_cost_classes_by_mode): Ditto.
7758         Initial patches from ira-improv branch:
7760         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7762         * ira-build.c (ira_create_object): Remove initialization of
7763         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7764         (ira_create_allocno): Remove initialization of
7765         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7766         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7767         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7768         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7769         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7770         Initialize ALLOCNO_ADD_DATA.
7771         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7772         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7773         ALLOCNO_REG.
7774         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7775         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7777         * ira.c (ira_reallocate): Remove.
7778         (setup_pressure_classes): Call
7779         ira_init_register_move_cost_if_necessary.  Use
7780         ira_register_move_cost instead of ira_get_register_move_cost.
7781         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7782         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7784         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7785         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7786         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7787         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7788         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7789         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7790         Fix formatting.
7791         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7792         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7793         (struct allocno_color_data): New.
7794         (allocno_color_data_t): New typedef.
7795         (allocno_color_data): New definition.
7796         (ALLOCNO_COLOR_DATA): New macro.
7797         (struct object_color_data): New.
7798         (object_color_data_t): New typedef.
7799         (object_color_data): New definition.
7800         (OBJECT_COLOR_DATA): New macro.
7801         (update_copy_costs, calculate_allocno_spill_cost): Call
7802         ira_init_register_move_cost_if_necessary.  Use
7803         ira_register_move_cost instead of ira_get_register_move_cost.
7804         (move_spill_restore, update_curr_costs): Ditto.
7805         (allocno_spill_priority): Make it inline.
7806         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7807         (struct coalesce_data, coalesce_data_t): New.
7808         (allocno_coalesce_data): New definition.
7809         (ALLOCNO_COALESCE_DATA): New macro.
7810         (merge_allocnos, coalesced_allocno_conflict_p): Use
7811         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7812         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7813         (coalesce_allocnos): Ditto.
7814         (setup_coalesced_allocno_costs_and_nums): Ditto.
7815         (collect_spilled_coalesced_allocnos): Ditto.
7816         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7817         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7818         (coalesce_spill_slots): Ditto.
7819         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7820         free allocno_coalesce_data.
7822         * ira-conflicts.c: Fix formatting.
7823         (process_regs_for_copy): Call
7824         ira_init_register_move_cost_if_necessary.  Use
7825         ira_register_move_cost instead of ira_get_register_move_cost.
7826         (build_object_conflicts): Optimize.
7828         * ira-costs.c (record_reg_classes): Optimize.  Call
7829         ira_init_register_move_cost_if_necessary.  Use
7830         ira_register_move_cost, ira_may_move_in_cost, and
7831         ira_may_move_out_cost instead of ira_get_register_move_cost and
7832         ira_get_may_move_cost.
7833         (record_address_regs): Ditto.
7834         (scan_one_insn): Optimize.
7835         (find_costs_and_classes): Optimize.
7836         (process_bb_node_for_hard_reg_moves): Call
7837         ira_init_register_move_cost_if_necessary.  Use
7838         ira_register_move_cost instead of ira_get_register_move_cost.
7840         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7841         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7842         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7843         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7844         definitions.
7845         (ira_initiate_emit_data, ira_finish_emit_data)
7846         (create_new_allocno): New functions.
7847         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7848         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7849         Use ira_register_move_cost instead of ira_get_register_move_cost.
7851         * ira-int.h: Fix some comments.
7852         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7853         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7854         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7855         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7856         add_data.
7857         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7858         bitfield after mode.  Make hard_regno a short int.  Make
7859         hard_regno short.  Remove first_coalesced_allocno and
7860         next_coalesced_allocno.  Move mem_optimized_dest_p,
7861         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7862         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7863         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7864         temp, colorable_p.  Add new member add_data.
7865         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7866         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7867         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7868         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7869         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7870         (ALLOCNO_ADD_DATA): New macro.
7871         (ira_emit_data_t): New typedef.
7872         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7873         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7874         from struct ira_allocno.
7875         (ALLOCNO_EMIT_DATA): New macro.
7876         (ira_allocno_emit_data, allocno_emit_reg): New.
7877         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7878         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7879         (OBJECT_ADD_DATA): New macro.
7880         (ira_reallocate): Remove.
7881         (ira_initiate_emit_data, ira_finish_emit_data): New.
7882         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7883         (ira_init_register_move_cost_if_necessary): New.
7884         (ira_object_conflict_iter_next): Merge into
7885         ira_object_conflict_iter_cond.
7886         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7888         * ira-live.c (process_single_reg_class_operands): Call
7889         ira_init_register_move_cost_if_necessary.  Use
7890         ira_register_move_cost instead of ira_get_register_move_cost.
7892         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7894         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7896         * ira-costs.c: Fix formatting.
7897         (cost_classes, cost_classes_num): Remove.
7898         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7899         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7900         (cost_classes_del, cost_classes_htab): New.
7901         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7902         (initiate_regno_cost_classes, setup_cost_classes): New.
7903         (setup_regno_cost_classes_by_aclass): New.
7904         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7905         (record_reg_classes): Use regno_cost_classes instead of
7906         cost_classes.  Move checking opposite operand up.
7907         (record_address_regs): Use regno_cost_classes
7908         instead of cost_classes.
7909         (scan_one_insn): Ditto.  Use always general register.
7910         (print_allocno_costs): Use regno_cost_classes instead of
7911         cost_classes.
7912         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7913         (find_costs_and_classes): Set up cost classes for each registers.
7914         Use also their mode for this.  Use regno_cost_classes instead of
7915         cost_classes.
7916         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7917         cost_classes.
7918         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7919         (ira_costs, ira_set_pseudo_classes): Call
7920         initiate_regno_cost_classes and finish_regno_cost_classes.
7922         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7924         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7926         * target.def (ira_cover_classes): Remove.
7928         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7930         * doc/tm.texi.in: Ditto.
7932         * ira-conflicts.c: Remove mentioning cover classes from the file.
7933         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7934         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7936         * targhooks.c (default_ira_cover_classes): Remove.
7938         * targhooks.h (default_ira_cover_classes): Ditto.
7940         * haifa-sched.c: Remove mentioning cover classes from the file.
7941         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7942         ira_pressure_classes and ira_pressure_classes_num instead of
7943         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7944         sched_regno_pressure_class instead of sched_regno_cover_class.
7945         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7946         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7948         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
7949         classes from the file.
7950         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7951         (struct object_hard_regs, struct object_hard_regs_node): New.
7952         (struct ira_object): New members profitable_hard_regs,
7953         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7954         (struct ira_allocno): Rename cover_class to aclass.  Rename
7955         cover_class_cost and updated_cover_class_cost to class_cost and
7956         updated_class_cost.  Remove splay_removed_p and
7957         left_conflict_size.  Add new members colorable_p.
7958         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7959         (ALLOCNO_COLORABLE_P): New macro.
7960         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7961         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7962         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7963         (OBJECT_...): Rename parameter C to O.
7964         (OBJECT_PROFITABLE_HARD_REGS): New macro.
7965         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7966         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7967         (struct target_ira_int): New members x_ira_max_memory_move_cost,
7968         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7969         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7970         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7971         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
7972         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
7973         x_ira_reg_class_subunion.
7974         (ira_max_memory_move_cost, ira_max_register_move_cost)
7975         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7976         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7977         (ira_important_class_nums, ira_reg_class_superunion): New macros.
7978         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
7979         (ira_reg_class_union): Rename to ira_reg_class_subunion.
7980         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7981         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7982         (ira_tune_allocno_costs_and_cover_classes): Rename to
7983         ira_tune_allocno_costs.
7984         (ira_debug_hard_regs_forest): New.
7985         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7986         (ira_object_conflict_iter_next): Fix comments.
7987         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
7988         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7989         cover_class to aclass.
7990         (ira_allocate_and_accumulate_costs): Ditto.
7991         (ira_allocate_and_set_or_copy_costs): Ditto.
7993         * opts.c (decode_options): Remove ira_cover_class check.
7995         * ira-color.c: Remove mentioning cover classes from the file.  Use
7996         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7997         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7998         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
7999         (splay-tree.h): Remove include.
8000         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8001         before copy_freq_compare_func.
8002         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8003         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8004         New definitions.
8005         (hard_regs_roots, hard_regs_node_vec): Ditto.
8006         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8007         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8008         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8009         (create_new_object_hard_regs_node): Ditto.
8010         (add_new_object_hard_regs_node_to_forest): Ditto.
8011         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8012         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8013         Ditto.
8014         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8015         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8016         (remove_unused_object_hard_regs_nodes): Ditto.
8017         (enumerate_object_hard_regs_nodes): Ditto.
8018         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8019         (object_hard_regs_subnode_t): Ditto.
8020         (struct object_hard_regs_subnode): Ditto.
8021         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8022         (setup_object_hard_regs_subnode_index): Ditto.
8023         (get_object_hard_regs_subnodes_num): Ditto.
8024         (form_object_hard_regs_nodes_forest): Ditto.
8025         (finish_object_hard_regs_nodes_tree): Ditto.
8026         (finish_object_hard_regs_nodes_forest): Ditto.
8027         (allocnos_have_intersected_live_ranges_p): Rename to
8028         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8029         (pseudos_have_intersected_live_ranges_p): Rename to
8030         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8031         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8032         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8033         (update_copy_costs): Remove assert.  Skip cost update if the hard
8034         reg does not belong the class.
8035         (assign_hard_reg): Process only profitable hard regs.
8036         (uncolorable_allocnos_num): Make it scalar.
8037         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8038         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8039         and ira_reg_class_max_nregs.
8040         (bucket_allocno_compare_func): Check frequency first.
8041         (sort_bucket): Add compare function as a parameter.
8042         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8043         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8044         (push_allocno_to_stack): Rewrite for checking new allocno
8045         colorability.
8046         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8047         (push_only_colorable): Pass new parameter to sort_bucket.
8048         (push_allocno_to_spill): Remove.
8049         (allocno_spill_priority_compare): Make it inline and rewrite.
8050         (splay_tree_allocate, splay_tree_free): Remove.
8051         (allocno_spill_sort_compare): New function.
8052         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8053         build and use splay tree.  Choose first allocno in uncolorable
8054         allocno bucket to spill.  Remove setting spill cost.
8055         (all_conflicting_hard_regs): Remove.
8056         (setup_allocno_available_regs_num): Check only profitable hard
8057         regs.  Print info about hard regs nodes.
8058         (setup_allocno_left_conflicts_size): Remove.
8059         (put_allocno_into_bucket): Don't call
8060         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8061         (improve_allocation): New.
8062         (color_allocnos): Call setup_profitable_hard_regs,
8063         form_object_hard_regs_nodes_forest, improve_allocation,
8064         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8065         (print_loop_title): Use pressure classes.
8066         (color_allocnso): Ditto.
8067         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8068         and allocnos_for_spilling.
8069         (ira_sort_regnos_for_alter_reg): Don't setup members
8070         {first,next}_coalesced_allocno.
8071         (color): Remove allocating and freeing removed_splay_allocno_vec.
8072         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8073         prohibited_class_mode_regs.
8075         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8076         formatting.
8077         (update_allocno_pressure_excess_length): Use pressure classes.
8078         (inc_register_pressure, dec_register_pressure): Check for pressure
8079         class.
8080         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8081         pressure class.  Use ira_reg_class_nregs instead of
8082         ira_reg_class_max_nregs.
8083         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8084         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8085         (single_reg_class): Use ira_reg_class_nregs instead of
8086         ira_reg_class_max_nregs.
8087         (process_bb_node_lives): Use pressure classes.
8089         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8090         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8091         (change_loop): Use pressure classes.
8092         (modify_move_list): Call ira_set_allocno_class instead of
8093         ira_set_allocno_cover_class.
8095         * ira-build.c: Remove mentioning cover classes from the file.  Use
8096         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8097         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8098         ALLOCNO_UPDATED_CLASS_COST instead of
8099         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8100         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8101         (ira_create_allocno): Remove initialization of
8102         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8103         ALLOCNO_COLORABLE_P.
8104         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8105         Update conflict regs for the objects.
8106         (create_cap_allocno): Remove assert.  Don't propagate
8107         ALLOCNO_AVAILABLE_REGS_NUM.
8108         (ira_free_allocno_costs): New function.
8109         (finish_allocno): Change a part of code into call of
8110         ira_free_allocno_costs.
8111         (low_pressure_loop_node_p): Use pressure classes.
8112         (object_range_compare_func): Don't compare classes.
8113         (setup_min_max_conflict_allocno_ids): Ditto.
8115         * loop-invariant.c: Remove mentioning cover classes from the file.
8116         Use ira_pressure_classes and ira_pressure_classes_num instead of
8117         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8118         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8119         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8120         Use reg_allocno_class instead of reg_cover_class.
8121         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8122         STACK_REG_COVER_CLASS.
8123         (get_regno_cover_class): Rename to get_regno_pressure_class.
8124         (move_loop_invariants): Initialize and finalize regstat.
8126         * ira.c: Remove mentioning cover classes from the file.  Add
8127         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8128         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8129         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8130         setup_class_subset_and_memory_move_costs.
8131         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8132         (setup_cover_and_important_classes): Rename to
8133         setup_allocno_and_important_classes.
8134         (setup_class_translate_array): New.
8135         (setup_class_translate): Call it for allocno and pressure classes.
8136         (cover_class_order): Rename to allocno_class_order.
8137         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8138         of ira_class_translate.
8139         (reorder_important_classes): Set up ira_important_class_nums.
8140         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8141         (print_class_cover): Rename to print_classes.  Add parameter.
8142         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8143         Print pressure classes too.
8144         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8145         setup_reg_subclasses.
8146         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8147         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8148         (setup_prohibited_class_mode_regs): Use
8149         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8150         (clarify_prohibited_class_mode_regs): New function.
8151         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8152         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8153         (ira_init_once): Initialize them.
8154         (free_register_move_costs): Process them.
8155         (ira_init): Move calls of find_reg_classes and
8156         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8157         Call clarify_prohibited_class_mode_regs.
8158         (ira_no_alloc_reg): Remove.
8159         (too_high_register_pressure_p): Use pressure classes.
8161         * sched-deps.c: Remove mentioning cover classes from the file.
8162         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8163         ira_pressure_classes and ira_pressure_classes_num instead of
8164         ira_reg_class_cover_size and ira_reg_class_cover.
8165         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8166         sched_regno_pressure_class instead of sched_regno_cover_class.
8167         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8168         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8170         * ira.h: Add 2010 to Copyright.
8171         (ira_no_alloc_reg): Remove external.
8172         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8173         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8174         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8175         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8176         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8177         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8178         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8179         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8180         x_ira_no_alloc_regs.
8181         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8182         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8183         ira_allocno_classes_num and ira_allocno_classes.
8184         (ira_class_translate): Rename to ira_allocno_class_translate.
8185         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8186         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8187         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8188         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8189         (ira_no_alloc_regs): New.
8191         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8192         classes from the file.  Use ALLOCNO_CLASS instead of
8193         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8194         ALLOCNO_COVER_CLASS_COST.
8195         (regno_cover_class): Rename to regno_aclass.
8196         (record_reg_classes): Use ira_reg_class_subunion instead of
8197         ira_reg_class_union.
8198         (record_address_regs): Check overflow.
8199         (scan_one_insn): Ditto.
8200         (print_allocno_costs): Print total mem cost fore regional allocation.
8201         (print_pseudo_costs): Use REG_N_REFS.
8202         (find_costs_and_classes): Use classes intersected with them on the
8203         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8204         ira_reg_class_union.  Use ira_allocno_class_translate and
8205         regno_aclass instead of ira_class_translate and regno_cover_class.
8206         Modify code for finding regno_aclass.  Setup preferred classes for
8207         the next pass.
8208         (setup_allocno_cover_class_and_costs): Rename to
8209         setup_allocno_class_and_costs.  Use regno_aclass instead of
8210         regno_cover_class.  Use ira_set_allocno_class instead of
8211         ira_set_allocno_cover_class.
8212         (init_costs, finish_costs): Use regno_aclass instead of
8213         regno_cover_class.
8214         (ira_costs): Use setup_allocno_class_and_costs instead of
8215         setup_allocno_cover_class_and_costs.
8216         (ira_tune_allocno_costs_and_cover_classes): Rename to
8217         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8218         by processing objects.  Use ira_reg_class_max_nregs instead of
8219         ira_reg_class_nregs.
8221         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8223         * sched-int.h: Remove mentioning cover classes from the file.
8224         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8226         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8227         classes from the file.
8228         (struct reg_pref): Rename coverclass into allocnoclass.
8229         (reg_cover_class): Rename to reg_allocno_class.
8231         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8233         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8235         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8237         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8239         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8241         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8243         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8245         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8247         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8249         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8251         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8252         (i386_ira_cover_classes): Ditto.
8254         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8256         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8258         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8260         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8262         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8264         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8266         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8267         (mips_ira_cover_classes): Ditto.
8269         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8271         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8273         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8275         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8277         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8279         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8280         (IRA_COVER_CLASSES_VSX): Ditto.
8282         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8283         (rs6000_ira_cover_classes): Ditto.
8285         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8287         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8289         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8291         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8293         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8295         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8297         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8299         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8301         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8303         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8305 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8307         PR debug/48253
8308         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8309         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8310         dw_fde_unlikely_section_end_label, cold_in_std_section,
8311         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8312         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8313         fields.
8314         (output_fde): Use dw_fde_second_{begin,end} if second is
8315         true, otherwise dw_fde_{begin,end}.
8316         (output_call_frame_info): Test dw_fde_second_begin != NULL
8317         instead of dw_fde_switched_sections.
8318         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8319         fields, initialize new fields.  Initialize in_std_section
8320         unconditionally from the first partition.
8321         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8322         dw_fde_second_begin is non-NULL.
8323         (dwarf2out_switch_text_section): Stop initializing removed
8324         dw_fde_struct fields, initialize new fields, initialize
8325         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8326         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8327         (struct var_loc_list_def): Add last_before_switch field.
8328         (arange_table, arange_table_allocated, arange_table_in_use,
8329         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8330         (size_of_aranges): Count !in_std_section and !second_in_std_section
8331         hunks in fdes, instead of looking at arange_table_in_use.
8332         (output_aranges): Add aranges_length argument, don't call
8333         size_of_aranges here.  Instead of using aranges_table*
8334         emit ranges for fdes when !in_std_section resp.
8335         !second_in_std_section.
8336         (dw_loc_list): Break ranges crossing section switch.
8337         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8338         use dw_fde_second_end instead of dw_fde_end as end of last range.
8339         (gen_subprogram_die): Don't call add_arange.  Use
8340         dw_fde_{begin,end} for first partition and if switched
8341         section dw_fde_second_{begin,end} for the second.
8342         (var_location_switch_text_section_1,
8343         var_location_switch_text_section): New functions.
8344         (dwarf2out_begin_function): Initialize cold_text_section even
8345         when function_section () isn't text_section.
8346         (prune_unused_types): Don't walk arange_table.
8347         (dwarf2out_finish): Don't needlessly test
8348         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8349         If info_section_emitted, call size_of_aranges and if it indicates
8350         non-empty .debug_aranges, call output_aranges with the computed
8351         size.  Stop using removed dw_fde_struct fields, use
8352         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8353         for second.
8355         PR debug/48203
8356         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8357         create ENTRY_VALUE if incoming or address of incoming's MEM
8358         is a hard REG.
8359         * dwarf2out.c (mem_loc_descriptor): Don't emit
8360         DW_OP_GNU_entry_value of DW_OP_fbreg.
8361         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8362         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8363         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8364         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8365         ENTRY_VALUE_EXPs.
8366         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8367         is a REG_P or MEM_P with REG_P address, compute hash directly
8368         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8369         (preserve_only_constants): Don't clear VALUES forwaring
8370         ENTRY_VALUE to some other VALUE.
8372 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8374         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8375         instead of GEN_INT.
8377 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8379         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8380         block before expanding the statement.
8381         (expand_gimple_stmt_1): Likewise.  Set them here...
8382         (expand_gimple_stmt): ...and not here.  Tidy.
8383         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8384         unknown.
8386 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8388         * Makefile.in: New rule for cprop.o.
8389         * gcse.c: Move constant/copy propagation to cprop.c.
8390         (compute_local_properties): Only handle expression tables.
8391         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8392         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8393         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8394         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8395         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8396         compute_cprop_data, find_used_regs, try_replace_reg,
8397         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8398         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8399         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8400         find_bypass_set, reg_killed_on_edge, bypass_block,
8401         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8402         execute_rtl_cprop, pass_rtl_cprop): Move to...
8403         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8404         moved from gcse.c to here with minor cleanups in duplicated code.
8406 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8408         * config/i386/i386.c (flag_opts): Fix a typo in
8409         -mavx256-split-unaligned-store.
8411 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8413         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8414         LIBCALL_VALUE): Remove macros.
8415         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8416         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8417         (h8300_function_value, h8300_libcall_value,
8418         h8300_function_value_regno_p): New functions.
8420 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8422         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8424 2011-03-28  Jeff Law  <law@redhat.com>
8426         * tree-ssa-threadupdate.c (redirect_edges): Call
8427         create_edge_and_update_destination_phis as needed.
8428         (create_edge_and_update_destination_phis): Accept new BB argument.
8429         All callers updated.
8430         (thread_block): Do not update the profile when threading around
8431         intermediate blocks.
8432         (thread_single_edge): Likewise.
8433         (determine_bb_domination_status): If BB is not a successor of the
8434         loop header, return NONDOMINATING.
8435         (register_jump_thread): Note when we register a jump thread around
8436         an intermediate block.
8437         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8438         (thread_across_edge): Use it.
8440 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8442         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8443         when for_return is 2.
8445 2011-03-28  Jeff Law  <law@redhat.com>
8447         * var-tracking.c (canonicalize_values_mark): Delete unused
8448         lhs assignment.
8449         (canonicalize_values_star, set_variable_part): Likewise.
8450         (clobber_variable_part, delete_variable_part): Likewise.
8452 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8454         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8456 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8458         * tree-inline.c (expand_call_inline): Do not check that destination
8459         node is analyzed.
8460         (optimize_inline_calls): Assert that destination node is analyzed.
8461         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8462         not call tree_lowering_passes.
8463         * cgraph.h (cgraph_analyze_function): Declare.
8464         * cgraphunit.c (cgraph_analyze_function): Make public.
8466 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8468         * config/sparc/sparc-opts.h: New.
8469         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8470         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8471         (sparc_option_override): Store processor_type enumeration rather
8472         than string in cpu_default.  Remove name and enumeration from
8473         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8474         without using sparc_select.  Use target_flags_explicit instead of
8475         fpu_option_set.
8476         * config/sparc/sparc.h (enum processor_type): Move to
8477         sparc-opts.h.
8478         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8479         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8480         HeaderInclude entry.
8481         (mcpu=, mtune=): Use Var and Enum.
8482         (sparc_processor_type): New Enum and EnumValue entries.
8484 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8485             Iain Sandoe  <iains@gcc.gnu.org>
8487         PR target/48245
8488         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8490 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8492         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8493         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8494         Insert new statements at it in lieu of STMT.
8495         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8496         * tree-vect-stmts.c (vectorizable_store): Likewise.
8497         (vectorizable_load): Likewise.
8499 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8501         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8502         (divtf3): Ditto.
8503         (multf3): Ditto.
8504         (subtf3): Ditto.
8506 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8508         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8509         unaligned 256bit load/store.
8510         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8511         (*avx_movdqu<avxmodesuffix>): Likewise.
8513 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8515         PR target/48288
8516         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8517         * config/pa/pa.md (iordi3): Use new predicate in expander.
8518         (iorsi3): Likewise.
8520 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8522         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8523         FUNCTION_VALUE_REGNO_P): Remove macros.
8524         * config/mips/mips-protos.h (mips_function_value): Remove.
8525         * config/mips/mips.c (mips_function_value): Rename to...
8526         (mips_function_value_1): ... this. Make static.  Handle receiving
8527         the function type in 'fn_decl_or_type' argument.
8528         (mips_function_value, mips_libcall_value,
8529         mips_function_value_regno_p): New function.
8530         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8531         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8533 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8535         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8536         and -mavx256-split-unaligned-store.
8537         (ix86_option_override_internal): Split 32-byte AVX unaligned
8538         load/store by default.
8539         (ix86_avx256_split_vector_move_misalign): New.
8540         (ix86_expand_vector_move_misalign): Use it.
8542         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8543         -mavx256-split-unaligned-store.
8545         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8546         256bit load/store.  Generate unaligned store on misaligned memory
8547         operand.
8548         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8549         256bit load/store.
8550         (*avx_movdqu<avxmodesuffix>): Likewise.
8552         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8553         -mavx256-split-unaligned-store.
8555 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8557         PR target/38598
8558         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8559         Update commentary.
8561 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8563         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8564         opno arguments with an expand_operand.  Use create_input_operand.
8565         (mips_prepare_builtin_target): Delete.
8566         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8567         functions.
8568         (mips_expand_builtin_direct): Use create_output_operand and
8569         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8570         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8571         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8573 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8575         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8576         function.
8577         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8579 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8581         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8582         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8583         basic blocks and call commit_edge_insertions directly.
8584         (fixup_abnormal_edges): Move from here to...
8585         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8586         on the edges and return whether some have actually been inserted.
8587         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8588         compensation code.
8590 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8592         PR rtl-optimization/48144
8593         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8594         (merge_expr_data): ... here.
8595         (av_set_intersect): Rename to av_set_code_motion_filter.
8596         Update all callers.  Call merge_history_vect when an expression
8597         is found in both sets.
8598         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8600 2011-03-26  Alan Modra  <amodra@gmail.com>
8602         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8603         cmodel medium addresses.
8604         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8605         64-bit gpr loads and stores.
8606         (rs6000_secondary_reload_ppc64): New function.
8607         * config/rs6000/rs6000-protos.h: Declare it.
8608         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8610 2011-03-26  Alan Modra  <amodra@gmail.com>
8612         PR target/47487
8613         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8614         GNU Go in traceback table.
8616 2011-03-25  Richard Henderson  <rth@redhat.com>
8618         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8619         if there are exactly 6 operands.
8620         (set_storage_via_setmem): Similarly.
8622 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8624         * collect2.c (write_c_file_stat): Handle backslash
8625         as right-hand directory separator.
8626         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8627         checking just for slash.
8628         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8629         instead of checking for trailing slash.
8630         * gcc.c (record_temp_file): Use filename_cmp instead
8631         of strcmp.
8632         (do_spec_1): Likewise.
8633         (replace_outfile_spec_function): Likewise.
8634         (is_directory): Use filename_ncmp instead of strncmp.
8635         (print_multilib_info): Likewise.
8636         * gcov.c (find_source): Use filename_cmp instead
8637         instead of strcmp.
8638         (make_gcov_file_name): Fix order of slash/backslash
8639         checks.
8640         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8641         (add_standard_paths): Likewise.
8642         * mips-tfile.c (saber_stop): Handle backslash.
8643         * prefix.c (update_path): Use filename_ncmp instead of
8644         strncmp.
8645         * profile.c (output_location): Use filename_cmp instead
8646         of strcmp.
8647         * read-md.c (handle_toplevel_file): Handle backslash.
8648         * tlink.c (frob_extension):  Likewise.
8649         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8650         strcmp.
8651         * tree-dump.c (dequeue_and_dump): Handle backslash.
8652         * tree.c (get_file_function_name): Likewise.
8653         * gengtype.c (read_input_list): Likewise.
8654         (get_file_realbasename): Likewise.
8655         (get_output_file_with_visibility): Use filename_cmp
8656         instead of strcmp.
8658 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8660         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8661         case to VFPv1.
8663 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8665         * fold-const.c (expr_location_or): New function.
8666         (fold_truth_not_expr): Call it.
8668 2011-03-25  Jeff Law  <law@redhat.com>
8670         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8671         va_end.
8672         * c-family/c-common.c (def_fn_type): Likewise.
8673         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8674         * emit-rtl.c (gen_rtvec): Likewise.
8675         * lto/lto-lang.c (def_fn_type): Likewise.
8677 2011-03-25  Richard Guenther  <rguenther@suse.de>
8679         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8680         also generate copies.
8681         (fini_copy_prop): Handle constant values properly.
8683 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8685         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8686         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8687         (hash_loc_operands, compare_loc_operands): Handle
8688         DW_OP_GNU_entry_value.
8690 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8692         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8693         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8694         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8695         comment and use macro TARGET_64BIT_MS_ABI instead.
8696         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8697         and change default behavior for 32-bit MS_ABI.
8698         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8699         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8700         32-bit, too.
8701         (ix86_cfun_abi): Likewise.
8702         (ix86_maybe_switch_abi): Adjust comment.
8703         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8704         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8705         instead of checking for SYSV_ABI.
8706         (ix86_nsaved_sseregs): Likewise.
8707         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8708         to 16 bytes.
8709         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8710         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8711         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8712         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8713         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8715 2011-03-25  Richard Guenther  <rguenther@suse.de>
8717         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8718         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8719         (verify_gimple): Remove.
8720         * tree-cfg.c (verify_gimple_call): Merge verification
8721         from verify_stmts.
8722         (verify_gimple_phi): Merge verification from verify_stmts.
8723         (verify_gimple_label): New function.
8724         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8725         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8726         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8727         (verify_stmts): Rename to verify_gimple_in_cfg.
8728         (verify_gimple_in_cfg): New function.
8729         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8730         * tree-ssa.c (verify_ssa): Likewise.
8731         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8733 2011-03-25  Richard Guenther  <rguenther@suse.de>
8735         * passes.c (init_optimization_passes): Add FRE pass after
8736         early SRA.
8738 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8739             Andrew Stubbs  <ams@codesourcery.com>
8741         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8742         for Cortex-A8.
8743         (arm_movdi_vfp_cortexa8): New pattern.
8744         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8745         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8746         instructions when tuning for Cortex-A8.  Set attribute "arch".
8747         * config/arm/arm.md: Move include arm-tune.md up a bit.
8748         (define_attr "arch"): Add "onlya8" and "nota8" values.
8749         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8751 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8753         PR bootstrap/48282
8754         Revert:
8755         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8757         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8758         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8759         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8760         * passes.c (init_optimization_passes): Move
8761         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8763 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8765         * c-typeck.c (comptypes_internal): Replace target
8766         hook call of comp_type_attributes by version in tree.c file.
8767         * gimple.c (gimple_types_compatible_p_1): Likewise.
8768         * tree-ssa.c (useless_type_conversion_p): Likewise.
8769         * tree.c (build_type_attribute_qual_variant): Likewise.
8770         (attribute_value_equal): New static helper function.
8771         (comp_type_attributes): New function.
8772         (merge_attributes): Use attribute_value_equal for comparison.
8773         (attribute_list_contained): Likewise.
8774         * tree.h (comp_type_attributes): New prototype.
8776 2011-03-25  Richard Guenther  <rguenther@suse.de>
8778         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8779         of complex types at -O0.
8780         (verify_gimple_assign_binary): Likewise.
8781         (verify_gimple_assign_ternary): Likewise.
8783 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8785         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8786         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8788 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8790         PR debug/48041
8791         * dwarf2out.c (output_abbrev_section): Only write table when
8792         abbrev_die_table_in_use > 1.
8794 2011-02-24  Richard Henderson  <rth@redhat.com>
8796         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8797         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8798         (alpha_expand_unaligned_load_words): Use extql.
8799         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8800         (emit_insxl): Handle all modes for consistency.
8802 2011-02-24  Richard Henderson  <rth@redhat.com>
8804         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8805         (alpha_expand_unaligned_load): Likewise.
8806         (alpha_expand_unaligned_store): Likewise.
8807         (alpha_expand_unaligned_load_words): Likewise.
8808         (alpha_expand_unaligned_store_words): Likewise.
8809         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8810         (alpha_split_lock_test_and_set_12): Likewise.
8811         (print_operand, alpha_fold_builtin_extxx): Likewise.
8812         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8813         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8814         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8815         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8816         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8817         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8818         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8819         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8820         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8821         (extwl, extll, extql): Similarly.
8822         (inswh, inslh, insqh): Similarly.
8823         (mskbl, mskwl, mskll, mskql): Similarly.
8824         (mskwh, msklh, mskqh): Similarly.
8826 2011-02-24  Richard Henderson  <rth@redhat.com>
8828         * config/alpha/alpha.md (attribute isa): Add er, ner.
8829         (attribute enabled): Handle them.
8830         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8832 2011-02-24  Richard Henderson  <rth@redhat.com>
8834         * config/alpha/alpha.md (attribute isa): Add vms.
8835         (attribute enabled): Handle it.
8836         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8837         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8838         (*movtf): Rename from *movtf_internal for consistency.
8839         (*movsi): Merge with *movsi_nt_vms.
8840         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8841         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8842         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8843         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8845 2011-02-24  Richard Henderson  <rth@redhat.com>
8847         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8848         (extendqisi2, extendhisi2): Likewise.
8849         (extendqidi2): Simplify BWX/non-BWX expansions.
8850         (extendhidi2): Similarly.
8852 2011-02-24  Richard Henderson  <rth@redhat.com>
8854         * config/alpha/alpha.md (attribute isa): New.
8855         (attribute enabled): New.
8856         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8857         (zero_extendqisi2, zero_extendqidi2): Similarly.
8858         (zero_extendhisi2, zero_extendhidi2): Similarly.
8859         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8861 2011-02-24  Richard Henderson  <rth@redhat.com>
8863         * config/alpha/predicates.md (input_operand): Revert last change;
8864         update comment to mention 32-bit VMS rather than Windows.
8866 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8868         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8869         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8870         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8871         * passes.c (init_optimization_passes): Move
8872         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8874 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8876         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8878 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8880         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8881         correctly.
8883 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8885         PR debug/48204
8886         * simplify-rtx.c (simplify_const_unary_operation): Call
8887         real_convert when changing mode class with FLOAT_EXTEND.
8889 2011-03-24  Nick Clifton  <nickc@redhat.com>
8891         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8892         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8893         * config/rx/rx.c (rx_option_override): Set align_jumps,
8894         align_loops and align_labels if not set by the user.
8895         (rx_align_for_label): New function.
8896         (rx_max_skip_for_label): New function.
8897         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8898         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8899         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8900         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8901         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8903 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8905         PR rtl-optimization/48263
8906         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8907         and original commutative_p handling.  Use maybe_gen_insn.
8909 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8911         * reload.c (find_reloads_subreg_address): Add address_reloaded
8912         parameter and return true there if the full address has been
8913         reloaded.
8914         (find_reloads_toplev): Pass address_reloaded flag.
8915         (find_reloads_address_1): Don't use address_reloaded parameter.
8917 2011-03-24  Jeff Law  <law@redhat.com>
8919         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8920         unused variable "ann".
8921         (remove_unused_locals): Likewise.
8923         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8924         statement.
8926         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8927         after it is freed.
8929 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8931         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8932         for invalid symbolic addresses.
8933         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8934         larl operands.
8936 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8938         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8939         the argument in calls to fold_truth_not_expr.
8941 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8943         * tree.c (record_node_allocation_statistics): New function.
8944         (make_node_stat, copy_node_stat, build_string): Call it.
8945         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8946         (build1_stat, build_omp_clause): Likewise.
8948 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8950         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8951         last commit.
8953 2011-03-24  Richard Guenther  <rguenther@suse.de>
8955         PR tree-optimization/48271
8956         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8957         blocks that still exist.
8959 2011-03-24  Richard Guenther  <rguenther@suse.de>
8961         PR tree-optimization/48270
8962         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8963         not free datarefs before ddrs.
8965 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8967         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8968         from the address built for a reference with variable offset.
8970 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8972         PR target/48237
8973         * config/i386/i386.md (*movdf_internal_rex64): Do not split
8974         alternatives that can be handled with movq or movabsq insn.
8975         (*movdf_internal): Disable for !TARGET_64BIT.
8976         (*movdf_internal_nointeger): Ditto.
8977         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8979 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8981         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8982         (FUNCTION_ARG_ADVANCE): Likewise.
8983         * tm.texi.in: Change references to them to hook references.
8984         * tm.texi: Regenerate.
8985         * targhooks.c (default_function_arg): Eliminate check for target macro.
8986         (default_function_incoming_arg): Likewise.
8987         (default_function_arg_advance): Likewise.
8988         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8989         (function_arg_advance): Likewise.
8990         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8992 2011-03-24  Richard Guenther  <rguenther@suse.de>
8994         PR middle-end/48269
8995         * tree-object-size.c (addr_object_size): Do not double-account
8996         for MEM_REF offsets.
8998 2011-03-24  Diego Novillo  <dnovillo@google.com>
9000         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9001         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9002         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9003         Update all users.
9004         (lto_input_string): Rename from input_string.  Make extern.
9005         Update all users.
9006         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9007         output_string_with_length.
9008         Output 0 to indicate a non-NULL string.  Update all callers to
9009         not emit 0.
9010         (lto_output_string): Rename from output_string.  Make extern.
9011         Update all users.
9012         (lto_output_decl_state_streams): Make extern.
9013         (lto_output_decl_state_refs): Make extern.
9014         * lto-streamer.h (lto_input_string): Declare.
9015         (lto_input_data_block): Declare.
9016         (lto_output_string): Declare.
9017         (lto_output_string_with_length): Declare.
9018         (lto_output_decl_state_streams): Declare.
9019         (lto_output_decl_state_refs): Declare.
9021 2011-03-24  Richard Guenther  <rguenther@suse.de>
9023         PR tree-optimization/46562
9024         * tree.c (build_invariant_address): New function.
9025         * tree.h (build_invariant_address): Declare.
9026         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9027         a renamed function moved ...
9028         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9029         Take valueization callback parameter.
9030         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9031         * gimple-fold.h: New file.
9032         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9033         (ccp_fold, fold_const_aggregate_ref,
9034         fold_ctor_reference, fold_nonarray_ctor_reference,
9035         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9036         get_base_constructor): Move ...
9037         * gimple-fold.c: ... here.
9038         (gimple_fold_stmt_to_constant_1): New function
9039         split out from ccp_fold.  Take a valueization callback parameter.
9040         Valueize all operands.
9041         (gimple_fold_stmt_to_constant): New wrapper function.
9042         (fold_const_aggregate_ref_1): New function split out from
9043         fold_const_aggregate_ref.  Take a valueization callback parameter.
9044         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9045         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9046         invariant POINTER_PLUS_EXPRs to invariant form.
9047         (vn_valueize): New function.
9048         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9049         * tree-vrp.c (vrp_valueize): New function.
9050         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9051         to fold statements to constants.
9052         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9053         function declarations.
9054         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9055         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9057 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9059         * config/h8300/predicates.md (jump_address_operand): Fix register
9060         mode check.
9062 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9064         * doc/invoke.texi (max-stores-to-sink): Document.
9065         * params.h (MAX_STORES_TO_SINK): Define.
9066         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9067         if either vectorization or if-conversion is disabled.
9068         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9069         tree-vect-data-refs.c vect_equal_offsets.
9070         (dr_equal_offsets_p): New function.
9071         (find_data_references_in_bb): Remove static.
9072         * tree-data-ref.h (find_data_references_in_bb): Declare.
9073         (dr_equal_offsets_p): Likewise.
9074         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9075         (vect_drs_dependent_in_basic_block): Update calls to
9076         vect_equal_offsets.
9077         (vect_check_interleaving): Likewise.
9078         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9079         (cond_if_else_store_replacement): Rename to...
9080         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9081         documentation.
9082         (cond_if_else_store_replacement): New function.
9083         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9084         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9086 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9088         PR target/46934
9089         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9090         to subtract lower bound instead of GEN_INT().
9092 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9094         PR other/48179
9095         PR other/48221
9096         PR other/48234
9097         * doc/extend.texi (Alignment): Move section to match order in TOC.
9098         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9099         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9101 2011-03-23  Jeff Law  <law@redhat.com>
9103         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9104         before removing the edge.
9106         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9107         it may have been freed by redirect_branch_edge or
9108         redirect_edge_succ_nodup.
9110 2011-03-23  Richard Guenther  <rguenther@suse.de>
9112         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9113         (check_va_list_escapes): Likewise.
9114         (check_all_va_list_escapes): Likewise.
9116 2011-03-23  Richard Guenther  <rguenther@suse.de>
9118         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9119         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9120         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9121         (alias.o): Likewise.
9122         (ipa-type-escape.o): Remove.
9123         (ipa-struct-reorg.o): Likewise.
9124         (GTFILES): Remove ipa-struct-reorg.c.
9125         * alias.c: Do not include ipa-type-escape.h.
9126         * tree-ssa-alias.c: Likewise.
9127         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9128         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9129         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9130         and ipa-type-escape passes.
9131         * tree-pass.h (pass_ipa_type_escape): Remove.
9132         (pass_ipa_struct_reorg): Likewise.
9133         * ipa-struct-reorg.h: Remove.
9134         * ipa-struct-reorg.c: Likewise.
9135         * ipa-type-escape.h: Likewise.
9136         * ipa-type-escape.c: Likewise.
9137         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9138         (--param struct-reorg-cold-struct-ratio): Likewise.
9139         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9140         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9141         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9143 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9145         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9146         cpu attribute value.
9147         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9148         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9149         * config/s390/s390.c (processor_flags_table): New constant array.
9150         (s390_handle_arch_option): Remove.
9151         (s390_handle_option): Remove s390_handle_arch_option invocations
9152         and OPT_mwarn_framesize_ handling.
9153         (s390_option_override): Remove s390_handle_arch_option invocation.
9154         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9155         warnings.
9156         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9157         * config/s390/s390.opt (s390_tune, s390_arch)
9158         (march=): Replace s390_arch_option enum and values with
9159         processor_type.  Set variable name to s390_arch.  Set
9160         initialization value.
9161         (mtune=): Replace s390_arch_option with processor_type.  Set
9162         variable name to s390_tune.  Set initialization value.
9164 2011-03-23  Julian Brown  <julian@codesourcery.com>
9166         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9167         accesses which are not naturally aligned.
9169 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9171         PR target/47553
9172         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9174 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9176         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9177         parameter from "int" to "enum insn_code".
9178         (expand_operand_type): New enum.
9179         (expand_operand): New structure.
9180         (create_expand_operand): New function.
9181         (create_fixed_operand, create_output_operand): Likewise
9182         (create_input_operand, create_convert_operand_to): Likewise.
9183         (create_convert_operand_from, create_address_operand): Likewise.
9184         (create_integer_operand): Likewise.
9185         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9186         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9187         (expand_insn, expand_jump_insn): Likewise.
9188         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9189         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9190         (expand_movstr, expand_builtin___clear_cache): Likewise.
9191         (expand_builtin_lock_release): Likewise.
9192         * explow.c (allocate_dynamic_stack_space): Likewise.
9193         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9194         and use the default handling in that case.
9195         * expmed.c (check_predicate_volatile_ok): Delete.
9196         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9197         (emit_cstore): Likewise.
9198         * expr.c (emit_block_move_via_movmem): Likewise.
9199         (set_storage_via_setmem, expand_assignment): Likewise.
9200         (emit_storent_insn, try_casesi): Likewise.
9201         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9202         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9203         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9204         (expand_twoval_unop, expand_twoval_binop): Likewise.
9205         (expand_unop_direct, emit_indirect_jump): Likewise.
9206         (emit_conditional_move, vector_compare_rtx): Likewise.
9207         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9208         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9209         (expand_sync_lock_test_and_set): Likewise.
9210         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9211         (emit_unop_insn): Likewise.
9212         (expand_copysign_absneg): Change icode to an insn_code.
9213         (create_convert_operand_from_type): New function.
9214         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9215         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9216         (expand_insn, expand_jump_insn): Likewise.
9217         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9218         than const_int_operand for operand 2.
9220 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9222         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9223         if possible.
9225 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9227         * emit-rtl.c (emit_pattern_before_noloc): New function.
9228         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9229         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9230         (emit_pattern_after_noloc): New function.
9231         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9232         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9234 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9236         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9237         (__ffsDI2): Likewise.
9239 2011-03-22  Richard Henderson  <rth@redhat.com>
9241         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9242         of !TARGET_ABI_OPEN_VMS.
9243         (alpha_trampoline_init, alpha_start_function): Likewise.
9244         (alpha_expand_epilogue, alpha_file_start): Likewise.
9245         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9246         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9247         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9248         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9249         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9251 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9253         * config/s390/s390-opts.h: New.
9254         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9255         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9256         s390_stack_guard): Remove.
9257         (s390_handle_arch_option): Return void.  Take enum
9258         s390_arch_option value instead of string and searching array.
9259         (s390_handle_option): Don't assert that global structures are in
9260         use.  Access variables via opts pointer.  Use error_at.  Don't use
9261         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9262         s390_handle_arch_option.
9263         (s390_option_override): Update call to s390_handle_arch_option.
9264         (s390_emit_prologue): Use %d format for s390_stack_size in
9265         diagnostic.  Use %wd for HOST_WIDE_INT.
9266         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9267         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9268         * config/s390/s390.opt (config/s390/s390-opts.h): New
9269         HeaderInclude entry.
9270         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9271         s390_arch_flags, s390_warn_framesize): New Variable entries.
9272         (s390_arch_option): New Enum and EnumValue entries.
9273         (march=): Use Enum instead of Var.
9274         (mstack-guard=, mstack-size=): Use UInteger and Var.
9275         (mtune=): Use Enum.
9277 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9279         * config/score/score.c (score_handle_option): Don't assert that
9280         global structures are in use.  Access target_flags via opts
9281         pointer.  Use value of -march= option to determine target_flags
9282         settings.
9283         * config/score/score.opt (march=): Use Enum.
9284         (score_arch): New Enum and EnumValue entries.
9286 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9288         * config/mep/mep.c (option_mtiny_specified): Remove.
9289         (mep_option_override): Move register handling for -mivc2 from
9290         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9291         instead of option_mtiny_specified.
9292         (mep_handle_option): Access target_flags via opts pointer.  Don't
9293         assert that global structures are in use.  Defer part of -mivc2
9294         handling and move it to mep_option_override.
9295         * config/mep/mep.opt (IVC2): New Mask entry.
9296         (mivc2): Use Var and Defer instead of Mask.
9298 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9300         * config/v850/v850-opts.h: New.
9301         * config/v850/v850.c (small_memory): Replace with
9302         small_memory_physical_max array.  Make that array static const.
9303         (v850_handle_memory_option): Take integer value of argument.  Take
9304         gcc_options pointer, option text and location.  Return void.
9305         Update for changes to small memory structures.
9306         (v850_handle_option): Access target_flags via opts pointer.  Don't
9307         assert that global structures are in use.  Update calls to
9308         v850_handle_memory_option.
9309         (v850_encode_data_area): Update references to small memory settings.
9310         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9311         (enum small_memory_type): Move to v850-opts.h.
9312         * config/v850/v850.opt (config/v850/v850-opts.h): New
9313         HeaderInclude entry.
9314         (small_memory_max): New Variable entry.
9315         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9316         (mtda, mzda): Likewise.
9318 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9320         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9321         pointer.  Don't assert that global structures are in use.
9323 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9325         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9326         via opts pointer.  Don't assert that global structures are in use.
9328 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9330         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9331         (munix=93): Use Var.
9332         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9333         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9334         * config/pa/pa-opts.h: New.
9335         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9336         (pa_handle_option): Don't assert that global structures are in
9337         use.  Access target_flags via opts pointer.  Don't handle
9338         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9339         OPT_munix_98 here.
9340         (pa_option_override): Handle deferred OPT_mfixed_range_.
9342 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9344         * config/mn10300/mn10300-opts.h: New.
9345         * config/mn10300/mn10300.c (mn10300_processor,
9346         mn10300_tune_string): Remove.
9347         (mn10300_handle_option): Don't assert that global structures are
9348         in use.  Access mn10300_processor via opts pointer.  Don't handle
9349         OPT_mtune_ here.
9350         * config/mn10300/mn10300.h (enum processor_type): Move to
9351         mn10300-opts.h.
9352         (mn10300_processor): Remove.
9353         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9354         HeaderInclude entry.
9355         (mn10300_processor): New Variable entry.
9356         (mtune=): Use Var.
9358 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9360         * config/microblaze/microblaze.c: Don't include opts.h.
9361         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9362         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9363         (mno-clearbss): Use Var and Warn.
9365 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9367         * config/m32r/m32r-opts.h: New.
9368         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9369         (m32r_handle_option): Don't assert that global structures are in
9370         use.  Access target_flags and m32r_cache_flush_func via opts
9371         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9372         OPT_mno_flush_trap here.
9373         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9374         include of m32r-opts.h.
9375         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9376         HeaderInclude entry.
9377         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9378         (mmodel=): Use Enum and Var.
9379         (m32r_model): New Enum and EnumValue entries.
9380         (mno-flush-trap): Use Var.
9381         (msdata=): Use Enum and Var.
9382         (m32r_sdata): New Enum and EnumValue entries.
9384 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9386         * config/m32c/m32c.c: Don't include opts.h.
9387         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9388         m32c_handle_option): Remove.
9389         (m32c_option_override): Check global_options_set.x_target_memregs
9390         instead of target_memregs_set.
9391         * config/m32c/m32c.h (target_memregs): Remove.
9392         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9393         variable.
9395 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9397         * config/iq2000/iq2000-opts.h: New.
9398         * config/iq2000/iq2000.c: Don't include opts.h.
9399         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9400         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9401         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9402         HeaderInclude entry.
9403         (iq2000_tune): New Variable entry.
9404         (march=): Add comment.  Use Enum.
9405         (iq2000_arch): New Enum and EnumValue entries.
9406         (mcpu=): Use Enum and Var.
9407         (iq2000_tune): New Enum and EnumValue entries.
9409 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9411         * config/ia64/ia64-opts.h: New.
9412         * config/ia64/ia64.c (ia64_tune): Remove.
9413         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9414         here.  Use error_at.
9415         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9416         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9417         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9418         HeaderInclude entry.
9419         (ia64_tune): New Variable entry.
9420         (mfixed-range=): Use Defer and Var.
9421         (mtune=): Use Enum and Var.
9422         (ia64_tune): New Enum and EnumValue entries.
9424 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9426         * config/frv/frv-opts.h: New.
9427         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9428         frv-opts.h.
9429         (frv_cpu_type): Remove.
9430         * config/frv/frv.c: Don't include opts.h.
9431         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9432         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9433         (frv_cpu_type): New Variable entry.
9434         (frv_cpu): New Enum and EnumValue entries.
9436 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9438         * config/cris/cris.c (cris_handle_option): Access target_flags via
9439         opts pointer.  Don't assert that global structures are in use.
9440         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9441         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9443 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9445         * config/bfin/bfin-opts.h: New.
9446         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9447         bfin_si_revision, bfin_workarounds): Remove.
9448         (bfin_cpus): Make static const.
9449         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9450         not bfin_lib_id_given.
9451         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9452         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9453         pointer. Use error_at.  Don't assert that global structures are in use.
9454         * config/bfin/bfin.h: Include bfin-opts.h.
9455         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9456         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9457         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9458         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9459         entries.
9461 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9463         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9464         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9465         or -msoft-float here.
9466         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9467         -msoft-float and -mhard-float.
9468         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9469         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9470         msoft-float.
9471         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9472         -msoft-float.
9473         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9474         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9475         not mhard-float.
9476         (LIBGCC_SPEC): Don't handle -msoft-float.
9477         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9478         -mhard-float.
9479         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9480         msoft-float.
9481         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9482         -mfloat-abi=*, not -msoft-float and -mhard-float.
9483         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9484         -msoft-float.
9485         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9486         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9487         mhard-float and msoft-float.
9488         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9489         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9490         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9491         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9492         mhard-float.
9493         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9494         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9495         msoft-float.
9496         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9497         not mhard-float.
9498         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9499         not msoft-float.
9501 2011-03-22  Richard Henderson  <rth@redhat.com>
9503         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9504         TARGET_ABI_WINDOWS_NT.
9505         (alpha_output_function_end_prologue): Likewise.
9506         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9507         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9508         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9509         (trap, *movsi_nt_vms): Likewise.
9510         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9511         (*tablejump_osf_nt_internal): Remove.
9512         * config/alpha/predicates.md (input_operand): Only test Pmode.
9514 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9516         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9517         via opts pointer.  Use error_at.  Don't assert that global
9518         structures are in use.
9520 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9522         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9523         (ix86_handle_option): Access ix86_isa_flags and
9524         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9525         global structures are in use.
9526         (ix86_function_specific_save, ix86_function_specific_restore):
9527         Update ix86_isa_flags_explicit field name.
9528         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9529         (ix86_isa_flags_explicit): Rename TargetSave entry to
9530         x_ix86_isa_flags_explicit.
9532 2011-03-22  Richard Henderson  <rth@redhat.com>
9534         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9535         (alpha_option_override, direct_return): Likewise.
9536         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9537         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9538         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9539         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9540         (alpha_expand_epilogue, alpha_end_function): Likewise.
9541         (alpha_init_libfuncs): Likewise.
9542         (struct machine_function): Remove unicosmk members.
9543         (print_operand) ['t']: Remove.
9544         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9545         unicosmk_output_module_name, unicosmk_output_common,
9546         current_section_align, unicosmk_output_text_section_asm_op,
9547         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9548         unicosmk_section_type_flags, unicosmk_unique_section,
9549         unicosmk_asm_named_section, unicosmk_insert_attributes,
9550         unicosmk_output_align, unicosmk_defer_case_vector,
9551         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9552         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9553         unicosmk_output_ssib, unicosmk_add_call_info_word,
9554         unicosmk_extern_head, unicosmk_output_default_externs,
9555         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9556         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9557         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9558         * config/alpha/alpha-protos.h: Update.
9559         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9560         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9561         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9562         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9563         (*mulsi_se, mulvsi3): Likewise.
9564         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9565         (*divmodsi_internal, call, call_value, realign): Likewise.
9566         (moddi3, umoddi3): Likewise; remove duplicate expander.
9567         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9568         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9569         (*movdi_nofix): Remove r/U alternative.
9570         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9571         * config/alpha/constraints.md ("U"): Remove.
9572         * config/alpha/predicates.md (call_operand"): Don't test
9573         TARGET_ABI_UNICOSMK.
9575 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9577         * target.def (handle_option): Take gcc_options and
9578         cl_decoded_option pointers and location_t.
9579         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9580         * doc/tm.texi: Regenerate.
9581         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9582         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9583         * lto-opts.c (lto_reissue_options): Generate option structure for
9584         targetm.handle_option call.
9585         * opts.c (target_handle_option): Update call to
9586         targetm.handle_option.  Remove assertions about values now passed
9587         down to hook.
9588         * targhooks.c (default_target_handle_option): New.
9589         * targhooks.h (default_target_handle_option): Declare.
9590         * config/alpha/alpha.c: Include opts.h.
9591         (alpha_handle_option): Update to new hook interface.
9592         * config/arm/arm.c: Include opts.h.
9593         (arm_handle_option): Update to new hook interface.
9594         * config/arm/t-arm (arm.o): Update dependencies.
9595         * config/bfin/bfin.c: Include opts.h.
9596         (bfin_handle_option): Update to new hook interface.
9597         * config/cris/cris.c: Include opts.h.
9598         (cris_handle_option): Update to new hook interface.
9599         * config/frv/frv.c: Include opts.h.
9600         (frv_handle_option): Update to new hook interface.
9601         * config/i386/i386.c: Include opts.h.
9602         (ix86_handle_option): Update to new hook interface.
9603         (ix86_valid_target_attribute_inner_p): Generate option structure
9604         for call to ix86_handle_option.
9605         * config/i386/t-i386 (i386.o): Update dependencies.
9606         * config/ia64/ia64.c: Include opts.h.
9607         (ia64_handle_option): Update to new hook interface.
9608         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9609         * config/iq2000/iq2000.c: Include opts.h.
9610         (iq2000_handle_option): Update to new hook interface.
9611         * config/m32c/m32c.c: Include opts.h.
9612         (m32c_handle_option): Update to new hook interface.
9613         * config/m32r/m32r.c: Include opts.h.
9614         (m32r_handle_option): Update to new hook interface.
9615         * config/m68k/m68k.c: Include opts.h.
9616         (m68k_handle_option): Update to new hook interface.
9617         * config/mep/mep.c: Include opts.h.
9618         (mep_handle_option): Update to new hook interface.
9619         * config/microblaze/microblaze.c: Include opts.h.
9620         (microblaze_handle_option): Update to new hook interface.
9621         * config/mips/mips.c: Include opts.h.
9622         (mips_handle_option): Update to new hook interface.
9623         * config/mn10300/mn10300.c: Include opts.h.
9624         (mn10300_handle_option): Update to new hook interface.
9625         * config/pa/pa.c: Include opts.h.
9626         (pa_handle_option): Update to new hook interface.
9627         * config/pdp11/pdp11.c: Include opts.h.
9628         (pdp11_handle_option): Update to new hook interface.
9629         * config/rs6000/rs6000.c: Include opts.h.
9630         (rs6000_handle_option): Update to new hook interface.
9631         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9632         * config/rx/rx.c: Include opts.h.
9633         (rx_handle_option): Update to new hook interface.
9634         * config/s390/s390.c: Include opts.h.
9635         (s390_handle_option): Update to new hook interface.
9636         * config/score/score.c: Include opts.h.
9637         (score_handle_option): Update to new hook interface.
9638         * config/sh/sh.c: Include opts.h.
9639         (sh_handle_option): Update to new hook interface.
9640         * config/sparc/sparc.c: Include opts.h.
9641         (sparc_handle_option): Update to new hook interface.
9642         * config/v850/v850.c: Include opts.h.
9643         (v850_handle_option): Update to new hook interface.
9645 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9647         * gcc.c (driver_unknown_option_callback): Only permit and save
9648         unknown -Wno- options.
9649         (driver_wrong_lang_callback): Save options directly instead of via
9650         driver_unknown_option_callback.
9652 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9654         * combine.c (simplify_set): Try harder to find the best CC mode when
9655         simplifying a nested COMPARE on the RHS.
9657 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9659         * config/alpha/gnu.h: Remove.
9660         * config/arc: Remove directory.
9661         * config/arm/netbsd.h: Remove.
9662         * config/arm/t-pe: Remove.
9663         * config/crx: Remove directory.
9664         * config/i386/netbsd.h: Remove.
9665         * config/m68hc11: Remove directory.
9666         * config/m68k/uclinux-oldabi.h: Remove.
9667         * config/mcore/mcore-pe.h: Remove.
9668         * config/mcore/t-mcore-pe: Remove.
9669         * config/netbsd-aout.h: Remove.
9670         * config/rs6000/gnu.h: Remove.
9671         * config/sh/sh-symbian.h: Remove.
9672         * config/sh/symbian-base.c: Remove.
9673         * config/sh/symbian-c.c: Remove.
9674         * config/sh/symbian-cxx.c: Remove.
9675         * config/sh/symbian-post.h: Remove.
9676         * config/sh/symbian-pre.h: Remove.
9677         * config/sh/t-symbian: Remove.
9678         * config/svr3.h: Remove.
9679         * config/vax/netbsd.h: Remove.
9680         * config.build: Don't handle i[34567]86-*-pe.
9681         * config.gcc: Remove handling of deprecations for most deprecated
9682         targets.
9683         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9684         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9685         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9686         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9687         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9688         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9689         Remove cases.
9690         * config.host: Don't handle i[34567]86-*-pe.
9691         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9692         (ASM_SPEC32): Don't handle -mcall-gnu.
9693         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9694         -mcall-gnu.
9695         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9696         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9697         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9698         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9699         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9700         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9701         conditional on SYMBIAN.
9702         * configure.ac: Don't handle powerpc*-*-gnu*.
9703         * configure: Regenerate.
9704         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9705         * doc/install-old.texi (m6811, m6812): Don't mention.
9706         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9707         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9708         (m68k-uclinuxoldabi): Don't mention.
9709         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9710         Remove.
9711         (-mcall-gnu): Remove.
9712         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9713         families): Remove constraint documentation.
9715 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9717         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9718         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9719         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9721 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9723         PR target/48226
9724         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9725         vector when peeking at the next token for vector, don't expand the
9726         keywords.
9728 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9730         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9731         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9732         * config/avr/avr.c (init_cumulative_args)
9733         (avr_function_arg_advance): Use it.
9734         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9735         sibcall epilogues.
9736         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9737         (avr_function_ok_for_sibcall): ...this new function.
9738         (avr_lookup_function_attribute1): New static Function.
9739         (avr_naked_function_p, interrupt_function_p)
9740         (signal_function_p, avr_OS_task_function_p)
9741         (avr_OS_main_function_p): Use it.
9742         * config/avr/avr.md ("sibcall", "sibcall_value")
9743         ("sibcall_epilogue"): New expander.
9744         ("*call_insn", "*call_value_insn"): New insn.
9745         ("call_insn", "call_value_insn"): Remove
9746         ("call", "call_value", "epilogue"): Change expander to handle
9747         sibling calls.
9749 2011-03-21  Nick Clifton  <nickc@redhat.com>
9751         * doc/invoke.texi (Overall Options): Move closing brace to end of
9752         options list.
9753         (Optimization Options): Add missing @gol.
9754         (Directory Options): Likewise.
9755         (i386 and x86-64 Options): Likewise.
9756         (RS6000 and PowerPC Options): Likewise.
9757         (i386 and x86-64 Windows Options): Likewise.
9758         (V850 Options): Add text missing from descriptions.
9760 2011-03-22  Richard Henderson  <rth@redhat.com>
9762         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9763         (avr_incoming_return_addr_rtx): New.
9764         (emit_push_byte): New.
9765         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9766         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9767         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9768         (emit_pop_byte): New.
9769         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9770         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9771         (INCOMING_RETURN_ADDR_RTX): New.
9772         (INCOMING_FRAME_SP_OFFSET): New.
9773         (ARG_POINTER_CFA_OFFSET): New.
9774         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9775         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9776         (pophi): Remove.
9778         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9780 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9782         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9783         (FUNCTION_ARG_ADVANCE): Likewise.
9784         * tm.texi.in: Change references to them to hook references.
9785         * tm.texi: Regenerate.
9786         * targhooks.c (default_function_arg): Eliminate check for target
9787         macro.
9788         (default_function_incoming_arg): Likewise.
9789         (default_function_arg_advance): Likewise.
9790         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9791         (function_arg_advance): Likewise.
9792         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9794 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9796         * tree.c (build_call_1): New function.
9797         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9799 2011-03-22  Richard Guenther  <rguenther@suse.de>
9801         PR tree-optimization/48228
9802         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9803         for single-arg PHIs.
9805 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9807         PR rtl-optimization/48143
9808         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9809         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9810         sse2_cvtps2pd): Likewise.
9812 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9814         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9816 2011-03-22  Richard Guenther  <rguenther@suse.de>
9818         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9819         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9820         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9821         and REALIGN_LOAD_EXPR.
9822         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9823         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9824         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9825         DOT_PROD_EXPR case ...
9826         (expand_expr_real_2): ... here.
9827         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9828         and REALIGN_LOAD_EXPR.
9829         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9830         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9831         (vect_create_epilog_for_reduction): Likewise.
9832         (vectorizable_reduction): Likewise.
9833         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9834         * tree-vect-stmts.c (vectorizable_load): Likewise.
9836 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9838         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9840 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9842         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9843         handling for PLTOFF/GOTOFF.
9845 2011-03-22  Nick Clifton  <nickc@redhat.com>
9847         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9848         trailing backslash from the end of the macro definition.
9850 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9852         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9853         and PLT unspecs.
9855 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9857         * expr.h (prepare_operand): Move to...
9858         * optabs.h (prepare_operand): ...here and change the insn code
9859         parameter from "int" to "enum insn_code".
9860         (insn_operand_matches): Declare.
9861         * expr.c (init_expr_target): Use insn_operand_matches.
9862         (compress_float_constant): Likewise.
9863         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9864         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9865         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9866         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9867         Likewise.
9868         (gen_cond_trap): Likewise.
9869         (prepare_operand): Likewise.  Change icode to an insn_code.
9870         (insn_operand_matches): New function.
9871         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9872         * reload1.c (gen_reload): Likewise.
9873         * targhooks.c (default_secondary_reload): Likewise.
9875 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9877         * config/alpha/alpha.md (unspec): New define_c_enum.
9878         (unspecv): Ditto.
9880 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9882         PR debug/48214
9883         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9884         between a call and its CALL_ARG_LOCATION note.
9886 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9888         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9890 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9892         PR c/42544
9893         PR c/48197
9894         * c-common.c (shorten_compare): If primopN is first sign-extended
9895         to opN and then zero-extended to result type, set primopN to opN.
9897 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9899         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9900         for barrier handlers.
9902 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9904         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9905         UNSPEC constants to be in the unspec enumeration, and redefine
9906         all UNSPECV constants to be in the unspecv enumeration, so that
9907         dumps print which unspec/unspec_volatile this is.
9908         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9909         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9910         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9911         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9912         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9914         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9915         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9916         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9917         * config/rs6000/sync.md (isync, lwsync): Ditto.
9919 2011-03-21  Richard Guenther  <rguenther@suse.de>
9921         * params.def (lto-min-partition): Fix typo.
9923 2011-03-21  Richard Guenther  <rguenther@suse.de>
9925         PR c/47939
9926         * c-decl.c (grokdeclarator): Drop to the main variant only
9927         for array types.  Drop flag_gen_aux_info check.
9929 2011-03-21  Richard Guenther  <rguenther@suse.de>
9931         PR translation/47911
9932         * params.def (lto-partitions): Fix typo.
9933         (lto-min-partition): Fix wording.
9935 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9937         * config/rs6000/t-freebsd: Remove duplication from file.
9939 2011-03-21  Richard Guenther  <rguenther@suse.de>
9941         PR middle-end/47661
9942         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9944 2011-03-21  Richard Guenther  <rguenther@suse.de>
9946         PR lto/48210
9947         * params.def (lto-partitions): Require at least 1 partition.
9949 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9951         * gthr-solaris.h: Remove.
9952         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9953         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9954         (LIB_SPEC): Likewise.
9955         * config/sol2.opt (threads): Remove.
9956         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
9957         (sparc*-*-solaris2*): Likewise.
9958         * configure.ac (enable_threads): Enable solaris support.
9959         * configure: Regenerate.
9960         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
9961         * doc/install.texi (Configuration, --enable-threads=lib): Remove
9962         solaris.
9964 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9966         * config.gcc: Obsolete *-*-solaris2.8*.
9967         * doc/install.texi (Specific, *-*-solaris2*): Document it.
9969 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9971         PR bootstrap/48135
9972         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9973         reference.  Solaris 8 perl works.
9975 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9977         PR bootstrap/48135
9978         * doc/install.texi (Prerequisites): Move jar etc. up.
9979         Explain support library version requirements.
9981 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9983         PR bootstrap/48135
9984         * doc/install.texi (Prerequisites): Move Perl to build
9985         requirements.  Always necessary on Solaris 2 with Sun ld.
9987 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9989         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9990         binutils 2.21.
9991         (Specific, i?86-*-solaris2.[89]): Likewise.
9992         (Specific, i?86-*-solaris2.10): Likewise.
9993         (Specific, mips-sgi-irix6): Likewise.
9994         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9995         Update for binutils 2.21.
9997 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9999         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10000         Allow -fuse-linker-plugin for non-default plugin linker.
10001         * configure: Regenerate.
10003 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10005         PR bootstrap/48167
10006         * gengtype.c (files_rules): Added rule for cp/parser.h.
10008 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10010         PR target/48213
10011         * config/s390/s390.c (s390_delegitimize_address): Don't call
10012         lowpart_subreg if orig_x has BLKmode.
10014 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10016         PR target/12171
10017         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10018         * tree.h (attribute_spec): Add new member affects_type_identity.
10019         * attribs.c (empty_attribute_table): Adjust attribute_spec
10020         initializers.
10021         * config/alpha/alpha.c: Likewise.
10022         * config/arc/arc.c: Likewise.
10023         * config/arm/arm.c: Likewise.
10024         * config/avr/avr.c: Likewise.
10025         * config/bfin/bfin.c: Likewise.
10026         * config/crx/crx.c: Likewise.
10027         * config/darwin.h: Likewise.
10028         * config/h8300/h8300.c: Likewise.
10029         * config/i386/cygming.h: Likewise.
10030         * config/i386/i386.c: Likewise.
10031         * config/ia64/ia64.c: Likewise.
10032         * config/m32c/m32c.c: Likewise.
10033         * config/m32r/m32r.c: Likewise.
10034         * config/m68hc11/m68hc11.c: Likewise.
10035         * config/m68k/m68k.c: Likewise.
10036         * config/mcore/mcore.c: Likewise.
10037         * config/mep/mep.c: Likewise.
10038         * config/microblaze/microblaze.c: Likewise.
10039         * config/mips/mips.c: Likewise.
10040         * config/rs6000/rs6000.c: Likewise.
10041         * config/rx/rx.c: Likewise.
10042         * config/sh/sh.c: Likewise.
10043         * config/sol2.h: Likewise.
10044         * config/sparc/sparc.c: Likewise.
10045         * config/spu/spu.c: Likewise.
10046         * config/stormy16/stormy16.c: Likewise.
10047         * config/v850/v850.c: Likewise.
10049 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10051         * simplify-rtx.c (simplify_binary_operation_1): Handle
10052         (xor (and A B) C) case when B and C are both constants.
10054 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10056         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10058 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10060         PR bootstrap/48168
10061         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10063 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10065         PR rtl-optimization/48156
10066         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10067         assume df and df_lr are not NULL.
10069 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10071         PR debug/48023
10072         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10073         between a call and its CALL_ARG_LOCATION note.
10075 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10077         PR debug/48178
10078         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10079         between a call and its corresponding CALL_ARG_LOCATION note.
10081 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10083         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10084         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10085         * haifa-sched.c (setup_ref_regs): Ditto.
10086         * caller-save.c (add_used_regs_1): Ditto.
10087         * dse.c (look_for_hardregs): Ditto.
10088         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10089         * sched-rgn.c (check_live_1): Ditto.
10091 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10093         * c-decl.c (diagnose_mismatched_decls): Give an error for
10094         redefining a typedef with variably modified type.
10096 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10098         * c-decl.c (grokfield): Don't allow typedefs for structures or
10099         unions with no tag by default.
10100         * doc/extend.texi (Unnamed Fields): Update.
10102 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10104         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10105         Rewrite using indirect functions.
10106         (lwp_slwpcb): Ditto.
10107         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10108         (avx_vinsertf128<mode>): Ditto.
10110 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10112         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10113         unspecs.
10115 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10117         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10118         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10120 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10122         PR rtl-optimization/48170
10123         * gcse.c (hoist_code): Remove bogus asserts.
10125 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10127         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10128         computation for prologue/epilogue.
10130 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10132         * Makefile.in (check-consistency): Remove.
10134 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10136         PR debug/48176
10137         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10138         arange_table_in_use is 0, but either text_section_used or
10139         cold_text_section_used is true.  Don't call it if
10140         !info_section_emitted.
10142 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10144         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10145         FUNCTION_VALUE_REGNO_P): Remove.
10146         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10147         Remove.
10148         * config/avr/avr.c (avr_ret_register): Make static inline.
10149         (avr_function_value_regno_p): New function.
10150         (avr_libcall_value): Make static. Add 'func' argument.
10151         (avr_function_value): Make static. Rename 'func' argument to
10152         'fn_decl_or_type', forward it to avr_libcall_value. Call
10153         avr_ret_register function instead of RET_REGISTER macro.
10154         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10156 2011-03-18  Jason Merrill  <jason@redhat.com>
10158         PR c++/23372
10159         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10161 2011-03-18  Richard Guenther  <rguenther@suse.de>
10163         * doc/install.texi (--enable-gold): Remove.
10164         (--with-plugin-ld): Document.
10165         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10167 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10169         PR middle-end/47790
10170         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10171         again after expansion changes.
10173 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10175         * combine.c (try_combine): Do simplification only call of
10176         subst() on i2 even when i1 is present. Update comments.
10178 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10180         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10181         and UNSPEC_PCREL_SYMOFF.
10183 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10185         * config/s390/s390.md: Use define_c_enum for the unspec constant
10186         definitions.
10188 2011-03-18  Richard Henderson  <rth@redhat.com>
10189             Jakub Jelinek  <jakub@redhat.com>
10191         PR bootstrap/48161
10192         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10193         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10195 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10197         PR middle-end/47725
10198         * combine.c (cant_combine_insn_p): Don't check zero/sign
10199         extended hard registers.
10201 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10203         PR middle-end/47725
10204         * combine.c (cant_combine_insn_p): Check zero/sign extended
10205         hard registers.
10207 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10209         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10210         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10211         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10212         Change return type to bool.
10213         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10215 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10217         PR debug/48163
10218         * var-tracking.c (prepare_call_arguments): If CALL target
10219         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10220         pc instead of looking it up using cselib_lookup and use
10221         Pmode for it if x has VOIDmode.
10222         * dwarf2out.c (gen_subprogram_die): If also both first and
10223         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10225         PR debug/48163
10226         * function.c (assign_parms): For data.passed_pointer parms
10227         use MEM of data.entry_parm instead of data.entry_parm itself
10228         as DECL_INCOMING_RTL.
10229         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10230         also when passed and declared mode is the same, DECL_RTL
10231         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10232         a MEM too.
10234 2011-03-16  Jeff Law  <law@redhat.com>
10236         PR rtl-optimization/37273
10237         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10238         handle them like argument loads from stack slots.  Do not double
10239         count memory for memory constants and argument loads from stack slots.
10241 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10243         PR debug/48160
10244         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10246 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10248         PR target/48171
10249         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10251 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10253         PR bootstrap/48153
10254         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10255         if dwarf_strict.
10256         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10257         Clear call_arg_locations and call_arg_loc_last always.
10259         PR middle-end/48152
10260         * var-tracking.c (prepare_call_arguments): If argument needs to be
10261         passed by reference, adjust argtype and mode.
10263 2011-03-17  Richard Guenther  <rguenther@suse.de>
10265         PR middle-end/48134
10266         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10267         a value make sure to fold the statement.
10269 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10271         PR target/43872
10272         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10273         return condition with !cfun->calls_alloca.
10275 2011-03-17  Richard Guenther  <rguenther@suse.de>
10277         PR bootstrap/48148
10278         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10279         origin for decls in other ltrans units.
10280         (input_varpool_node): Likewise.
10282 2011-03-17  Richard Guenther  <rguenther@suse.de>
10284         PR middle-end/48165
10285         * tree-object-size.c (compute_object_offset): Properly return
10286         the offset operand of MEM_REFs as sizetype.
10288 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10290         PR rtl-optimization/48141
10291         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10292         * dse.c: Include params.h.
10293         (active_local_stores_len): New variable.
10294         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10295         to NULL.
10296         (record_store, check_mem_read_rtx): Decrease it when removing
10297         from the chain.
10298         (scan_insn): Likewise.  Increase it when adding to chain, if it
10299         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10300         set active_local_stores to NULL before the addition.
10301         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10303         PR rtl-optimization/48141
10304         * dse.c (record_store): If no positions are needed in an insn
10305         that cannot be deleted, at least unchain it from active_local_stores.
10307 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10309         PR debug/47510
10310         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10311         (lookup_type_die_strip_naming_typedef): ... here.
10312         (get_context_die): Use it.
10313         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10314         the anonymous struct named by the naming typedef.
10316 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10318         PR target/48154
10319         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10320         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10322 2011-03-16  Jeff Law  <law@redhat.com>
10324         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10325         check for operands of conditional.  Allow type to be a pointer.
10327 2011-03-16  Richard Guenther  <rguenther@suse.de>
10329         PR tree-optimization/48149
10330         * fold-const.c (fold_binary_loc): Fold
10331         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10333 2011-03-16  Richard Guenther  <rguenther@suse.de>
10335         PR tree-optimization/26134
10336         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10337         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10338         (non_rewritable_mem_ref_base): Handle complex type component
10339         accesses, constrain offsets for vector and complex extracts
10340         more properly.
10342 2011-03-16  Richard Guenther  <rguenther@suse.de>
10344         PR tree-optimization/48146
10345         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10346         operands avoiding the need for renaming.
10348 2011-03-16  Richard Guenther  <rguenther@suse.de>
10350         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10351         constant folding.  Move MEM_REF canonicalization first.
10352         Rely on fold_const_aggregate_ref for initializer folding.
10353         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10355 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10357         PR middle-end/48136
10358         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10359         arg0/arg1 or their arguments are always fold converted to matching
10360         types.
10362         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10363         to nargs.
10365 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10367         PR lto/46944
10368         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10369         Handle in-tree gold.
10370         (ld_vers): Extract binutils version for gold.
10371         (gcc_cv_ld_hidden): Handle gold here.
10372         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10373         * configure: Regenerate.
10374         * config.in: Regenerate.
10375         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10376         -fuse-linker-plugin otherwise.
10377         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10378         (LINK_COMMAND_SPEC): Use it.
10379         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10381 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10383         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10384         * calls.c: Remove debug.h include.
10385         (emit_call_1): Don't call virtual_call_token debug hook.
10386         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10387         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10388         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10389         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10390         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10391         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10392         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10393         dwarf2out_virtual_call): Remove.
10394         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10395         copy_call_info and virtual_call hooks.
10396         (dwarf2out_init): Don't initialize vcall_insn_table,
10397         debug_dcall_section and debug_vcall_section.
10398         (prune_unused_types): Don't mark nodes from dcall_table.
10399         (dwarf2out_finish): Don't output dcall or vcall tables.
10400         * final.c (final_scan_insn): Don't call direct_call or
10401         virtual_call debug hooks.
10402         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10403         virtual_call_token, copy_call_info and virtual_call hooks.
10404         (debug_nothing_uid): Remove prototype.
10405         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10406         copy_call_info and virtual_call hooks.
10407         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10408         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10409         * debug.c (do_nothing_debug_hooks): Likewise.
10410         (debug_nothing_uid): Remove.
10411         * doc/invoke.texi (-fenable-icf-debug): Remove.
10412         * common.opt (-fenable-icf-debug): Likewise.
10414         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10415         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10416         call's MEM.  Handle functions returning aggregate through a hidden
10417         first pointer.  For virtual calls add clobbered pc to call arguments
10418         chain.
10419         * dwarf2out.c (gen_subprogram_die): Emit
10420         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10421         can't be emitted.
10423         PR debug/45882
10424         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10425         * rtl.h (ENTRY_VALUE_EXP): Define.
10426         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10427         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10428         * print-rtl.c (print_rtx): Likewise.
10429         * gengtype.c (adjust_field_rtx_def): Likewise.
10430         * var-tracking.c (vt_add_function_parameter): Adjust
10431         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10432         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10433         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10434         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10435         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10437         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10438         Call var_location debug hook even on CALL_INSNs.
10439         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10440         * rtl.def (ENTRY_VALUE): New.
10441         * dwarf2out.c: Include cfglayout.h.
10442         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10443         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10444         (struct call_arg_loc_node): New type.
10445         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10446         tail_call_site_count): New variables.
10447         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10448         DW_TAG_GNU_call_site_parameter.
10449         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10450         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10451         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10452         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10453         and DW_AT_GNU_all_source_call_sites.
10454         (mem_loc_descriptor): Handle ENTRY_VALUE.
10455         (add_src_coords_attributes): Don't add enything if
10456         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10457         (dwarf2out_abstract_function): Save and clear call_arg_location,
10458         call_site_count and tail_call_site_count around dwarf2out_decl call.
10459         (gen_call_site_die): New function.
10460         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10461         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10462         (dwarf2out_function_decl): Clear call_arg_locations,
10463         call_arg_loc_last, set call_site_count and tail_call_site_count
10464         to -1 and free block_map.
10465         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10466         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10467         followed by any real instructions.
10468         (dwarf2out_begin_function): Set call_site_count and
10469         tail_call_site_count to 0.
10470         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10471         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10472         attempt to force a DIE for it and worst case remove the attribute.
10473         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10474         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10475         the decl itself.
10476         * var-tracking.c: Include tm_p.h.
10477         (vt_stack_adjustments): For calls call note_register_arguments.
10478         (argument_reg_set): New variable.
10479         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10480         ensure the VALUE is resolved.
10481         (call_arguments): New variable.
10482         (prepare_call_arguments): New function.
10483         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10484         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10485         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10486         always use the best expression.
10487         (vt_expand_loc): Add ignore_cur_loc argument.
10488         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10489         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10490         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10491         note for all calls.
10492         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10493         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10494         argument.  Don't call cselib_preserve_only_values and
10495         cselib_reset_table.
10496         (note_register_arguments): New function.
10497         (vt_initialize): Compute argument_reg_set.  Call
10498         vt_add_function_parameters before processing basic blocks instead of
10499         afterwards.  For calls call prepare_call_arguments before calling
10500         cselib_process_insn.
10501         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10502         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10503         (var-tracking.o): Depend on $(TM_P_H).
10504         * cfglayout.h (insn_scope): New prototype.
10505         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10506         * cfglayout.c (insn_scope): No longer static.
10507         * insn-notes.def (CALL_ARG_LOCATION): New.
10508         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10509         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10510         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10511         nothing for DECL_EXTERNAL BLOCK_VARS.
10513 2011-03-16  Alan Modra  <amodra@gmail.com>
10515         PR target/45844
10516         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10517         create invalid offset address for vsx splat insn.
10518         * config/rs6000/predicates.md (splat_input_operand): New.
10519         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10521 2011-03-15  Xinliang David Li  <davidxl@google.com>
10523         PR c/47837
10524         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10525         (normalize_preds): New function.
10526         (is_use_properly_guarded): Normalize def predicates.
10528 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10530         PR target/46788
10531         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10532         in the output template.
10534 2011-03-15  Richard Guenther  <rguenther@suse.de>
10536         PR middle-end/47650
10537         * tree-pretty-print.c (dump_function_declaration): Properly
10538         dump unprototyped and varargs function types.
10540 2011-03-15  Richard Guenther  <rguenther@suse.de>
10542         PR tree-optimization/13954
10543         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10544         and friends.
10546 2011-03-15  Richard Guenther  <rguenther@suse.de>
10548         PR tree-optimization/48037
10549         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10550         selects into BIT_FIELD_REFs.
10551         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10552         vector select.
10554 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10556         PR tree-optimization/48129
10557         * builtins.c (fold_builtin_snprintf): Convert to type of
10558         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10559         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10561 2011-03-15  Richard Guenther  <rguenther@suse.de>
10563         PR tree-optimization/41490
10564         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10565         value but with VUSE.
10566         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10567         return statements.
10568         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10569         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10570         * tree-tailcall.c (find_tail_calls): Ignore returns.
10572 2011-03-15  Richard Guenther  <rguenther@suse.de>
10574         PR middle-end/48031
10575         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10576         or variable-indexed array accesses when in gimple form.
10578 2011-03-15  Richard Guenther  <rguenther@suse.de>
10580         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10582 2011-03-15  Alan Modra  <amodra@gmail.com>
10584         PR target/48032
10585         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10586         presume symbol_refs without a symbol_ref_decl are suitably
10587         aligned, nor other trees we may see here.  Handle anchor symbols.
10588         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10589         Check cmodel=medium addresses.  Adjust all calls.
10590         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10591         creating cmodel=medium optimized access to locals.
10592         * config/rs6000/constraints.md (R): Pass QImode to
10593         legitimate_constant_pool_address_p.
10594         * config/rs6000/predicates.md (input_operand): Pass mode to
10595         legitimate_constant_pool_address_p.
10596         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10597         Update prototype.
10599 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10601         PR target/48053
10602         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10603         64-bit constants being loaded into registers other than GPRs such
10604         as loading 0 into a VSX register.
10606 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10608         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10610 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10612         PR middle-end/47917
10613         * builtins.c (fold_builtin_snprintf): New function.
10614         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10615         (fold_builtin_4): Likewise.
10617         PR middle-end/38878
10618         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10619         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10620         and C - X == X also strip nops from +/-/p+ operand.
10621         When optimizing -X == C, fold C to arg0's type.
10623         PR debug/47946
10624         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10625         emit it as add_AT_int instead of add_AT_unsigned.
10627 2011-03-14  Tom Tromey  <tromey@redhat.com>
10629         * unwind-dw2.c: Include sys/sdt.h if it exists.
10630         (_Unwind_DebugHook): Use STAP_PROBE2.
10631         * config.in, configure: Rebuild.
10632         * configure.ac: Check for sys/sdt.h.
10634 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10636         * config/i386/i386.md (ROUND_FLOOR): New constant.
10637         (ROUND_CEIL): Ditto.
10638         (ROUND_TRUNC): Ditto.
10639         (ROUND_MXCSR): Ditto.
10640         (ROUND_NO_EXC): Ditto.
10641         (rint<mode>2): Use new defines instead of numerical constants.
10642         (floor<mode>2): Ditto.
10643         (ceil<mode>2): Ditto.
10644         (btrunc<mode>2): Ditto.
10645         * config/i386/i386-builtin-types.def: Define ROUND function type
10646         aliases.
10647         * config/i386/i386.c (enum ix86_builtins): Add
10648         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10649         (struct builtin_description): Add
10650         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10651         (ix86_expand_sse_round): New static function.
10652         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10653         function types.
10654         (ix86_builtin_vectorized_function): Handle
10655         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10657 2011-03-14  Tom Tromey  <tromey@redhat.com>
10659         * c-parser.c (c_parser_asm_string_literal): Clear
10660         warn_overlength_strings.
10662 2011-03-14  Tom Tromey  <tromey@redhat.com>
10664         * c-parser.c (disable_extension_diagnostics): Save
10665         warn_overlength_strings.
10666         (restore_extension_diagnostics): Restore warn_overlength_strings.
10668 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10670         * BASE-VER: Change to 4.7.0.
10672 2011-03-14  Richard Guenther  <rguenther@suse.de>
10674         PR middle-end/48098
10675         * tree.c (build_vector_from_val): Adjust assert to requirements
10676         and reality.
10678 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10680         PR bootstrap/48102
10681         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10683 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10685         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10686         terms of target_flags_explicit. Adjust copyright year.
10688         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10689         * config/rs6000/t-freebsd: New file. Add override for
10690         LIB2FUNCS_EXTRA.
10692 2011-03-13  Chris Demetriou  <cgd@google.com>
10694         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10695         (-fno-diagnostics-show-option): this, to reflect current default.
10696         (-Werror=): Update text about -fno-diagnostics-show-option.
10698 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10700         PR target/48053
10701         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10702         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10703         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10704         mode is not V2DImode or V2DFmode.
10705         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10706         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10707         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10708         registers to 0.
10709         (movdi_internal64): Likewise.
10711 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10713         PR tree-optimization/47127
10714         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10715         parameter.
10716         (set_cloog_options): Same.
10717         (scop_to_clast): Same.
10718         (print_clast_stmt): Do not call cloog_state_malloc and
10719         cloog_state_free.
10720         (print_generated_program): Same.
10721         (gloog): Same.
10722         * graphite-clast-to-gimple.h (cloog_state): Declared.
10723         (scop_to_clast): Adjust declaration.
10724         * graphite.c (cloog_state): Defined here.
10725         (graphite_initialize): Call cloog_state_malloc.
10726         (graphite_finalize): Call cloog_state_free.
10728 2011-03-11  Jason Merrill  <jason@redhat.com>
10730         * attribs.c (lookup_attribute_spec): Take const_tree.
10731         * tree.h: Adjust.
10733 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10735         * config/sparc/sparc.c (sparc_option_override): Use
10736         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10738 2011-03-11  Richard Guenther  <rguenther@suse.de>
10740         PR tree-optimization/48067
10741         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10742         multiplication result will be only used once on the target
10743         stmt.
10745 2011-03-11  Richard Guenther  <rguenther@suse.de>
10747         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10749 2011-03-11  Richard Guenther  <rguenther@suse.de>
10751         PR lto/48073
10752         * tree.c (find_decls_types_r): Do not walk types only reachable
10753         from IDENTIFIER_NODEs.
10755 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10757         PR middle-end/48044
10758         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10759         all vnode->force_output nodes as needed.
10761 2011-03-11  Jason Merrill  <jason@redhat.com>
10763         PR c++/48069
10764         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10765         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10767 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10769         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10770         cgraph_node.
10772 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10774         PR tree-optimization/48063
10775         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10776         inline functions called once if !tree_can_inline_p (node->callers).
10778 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10780         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10781         extra_objs.
10782         * config/score/score3.c: Delete.
10783         * config/score/score3.h: Delete.
10784         * config/score/mul-div.S: Delete.
10785         * config/score/sfp-machine.h: Add new file.
10786         * config/score/constraints.md: Add new file.
10787         * config/score/t-score-softfp: Add new file.
10788         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10789         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10790         (score7_extra_constraint): Delete.
10791         (score7_option_override): Remove unused code.
10792         * config/score/score.c: Remove score3 and score5 define and code.
10793         * config/score/score.h: Remove score3 and score5 define and code.
10794         * config/score/score.md: Remove score3 template and unusual insn.
10795         * config/score/score.opt: Remove score3 and score5 options.
10797 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10799         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10800         when _HPUX_SOURCE is defined.
10801         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10803 2011-03-10  Jason Merrill  <jason@redhat.com>
10805         PR c++/48029
10806         * stor-layout.c (layout_type): Don't set structural equality
10807         on arrays of incomplete type.
10808         * tree.c (type_hash_eq): Handle comparing them properly.
10810 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10812         PR debug/48043
10813         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10814         result mode matches original rtl mode.
10816 2011-03-10  Nick Clifton  <nickc@redhat.com>
10818         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10819         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10821 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10823         PR rtl-optimization/47866
10824         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10825         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10826         if target wasn't scalar.
10827         * function.c (assign_stack_temp_for_type): Assert that neither
10828         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10829         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10830         macro.
10831         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10833 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10835         * config/s390/s390-protos.h (s390_label_align): New prototype.
10836         * config/s390/s390.c (s390_label_align): New function.
10837         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10839 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10841         PR target/47755
10842         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10843         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10844         (output_vec_const_move): Ditto.
10846 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10848         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10849         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10850         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10851         Change 'rclass' argument and result type to reg_class_t.
10852         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10854 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10856         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10857         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10858         (TARGET_MEMORY_MOVE_COST): Define.
10859         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10861 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10863         PR debug/47881
10864         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10865         removed anything.
10867         PR tree-optimization/48022
10868         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10869         for EQ/NE_EXPR.
10871 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10873         PR debug/47991
10874         * var-tracking.c (find_use_val): Return NULL for
10875         cui->sets && cui->store_p BLKmode MEMs.
10877 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10879         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10880         Remove.
10881         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10882         xstormy16_print_operand_address): Remove.
10883         * config/stormy16/stormy16.c (xstormy16_print_operand,
10884         xstormy16_print_operand_address): Make static.
10885         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10887 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10889         PR target/47862
10890         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10891         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10892         before definition.
10894 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10896         PR bootstrap/48000
10897         * cfgloopmanip.c (fix_bb_placements): Return immediately
10898         if FROM is BASE_LOOP's header.
10900 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10902         * gimplify.c (gimplify_function_tree): Fix building calls
10903         to __builtin_return_address.
10905 2011-03-07  Alan Modra  <amodra@gmail.com>
10907         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10908         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10909         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10910         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10911         return_mode args.
10912         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10913         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10914         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10915         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10916         * config/rs6000/rs6000.c
10917         (rs6000_elf_end_indicate_exec_stack): Rename to..
10918         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10919         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10920         (rs6000_file_start): ..here.
10921         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10922         file scope variables.
10923         (call_ABI_of_interest): New function.
10924         (init_cumulative_args): Set above vars when function return value
10925         is a float, vector, or small struct.
10926         (rs6000_function_arg_advance_1): Likewise for function args.
10927         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10928         references float args.
10930 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10932         * doc/cfg.texi: Remove "See" before @ref.
10933         * doc/invoke.texi: Likewise.
10935 2011-03-05  Jason Merrill  <jason@redhat.com>
10937         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10939 2011-03-05  Anthony Green  <green@moxielogic.com>
10941         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10943 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10945         PR rtl-optimization/47899
10946         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10947         to flow_loop_nested_p when moving the loop upward.
10949 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
10951         PR target/47719
10952         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
10954 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
10956         PR tree-optimization/47967
10957         * ipa-cp.c (build_const_val): Return NULL instead of creating
10958         VIEW_CONVERT_EXPR for mismatching sizes.
10959         (ipcp_create_replace_map): Return NULL if build_const_val failed.
10960         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10961         give up on versioning.
10963 2011-03-05  Alan Modra  <amodra@gmail.com>
10965         PR target/47986
10966         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10967         full cmodel medium/large lo_sum + high addresses.
10969 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10971         * config/s390/s390.c (s390_decompose_address): Reject non-literal
10972         pool references in UNSPEC_LTREL_OFFSET.
10974 2011-03-04  Jan Hubicka  <jh@suse.cz>
10976         PR lto/47497
10977         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10978         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
10979         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10980         Add node pointers.
10981         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10982         cgraph_add_thunk): Add node pointers.
10983         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10984         associated to right node.
10985         (input_node): Update use of cgraph_same_body_alias
10986         and cgraph_add_thunk.
10988 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
10990         * config/i386/i386.opt (mprefer-avx128): New flag.
10991         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10992         modes when the flag -mprefer-avx128 is on.
10994 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
10996         * dwarf2out.c (compare_loc_operands): Fix address handling.
10998 2011-03-04  Alan Modra  <amodra@gmail.com>
11000         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11002 2011-03-04  Richard Guenther  <rguenther@suse.de>
11004         PR middle-end/47968
11005         * expmed.c (extract_bit_field_1): Prefer vector modes that
11006         vec_extract patterns can handle.
11008 2011-03-04  Richard Guenther  <rguenther@suse.de>
11010         PR middle-end/47975
11011         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11013 2011-03-04  Richard Henderson  <rth@redhat.com>
11015         * explow.c (emit_stack_save): Remove 'after' parameter.
11016         (emit_stack_restore): Likewise.
11017         * expr.h: Update to match.
11018         * builtins.c, calls.c, stmt.c: Likewise.
11019         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11020         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11021         * function.c (expand_function_end): Insert the emit_stack_save
11022         sequence before parm_birth_insn instead of after.
11024 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11026         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11027         (ssse3_pmaddubsw128): Ditto.
11028         (ssse3_pmaddubsw): Ditto.
11030 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11032         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11034 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11036         PR c/47963
11037         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11038         on TYPE_SIZE_UNIT if it is a DECL.
11040         PR debug/47283
11041         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11042         first operand is not is_gimple_mem_ref_addr, try to fold it.
11043         If the operand still isn't is_gimple_mem_ref_addr, clear
11044         MEM_EXPR on op0.
11046 2011-03-03  Richard Guenther  <rguenther@suse.de>
11048         PR middle-end/47283
11049         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11050         match comment.
11051         (refs_may_alias_p_1): For release branches return true if
11052         we are confused by our input.
11054 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11056         * config/s390/s390.c (s390_function_value): Rename to ...
11057         (s390_function_and_libcall_value): ... this.
11058         (s390_function_value): New function.
11059         (s390_libcall_value): New function.
11060         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11061         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11062         target macro definitions.
11063         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11065 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11067         * config/i386/freebsd64.h (CC1_SPEC): Define.
11068         * config/i386/linux64.h (CC1_SPEC): Define.
11069         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11071 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11073         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11074         Remove.
11075         * config/stormy16/stormy16.c: Include reload.h.
11076         (xstormy16_memory_move_cost): New function.
11077         (TARGET_MEMORY_MOVE_COST): Define.
11079 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11081         PR rtl-optimization/47925
11082         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11083         with side effects.  Remove the more-specific check for volatile asms.
11085 2011-03-02  Alan Modra  <amodra@gmail.com>
11087         PR target/47935
11088         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11089         toc relative addresses for valid offsets.
11091 2011-03-01  Richard Guenther  <rguenther@suse.de>
11093         PR tree-optimization/47890
11094         * tree-vect-loop.c (get_initial_def_for_induction): Set
11095         related stmt properly.
11097 2011-03-01  Richard Guenther  <rguenther@suse.de>
11099         PR lto/47924
11100         * lto-streamer.c (lto_record_common_node): Also register
11101         the canonical type.
11103 2011-03-01  Richard Guenther  <rguenther@suse.de>
11105         PR lto/46911
11106         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11107         Do not stream DECL_ABSTRACT_ORIGIN.
11108         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11109         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11110         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11111         Do not stream DECL_ABSTRACT_ORIGIN.
11112         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11113         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11115 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11117         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11118         FUNCTION_VALUE_REGNO_P): Remove.
11119         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11120         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11121         Add 'outgoing' argument.
11122         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11123         function.
11124         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11125         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11127 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11129         PR debug/28047
11130         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11131         (lookup_filename): Likewise.
11132         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11134 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11135             Jakub Jelinek  <jakub@redhat.com>
11137         PR middle-end/47893
11138         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11139         (assign_stack_local_1): Change last argument type to int.
11140         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11141         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11142         don't record padding space into frame_space_list nor use those areas.
11143         (assign_stack_local): Adjust caller.
11144         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11145         of assign_stack_local, pass 0 as last argument.
11146         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11147         callers.
11149 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11151         PR debug/47283
11152         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11153         Use target address_mode and pointer_mode hooks instead of hardcoded
11154         Pmode and ptr_mode.  Handle some simple cases of extending if
11155         POINTERS_EXTEND_UNSIGNED < 0.
11156         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11157         Call convert_debug_memory_address.
11158         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11159         convert_debug_memory_address.
11161         PR middle-end/46790
11162         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11163         * configure: Regenerated.
11164         * config.in: Regenerated.
11165         * varasm.c (default_function_section): Return NULL
11166         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11168 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11170         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11171         the description to match the printed values.
11173 2011-02-28  Richard Guenther  <rguenther@suse.de>
11175         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11176         of the copied scope tree.
11178 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11180         * doc/extend.texi (Function Attributes): Avoid deeply (and
11181         wrongly) nested tables.
11183 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11185         PR middle-end/47903
11186         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11187         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11188         r isn't op0 nor op1.
11190 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11192         * config/avr/avr.md: Remove magic comment for emacs.
11194 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11196         PR target/45261
11197         * config/avr/avr.c (avr_option_override): Use error on bad options.
11198         (avr_help): New function.
11199         (TARGET_HELP): Define.
11201 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11203         PR target/42240
11204         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11205         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11207 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11209         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11210         (ARM Options): Ditto.
11211         (i386 and x86-64 Options): Ditto.
11212         (RX Options): Ditto.
11213         (SPARC Options): Ditto.
11215 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11217         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11218         FreeBSD 6 and later.  Generally use cpu generic.
11220 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11222         * doc/cpp.texi: Update copyright years.
11224 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11226         PR target/46898
11227         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11229 2011-02-25  Jon Beniston  <jon@beniston.com>
11231         PR target/46898
11232         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11233         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11234         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11235         (lm32_block_move_inline): Add type cast to remove warning.
11236         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11237         (gen_int_relational): Move declarations to start of function.
11239 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11241         PR tree-optimization/45470
11242         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11243         can throw internally only.
11244         * tree-vect-stmts.c (vectorizable_call): Likewise.
11246 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11248         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11249         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11250         * config/stormy16/stormy16-protos.h
11251         (xstormy16_preferred_reload_class): Remove.
11252         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11253         static. Change 'rclass' argument and return type to reg_class_t.
11254         (TARGET_PREFERRED_RELOAD_CLASS,
11255         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11257 2011-02-24  Richard Guenther  <rguenther@suse.de>
11259         * lto-streamer-in.c (input_bb): Do not find referenced vars
11260         in debug statements.
11262 2011-02-23  Jason Merrill  <jason@redhat.com>
11264         * common.opt (fabi-version): Document v5 and v6.
11266 2011-02-23  Richard Guenther  <rguenther@suse.de>
11268         PR tree-optimization/47849
11269         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11271 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11273         * opts-common.c (decode_cmdline_option): Print empty string
11274         argument as "" in decoded->orig_option_with_args_text.
11275         * gcc.c (execute): Print empty string argument as ""
11276         in the verbose output.
11277         (do_spec_1): Keep empty string argument.
11279 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11281         * config.gcc: Declare score-* and crx-* obsolete.
11283 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11285         PR rtl-optimization/47763
11286         * web.c (web_main): Ignore naked clobber when replacing register.
11288 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11290         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11291         Remove.
11293 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11295         PR doc/47848
11296         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11298 2011-02-22  Mike Stump  <mikestump@comcast.net>
11300         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11301         assembler.
11302         * configure: Regenerate.
11304 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11306         PR rtl-optimization/46002
11307         * ira-color.c (update_copy_costs): Change class intersection
11308         test to reg_class_contents[] test of 'hard_regno'.
11310 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11312         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11313         than Driver option.
11314         * config/hpux11.opt (mt): Likewise.
11315         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11316         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11317         * config/vax/elf.opt (mno-asm-pic): Likewise.
11318         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11320 2011-02-21  Mike Stump  <mikestump@comcast.net>
11322         PR target/47822
11323         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11324         tree so we can get save the type.
11325         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11326         for CFString instead of trying to use past the end of the builtins.
11327         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11328         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11329         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11330         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11331         Rename to darwin_builtin_cfstring.
11332         (darwin_init_cfstring_builtins): Return the built type.
11334 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11336         PR target/47840
11337         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11338         (_mm256_insert_epi64): Use _mm_insert_epi64.
11340 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11342         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11343         * config/stormy16/stormy16-protos.h
11344         (xstormy16_mode_dependent_address_p): Remove.
11345         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11346         Make static. Change return type to bool. Change argument type to
11347         const_rtx. Remove dead code.
11348         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11350 2011-02-21  Richard Guenther  <rguenther@suse.de>
11352         PR lto/47820
11353         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11354         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11355         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11356         TUs context.
11357         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11358         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11360 2011-02-20  Richard Guenther  <rguenther@suse.de>
11362         PR lto/47822
11363         * tree.c (free_lang_data_in_decl): Clean builtins from
11364         the TU decl BLOCK_VARS.
11366 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11368         PR debug/47620
11369         PR debug/47630
11370         * haifa-sched.c (fix_tick_ready): Skip tick computation
11371         for debug insns.
11373 2011-02-19  Richard Guenther  <rguenther@suse.de>
11375         PR lto/47647
11376         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11377         Remove lazy BLOCK_VARS streaming.
11378         (lto_input_ts_block_tree_pointers): Likewise.
11379         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11381 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11383         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11385 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11387         * config/i386/biarch32.h, config/i386/mach.h,
11388         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11390 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11392         PR target/47800
11393         * config/i386/i386.md (peephole2 for shift and plus): Use
11394         operands[1] original mode in the first insn.
11396 2011-02-18  Mike Stump  <mikestump@comcast.net>
11398         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11400 2011-02-18  Jan Hubicka  <jh@suse.cz>
11402         PR middle-end/47788
11403         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11404         to zero when the function is not inlinable at all.
11406 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11408         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11409         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11410         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11411         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11412         * config/pa/t-pa64: Likewise.
11413         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11415 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11417         PR driver/47787
11418         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11420 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11422         PR target/47792
11423         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11425 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11427         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11428         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11429         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11430         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11431         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11432         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11433         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11434         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11435         m32r_legitimate_address_p): New functions.
11436         * config/m32r/constraints.md (constraint "S"): Don't use
11437         STORE_PREINC_PREDEC_P.
11438         (constraint "U"): Don't use LOAD_POSTINC_P.
11440 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11442         PR rtl-optimization/46178
11443         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11444         compute ira_hard_regno_cover_class[].
11446 2011-02-18  Richard Guenther  <rguenther@suse.de>
11448         PR lto/47798
11449         * lto-streamer.h (lto_global_var_decls): Declare.
11450         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11451         statics for global var processing.
11453 2011-02-18  Richard Guenther  <rguenther@suse.de>
11455         PR tree-optimization/47737
11456         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11457         edge dominance check.
11459 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11461         PR debug/47780
11462         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11463         avoid invalid rtx sharing.
11465 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11467         * doc/cpp.texi (Obsolete Features): Add background on the
11468         origin of assertions.
11470 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11472         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11473         objc_abi == 2.
11474         * config/darwin.c (output_objc_section_asm_op): Added support for
11475         ABI v1 and v2.
11476         (is_objc_metadata): New.
11477         (darwin_objc2_section): New.
11478         (darwin_objc1_section): New.
11479         (machopic_select_section): Added support for ABI v1 and v2.
11480         (darwin_emit_objc_zeroed): New.
11481         (darwin_output_aligned_bss): Detect objc metadata and treat it
11482         appropriately.
11483         (darwin_asm_output_aligned_decl_common): Same.
11484         (darwin_asm_output_aligned_decl_local): Same.
11485         * config/darwin-sections.def: Updated for ABI v1 and v2.
11486         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11487         compiling Objective-C code for the NeXT runtime, default to using
11488         ABI version 0 for 32-bit, and version 2 for 64-bit.
11490 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11492         * common.opt (optimize_fast): New Variable.
11493         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11494         instead of local variable ofast.
11496 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11498         * doc/invoke.texi (fobjc-abi-version): Documented.
11499         (fobjc-nilcheck): Documented.
11500         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11501         version.
11503 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11505         PR driver/47390
11506         * common.opt (export-dynamic): New Driver option.
11507         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11509 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11511         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11513 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11514             Jan Hubicka  <jh@suse.cz>
11516         PR debug/47106
11517         PR debug/47402
11518         * cfgexpand.c (account_used_vars_for_block): Remove.
11519         (estimated_stack_frame_size): Use referenced vars.
11520         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11521         that were referenced in the original function.  Test src_fn
11522         rather than cfun.  Drop redundant get_var_ann.
11523         (setup_one_parameter): Drop redundant get_var_ann.
11524         (declare_return_variable): Likewise.
11525         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11526         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11527         * ipa-inline.c (compute_inline_parameters): Do not compute
11528         disregard_inline_limits here.
11529         (compute_inlinable_for_current, pass_inlinable): New.
11530         (pass_inline_parameters): Require PROP_referenced_vars.
11531         * cgraphunit.c (cgraph_process_new_functions): Don't run
11532         compute_inline_parameters explicitly unless function is in SSA form.
11533         (cgraph_analyze_function): Set .disregard_inline_limits.
11534         * tree-sra.c (convert_callers): Compute inliner parameters
11535         only for functions already in SSA form.
11537 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11539         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11540         -mlittle-endian-data.
11542 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11544         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11545         -mno-fpu, not -fpu and -no-fpu.
11546         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11547         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11549 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11551         PR target/43653
11552         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11553         input reload with PLUS RTX.
11555 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11557         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11558         of InverseVar(MDMX).
11560 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11562         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11563         --m4-340.
11565 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11567         * config/mn10300/mn10300.opt (mno-crt0): New.
11569 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11571         * config/m68k/uclinux.opt (static-libc): New Driver option.
11573 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11575         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11577 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11579         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11580         %{muser-extend-enabled}.
11582 2011-02-16  Richard Guenther  <rguenther@suse.de>
11584         PR tree-optimization/47738
11585         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11586         the TODO from tree_predictive_commoning.
11588 2011-02-15  Jeff Law  <law@redhat.com>
11590         Revert
11591         2011-01-25  Jeff Law  <law@redhat.com>
11593         PR rtl-optimization/37273
11594         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11595         handle them like argument loads from stack slots.  Do not double
11596         count memory for memory constants and argument loads from stack slots.
11598 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11600         PR middle-end/47725
11601         * combine.c (cant_combine_insn_p): Revert the last change.
11603 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11605         PR target/47755
11606         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11607         mode for vector constants.  Remove code that checks for TImode.
11609 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11611         PR debug/47106
11612         PR debug/47402
11613         * cgraph.h (compute_inline_parameters): Return void.
11614         * ipa-inline.c (compute_inline_parameters): Adjust.
11616 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11618         PR debug/47106
11619         PR debug/47402
11620         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11621         rather than decl.
11622         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11623         * ipa-inline.c (compute_inline_parameters): Adjust.
11625 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11627         PR debug/47106
11628         PR debug/47402
11629         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11630         Adjust all users.  Pass FN to...
11631         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11632         fn argument.
11633         * ipa-struct-reorg.c: Adjust.
11634         * tree-dfa.c: Adjust.
11635         * tree-into-ssa.c: Adjust.
11636         * tree-sra.c: Adjust.
11637         * tree-ssa-alias.c: Adjust.
11638         * tree-ssa-live.c: Adjust.
11639         * tree-ssa.c: Adjust.
11640         * tree-ssanames.c: Adjust.
11641         * tree-tailcall.c: Adjust.
11643 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11645         PR debug/47106
11646         PR debug/47402
11647         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11648         Adjust all callers.
11649         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11650         * tree-flow-inline.h: Adjust.
11651         * gimple-pretty-print.c: Adjust.
11652         * tree-into-ssa.c: Adjust.
11653         * tree-ssa.c: Adjust.
11654         * cfgexpand.c: Adjust.
11656 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11658         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11659         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11660         (EXTRA_CONSTRAINT): Delete.
11661         * config/iq2000/constraints.md: New file.
11662         * config/iq2000/iq2000.md: Include it.
11663         (define_insn ""): Delete.
11664         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11665         unsupported constraint letters from patterns.
11666         (call_value, call_value_internal1): Likewise.
11667         (call_value_multiple_internal1): Likewise.
11669 2011-02-15  Nick Clifton  <nickc@redhat.com>
11671         * config/mn10300/mn10300.c: Include tm-constrs.h.
11672         (struct liw_data): New data structure describing an LIW candidate
11673         instruction.
11674         (extract_bundle): Use struct liw_data.  Allow small integer
11675         operands for some instructions.
11676         (check_liw_constraints): Use struct liw_data.  Remove swapped
11677         parameter.  Add comments describing the checks.  Fix bug when
11678         assigning the source of liw1 to the source of liw2.
11679         (liw_candidate): Delete.  Code moved into extract_bundle.
11680         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11681         before swapping.
11682         * config/mn10300/predicates.md (liw_operand): New predicate.
11683         Allows registers and small integer constants.
11684         * config/mn10300/constraints.md (O): New constraint.  Accetps
11685         integers in the range -8 to +7 inclusive.
11686         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11687         for moving a small integer into a register.  Give this alternative
11688         LIW attributes.
11689         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11690         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11691         using the J,K,L and M constraints,
11692         (liw): Remove SI mode on second operands to allow for HI and QI
11693         mode values.
11694         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11695         instruction.
11697 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11699         PR middle-end/47725
11700         * combine.c (cant_combine_insn_p): Check zero/sign extended
11701         hard registers.
11703 2011-02-15  Richard Guenther  <rguenther@suse.de>
11705         PR tree-optimization/47743
11706         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11707         for a non-type-compatible VN lookup bail out.
11709 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11711         * config/fr30/constraints.md: New file.
11712         * config/fr30/fr30.md: Include it.
11713         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11714         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11715         (EXTRA_CONSTRAINT): Delete.
11717 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11719         * config/frv/constraints.md: New file.
11720         * config/frv/predicates.md: Include it.
11721         * config/frv/frv.c (reg_class_from_letter): Delete.
11722         (frv_option_override): Don't initialize it.
11723         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11724         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11725         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11726         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11727         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11728         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11729         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11730         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11731         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11732         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11733         (REG_CLASS_FROM_CONSTRAINT): Delete.
11735 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11737         PR middle-end/47581
11738         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11739         if frame size is 0 in a leaf function.
11741 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11743         PR pch/14940
11744         * config/alpha/host-osf.c: New file.
11745         * config/alpha/x-osf: New file.
11746         * config.host (alpha*-dec-osf*): Use it.
11748 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11750         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11751         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11752         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11753         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11754         type to const_rtx.
11755         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11757 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11759         * config/stormy16/constraints.md: New file.
11760         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11761         Use satisfies_constraint_Q and satisfies_constraint_R.
11762         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11763         Delete.
11764         (xstormy16_legitiamte_address_p): Declare.
11765         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11766         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11767         (EXTRA_CONSTRAINT): Delete.
11768         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11769         Un-staticize.
11770         (xstormy16_extra_constraint_p): Delete.
11772 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11774         PR tree-optimization/46494
11775         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11776         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11777         (pass_rtl_loop_done): Add TODO_verify_flow.
11778         * fwprop.c (pass_rtl_fwprop): Likewise.
11779         * modulo-sched.c (pass_sms): Likewise.
11780         * tree-ssa-dom.c (pass_dominator): Likewise.
11781         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11782         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11783         (pass_tree_loop_done): Likewise.
11784         * tree-ssa-pre.c (execute_pre): Likewise.
11785         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11786         * tree-ssa-sink.c (pass_sink_code): Likewise.
11787         * tree-vrp.c (pass_vrp): Likewise.
11789 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11791         * config/v850/constraints.md: New file.
11792         * config/v850/v850.md: Include it.
11793         * config/v850/predicates.md (reg_or_0_operand): Use
11794         satisfies_constraint_G.
11795         (special_symbolref_operand): Use satisfies_constraint_K.
11796         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11797         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11798         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11799         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11800         (EXTRA_CONSTRAINT): Delete.
11801         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11802         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11803         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11805 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11807         PR target/47696
11808         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11809         description.
11811 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11813         * config/mcore/constraints.md: New file.
11814         * config/mcore/mcore.md: Include it.
11815         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11816         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11817         (REG_CLASS_FROM_LETTER): Delete.
11818         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11819         insn_const_int_ok_for_constraint.
11820         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11821         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11822         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11823         (EXTRA_CONSTRAINT): Delete.
11825 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11827         PR ada/41929
11828         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11829         (IS_SIGHANDLER): Define.
11830         (sparc64_is_sighandler): New function, split off from
11831         sparc64_fallback_frame_state.
11832         (sparc_is_sighandler): New function, split off from
11833         sparc_fallback_frame_state.
11834         (sparc64_fallback_frame_state): Merge with ...
11835         (sparc_fallback_frame_state): ... this into ...
11836         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11837         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11838         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11839         stack instead of hardcoded offsets.
11841 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11843         PR target/45808
11844         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11846 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11848         * configure: Regenerate.
11850 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11852         PR driver/45731
11853         * gcc.c (asm_options): Correct spec matching --target-help.
11855 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11857         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11858         to gimple call error.
11860 2011-02-12  Mike Stump  <mikestump@comcast.net>
11862         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11863         comments in backslash regions.
11865 2011-02-12  Mike Stump  <mikestump@comcast.net>
11866             Jakub Jelinek  <jakub@redhat.com>
11867             Iain Sandoe  <iains@gcc.gnu.org>
11869         PR target/47324
11870         * dwarf2out.c (output_cfa_loc): When required, apply the
11871         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11872         (output_loc_sequence): Likewise.
11873         (output_loc_operands_raw): Likewise.
11874         (output_loc_sequence_raw): Likewise.
11875         (output_cfa_loc): Likewise.
11876         (output_loc_list): Suppress register number adjustment when
11877         calling output_loc_sequence()
11878         (output_die): Likewise.
11880 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11882         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11883         Remove macros.
11884         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11885         xtensa_memory_move_cost): New functions.
11886         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11888 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11890         PR lto/47225
11891         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11892         in the current directory.
11893         * configure: Rebuilt.
11895 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11897         * config/darwin.c (darwin_override_options): Add a hunk missed
11898         from the commit of r168571.  Trim comment line lengths and
11899         correct indents of the preceding block.
11901 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11903         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11904         the switch.
11906 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11908         * common.opt (nostartfiles): New Driver option.
11910 2011-02-11  Xinliang David Li  <davidxl@google.com>
11912         PR tree-optimization/47707
11913         * tree-chrec.c (convert_affine_scev): Keep type precision.
11915 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11917         PR tree-optimization/47420
11918         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11920 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11922         PR rtl-optimization/47614
11923         * rtl.h (check_for_inc_dec): Declare.
11924         * dse.c (check_for_inc_dec): Externalize...
11925         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11926         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11928 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11930         PR driver/47678
11931         * gcc.c (main): Do not compile inputs if there were errors in
11932         option handling.
11933         * opts-common.c (read_cmdline_option): Check for wrong language
11934         after other error checks.
11936 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11938         * cgraph.c: Fix comment typos.
11939         * cgraph.h: Likewise.
11940         * cgraphunit.c: Likewise.
11941         * ipa-cp.c: Likewise.
11942         * ipa-inline.c: Likewise.
11943         * ipa-prop.c: Likewise.
11944         * ipa-pure-const.c: Likewise.
11945         * ipa-ref.c: Likewise.
11946         * ipa-reference.c: Likewise.
11948 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
11950         PR debug/47684
11951         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
11953 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11955         PR testsuite/47400
11956         * doc/sourcebuild.texi (Require Support): Document
11957         dg-require-ascii-locale.
11959 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
11961         * doc/lto.texi (Write summary): Fix missing parentheses.
11963 2011-02-10  DJ Delorie  <dj@redhat.com>
11965         * config/m32c/m32c.c (m32c_option_override): Disable
11966         -fcombine-stack-adjustments until flag value tracking and compare
11967         optimization can be rewritten.
11969 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
11971         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11972         PROCESSOR_POWER7.
11973         (PROCESSOR_DEFAULT64): Likewise.
11975 2011-02-10  Richard Henderson  <rth@redhat.com>
11977         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11978         change from 2011-02-03.
11979         * config/rx/rx.c (flags_from_code): Likewise.
11980         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11981         is valid, n/pz otherwise.
11982         (rx_select_cc_mode): Return CCmode if Y is not zero.
11984 2011-02-10  Richard Guenther  <rguenther@suse.de>
11986         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
11988 2011-02-10  Richard Guenther  <rguenther@suse.de>
11990         PR tree-optimization/47677
11991         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11993 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
11995         PR target/47665
11996         * combine.c (make_compound_operation): Only change shifts into
11997         multiplication for SCALAR_INT_MODE_P.
11999 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12001         PR testsuite/47622
12002         Revert
12003         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12004         PR debug/42631
12005         * web.c (entry_register): Don't clobber the number of the
12006         first uninitialized reference in used[].
12008 2011-02-09  Richard Guenther  <rguenther@suse.de>
12010         PR tree-optimization/47664
12011         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12012         all edges again.
12014 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12016         PR target/46481
12017         PR target/47032
12018         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12019         PROCESSOR_POWER7.
12020         (PROCESSOR_DEFAULT64): Same.
12021         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12023 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12025         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12027 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12029         PR middle-end/45505
12030         * tree-sra.c (struct access): New flags grp_scalar_read and
12031         grp_scalar_write.  Changed description of assignment read and write
12032         flags.
12033         (dump_access): Dump new flags, reorder all of them.
12034         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12035         to detect multiple scalar reads.
12036         (analyze_access_subtree): Use the new scalar read write flags instead
12037         of the old flags.  Adjusted comments.
12039 2011-02-08  DJ Delorie  <dj@redhat.com>
12041         PR target/47548
12042         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12043         patterns.
12045 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12047         * config/m68k/uclinux.opt: New.
12048         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12050 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12052         * config/cris/elf.opt (sim): New Driver option.
12054 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12056         * config/xtensa/elf.opt: New.
12057         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12059 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12061         * config/vax/elf.opt: New.
12062         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12064 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12066         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12068 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12070         * config/gnu-user.opt: New.
12071         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12072         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12073         *-*-uclinux*): Use gnu-user.opt.
12075 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12077         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12078         * config/i386/gnu.h (CPP_SPEC): Likewise.
12080 2011-02-08  Ian Lance Taylor  <iant@google.com>
12082         * common.opt (fcx-limited-range): Add SetByCombined flag.
12083         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12084         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12085         (fassociative-math, freciprocal-math): Likewise.
12086         (funsafe-math-optimizations): Likewise.
12087         * opth-gen.awk: Handle SetByCombined.
12088         * optc-gen.awk: Likewise.
12089         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12090         (set_unsafe_math_optimizations_flags): Likewise.
12091         * doc/options.texi (Option properties): Document SetByCombined.
12093 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12095         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12096         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12097         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12098         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12099         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12101 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12103         PR tree-optimization/46834
12104         PR tree-optimization/46994
12105         PR tree-optimization/46995
12106         * graphite-sese-to-poly.c (used_outside_reduction): New.
12107         (detect_commutative_reduction): Call used_outside_reduction.
12108         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12109         translate_scalar_reduction_to_array only when at least one
12110         loop-phi/close-phi tuple has been detected.
12112 2011-02-08  Richard Guenther  <rguenther@suse.de>
12114         PR middle-end/47639
12115         * tree-vect-generic.c (expand_vector_operations_1): Update
12116         stmts here ...
12117         (expand_vector_operations): ... not here.  Cleanup EH info
12118         and the CFG if required.
12120 2011-02-08  Richard Guenther  <rguenther@suse.de>
12122         PR tree-optimization/47641
12123         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12124         require type compatibility.
12126 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12128         * gimple-low.c (lower_function_body): Don't remove the location of
12129         the return statement here.
12130         (lower_gimple_return): Do it here instead but only if the return
12131         statement is actually used twice.
12133 2011-02-08  Richard Guenther  <rguenther@suse.de>
12135         PR tree-optimization/47632
12136         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12137         unused up_to_stmt parameter, return whether cfg-cleanup is
12138         necessary, remove EH info properly.
12139         (forward_propagate_into_gimple_cond): Adjust caller.
12140         (forward_propagate_into_cond): Likewise.
12141         (forward_propagate_comparison): Likewise.
12142         (tree_ssa_forward_propagate_single_use_vars): Make
12143         forward_propagate_comparison case similar to the two others.
12145 2011-02-08  Nick Clifton  <nickc@redhat.com>
12147         * config/mn10300/mn10300.opt (mliw): New command line option.
12148         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12149         (liw_bundling): New automaton.
12150         (liw): New attribute.
12151         (liw_op): New attribute.
12152         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12153         (movsi_internal): Add LIW attributes.
12154         (andsi3): Likewise.
12155         (iorsi3): Likewise.
12156         (xorsi3): Likewise.
12157         (addsi3): Separate register and immediate alternatives.
12158         Add LIW attributes.
12159         (subsi3): Likewise.
12160         (cmpsi): Likewise.
12161         (aslsi3): Likewise.
12162         (lshrsi3): Likewise.
12163         (ashrsi3): Likewise.
12164         (liw): New pattern.
12165         * config/mn10300/mn10300.c (liw_op_names): New
12166         (mn10300_print_operand): Handle 'W' operand descriptor.
12167         (extract_bundle): New function.
12168         (check_liw_constraints): New function.
12169         (liw_candidate): New function.
12170         (mn10300_bundle_liw): New function.
12171         (mn10300_reorg): New function.
12172         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12173         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12174         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12175         __LIW__ or __NO_LIW__.
12176         * doc/invoke.texi: Describe the -mliw command line option.
12178 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12180         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12181         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12182         pthread_mutex_unlock): Remove.
12183         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12184         * config/pa/t-pa64: Likewise.
12185         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12186         shared libc if not linking against libpthread.
12187         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12189 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12191         PR target/47558
12192         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12193         on 10.6 and later to ensure that we always use the unwinder from
12194         the system.  Only add -no_compact_unwind when tarteting darwin
12195         10.6 or later.
12197 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12199         PR target/46997
12200         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12201         (vec_interleave_lowv2sf): Ditto.
12202         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12203         (vec_extract_oddv2sf): Ditto.
12205 2011-02-07  Mike Stump  <mikestump@comcast.net>
12207         PR target/42333
12208         Add __ieee_divdc3 entry point.
12209         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12210         entry point.
12211         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12212         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12213         * config/darwin.c (darwin_rename_builtins): Add.
12214         * config/darwin-protos.h (darwin_rename_builtins): Add.
12216 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12218         PR target/47636
12219         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12220         for the condition.
12222 2011-02-07  Mike Stump  <mikestump@comcast.net>
12224         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12226 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12228         PR target/47534
12229         * config/avr/libgcc.S (exit): Move .endfunc
12231 2011-02-07  Richard Guenther  <rguenther@suse.de>
12233         PR tree-optimization/47615
12234         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12235         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12236         (run_scc_vn): Initialize it.
12237         (visit_reference_op_load): Use it.
12238         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12240 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12242         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12243         DImode trapping arithmetic libfuncs.
12245 2011-02-07  Richard Guenther  <rguenther@suse.de>
12247         PR tree-optimization/47621
12248         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12249         two duplicates ...
12250         (execute_update_addresses_taken): ... here.  Make it more
12251         conservative in what we accept.
12253 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12255         * config/sparc/freebsd.h (ASM_SPEC): Define.
12256         * config/sparc/vxworks.h (ASM_SPEC): Define.
12258 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12260         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12262 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12264         * doc/invoke.texi: Remove reference to compiler internals from
12265         user documentation.
12267         * reg-notes.def: Remove REG_VALUE_PROFILE.
12268         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12270 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12272         PR middle-end/47610
12273         * varasm.c (default_section_type_flags): If decl is NULL,
12274         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12276 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12278         PR debug/42631
12279         * web.c (entry_register): Don't clobber the number of the
12280         first uninitialized reference in used[].
12282 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12284         PR tree-optimization/46194
12285         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12286         (build_classic_dist_vector_1): Do not represent classic distance
12287         vectors when the access functions are variating in different loops.
12289 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12291         * config/mips/iris6.opt: New.
12292         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12294 2011-02-04  Richard Henderson  <rth@redhat.com>
12295             Steve Ellcey  <sje@cup.hp.com>
12297         PR target/46997
12298         * config/ia64/predicates.md (mux1_brcst_element): New.
12299         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12300         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12301         (ia64_unpack_sign): New.
12302         (ia64_expand_unpack): Rewrite using new routines.
12303         (ia64_expand_widen_sum): Ditto.
12304         (ia64_expand_dot_prod_v8qi): Ditto.
12305         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12306         routines, add endian check.
12307         (pmpy2_even): Rename from pmpy2_r, add endian check.
12308         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12309         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12310         (vec_widen_smult_hi_v4hi): Ditto.
12311         (vec_widen_umult_lo_v4hi): Ditto.
12312         (vec_widen_umult_hi_v4hi): Ditto.
12313         (mulv2si3): Change endian checks.
12314         (sdot_prodv4hi): Rewrite with new calls.
12315         (udot_prodv4hi): New.
12316         (vec_pack_ssat_v4hi): Add endian check.
12317         (vec_pack_usat_v4hi): Ditto.
12318         (vec_pack_ssat_v2si): Ditto.
12319         (max1_even): Rename from max1_r, add endian check.
12320         (max1_odd): Rename from max1_l, add endian check.
12321         (*mux1_rev): Format change.
12322         (*mux1_mix): Ditto.
12323         (*mux1_shuf): Ditto.
12324         (*mux1_alt): Ditto.
12325         (*mux1_brcst_v8qi): Use new predicate.
12326         (vec_extract_evenv8qi): Remove endian check.
12327         (vec_extract_oddv8qi): Ditto.
12328         (vec_interleave_lowv4hi): Format change.
12329         (vec_interleave_highv4hi): Ditto.
12330         (mix2_even): Rename from mix2_r, add endian check.
12331         (mix2_odd): Rename from mux2_l, add endian check.
12332         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12333         (vec_extract_evenodd_helper): Format change.
12334         (vec_extract_evenv4hi): Remove endian check.
12335         (vec_extract_oddv4hi): Remove endian check.
12336         (vec_interleave_lowv2si): Format change.
12337         (vec_interleave_highv2si): Format change.
12338         (vec_initv2si): Remove endian check.
12339         (vecinit_v2si): Add endian check.
12340         (reduc_splus_v2sf): Add endian check.
12341         (reduc_smax_v2sf): Ditto.
12342         (reduc_smin_v2sf): Ditto.
12343         (vec_initv2sf): Remove endian check.
12344         (fpack): Add endian check.
12345         (fswap): Add endian check.
12346         (vec_interleave_highv2sf): Add endian check.
12347         (vec_interleave_lowv2sf): Add endian check.
12348         (fmix_lr): Add endian check.
12349         (vec_setv2sf): Format change.
12350         (*vec_extractv2sf_0_be): Use shift to extract operand.
12351         (*vec_extractv2sf_1_be): New.
12352         (vec_pack_trunc_v4hi): Add endian check.
12353         (vec_pack_trunc_v2si): Format change.
12355 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12357         PR inline-asm/23200
12358         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12359         do bb, locus and block comparison and disallow loads if it is not set.
12360         (stmt_is_replaceable_p): New function.
12361         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12362         callers.
12363         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12364         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12365         SSA_NAME_DEF_STMT.
12366         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12368 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12370         * config/rs6000/xilinx.opt: New.
12371         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12373 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12375         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12377 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12379         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12380         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12381         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12382         secondary_reload_info, xtensa_secondary_reload): Remove.
12383         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12384         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12385         (xtensa_preferred_reload_class): Make static. Change return and
12386         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12387         Use CONST_DOUBLE_P predicate.
12388         (xtensa_preferred_output_reload_class): New function.
12389         (xtensa_secondary_reload): Make static.
12391 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12393         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12394         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12395         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12397 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12399         PR middle-end/31490
12400         * output.h (SECTION_RELRO): Define.
12401         (SECTION_MACH_DEP): Adjust.
12402         (get_variable_section): New prototype.
12403         * varpool.c (varpool_finalize_named_section_flags): New function.
12404         (varpool_assemble_pending_decls): Call it.
12405         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12406         * cgraphunit.c (cgraph_output_in_order): Call
12407         varpool_finalize_named_section_flags.
12408         * varasm.c (get_section): Allow section flags conflicts between
12409         relro and read-only sections if the section hasn't been declared yet.
12410         Set SECTION_OVERRIDE after diagnosing section type conflict.
12411         (get_variable_section): No longer static.
12412         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12413         readonly sections that need relocations.
12414         (decl_readonly_section_1): New function.
12415         (decl_readonly_section): Use it.
12417         Revert:
12418         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12419                     Steve Ellcey  <sje@cup.hp.com>
12421         PR middle-end/31490
12422         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12423         if section attribute used.
12425 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12427         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12428         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12429         (darwin_init_sections): Remove assertion.
12431 2011-02-03  Nick Clifton  <nickc@redhat.com>
12433         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12434         lt and ge.
12435         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12436         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12437         instead of "n" and "pz".
12438         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12439         CC_FLAG_S.
12441 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12443         PR target/47312
12444         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12445         fma, expand FMA_EXPR as fma{,f,l} call.
12447         PR lto/47274
12448         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12449         copy them into a unsigned char variable and pass address of it to
12450         lto_output_data_stream.
12452         PR target/47564
12453         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12454         around backend_init_target and lang_dependent_init_target calls.
12455         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12456         (verify_cgraph_node): Don't call set_cfun here.  Use
12457         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12458         Set error_found for incorrectly represented calls to thunks.
12460 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12462         PR debug/43092
12463         PR rtl-optimization/43494
12464         * rtl.h (for_each_inc_dec_fn): New type.
12465         (for_each_inc_dec): Declare.
12466         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12467         (for_each_inc_dec_find_inc_dec): New fn.
12468         (for_each_inc_dec_find_mem): New fn.
12469         (for_each_inc_dec): New fn.
12470         * dse.c (struct insn_size): Remove.
12471         (replace_inc_dec, replace_inc_dec_mem): Remove.
12472         (emit_inc_dec_insn_before): New fn.
12473         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12474         (canon_address): Pass mem modes to cselib_lookup.
12475         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12476         (cselib_lookup_from_insn): Likewise.
12477         (cselib_subst_to_values): Likewise.
12478         * cselib.c (find_slot_memmode): New var.
12479         (cselib_find_slot): New fn.  Use it instead of
12480         htab_find_slot_with_hash everywhere.
12481         (entry_and_rtx_equal_p): Use find_slot_memmode.
12482         (autoinc_split): New fn.
12483         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12484         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12485         Deal with autoinc.  Special-case recursion into MEMs.
12486         (cselib_hash_rtx): Likewise.
12487         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12488         address and MEM modes.
12489         (cselib_subst_to_values): Add memmode, pass it on.
12490         Deal with autoinc.
12491         (cselib_lookup): Add memmode argument, pass it on.
12492         (cselib_lookup_from_insn): Add memmode.
12493         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12494         (struct cselib_record_autoinc_data): New.
12495         (cselib_record_autoinc_cb): New fn.
12496         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12497         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12498         (cselib_process_insn): ... here.
12499         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12500         to cselib_lookup.
12501         (add_uses): Likewise, also to cselib_subst_to_values.
12502         (add_stores): Likewise.
12503         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12504         cselib_subst_to_values.
12505         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12506         * gcse.c (do_local_cprop): Adjusted.
12507         * postreload.c (reload_cse_simplify_set): Adjusted.
12508         (reload_cse_simplify_operands): Adjusted.
12509         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12511 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12513         PR tree-optimization/45122
12514         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12515         unsafe assumptions when there's more than one loop exit.
12517 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12519         PR target/47272
12520         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12521         Document using vector double with the load/store builtins, and
12522         that the load/store builtins always use Altivec instructions.
12524         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12525         to use altivec memory instructions, even on VSX.
12526         (vector_altivec_store_<mode>): Ditto.
12528         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12529         function.
12531         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12532         V2DF, V2DI support to load/store overloaded builtins.
12534         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12535         altivec load/store builtins for V2DF/V2DI types.
12537         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12538         set avoid indexed addresses on power6 if -maltivec.
12539         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12540         vector_altivec_load/vector_altivec_store builtins.
12541         (altivec_expand_st_builtin): Ditto.
12542         (altivec_expand_builtin): Add VSX memory builtins.
12543         (rs6000_init_builtins): Add V2DI types to internal types.
12544         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12545         load/store builtins.
12546         (rs6000_address_for_altivec): Insure memory address is appropriate
12547         for Altivec.
12549         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12550         vec_vsx_ld and vec_vsx_st.
12551         (vsx_store_<mode>): Ditto.
12553         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12554         variables to hold long long types for VSX vector memory builtins.
12555         (RS6000_BTI_unsigned_long_long): Ditto.
12556         (long_long_integer_type_internal_node): Ditti.
12557         (long_long_unsigned_type_internal_node): Ditti.
12559         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12560         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12561         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12563         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12564         short cuts.
12565         (vec_vsx_st): Ditto.
12567 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12569         * config/pa/pa-hpux10.opt: New.
12570         * config/hpux11.opt (pthread): New Driver option.
12571         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12572         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12574 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12576         * config/ia64/vms.opt: New.
12577         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12579 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12581         PR target/47580
12582         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12583         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12584         generator functions.
12585         (vsx_floatuns<VSi><mode>2): Ditto.
12586         (vsx_fix_trunc<mode><VSi>2): Ditto.
12587         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12589 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12591         * config/i386/djgpp.opt (posix): New Driver option.
12593 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12595         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12596         Move to the unsupported targets list.
12598 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12600         PR rtl-optimization/47525
12601         * df-scan.c: Update copyright years.
12602         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12603         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12605 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12607         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12608         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12609         (ASM_OUTPUT_ASCII): Remove.
12610         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12612 2011-02-02  Jeff Law  <law@redhat.com>
12614         PR middle-end/47543
12615         * reload.c (find_reloads_address): Handle reg+d address where both
12616         components are invalid by reloading the entire address.
12618 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12619             Richard Guenther  <rguenther@suse.de>
12621         PR tree-optimization/40979
12622         PR bootstrap/47044
12623         * passes.c (init_optimization_passes): After LIM call copy_prop
12624         and DCE to clean up.
12625         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12627 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12629         PR tree-optimization/47576
12630         PR tree-optimization/47555
12631         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12632         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12633         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12634         * tree-scalar-evolution.c (follow_ssa_edge): Use
12635         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12637 2011-02-02  Richard Guenther  <rguenther@suse.de>
12639         PR tree-optimization/47566
12640         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12642 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12644         PR debug/47106
12645         PR debug/47402
12646         * tree-inline.c (declare_return_variable): Remove unused caller
12647         variable.
12649         PR debug/47106
12650         PR debug/47402
12651         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12652         * cfgexpand.c (account_used_vars_for_block): Use them.
12653         * tree-nrv.c (tree_nrv): Likewise.
12654         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12655         (dump_scope_block): Likewise.
12656         (remove_unused_locals): Likewise.
12658         PR debug/47106
12659         PR debug/47402
12660         * tree-inline.c (declare_return_variable): Add result decl to
12661         local decls only once.
12662         * gimple-low.c (record_vars_into): Mark newly-created variables
12663         as referenced.
12665 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12667         PR debug/47498
12668         PR debug/47501
12669         PR debug/45136
12670         PR debug/45130
12671         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12672         debug insns.
12673         (no_real_insns_p, schedule_block, set_priorities): Drop special
12674         treatment of boundary debug insns.
12675         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12676         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12677         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12678         (BOUNDARY_DEBUG_INSN_P): Likewise.
12679         (SCHEDULE_DEBUG_INSN_P): Likewise.
12680         * sched-rgn.c (init_ready_list): Drop special treatment of
12681         boundary debug insns.
12682         * final.c (rest_of_clean_state): Clear notes' BB.
12684 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12686         * config/openbsd.opt (assert=): New Driver option.
12688 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12690         * config/i386/nto.opt: New.
12691         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12693 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12695         * config/i386/netware.opt: New.
12696         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12698 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12700         * config/interix.opt (posix): New Driver option.
12702 2011-02-01  DJ Delorie  <dj@redhat.com>
12704         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12706         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12707         class for A0/A1.
12709 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12711         PR tree-optimization/47561
12712         * toplev.c (process_options): Print the Graphite flags.  Add
12713         flag_loop_flatten to the list of options requiring Graphite.
12715 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12717         * config/i386/cygming.opt (posix): New Driver option.
12719 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12721         * config/arm/vxworks.opt: New.
12722         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12724 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12726         * config/alpha/elf.opt: New.
12727         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12728         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12730 2011-02-01  Richard Guenther  <rguenther@suse.de>
12732         PR tree-optimization/47559
12733         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12734         store-motion on references that can throw.
12736 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12738         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12739         * tree-pass.h (TDF_CSELIB): New macro.
12740         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12741         cselib_lookup): Check for it rather than for TDF_DETAILS.
12743 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12745         PR driver/47547
12746         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12747         is HOST_BIT_BUCKET.
12749         * opts.c (finish_options): Don't add x_aux_base_name if it is
12750         HOST_BIT_BUCKET.
12752 2011-02-01  Richard Guenther  <rguenther@suse.de>
12754         PR tree-optimization/47555
12755         Revert
12756         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12758         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12760 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12762         PR gcc/46692
12763         * config/lm32/t-lm32: Add multilib for all CPU options.
12765 2011-02-01  Richard Guenther  <rguenther@suse.de>
12767         PR tree-optimization/47541
12768         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12769         sure to have a field at offset zero.
12771 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12773         * config/arc/arc.opt (EB, EL): New Driver options.
12775 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12777         * config/alpha/osf5.opt: New.
12778         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12780 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12782         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12784 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12786         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12787         -floop-interchange.
12788         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12789         is an alias of -floop-interchange and that it requires the
12790         Graphite infrastructure.
12791         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12792         flag_loop_interchange based on the value of flag_tree_loop_linear.
12794 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12795             Richard Guenther  <rguenther@suse.de>
12797         PR tree-optimization/47538
12798         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12799         type instead of r1type, except for comparisons.  For right
12800         shifts and comparisons punt if there are mismatches in
12801         sizetype vs. non-sizetype types.
12803 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12805         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12806         avx_runtime.
12808 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12810         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12811         version number.
12812         * configure: Regenerate.
12814 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12816         * configure.ac (gcc_cv_ld_static_option): Define.
12817         (gcc_cv_ld_dynamic_option): Define.
12818         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12819         instead.
12820         (HAVE_LD_STATIC_DYNAMIC): Update message.
12821         (LD_STATIC_OPTION): Define.
12822         (LD_DYNAMIC_OPTION): Define.
12823         * configure: Regenerate.
12824         * config.in: Regenerate.
12825         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12826         HAVE_LD_STATIC_DYNAMIC]: Use them.
12828 2011-01-31  Nick Clifton  <nickc@redhat.com>
12830         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12831         registers inside interrupt handlers if the handler is not a leaf
12832         function.
12834 2011-01-31  Nick Clifton  <nickc@redhat.com>
12836         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12837         reg_renumber returning an INVALID_REGNUM.
12839 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12841         PR libgcj/44341
12842         * doc/install.texi: Document host options discarded when cross
12843         configuring target libraries.
12845 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12847         Reverted:
12848         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12849         PR debug/45136
12850         PR debug/45130
12851         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12852         debug insns.
12853         (no_real_insns_p, schedule_block, set_priorities): Drop special
12854         treatment of boundary debug insns.
12855         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12856         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12857         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12858         (BOUNDARY_DEBUG_INSN_P): Likewise.
12859         (SCHEDULE_DEBUG_INSN_P): Likewise.
12860         * sched-rgn.c (init_ready_list): Drop special treatment of
12861         boundary debug insns.
12862         * final.c (rest_of_clean-state): Clear notes' BB.
12864 2011-01-31  Alan Modra  <amodra@gmail.com>
12866         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12867         toc relative expressions as we do in print_operand_address.
12869 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12871         * doc/extend.texi: Follow spelling conventions.
12872         * doc/invoke.texi: Fix a typo.
12874 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12876         * config/hpux11.opt: New.
12877         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12878         ia64*-*-hpux*): Use hpux11.opt.
12880 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12882         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12883         to tmake_file.
12885 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12887         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12888         support sites.
12890 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12892         * doc/install.texi (Binaries): Remove outdated reference for
12893         Motorola 68HC11/68HC12 downloads.
12895 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12897         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12898         Drepper's paper.
12900 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12902         PR bootstrap/47147
12903         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12904         used by NetBSD.
12906 2011-01-28  Ahmad Sharif  <asharif@google.com>
12908         * value-prof.c (check_counter): Corrected error message.
12910 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12912         * config/arm/arm.c (arm_legitimize_reload_address): New.
12913         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12914         arm_legitimize_reload_address.
12915         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12917 2011-01-28  Ian Lance Taylor  <iant@google.com>
12919         * godump.c (go_define): Ignore macros whose definitions include
12920         two adjacent operands.
12922 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12924         PR target/42894
12925         * varasm.c (force_const_mem): Store copy of x in desc->constant
12926         instead of x itself.
12927         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12928         itself into REG_EQUAL note.
12930 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12932         * config/freebsd.opt (posix, rdynamic): New Driver options.
12934 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12936         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12937         -Bstatic/-Bdynamic.
12938         * configure: Regenerate.
12940 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12942         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12943         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12945 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12947         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12948         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12949         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12950         (s390_preferred_reload_class): Make static. Change return and
12951         'rclass' argument type to reg_class_t.
12953 2011-01-27  Jan Hubicka  <jh@suse.cz>
12955         PR middle-end/46949
12956         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12957         (process_function_and_variable_attributes): Check defined weakrefs.
12959 2011-01-27  Martin Jambor  <mjambor@suse.cz>
12961         PR tree-optimization/47228
12962         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12963         build_ref_for_offset.
12965 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12967         * config/spu/spu-elf.h (ASM_SPEC): Remove.
12969 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
12971         PR rtl-optimization/46856
12972         * postreload.c (reload_combine_recognize_const_pattern): Do not
12973         separate cc0 setter and user on cc0 targets.
12975 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
12977         PR c/43082
12978         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12979         passed a VOID_TYPE expression, immediately emit an error and
12980         return error_mark_node.
12982 2011-01-26  Jeff Law  <law@redhat.com>
12984         PR rtl-optimization/47464
12985         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12986         rather than may_trap_p as needed.
12988 2011-01-26  DJ Delorie  <dj@redhat.com>
12990         PR rtl-optimization/46878
12991         * combine.c (insn_a_feeds_b): Check for the implicit cc0
12992         setter/user dependency as well.
12994 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
12996         PR rtl-optimization/44469
12997         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12998         after removing trivially dead basic blocks.
13000 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13002         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13003         * config/frv/frv.h (LINK_SPEC): Likewise.
13004         * config/i386/netware.h (LINK_SPEC): Likewise.
13005         * config/m68k/linux.h (ASM_SPEC): Likewise.
13006         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13007         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13008         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13009         * config/sparc/linux.h (ASM_SPEC): Likewise.
13010         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13011         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13013 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13015         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13016         * config/frv/frv.h (ASM_SPEC): Likewise.
13017         * config/m68k/linux.h (ASM_SPEC): Likewise.
13018         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13019         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13020         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13021         * config/sparc/linux.h (ASM_SPEC): Likewise.
13022         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13023         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13025 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13027         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13028         * config/frv/frv.h (LINK_SPEC): Likewise.
13029         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13031 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13033         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13034         * config/frv/frv.h (ASM_SPEC): Likewise.
13035         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13036         * config/m68k/linux.h (ASM_SPEC): Likewise.
13037         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13038         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13039         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13040         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13041         * config/sparc/linux.h (ASM_SPEC): Likewise.
13042         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13043         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13044         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13046 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13048         PR target/46997
13049         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13050         (*mux2): Ditto.
13051         (vec_extract_evenodd_help): Ditto.
13052         (vec_extract_evenv4hi): Ditto.
13053         (vec_extract_oddv4hi): Ditto.
13054         (vec_interleave_lowv2si): Ditto.
13055         (vec_interleave_highv2si): Ditto.
13056         (vec_extract_evenv2si): Ditto.
13057         (vec_extract_oddv2si: Ditto.
13058         (vec_pack_trunc_v2si): Ditto.
13060 2011-01-22  Jan Hubicka  <jh@suse.cz>
13062         PR target/47237
13063         * cgraph.h (cgraph_local_info): New field can_change_signature.
13064         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13065         signature can change.
13066         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13067         can change.
13068         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13069         (cgraph_function_versioning): We can not change signature of functions
13070         that don't allow that.
13071         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13072         (lto_input_node): Likewise.
13073         * ipa-inline.c (compute_inline_parameters): Compute
13074         local.can_change_signature.
13075         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13076         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13077         functions that can not change signature.
13078         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13079         init_cumulative_args): Do not use local calling conventions
13080         for functions that can not change signature.
13082 2011-01-22  Jan Hubicka  <jh@suse.cz>
13084         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13086 2011-01-26  Richard Guenther  <rguenther@suse.de>
13088         PR tree-optimization/47190
13089         * cgraphunit.c (process_common_attributes): New function.
13090         (process_function_and_variable_attributes): Use it.
13092 2011-01-26  Richard Guenther  <rguenther@suse.de>
13094         PR lto/47423
13095         * cgraphbuild.c (record_eh_tables): Record reference to personality
13096         function.
13098 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13100         PR debug/45454
13101         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13102         non-debug insns from moving up.
13104 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13106         PR target/40125
13107         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13108         t-dlldir{,-x} fragment for build and add it to tmake_file.
13109         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13110         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13111         * config/i386/t-dlldir: New file.
13112         (SHLIB_DLLDIR): Define.
13113         * config/i386/t-dlldir-x: New file.
13114         (SHLIB_DLLDIR): Define.
13115         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13116         (SHLIB_INSTALL): Use it.
13118 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13120         PR target/47246
13121         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13122         lower bound of the allowed Thumb-2 coprocessor load/store
13123         index range to -256. Add explaining comment.
13125 2011-01-25  Ian Lance Taylor  <iant@google.com>
13127         * godump.c (go_define): Improve lexing of macro expansion to only
13128         accept expressions which match Go spec.
13130 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13132         PR c++/43601
13133         * tree.c (handle_dll_attribute): Handle it.
13134         * doc/extend.texi (@item dllexport): Mention it.
13135         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13137 2011-01-25  Ian Lance Taylor  <iant@google.com>
13139         PR tree-optimization/26854
13140         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13141         (decl_jump_unsafe): Move higher in file, with no other change.
13142         (bind): Set has_jump_unsafe_decl if appropriate.
13143         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13144         (check_earlier_gotos): Likewise.
13145         (c_check_switch_jump_warnings): Likewise.
13147 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13149         * doc/invoke.texi (Warning Options): Add missing hyphen.
13150         (-fprofile-dir): Minor grammatical fixes.
13151         (-fbranch-probabilities): Likewise.
13153 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13155         PR debug/45136
13156         PR debug/45130
13157         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13158         debug insns.
13159         (no_real_insns_p, schedule_block, set_priorities): Drop special
13160         treatment of boundary debug insns.
13161         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13162         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13163         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13164         (BOUNDARY_DEBUG_INSN_P): Likewise.
13165         (SCHEDULE_DEBUG_INSN_P): Likewise.
13166         * sched-rgn.c (init_ready_list): Drop special treatment of
13167         boundary debug insns.
13168         * final.c (rest_of_clean-state): Clear notes' BB.
13170 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13172         * Makefile.in (LAMBDA_H): Removed.
13173         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13174         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13175         lambda-trans.o, and tree-loop-linear.o.
13176         (lto-symtab.o): Remove dependence on LAMBDA_H.
13177         (tree-loop-linear.o): Remove rule.
13178         (lambda-mat.o): Same.
13179         (lambda-trans.o): Same.
13180         (lambda-code.o): Same.
13181         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13182         (tree-vect-slp.o): Same.
13183         * hwint.h (gcd): Moved here.
13184         (least_common_multiple): Same.
13185         * lambda-code.c: Removed.
13186         * lambda-mat.c: Removed.
13187         * lambda-trans.c: Removed.
13188         * lambda.h: Removed.
13189         * tree-loop-linear.c: Removed.
13190         * lto-symtab.c: Do not include lambda.h.
13191         * omega.c (gcd): Removed.
13192         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13193         * tree-data-ref.c (print_lambda_vector): Moved here.
13194         (lambda_vector_copy): Same.
13195         (lambda_matrix_copy): Same.
13196         (lambda_matrix_id): Same.
13197         (lambda_vector_first_nz): Same.
13198         (lambda_matrix_row_add): Same.
13199         (lambda_matrix_row_exchange): Same.
13200         (lambda_vector_mult_const): Same.
13201         (lambda_vector_negate): Same.
13202         (lambda_matrix_row_negate): Same.
13203         (lambda_vector_equal): Same.
13204         (lambda_matrix_right_hermite): Same.
13205         * tree-data-ref.h: Do not include lambda.h.
13206         (lambda_vector): Moved here.
13207         (lambda_matrix): Same.
13208         (dependence_level): Same.
13209         (lambda_transform_legal_p): Removed declaration.
13210         (lambda_collect_parameters): Same.
13211         (lambda_compute_access_matrices): Same.
13212         (lambda_vector_gcd): Same.
13213         (lambda_vector_new): Same.
13214         (lambda_vector_clear): Same.
13215         (lambda_vector_lexico_pos): Same.
13216         (lambda_vector_zerop): Same.
13217         (lambda_matrix_new): Same.
13218         * tree-flow.h (least_common_multiple): Removed declaration.
13219         * tree-parloops.c (lambda_trans_matrix): Moved here.
13220         (LTM_MATRIX): Same.
13221         (LTM_ROWSIZE): Same.
13222         (LTM_COLSIZE): Same.
13223         (LTM_DENOMINATOR): Same.
13224         (lambda_trans_matrix_new): Same.
13225         (lambda_matrix_vector_mult): Same.
13226         (lambda_transform_legal_p): Same.
13227         * tree-pass.h (pass_linear_transform): Removed declaration.
13228         * tree-ssa-loop.c (tree_linear_transform): Removed.
13229         (gate_tree_linear_transform): Removed.
13230         (pass_linear_transform): Removed.
13231         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13232         flag_loop_interchange.
13234 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13236         PR tree-optimization/47265
13237         PR tree-optimization/47443
13238         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13239         if name still has some uses.
13241 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13243         PR tree-optimization/47382
13244         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13245         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13247 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13249         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13250         sjlj_except_unwind_info.
13252 2011-01-25  Richard Guenther  <rguenther@suse.de>
13254         PR tree-optimization/47426
13255         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13256         visible functions results escape.
13258 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13260         PR target/45701
13261         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13262         (arm_get_frame_offsets): Use it.
13264 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13265             Jakub Jelinek  <jakub@redhat.com>
13267         PR tree-optimization/47271
13268         * tree-if-conv.c (bb_postdominates_preds): New.
13269         (if_convertible_bb_p): Call bb_postdominates_preds.
13270         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13271         (predicate_scalar_phi): Call bb_postdominates_preds.
13273 2011-01-25  Nick Clifton  <nickc@redhat.com>
13275         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13276         * config/rx/rx.c (rx_function_value): Likewise.
13277         (rx_promote_function_mode): Likewise.
13278         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13279         in order to make it legitimate.
13280         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13281         make sure that the first operand is the same as the result register.
13282         (addsi3_unspec): Delete.
13283         (subdi3): Do not accept immediate operands.
13284         (subdi3_internal): Likewise.
13286 2011-01-25  Jeff Law  <law@redhat.com>
13288         PR rtl-optimization/37273
13289         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13290         handle them like argument loads from stack slots.  Do not double
13291         count memory for memory constants and argument loads from stack slots.
13293 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13295         PR tree-optimization/47427
13296         PR tree-optimization/47428
13297         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13298         coalesce if the new root var would be TREE_READONLY.
13300 2011-01-25  Richard Guenther  <rguenther@suse.de>
13302         PR middle-end/47414
13303         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13304         correct type for TBAA.
13306 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13308         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13309         (close_phi_written_to_memory): Call for_each_index with
13310         dr_indices_valid_in_loop.
13312 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13314         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13315         when it is initialized.
13317 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13319         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13320         call to graphite_find_data_references_in_stmt.
13321         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13322         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13323         call to graphite_find_data_references_in_stmt.
13324         (analyze_drs_in_stmts): Same.
13325         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13326         in which the scalar analysis of indices is performed.
13327         (create_data_ref): Same.  Update call to dr_analyze_indices.
13328         (find_data_references_in_stmt): Update call to create_data_ref.
13329         (graphite_find_data_references_in_stmt): Same.
13330         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13331         declaration.
13332         (create_data_ref): Same.
13333         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13334         call to create_data_ref.
13336 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13338         * graphite-sese-to-poly.c (build_poly_scop): Move
13339         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13341 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13343         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13344         VAR_DECL, PARM_DECL, and RESULT_DECL.
13346 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13348         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13349         in a reduction PBB.
13350         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13351         that have already been marked as PBB_IS_REDUCTION.
13353 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13355         * graphite-scop-detection.c (same_close_phi_node): New.
13356         (remove_duplicate_close_phi): New.
13357         (make_close_phi_nodes_unique): New.
13358         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13360 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13362         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13363         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13364         of both data references to be the same.
13366 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13368         * graphite-dependences.c (build_lexicographical_constraint): Remove
13369         the gdim parameter.
13370         (build_lexicographical_constraint): Adjust call to
13371         ppl_powerset_is_empty.
13372         (dependence_polyhedron): Same.
13373         (graphite_legal_transform_dr): Same.
13374         (graphite_carried_dependence_level_k): Same.
13375         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13376         parameter.
13377         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13379 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13381         * graphite-sese-to-poly.c
13382         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13383         (close_phi_written_to_memory): New.
13384         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13385         and unshare_expr.
13387 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13389         * doc/install.texi: Update the expected version number of PPL to 0.11.
13390         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13391         #if PPL_VERSION_MINOR < 11.
13393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13395         * graphite-dependences.c: Include graphite-cloog-util.h.
13396         (new_poly_ddr): Inlined into dependence_polyhedron.
13397         (free_poly_ddr): Moved close by new_poly_ddr.
13398         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13399         Early return NULL when ppl_powerset_is_empty returns true.
13400         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13401         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13402         (graphite_legal_transform_dr): Call new_poly_ddr.
13403         (graphite_carried_dependence_level_k): Same.
13404         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13405         (dot_transformed_deps_stmt_1): Removed.
13406         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13407         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13408         (dot_deps_1): Call dot_deps_2.
13409         * Makefile.in (graphite-dependences.o): Add missing dependence on
13410         graphite-cloog-util.h.
13412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13414         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13415         (build_lexicographical_constraint): Same.
13416         (dependence_polyhedron_1): Same.
13417         (graphite_legal_transform_dr): Same.
13418         (graphite_carried_dependence_level_k): Same.
13419         * graphite-ppl.c (ppl_powerset_is_empty): New.
13420         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13421         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13423 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13425         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13426         the "a followed by b" relation and document it.
13428 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13430         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13431         iteration when the bag of constraints is empty.
13433 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13435         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13437 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13439         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13440         nest and two loop depths as parameters.
13441         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13442         lst_perfect_nestify.
13444 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13446         * graphite-dependences.c (print_pddr): Call
13447         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13449 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13451         * graphite-ppl.c (debug_gmp_value): New.
13452         * graphite-ppl.h (debug_gmp_value): Declared.
13454 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13456         * doc/install.texi: Document availability of cloog-0.16.
13458 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13460         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13461         invalid postdominance info.
13463 2011-01-24  Jan Hubicka  <jh@suse.cz>
13465         PR c/21659
13466         * doc/extend.texi (weak pragma): Drop claim that it must
13467         appear before definition.
13468         * varasm.c (merge_weak, declare_weak): Only sanity check
13469         that DECL is not output at a time it is declared weak.
13471 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13473         * machmode.def: Fixed comments.
13475 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13477         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13479 2011-01-24  Paul Koning  <ni1d@arrl.net>
13481         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13482         WORDS_BIG_ENDIAN.
13484 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13486         PR target/46519
13487         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13488         (block_info): Add scanned and prev.
13489         (move_or_delete_vzeroupper_2): Return if the basic block
13490         has been scanned and the upper 128bit state is unchanged
13491         from the last scan.
13492         (move_or_delete_vzeroupper_1): Return true if the exit
13493         state is changed.
13494         (move_or_delete_vzeroupper): Visit basic blocks using the
13495         work-list based algorithm based on vt_find_locations in
13496         var-tracking.c.
13498         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13500 2011-01-24  Nick Clifton  <nickc@redhat.com>
13502         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13503         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13504         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13505         then define __v850e1__.
13506         * doc/invoke.texi: Document -mv850es.
13508 2011-01-24  Richard Henderson  <rth@redhat.com>
13510         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13511         compound unordered comparisons.
13512         * config/rx/rx.c (rx_split_fp_compare): Remove.
13513         * config/rx/rx-protos.h: Update.
13514         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13515         (cbranchsf4): Don't call rx_split_fp_compare.
13516         (*cbranchsf4): Use rx_split_cbranch.
13517         (*cmpsf): Don't accept "i" constraint.
13518         (*conditional_branch): Only valid after reload.
13519         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13521 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13523         PR target/47385
13524         * config/rs6000/altivec.md (vector constant splitters): Add
13525         support for creating vector single precision constants if -mvsx is
13526         used and we would create the constant using Altivec primitives.
13528 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13529             Richard Sandiford  <rdsandiford@googlemail.com>
13531         PR rtl-optimization/47166
13532         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13533         mechanism for PRE_MODIFY and POST_MODIFY.
13534         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13535         reloadreg.
13537 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13539         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13541 2011-01-22  Jan Hubicka  <jh@suse.cz>
13543         PR lto/47333
13544         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13546 2011-01-22  Jan Hubicka  <jh@suse.cz>
13548         PR tree-optimization/43884
13549         PR lto/44334
13550         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13551         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13553 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13555         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13556         * config/s390/s390.c (s390_register_move_cost,
13557         s390_memory_move_cost): New.
13558         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13560 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13562         PR middle-end/47401
13563         * except.c (sjlj_assign_call_site_values): Move setting the
13564         crtl->uses_eh_lsda flag to ...
13565         (sjlj_mark_call_sites): ... here.
13566         (sjlj_emit_function_enter): Support NULL dispatch label.
13567         (sjlj_build_landing_pads): In a function with no landing pads
13568         that still has must-not-throw regions, generate code to register
13569         a personality function with empty LSDA.
13571 2011-01-21  Richard Henderson  <rth@redhat.com>
13573         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13575         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13577         * compare-elim.c: New file.
13578         * Makefile.in (OBJS-common): Add it.
13579         (compare-elim.o): New.
13580         * common.opt (fcompare-elim): New.
13581         * opts.c (default_options_table): Add OPT_fcompare_elim.
13582         * tree-pass.h (pass_compare_elim_after_reload): New.
13583         * passes.c (init_optimization_passes): Add it.
13584         * recog.h: Protect against re-inclusion.
13585         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13586         * doc/invoke.texi (-fcompare-elim): Document it.
13587         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13588         * doc/tm.texi: Rebuild.
13590 2011-01-22  Nick Clifton  <nickc@redhat.com>
13592         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13593         rx_split_fp_compare.
13595 2011-01-22  Nick Clifton  <nickc@redhat.com>
13597         * config/rx/rx.md (UNSPEC_CONST): New.
13598         (deallocate_and_return): Wrap the amount popped off the stack in
13599         an UNSPEC_CONST in order to stop it being rejected by
13600         -mmax-constant-size.
13601         (pop_and_return): Add a "(return)" rtx.
13602         (call): Drop the immediate operand.
13603         (call_internal): Likewise.
13604         (call_value): Likewise.
13605         (call_value_internal): Likewise.
13606         (sibcall_internal): Likewise.
13607         (sibcall_value_internal): Likewise.
13608         (sibcall): Likewise.  Generate an explicit call using
13609         sibcall_internal.
13610         (sibcall_value): Likewise.
13611         (mov<>): FAIL if a constant operand is not legitimate.
13612         (addsi3_unpsec): New pattern.
13614         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13615         (ok_for_max_constant): New function.
13616         (gen_safe_add): New function.
13617         (rx_expand_prologue): Use gen_safe_add.
13618         (rx_expand_epilogue): Likewise.
13619         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13620         UNSPEC CONSTs.
13622 2011-01-21  Jeff Law  <law@redhat.com>
13624         PR tree-optimization/47053
13625         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13626         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13627         statements are deleted.
13628         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13629         is nonempty, then purge dead edges and cleanup the CFG.
13631 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13633         PR debug/47402
13634         Temporarily revert:
13635         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13636         PR debug/47106
13637         * tree-dfa.c (create_var_ann): Mark variable as used.
13639 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13641         PR middle-end/45566
13642         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13643         notes from other section in hot/cold partitioning even if
13644         last_action is -3.  Increment call_site_base.
13646         PR rtl-optimization/47366
13647         * fwprop.c (forward_propagate_into): Return bool.  If
13648         any changes are made, -fnon-call-exceptions is used and
13649         REG_EH_REGION note is present, call purge_dead_edges
13650         and return true if it purged anything.
13651         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13652         any EH edges were purged.
13654 2011-01-21  Jeff Law  <law@redhat.com>
13656         PR rtl-optimization/41619
13657         * caller-save.c (setup_save_areas): Break out code to determine
13658         which hard regs are live across calls by examining the reload chains
13659         so that it is always used.
13660         Eliminate code which checked REG_N_CALLS_CROSSED.
13662 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13664         PR tree-optimization/47355
13665         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13666         NOP has non-debug uses beyond PHIs in new_bb.
13668 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13670         PR debug/47106
13671         * cfgexpand.c (account_used_vars_for_block): Only account vars
13672         that are annotated as used.
13673         (estimated_stack_frame_size): Don't set TREE_USED.
13674         * tree-dfa.c (create_var_ann): Mark variable as used.
13676 2011-01-21  Richard Guenther  <rguenther@suse.de>
13678         PR middle-end/47395
13679         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13681 2011-01-21  Richard Guenther  <rguenther@suse.de>
13683         PR tree-optimization/47365
13684         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13685         (vn_reference_lookup_pieces): Adjust.
13686         (vn_reference_lookup): Likewise.
13687         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13688         (vn_reference_lookup_3): Only look through kills if in
13689         VN_WALKREWRITE mode.
13690         (vn_reference_lookup_pieces): Adjust.
13691         (vn_reference_lookup): Likewise.
13692         (visit_reference_op_load): Likewise.
13693         (visit_reference_op_store): Likewise.
13694         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13695         (compute_avail): Likewise.
13696         (eliminate): Likewise.
13698 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13700         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13701         DECL_IGNORED_P non-reg vars if they are used.
13703         PR tree-optimization/47391
13704         * varpool.c (const_value_known_p): Return false if
13705         decl is volatile.
13707 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13709         PR bootstrap/47215
13710         * config/i386/i386.c (ix86_local_alignment): Handle
13711         case for va_list_type_node is nil.
13712         (ix86_canonical_va_list_type): Likewise.
13714 2011-01-21  Alan Modra  <amodra@gmail.com>
13716         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13717         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13719 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13721         * config/arm/arm.md (define_attr type): Rename f_load
13722         and f_store to f_fpa_load and f_fpa_store. Update.
13723         (write_conflict): Deal with rename fallout.
13724         (*push_fp_multi): Likewise.
13725         * config/arm/fpa.md (f_load): Use f_fpa_load.
13726         (f_store): Use f_fpa_store.
13727         (*movsf_fpa): Likewise.
13728         (*movdf_fpa): Likewise.
13729         (*movxf_fpa): Likewise.
13730         (*thumb2_movsf_fpa): Likewise.
13731         (*thumb2_movdf_fpa): Likewise.
13732         (*thumb2_movxf_fpa): Likewise.
13733         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13734         f_loadd and f_stored.
13735         (*thumb2_movdi_vfp): Likewise.
13736         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13737         (*thumb2_movsi_vfp): Likewise.
13738         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13739         Use f_loads instead of f_load.
13740         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13742 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13744         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13745         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13746         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13747         (xtensa_mode_dependent_address_p): New function.
13748         (constantpool_address_p): Make static. Change return type to bool.
13749         Change argument type to const_rtx. Use CONST_INT_P predicate.
13751 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13753         PR debug/46583
13754         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13756 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13758         PR debug/47283
13759         * cfgexpand.c (expand_debug_expr): Instead of generating
13760         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13761         etc. handling.
13763 2011-01-20  Richard Guenther  <rguenther@suse.de>
13765         PR middle-end/47370
13766         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13767         the pointer operand of MEM_REFs.
13769 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13771         PR tree-optimization/46130
13772         * ipa-split.c (consider_split): If return_bb contains non-virtual
13773         PHIs other than for retval or if split_function would not adjust it,
13774         refuse to split.
13776 2011-01-20  Richard Guenther  <rguenther@suse.de>
13778         PR tree-optimization/47167
13779         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13780         Revert previous change, only avoid enumeral type changes.
13782 2011-01-19  Mike Stump  <mikestump@comcast.net>
13784         * doc/tm.texi.in (BRANCH_COST): Englishify.
13785         * doc/tm.texi (BRANCH_COST): Likewise.
13787 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13789         PR c++/47291
13790         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13791         (gen_scheduled_generic_parms_dies): New functions.
13792         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13793         generation for the end of CU compilation.
13794         (dwarf2out_finish): Generate template parameters DIEs here.
13796 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13798         PR debug/46240
13799         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13800         debug bind stmt on merge edges.
13802 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13804         PR debug/47079
13805         PR debug/46724
13806         * function.c (instantiate_expr): Instantiate incoming rtl of
13807         implicit arguments, and recurse on VALUE_EXPRs.
13808         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13809         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13811 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13813         * c-parser.c (c_parser_for_statement): Initialize
13814         collection_expression.
13816 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13818         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13820 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13822         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13823         (LINK_SHLIB_SPEC): Don't use %(link_path).
13824         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13826 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13828         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13829         (NO_SHARED_LIB_SUPPORT): Remove.
13830         (LINK_SHLIB_SPEC): Remove one conditional definition.
13832 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13834         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13835         %{call_shared}.
13836         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13837         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13838         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13839         %{call_shared} and conditionals on these options not being passed.
13840         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13841         %{call_shared}.
13843 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13845         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13846         simplify.
13848         * ipa-split.c: Spelling fixes.
13850 2011-01-19  Richard Henderson  <rth@redhat.com>
13852         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13853         (*mulsi3): Likewise.
13855         * longlong.h [__mn10300__] (count_leading_zeros): New.
13856         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13857         [__mn10300__] (add_ssaaaa, subddmmss): New.
13858         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13859         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13861 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13863         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13865 2011-01-19  Richard Henderson  <rth@redhat.com>
13867         * config/mn10300/mn10300.md (addsi3_flags): New.
13868         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13869         (subsi3_flags, subc_internal, subdi3): New.
13870         (subdi3_internal, *subdi3_degenerate): New.
13871         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13873         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13874         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13875         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13876         * config/mn10300/mn10300-protos.h: Update.
13877         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13878         (return_ret): Likewise.  Rename from return_internal_regs.
13879         (return_internal): Remove.
13881         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13882         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13883         (mn10300_legitimate_constant_p): Likewise.
13884         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13885         (mn10300_frame_size): New.
13886         (mn10300_expand_prologue): Use it.
13887         (mn10300_expand_epilogue): Likewise.
13888         (mn10300_initial_offset): Likewise.
13889         * config/mn10300/mn10300-protos.h: Update.
13890         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13891         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13892         (prologue, epilogue, return_internal): Tidy output code.
13893         (mn10300_store_multiple_operation, return): Likewise.
13894         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13895         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13896         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13897         (load_pic, am33_load_pic): New.
13898         (mn10300_load_pic0, mn10300_load_pic1): New.
13900         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13901         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13902         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13903         (cc_flags_for_mode, cc_flags_for_code): New.
13904         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13905         overflow flag is not valid.  Validate that the flags we need
13906         for the comparison are valid.
13907         (mn10300_output_cmp): Remove.
13908         (mn10300_output_add): New.
13909         (mn10300_select_cc_mode): Use cc_flags_for_code.
13910         (mn10300_split_cbranch): New.
13911         (mn10300_match_ccmode): New.
13912         (mn10300_split_and_operand_count): New.
13913         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13914         to the function.
13915         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13916         (addsi3): ... here.  Use mn10300_output_add.
13917         (*addsi3_flags): New.
13918         (*am33_subsi3, *mn10300_subsi3): Merge...
13919         (subsi3): ... here.  Use attribute isa.
13920         (*subsi3_flags): New.
13921         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13922         when possible.
13923         (*am33_andsi3, *mn10300_andsi3): Merge...
13924         (andsi3): ... here.
13925         (*andsi3_flags): New.
13926         (andsi3 splitters): New.
13927         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13928         (iorsi3): ... here.
13929         (*iorsi3_flags): New.
13930         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13931         (xorsi3): ... here.
13932         (*xorsi3_flags): New.
13933         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13934         (one_cmplsi2): ... here.
13935         (*one_cmplsi2_flags): New.
13936         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13937         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13938         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13939         use matching constraints to eliminate a self-comparison.
13940         (*integer_conditional_branch): Rename from integer_conditional_branch.
13941         Use int_mode_flags to match CC_REG.
13942         (*cbranchsi4_btst, *btstsi): New.
13943         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13944         mn10300_split_cbranch.
13945         (*am33_cmpsf): Rename from am33_cmpsf.
13946         (*float_conditional_branch): Rename from float_conditional_branch.
13947         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13948         (zero_extendqisi2): ... here.
13949         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13950         (zero_extendhisi2): ... here.
13951         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13952         (extendqisi2): ... here.
13953         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13954         (extendhisi2): ... here.
13955         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13956         (ashlsi3): ... here.
13957         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13958         (lshrsi3): ... here.
13959         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13960         (ashrsi3): ... here.
13961         (consecutive add peephole): Remove.
13962         * config/mn10300/predicates.md (label_ref_operand): New.
13963         (int_mode_flags): New.
13964         (CCZN_comparison_operator): New.
13966         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13967         (throughput_42_latency_43): New reservation.
13968         (mulsidi3, umulsidi3): New expanders.
13969         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
13970         the MDR register to allocation; separately allocate the low and
13971         high parts of the DImode result.
13972         (umulsidi3_internal): Similarly.
13973         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13974         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
13975         (udivsi3, umodsi3): Remove.
13976         (udivmodsi4, divmodsi4): New expanders.
13977         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
13978         (*divmodsi4): Simiarly.
13979         (ext_internal): New.
13981         * config/mn10300/constraints.md ("z"): New constraint.
13982         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13983         (FIXED_REGISTERS): Don't fix MDR.
13984         (CALL_USED_REGSITERS): Reformat nicely.
13985         (REG_ALLOC_ORDER): Add MDR.
13986         (enum regclass): Add MDR_REGS.
13987         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13988         (IRA_COVER_CLASSES): Add MDR_REGS.
13989         (REGNO_REG_CLASS): Handle MDR_REG.
13990         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13991         (mn10300_register_move_cost): Likewise.
13992         * config/mn10300/mn10300.md (MDR_REG): New.
13993         (*movsi_internal): Handle moves to/from MDR_REGS.
13995         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13996         POST_MODIFY.
13997         (mn10300_secondary_reload): Tidy combination reload classes.
13998         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13999         addresses for AM33.  Allow symbolic offsets for reg+imm.
14000         (mn10300_regno_in_class_p): New.
14001         (mn10300_legitimize_reload_address): New.
14002         * config/mn10300/mn10300.h (enum reg_class): Remove
14003         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14004         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14005         SP_OR_GENERAL_REGS.
14006         (REG_CLASS_NAMES): Update to match.
14007         (REG_CLASS_CONTENTS): Likewise.
14008         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14009         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14010         (REGNO_IN_RANGE_P): Remove.
14011         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14012         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14013         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14014         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14015         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14016         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14017         (REGNO_GENERAL_P): New.
14018         (HAVE_POST_MODIFY_DISP): New.
14019         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14020         (LEGITIMIZE_RELOAD_ADDRESS): New.
14021         * config/mn10300/mn10300-protos.h: Update.
14023         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14024         DATA_REGS for AM33 stack-pointer destination.
14025         (mn10300_preferred_output_reload_class): Likewise.
14026         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14027         into a form appropriate for ...
14028         (TARGET_SECONDARY_RELOAD): New.
14029         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14030         * config/mn10300/mn10300-protos.h: Update.
14031         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14032         reload_insi; use the "A" constraint for the scratch; handle AM33
14033         moves of sp to non-address registers.
14035         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14036         (*movqi_internal): ... here.
14037         (*am33_movhi, *mn10300_movhi): Merge into...
14038         (*movhi_internal): ... here.
14039         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14040         as the source/destination of moves from/to SP.
14041         (movsf): Only allow for AM33-2.
14042         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14043         any integer constant constraint.  Only allow for AM33-2.  Tidy
14044         all of the alternative outputs.
14045         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14046         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14047         for MN103.
14048         (udivsi3, umodsi3): New patterns for MN103 only.
14050 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14052         * doc/tm.texi.in: Spell out that a lack of register class unions
14053         can lead to ICEs.
14054         * doc/tm.texi: Regenerate.
14056 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14058         PR rtl-optimization/47337
14059         * dce.c (check_argument_store): New function.
14060         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14062         PR tree-optimization/47290
14063         * tree-eh.c (infinite_empty_loop_p): New function.
14064         (cleanup_empty_eh): Use it.
14066 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14068         PR target/46997
14069         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14070         (a64_expand_widen_sum): Ditto.
14071         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14072         (vec_extract_evenodd_help): Ditto.
14073         (vec_extract_evenv4hi): Ditto.
14074         (vec_extract_oddv4hi): Ditto.
14075         (vec_extract_evenv2si): Ditto.
14076         (vec_extract_oddv2si): Ditto.
14077         (vec_extract_evenv2sf): Ditto.
14078         (vec_extract_oddv2sf): Ditto.
14079         (vec_pack_trunc_v4hi: Ditto.
14080         (vec_pack_trunc_v2si): Ditto.
14081         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14082         (vec_interleave_highv8qi): Ditto.
14083         (mix1_r): Ditto.
14084         (vec_extract_oddv8qi): Ditto.
14085         (vec_interleave_lowv4hi): Ditto.
14086         (vec_interleave_highv4hi): Ditto.
14087         (vec_interleave_lowv2si): Ditto.
14088         (vec_interleave_highv2si): Ditto.
14090 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14092         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14093         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14094         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14095         (pa_c_mode_for_suffix): New.
14096         (TARGET_EXPAND_BUILTIN): Define.
14097         (TARGET_C_MODE_FOR_SUFFIX): Define.
14098         (pa_builtins): Define.
14099         (pa_init_builtins): Register __float128 type and init new support
14100         builtins.
14101         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14102         * config/pa/quadlib.c (_U_Qfcopysign): New.
14104 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14106         PR middle-end/46894
14107         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14108         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14109         are defined.
14111 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14113         PR tree-optimization/47179
14114         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14115         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14117 2011-01-18  Richard Guenther  <rguenther@suse.de>
14119         PR rtl-optimization/47216
14120         * emit-rtl.c: Include tree-flow.h.
14121         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14122         of replicating it with different semantics.
14123         * Makefile.in (emit-rtl.o): Adjust.
14125 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14127         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14128         (cortex_a9_dp): Handle neon types correctly.
14130 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14132         PR rtl-optimization/47299
14133         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14134         subtarget.  Use normal multiplication if both operands are constants.
14135         * expmed.c (expand_widening_mult): Don't try to optimize constant
14136         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14137         before using it.
14139 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14141         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14142         spacing after 'e.g.', typos, comma, hyphenation.
14144 2011-01-17  Richard Henderson  <rth@redhat.com>
14146         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14147         (rx_restricted_mem_operand): New.
14148         (rx_shift_operand): Use register_operand.
14149         (rx_source_operand, rx_compare_operand): Likewise.
14150         * config/rx/rx.md (addsi3_flags): New expander.
14151         (adddi3): Rewrite as expander.
14152         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14153         (subsi3_flags): New expander.
14154         (subdi3): Rewrite as expander.
14155         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14157         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14158         (rx_init_builtins): Remove sat builtin.
14159         (rx_expand_builtin): Likewise.
14160         * config/rx/rx.md (ssaddsi3): New.
14161         (*sat): Rename from sat.  Represent the CC_REG input.
14163         * config/rx/predicates.md (rshift_operator): New.
14164         * config/rx/rx.c (rx_expand_insv): Remove.
14165         * config/rx/rx-protos.h: Update.
14166         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14167         operand to the canonical position.
14168         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14169         (*bitclr, *bitclr_in_memory): Similarly.
14170         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14171         (insv): Retain the zero_extract in the expansion.
14173         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14174         (bswaphi2, bitinvert, revw): Likewise.
14176         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14177         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14178         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14179         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14180         (bitset, bitset_in_memory): Likewise.
14181         (bitinvert, bitinvert_in_memory): Likewise.
14182         (bitclr, bitclr_in_memory): Likewise.
14183         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14184         (rx_strend, rx_cmpstrn): Likewise.
14185         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14186         (bitop peep2 patterns): Remove.
14188         * config/rx/rx.c (rx_match_ccmode): New.
14189         * config/rx/rx-protos.h: Update.
14190         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14191         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14192         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14193         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14194         (fix_truncsfsi2, floatsisf2): Likewise.
14195         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14196         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14197         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14198         (*subsi3_flags, *xorsi3_flags): New.
14200         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14202         * config/rx/rx.c (rx_print_operand): Remove workaround for
14203         unsplit comparison operations.
14205         * config/rx/rx.md (movsicc): Split after reload.
14206         (*movsicc): Merge *movsieq and *movsine via match_operator.
14207         (*stcc): New pattern.
14209         * config/rx/rx.c (rx_float_compare_mode): Remove.
14210         * config/rx/rx.h (rx_float_compare_mode): Remove.
14211         * config/rx/rx.md (cstoresi4): Split after reload.
14212         (*sccc): New pattern.
14214         * config/rx/predicates.md (label_ref_operand): New.
14215         (rx_z_comparison_operator): New.
14216         (rx_zs_comparison_operator): New.
14217         (rx_fp_comparison_operator): New.
14218         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14219         Validate that the flags are set properly for the comparison.
14220         (rx_gen_cond_branch_template): Remove.
14221         (rx_cc_modes_compatible): Remove.
14222         (mode_from_flags): New.
14223         (flags_from_code): Rename from flags_needed_for_conditional.
14224         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14225         (rx_select_cc_mode): Likewise.
14226         (rx_split_fp_compare): New.
14227         (rx_split_cbranch): New.
14228         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14229         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14230         (*cbranchsf4): Similarly.
14231         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14232         match_operator and rx_split_cbranch.
14233         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14234         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14235         (*cmpsi): Rename from cmpsi.
14236         (*tstsi): Rename from tstsi.
14237         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14238         (*conditional_branch): Rename from conditional_branch.
14239         (*reveresed_conditional_branch): Remove.
14240         (b<code>): Remove expander.
14241         * config/rx/rx-protos.h: Update.
14243         * config/rx/rx.c (rx_compare_redundant): Remove.
14244         * config/rx/rx.md (cmpsi): Don't use it.
14245         * config/rx/rx-protos.h: Update.
14247         * config/rx/rx-modes.def (CC_F): New mode.
14248         * config/rx/rx.c (rx_select_cc_mode): New.
14249         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14250         * config/rx/rx-protos.h: Update.
14252 2011-01-17  Richard Henderson  <rth@redhat.com>
14254         * except.c (dump_eh_tree): Fix stray ; after for statement.
14256 2011-01-17  Richard Guenther  <rguenther@suse.de>
14258         PR tree-optimization/47313
14259         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14260         handling before copying the body.  Properly deal with
14261         by-reference result in SSA form.
14263 2011-01-17  Ian Lance Taylor  <iant@google.com>
14265         PR target/47219
14266         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14267         (struct_value_alias_set): Don't define.
14268         (sparc_option_override): Don't set sparc_sr_alias_set and
14269         struct_value_alias_set.
14270         (save_or_restore_regs): Use gen_frame_mem rather than calling
14271         set_mem_alias_set.
14272         (sparc_struct_value_rtx): Likewise.
14274 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14276         PR target/47318
14277         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14278         (_mm_maskstore_pd): Likewise.
14279         (_mm_maskload_ps): Likewise.
14280         (_mm_maskstore_ps): Likewise.
14281         (_mm256_maskload_pd): Change mask to __m256i.
14282         (_mm256_maskstore_pd): Likewise.
14283         (_mm256_maskload_ps): Likewise.
14284         (_mm256_maskstore_ps): Likewise.
14286         * config/i386/i386-builtin-types.def: Updated.
14287         (ix86_expand_special_args_builtin): Likewise.
14289         * config/i386/i386.c (bdesc_special_args): Update
14290         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14291         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14292         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14293         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14295         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14296         Use <avxpermvecmode> on mask register.
14297         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14299 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14300             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14301             Eric Botcazou  <ebotcazou@adacore.com>
14303         PR target/46655
14304         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14305         if <= USHRT_MAX in 32-bit mode.
14307 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14309         * doc/install.texi (Configuration, Specific): Wrap long
14310         lines in examples.  Allow line wrapping in long options
14311         and URLs where beneficial for PDF output.
14313 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14315         * config/mips/mips.c (mips_classify_symbol): Don't return
14316         SYMBOL_PC_RELATIVE for nonlocal labels.
14318 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14320         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14322 2011-01-15  Jan Hubicka  <jh@suse.cz>
14324         PR tree-optimization/47276
14325         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14326         declarations as needed.
14328 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14330         * common.opt (fdevirtualize): New flag.
14331         * doc/invoke.texi (Option Summary): Document it.
14332         * opts.c (default_options_table): Add devirtualize flag.
14333         * ipa-prop.c (detect_type_change): Return immediately if
14334         devirtualize flag is not set.
14335         (detect_type_change_ssa): Likewise.
14336         (compute_known_type_jump_func): Likewise.
14337         (ipa_analyze_virtual_call_uses): Likewise.
14339 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14341         PR tree-optimization/45934
14342         PR tree-optimization/46302
14343         * ipa-prop.c (type_change_info): New type.
14344         (stmt_may_be_vtbl_ptr_store): New function.
14345         (check_stmt_for_type_change): Likewise.
14346         (detect_type_change): Likewise.
14347         (detect_type_change_ssa): Likewise.
14348         (compute_complex_assign_jump_func): Check for dynamic type change.
14349         (compute_complex_ancestor_jump_func): Likewise.
14350         (compute_known_type_jump_func): Likewise.
14351         (compute_scalar_jump_functions): Likewise.
14352         (ipa_analyze_virtual_call_uses): Likewise.
14353         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14355 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14357         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14358         * config/i386/i386.opt (msse5): New Alias.
14360 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14362         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14363         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14364         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14365         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14367 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14369         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14370         -mcpu options.
14371         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14372         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14373         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14374         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14375         Likewise.
14376         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14378 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14380         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14382 2011-01-14  Mike Stump  <mikestump@comcast.net>
14384         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14385         * config/fr30/fr30.md: Likweise
14386         (movsi_push): Likewise.
14387         (movsi_pop): Likewise.
14388         (enter_func): Likewise.
14389         * config/moxie/moxie.md (movsi_push): Likewise.
14390         (movsi_pop): Likewise.
14392 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14394         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14395         %{no_archive} %{exact_version}.
14396         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14397         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14398         %{no_archive} %{exact_version}.
14399         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14400         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14401         * config/mips/vxworks.h: Likewise.
14403 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14405         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14407 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14409         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14410         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14412 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14414         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14415         -nodefaultlib.
14417 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14419         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14420         for mcpu not cpu.
14421         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14422         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14423         not cpu.
14424         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14425         Don't handle -shlib.
14427 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14429         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14430         (CC1_SPEC): Don't handle -profile.
14432 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14434         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14435         * config/mips/mips.h (CC1_SPEC): Likewise.
14437 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14439         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14440         * config/mips/mips.h (CC1_SPEC): Likewise.
14442 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14444         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14445         * config/m32r/linux.h (LINK_SPEC): Likewise.
14446         * config/mips/linux.h (LINK_SPEC): Likewise.
14447         * config/mips/linux64.h (LINK_SPEC): Likewise.
14448         * config/sparc/linux.h (LINK_SPEC): Likewise.
14449         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14450         LINK_SPEC): Likewise.
14451         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14453 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14455         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14456         %{version:-v}.
14457         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14459 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14461         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14462         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14464 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14466         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14468 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14470         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14471         supports -Bstatic/-Bdynamic.
14472         * configure: Regenerate.
14474 2011-01-14  Jan Hubicka  <jh@suse.cz>
14475             Jack Howarth  <howarth@bromo.med.uc.edu>
14477         PR target/46037
14478         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14479         when checking debug_info_level. Test write_symbols instead of
14480         debug_hooks->var_location when setting flag_var_tracking_uninit.
14482 2011-01-14  Richard Guenther  <rguenther@suse.de>
14484         PR tree-optimization/47179
14485         * target.def (ref_may_alias_errno): New target hook.
14486         * targhooks.h (default_ref_may_alias_errno): Declare.
14487         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14488         (default_ref_may_alias_errno): New function.
14489         * target.h (struct ao_ref_s): Declare.
14490         * tree-ssa-alias.c: Include target.h.
14491         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14492         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14493         (targhooks.o): Likewise.
14494         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14495         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14497 2011-01-14  Richard Guenther  <rguenther@suse.de>
14499         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14501 2011-01-14  Richard Guenther  <rguenther@suse.de>
14503         PR tree-optimization/47280
14504         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14505         return CFG changes.
14506         (tree_ssa_forward_propagate_single_use_vars): Deal with
14507         CFG changes from associate_plusminus.
14509 2011-01-14  Richard Guenther  <rguenther@suse.de>
14511         PR middle-end/47281
14512         Revert
14513         2011-01-11  Richard Guenther  <rguenther@suse.de>
14515         PR tree-optimization/46076
14516         * tree-ssa.c (useless_type_conversion_p): Conversions from
14517         unprototyped to empty argument list function types are useless.
14519 2011-01-14  Richard Guenther  <rguenther@suse.de>
14521         PR tree-optimization/47286
14522         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14524 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14526         PR middle-end/46823
14527         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14529 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14531         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14532         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14533         * config/xtensa/xtensa.c (xtensa_libcall_value,
14534         xtensa_function_value_regno_p): New functions.
14535         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14537 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14539         PR c++/47213
14540         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14541         PE specific hook.
14542         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14543         New function prototype.
14544         * config/i386/winnt.c (i386_pe_assemble_visibility):
14545         Warn only if attribute was specified by user.
14547 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14549         PR target/47251
14550         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14551         floating point.
14552         (floatunsdidf2_fcfidu): Ditto.
14554 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14556         * config/s390/s390.c (print_operand_address): Replace 'error' with
14557         'output_operand_lossage'.
14558         (print_operand): Likewise.
14560 2011-01-13  Jeff Law  <law@redhat.com>
14562         PR rtl-optimization/39077
14563         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14564         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14565         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14566         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14567         * gcse.c (prune_insertions_deletions): New function.
14568         (compute_pre_data): Use it.
14570 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14572         PR debug/PR46973
14573         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14574         static function.
14575         (prune_unused_types_mark): Use it.
14577 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14579         PR rtl-optimization/45352
14580         * sel-sched.c: Update copyright years.
14581         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14582         in the advancing loop when we have issued issue_rate insns.
14584 2011-01-12  Richard Henderson  <rth@redhat.com>
14586         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14587         (TARGET_MD_ASM_CLOBBERS): New.
14589         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14590         (TARGET_DELEGITIMIZE_ADDRESS): New.
14592         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14593         (clzsi2, *bsch): New patterns.
14595         * config/mn10300/mn10300.md (INT): New mode iterator.
14596         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14598         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14599         flag_split_wide_types.
14601         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14602         (mn10300_trampoline_init): Rewrite without a template, an immediate
14603         load and a direct branch.
14604         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14606 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14608         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14609         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14610         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14611         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14613 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14615         PR debug/47209
14616         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14617         of type.
14619 2011-01-12  Jan Hubicka  <jh@suse.cz>
14621         PR driver/47244
14622         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14623         (PLUGIN_COND_CLOSE): New macro.
14624         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14626 2011-01-12  Richard Guenther  <rguenther@suse.de>
14628         PR lto/47259
14629         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14630         register variables in a MEM_REF.
14632 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14634         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14635         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14636         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14637         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14638         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14639         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14640         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14641         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14642         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14643         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14644         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14645         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14646         * config/gnu-user.h: New.  Copied from linux.h.
14647         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14648         GNU_USER_TARGET_STARTFILE_SPEC.
14649         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14650         GNU_USER_TARGET_ENDFILE_SPEC.
14651         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14652         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14653         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14654         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14655         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14656         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14657         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14658         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14659         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14660         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14661         * config/arm/linux-eabi.h (CC1_SPEC): Use
14662         GNU_USER_TARGET_CC1_SPEC.
14663         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14664         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14665         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14666         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14667         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14668         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14669         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14670         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14672 2011-01-12  Richard Guenther  <rguenther@suse.de>
14674         PR other/46946
14675         * doc/invoke.texi (ffast-math): Document it is turned on
14676         with -Ofast.
14678 2011-01-12  Jan Hubicka  <jh@suse.cz>
14680         PR tree-optimization/47233
14681         * opts.c (common_handle_option): Disable ipa-reference with profile
14682         feedback.
14684 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14686         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14687         error message.
14689 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14691         * c-parser.c (c_lex_one_token): Updated and reindented some
14692         comments.  No changes in code.
14694 2011-01-11  Ian Lance Taylor  <iant@google.com>
14696         * godump.c (go_output_var): Don't output the variable if there is
14697         already a type with the same name.
14699 2011-01-11  Ian Lance Taylor  <iant@google.com>
14701         * godump.c (go_format_type): Don't generate float80.
14703 2011-01-11  Richard Henderson  <rth@redhat.com>
14705         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14706         declaration.  Rewrite for both speed and size.
14707         (mn10300_address_cost_1): Remove.
14708         (mn10300_register_move_cost): New.
14709         (mn10300_memory_move_cost): New.
14710         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14711         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14712         extensions, shifts, BSWAP, CLZ.
14713         (mn10300_wide_const_load_uses_clr): Remove.
14714         (TARGET_REGISTER_MOVE_COST): New.
14715         (TARGET_MEMORY_MOVE_COST): New.
14716         * config/mn10300/mn10300-protos.h: Update.
14717         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14719         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14720         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14721         * config/mn10300/mn10300-protos.h: Update.
14722         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14723         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14724         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14725         (*test_int_bitfield, *test_byte_bitfield): Remove.
14726         (*bit_test, *subreg_bit_test): Remove.
14727         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14729         * config/mn10300/constraints.md ("c"): Rename from "A".
14730         ("A", "D"): New constraint letters.
14731         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14732         (fmssf4, fnmasf4, fnmssf4): Likewise.
14734         * config/mn10300/mn10300.md (isa): New attribute.
14735         (enabled): New attribute.
14737         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14738         (abssf2, negsf2): Define only for hardware fp.
14739         (sqrtsf2): Reformat.
14740         (addsf3, subsf3, mulsf3): Merge expander and insn.
14742         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14743         (DEBUGGER_AUTO_OFFSET): Remove.
14744         (DEBUGGER_ARG_OFFSET): Remove.
14746         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14747         Emit register stores with the same offsets as the hardware.
14748         (mn10300_store_multiple_operation): Don't check that the register
14749         save offsets are monotonic.
14750         * config/mn10300/mn10300-protos.h: Update.
14752         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14754         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14755         in terms of the value on the stack, not the MDR register.
14757 2011-01-11  Jan Hubicka  <jh@suse.cz>
14759         PR lto/45721
14760         PR lto/45375
14761         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14762         (symbol_alias_set_destroy, symbol_alias_set_contains,
14763         propagate_aliases_backward): Declare.
14764         * lto-streamer-out.c (struct sets): New sturcture.
14765         (trivally_defined_alias): New function.
14766         (output_alias_pair_p): Rewrite.
14767         (output_unreferenced_globals): Fix output of alias pairs.
14768         (produce_symtab): Likewise.
14769         * ipa.c (function_and_variable_visibility): Set weak alias destination
14770         as needed in lto.
14771         * varasm.c (symbol_alias_set_t): Remove.
14772         (symbol_alias_set_destroy): Export.
14773         (propagate_aliases_forward, propagate_aliases_backward): New functions
14774         based on ...
14775         (compute_visible_aliases): ... this one; remove.
14776         (trivially_visible_alias): New
14777         (trivially_defined_alias): New.
14778         (remove_unreachable_alias_pairs): Rewrite.
14779         (finish_aliases_1): Reorganize code checking if alias is defined.
14780         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14781         in LTO mode.
14783 2011-01-11  Richard Guenther  <rguenther@suse.de>
14785         PR tree-optimization/46076
14786         * tree-ssa.c (useless_type_conversion_p): Conversions from
14787         unprototyped to empty argument list function types are useless.
14789 2011-01-11  Richard Guenther  <rguenther@suse.de>
14791         PR middle-end/45235
14792         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14793         volatile MEMs as MEM_READONLY_P.
14795 2011-01-11  Richard Guenther  <rguenther@suse.de>
14797         PR tree-optimization/47239
14798         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14800 2011-01-11  Jeff Law  <law@redhat.com>
14802         PR tree-optimization/47086
14803         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14804         IVs from statements that might throw.
14806 2011-01-10  Jan Hubicka  <jh@suse.cz>
14808         PR lto/45375
14809         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14811 2011-01-10  Jan Hubicka  <jh@suse.cz>
14813         PR lto/45375
14814         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14815         when correcting profile.
14817 2011-01-10  Jan Hubicka  <jh@suse.cz>
14819         PR lto/46083
14820         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14821         DECL_FINI_PRIORITY.
14822         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14823         Restore DECL_FINI_PRIORITY.
14825 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14827         * doc/gimple.texi: Fix quoting of multi-word return values in
14828         @deftypefn statements.  Ensure presence of return value.  Wrap
14829         overlong @deftypefn lines.
14830         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14831         descriptions of removed functions.
14832         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14833         of multi-word return value in @deftypefn statement.
14835 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14837         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14838         (Conditional Expressions, Logical Operators)
14839         (Statement and operand traversals): Do not indent smallexample
14840         code.  Fix duplicate function argument in example.
14842 2011-01-10  Jeff Law  <law@redhat.com>
14844         PR tree-optimization/47141
14845         * ipa-split.c (split_function): Handle case where we are
14846         returning a value and the return block has a virtual operand phi.
14848 2011-01-10  Jan Hubicka  <jh@suse.cz>
14850         PR tree-optimization/47234
14851         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14852         (pass_feedback_split_functions): Declare.
14853         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14854         tree-profile.
14855         * ipa-split.c (gate_split_functions): Update comments; disable
14856         split-functions for profile_arc_flag and branch_probabilities.
14857         (gate_feedback_split_functions): New function.
14858         (execute_feedback_split_functions): New function.
14859         (pass_feedback_split_functions): New global var.
14861 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14863         PR lto/46760
14864         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14865         calling gimple_call_set_cannot_inline.
14867 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14869         * config/darwin-sections.def: Remove unused section.
14871 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14873         PR c++/47218
14874         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14876 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14878         PR objc/47232
14879         * c-parser.c (c_parser_declaration_or_fndef): Improved
14880         error message.
14882 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14884         * config/i386/winnt.c (i386_pe_start_function): Make sure
14885         to switch back to function's section.
14887 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14889         PR gcc/46902
14890         PR testsuite/46912
14891         * plugin.c: Move include of dlfcn.h from here...
14892         * system.h: ... to here.
14894 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14896         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14897         file name.
14898         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14899         two extra empty pages in PDF output.
14901 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14903         PR objc/47078
14904         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14905         for error recovery purposes behave as if it was not specified so
14906         that the default type is usd.
14908 2011-01-07  Jan Hubicka  <jh@suse.cz>
14910         PR tree-optmization/46469
14911         * ipa.c (function_and_variable_visibility): Clear needed flags on
14912         nodes with external decls; handle weakrefs merging correctly.
14914 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14916         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14917         not false.
14919 2011-01-07  Jan Hubicka  <jh@suse.cz>
14921         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14922         and no longer claim that gold is required for linker plugin.
14923         * configure: Regenerate.
14924         * gcc.c (PLUGIN_COND): New macro.
14925         (LINK_COMMAND_SPEC): Use it.
14926         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14927         * config.in (HAVE_LTO_PLUGIN): New.
14928         * configure.ac (--with-lto-plugin): New parameter; autodetect
14929         HAVE_LTO_PLUGIN.
14931 2011-01-07  Jan Hubicka  <jh@suse.cz>
14933         PR tree-optimization/46367
14934         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14935         when we can update original.
14936         (cgraph_mark_inline_edge): Sanity check.
14937         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14939 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14941         * config/spu/spu.h (ASM_COMMENT_START): Define.
14943 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14945         PR driver/42445
14946         * gcc.c (%>S): New.
14947         (SWITCH_KEEP_FOR_GCC): Likewise.
14948         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14949         (do_spec_1): Handle "%>".
14951         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14953 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
14955         PR target/47201
14956         * config/i386/i386.c (ix86_delegitimize_address): If
14957         simplify_gen_subreg fails, return orig_x.
14959         PR bootstrap/47187
14960         * value-prof.c (gimple_stringop_fixed_value): Handle
14961         lhs of the call properly.
14963 2011-01-07  Jan Hubicka  <jh@suse.cz>
14965         PR lto/45375
14966         * lto-opt.c (lto_reissue_options): Set flag_shlib.
14968 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14970         * target.def (function_switched_text_sections): New hook.
14971         * doc/tm.texi: Regenerated.
14972         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14973         * final.c (default_function_switched_text_sections): New.
14974         (final_scan_insn): Call function_switched_text_sections when a
14975         mid-function section change occurs.
14976         * output.h (default_function_switched_text_sections): Declare.
14977         * config/darwin-protos.h (darwin_function_switched_text_sections):
14978         Likewise.
14979         * config/darwin.c (darwin_function_switched_text_sections): New.
14980         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14982 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
14984         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
14985         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
14986         the secondary code fragment when outputting for DWARF == 2.
14988 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
14990         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14991         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14992         Remove.
14993         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14994         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14996 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
14998         PR debug/46704
14999         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15000         when it is not empty.
15002 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15004         Bobcat Enablement
15005         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15006         (case ${target}): Add btver1.
15007         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15008         -march=native recognize btver1 processors.
15009         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15010         btver1 def_and_undef
15011         * config/i386/i386.c (struct processor_costs btver1_cost): New
15012         btver1 cost table.
15013         (m_BTVER1): New definition.
15014         (m_AMD_MULTIPLE): Includes m_BTVER1.
15015         (initial_ix86_tune_features): Add btver1 tune.
15016         (processor_target_table): Add btver1 entry.
15017         (static const char *const cpu_names): Add btver1 entry.
15018         (software_prefetching_beneficial_p): Add btver1.
15019         (ix86_option_override_internal): Add btver1 instruction sets.
15020         (ix86_issue_rate): Add btver1.
15021         (ix86_adjust_cost): Add btver1.
15022         * config/i386/i386.h (TARGET_BTVER1): New definition.
15023         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15024         (enum processor_type): Add PROCESSOR_BTVER1.
15025         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15027 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15029         PR target/43309
15030         * config/i386/i386.c (legitimize_tls_address)
15031         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15032         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15033         (tls_initial_exec_64_sun): New pattern.
15035 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15037         * doc/invoke.texi (Overall Options): Improve wording and markup
15038         of the description of -wrapper.
15040 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15042         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15043         rdynamic, threads): New Driver options.
15045 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15047         PR target/38118
15048         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15049         if coming from .tdata.
15050         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15052 2011-01-06  Jan Hubicka  <jh@suse.cz>
15054         PR lto/47188
15055         * collect2.c (main): Do not enable LTOmode when plugin is active.
15057 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15059         PR other/45915
15060         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15061         --version output if supported.
15062         * configure: Regenerate.
15064 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15066         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15067         Driver options.
15069 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15071         PR c/47150
15072         * c-convert.c (convert): When converting a complex expression
15073         other than COMPLEX_EXPR to a different complex type, ensure
15074         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15075         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15076         when converting COMPLEX_TYPE.
15078 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15080         PR tree-optimization/47139
15081         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15082         only the last reduction value is used outside the loop.  Update
15083         documentation.
15085 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15087         * config/rtems.opt: New.
15088         * config.gcc (*-*-rtems*): Use rtems.opt.
15090 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15092         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15093         processors do not support 3DNow instructions.
15095 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15097         * config/spu/spu.c (spu_option_override): Set parameter
15098         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15100 2011-01-05  Jan Hubicka  <jh@suse.cz>
15102         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15103         at the command line.
15105 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15107         PR lto/47162
15108         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15109         deltas on streamed outgoing edges.
15110         (output_node_opt_summary): Output info for outgoing edges only when
15111         the node is in new parameter set.
15112         (output_cgraph_opt_summary): New parameter set, passed to the two
15113         aforementioned functions.  Update its forward declaration and its
15114         callee too.
15116 2011-01-05  Tom Tromey  <tromey@redhat.com>
15118         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15119         operator to c_finish_omp_atomic.
15120         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15121         (build_unary_op): Update.
15122         (build_modify_expr): Update.
15123         (build_asm_expr): Update.
15125 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15127         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15128         newly inserted insns.
15129         (pad_bb): Likewise.
15130         (spu_emit_branch_hint): Likewise.
15131         (insert_hbrp_for_ilb_runout): Likewise.
15132         (spu_machine_dependent_reorg): Call df_finish_pass after
15133         schedule_insns returns.
15135 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15137         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15139 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15141         PR tree-optimization/47005
15142         * tree-sra.c (struct access): Add 'non_addressable' bit.
15143         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15144         (decide_one_param_reduction): Return 0 if the parameter is passed by
15145         reference and one of the accesses in the group is non_addressable.
15147 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15149         PR tree-optimization/47056
15150         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15151         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15152         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15154 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15156         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15157         initializer.  Skip view conversions from aggregate types.
15159 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15161         PR bootstrap/47055
15162         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15164 2011-01-04  Philipp Thomas  <pth@suse.de>
15166         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15167         obvious typo.
15169 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15171         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15172         on empty epilogue sequences.
15174 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15176         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15177         non-static): New Driver options.
15179 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15181         PR driver/47137
15182         * gcc.c (default_compilers[]): Set combinable field to 0
15183         for all assembly languages.
15185 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15187         * config/mips/loongson3a.md: New file.
15188         * config/mips/mips.md: Include loongson3a.md.
15189         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15190         TUNE_LOONGSON_3A.
15192 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15194         PR middle-end/47017
15195         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15196         instead of convert_memory_address_addr_space on the base expression.
15198 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15200         * config/spu/spu.c (spu_option_override): Update error text
15201         for bad -march= / -mtune= values.
15203 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15205         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15206         if branch-hint optimization will be performed.
15208 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15210         PR tree-optimization/47148
15211         * ipa-split.c (split_function): Convert arguments to
15212         DECL_ARG_TYPE if possible.
15214         PR tree-optimization/47155
15215         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15216         when computing uns.
15218         PR rtl-optimization/47157
15219         * combine.c (try_combine): If undobuf.other_insn becomes
15220         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15221         and set *new_direct_jump_p too.
15223 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15225         PR tree-optimization/47021
15226         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15228 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15230         * gcc.c (process_command): Update copyright notice dates.
15231         * gcov.c (print_version): Likewise.
15232         * gcov-dump.c (print_version): Likewise.
15233         * mips-tfile.c (main): Likewise.
15234         * mips-tdump.c (main): Likewise.
15236 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15238         PR tree-optimization/46801
15239         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15240         aggregate fields start at byte boundary instead of the bit-field flag.
15242 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15244         PR driver/47137
15245         * gcc.c (main): Revert revision 168407.
15247 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15249         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15251 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15253         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15254         vector optab to expand vector/scalar shift, update gimple to vector.
15256 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15258         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15259         a thunk.
15261 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15263         PR tree-optimization/46984
15264         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15265         HOST_WIDE_INT.
15266         (cgraph_create_indirect_edge): Fixed line length.
15267         (cgraph_indirect_call_info): Declare.
15268         (cgraph_make_edge_direct) Update declaration.
15269         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15270         (cgraph_create_indirect_edge): Use it.
15271         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15272         callees.
15273         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15274         the new thunk_delta representation.
15275         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15276         HOST_WIDE_INT.
15277         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15278         (ipa_read_indirect_edge_info): Likewise.
15279         * lto-cgraph.c (output_edge_opt_summary): New function.
15280         (output_node_opt_summary): Call it on all outgoing edges.
15281         (input_edge_opt_summary): New function.
15282         (input_node_opt_summary): Call it on all outgoing edges.
15284 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15286         PR driver/47137
15287         * gcc.c (main): Don't check have_o when settting combine_inputs.
15289 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15291         * regrename.c: Add general comment describing the pass.
15292         (struct du_head): Remove 'length' field.
15293         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15294         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15295         Force renaming to the preferred class (if any) in the first pass and do
15296         not consider registers that belong to it in the second pass.
15297         (create_new_chain): Do not set 'length' field.
15298         (scan_rtx_reg): Likewise.
15300 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15302         PR tree-optimization/47140
15303         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15304         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15305         to bit_value_binop.
15307         PR rtl-optimization/47028
15308         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15309         parm_birth_insn instead of at the beginning of first bb.
15311 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15313         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15314         Remove the word "see" before "@pxref".
15315         * doc/rtl.texi: Remove the word "see" before "@pxref".
15317 2011-01-01  Jan Hubicka  <jh@suse.cz>
15319         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15320         memory.
15322 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15324         PR target/38662
15325         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15328 Copyright (C) 2011 Free Software Foundation, Inc.
15330 Copying and distribution of this file, with or without modification,
15331 are permitted in any medium without royalty provided the copyright
15332 notice and this notice are preserved.