libgo: Irix portability fixes (no declaration for getaddrinfo).
[official-gcc.git] / gcc / ChangeLog
blob3e1b6e4d63ca805f27ef467c48499ba3b0fbb8bd
1 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
3         PR objc/48187
4         * c-parser.c (c_parser_objc_class_instance_variables): More robust
5         parsing of syntax error in ObjC instance variable lists.  In
6         particular, avoid an infinite loop if there is a stray ']'.
7         Updated error message.
9 2011-05-24  Ian Lance Taylor  <iant@google.com>
11         * godump.c (go_define): Don't accept a string immediately after
12         another operand.
14 2011-05-24  Ian Lance Taylor  <iant@google.com>
16         * godump.c (struct godump_container): Add invalid_hash field.
17         (go_format_type): Return false if type is found in invalid_hash.
18         (go_output_typedef): Add invalid type to invalid_hash.
19         (go_finish): Create and delete invalid_hash.
21 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23         PR tree-optimization/46728
24         * tree-ssa-math-opts.c (powi_table): New.
25         (powi_lookup_cost): New.
26         (powi_cost): New.
27         (powi_as_mults_1): New.
28         (powi_as_mults): New.
29         (gimple_expand_builtin_powi): New.
30         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
31         (gate_cse_sincos): Remove sincos/cexp restriction.
33 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35         PR target/3746
36         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
37         mips-tdump native.
38         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
39         * mips-tdump.c: Likewise.
41 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
43         PR target/49128
44         * config/i386/driver-i386.c (host_detect_local_cpu): Always
45         add -mno-XXX.  Handle FMA.
47 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
49         PR rtl-optimization/48633
50         * ira-build.c (loop_with_eh_edge_p): New function.
51         (mark_loops_for_removal): Use it.
53 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
55         PR rtl-optimization/48971
56         * ira.c (setup_pressure_classes): Don't check register move cost
57         for classes with one registers.  Don't add pressure class if there
58         is a pressure class with the same available hard registers.
59         Check contains_reg_of_mode.  Fix a typo in collecting
60         temp_hard_regset.  Ignore hard registers not belonging to a class.
62 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
64         PR target/49133
65         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
67 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
68             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
70         PR gcov-profile/48845
71         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
73 2011-05-24  Richard Guenther  <rguenther@suse.de>
75         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
76         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
77         (gimple_types_compatible_p_1): Adjust.
78         (iterative_hash_canonical_type): Do not bother about complete vs.
79         incomplete types.
80         (gimple_canonical_types_compatible_p): Likewise.
82 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
84         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
86 2011-05-24  Richard Guenther  <rguenther@suse.de>
88         PR bootstrap/49078
89         * gimple.c (gimple_register_canonical_type): Revert
90         previous change.
91         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
92         does not for a tree for the case where it matters.  Cache
93         pointer-type alias-sets.
95 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
97         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
98         (OBJS): Remove options.o, opts-common.o and prefix.o.
99         (OBJS-libcommon-target): New.
100         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
101         (BACKEND): Include libcommon-target.a.
102         (MOSTLYCLEANFILES): Include libcommon-target.a.
103         (libcommon-target.a): New.
104         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
105         prefix.o.
107 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
109         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
110         parts of output shared with the driver.
111         * optc-gen.awk: Don't generate parts of output not shared with the
112         driver.
113         * opth-gen.awk: Remove GCC_DRIVER conditionals.
114         * doc/options.texi (SourcerInclude): Mention options-save.c.
115         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
116         (OBJS): Add options-save.o.
117         (options-save.c, options-save.o): New.
118         (options.o): Update dependencies.
119         (gcc-options.o): Remove.
120         (mostlyclean): Remove options-save.c.
122 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
124         PR debug/49032
125         * dbxout.c: Include cgraph.h.
126         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
127         and without value expr, return NULL if no varpool node exists for
128         it or if it is not needed.
129         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
131         PR c/49120
132         * c-decl.c (start_decl): Convert expr to void_type_node.
134 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
136         PR rtl-optimization/48826
137         * emit-rtl.c (try_split): When splitting a call that is followed
138         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
140 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
142         * cfgexpand.c (expand_debug_expr): For unused non-addressable
143         parameters passed in memory prefer using DECL_INCOMING_RTL over
144         the pseudos it will be copied into.
146 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
148         PR target/47315
149         * config/i386/i386.c (ix86_option_override_internal): Save the
150         initial options after checking vzeroupper.
152 2011-05-23  David Li  <davidxl@google.com>
154         PR tree-optimization/48988
155         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
156         Initialize has_valid_pred for each pred chain.
158 2011-05-23  Richard Guenther  <rguenther@suse.de>
160         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
161         (iterative_hash_gimple_type): Always hash type names.
163 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
165         * c-typeck.c (build_function_call_vec): Tweak call to
166         check_function_arguments.
168 2011-05-23  Richard Guenther  <rguenther@suse.de>
170         PR tree-optimization/49115
171         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
172         is not necessarily carried out, do not claim it kills the ref.
173         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
175 2011-05-23  Richard Guenther  <rguenther@suse.de>
177         PR middle-end/15419
178         * builtins.c (fold_builtin_memory_op): Be less restrictive about
179         what pointer types we accept for folding.
181 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
183         * gthr-gnat.c: Remove.
184         * gthr-gnat.h: Remove.
185         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
186         * config/t-freebsd (LIB2ADDEH): Likewise.
187         * config/t-linux (LIB2ADDEH): Likewise.
188         * config/t-sol2 (LIB2ADDEH): Likewise.
189         * config/ia64/t-vms (LIB2ADDEH): Likewise.
190         * configure.ac (target_thread_file): Remove gnat handling.
191         * configure: Regenerate.
192         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
194 2011-05-23  Tristan Gingold  <gingold@adacore.com>
195             Eric Botcazou  <ebotcazou@adacore.com>
197         * gcov.c (create_file_names): If no object directory is specified,
198         keep the directory of the file.
200 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
202         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
203         * configure: Regenerate.
205 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
207         PR middle-end/48973
208         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
209         failed and the comparison has a single bit signed type, use
210         constm1_rtx instead of const1_rtx for true value.
211         (do_store_flag): If ops->type is single bit signed type, disable
212         signel bit test optimization and pass -1 instead of 1 as last
213         parameter to emit_store_flag_force.
215 2011-05-23  Tom de Vries  <tom@codesourcery.com>
217         PR target/45098
218         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
219         function.
220         (infer_loop_bounds_from_undefined): Use new function.
222 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
224         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
225         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
226         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
227         and -O0 otherwise.
228         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
230 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
232         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
233         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
234         returns true.
236 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
238         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
240 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
242         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
243         UNSPEC_MOVE_PIC pattern.
245 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
247         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
248         (sparc-*-rtems*): Likewise.
249         (sparc64-*-elf*): Likewise.
250         (sparc64-*-rtems*): Likewise.
251         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
252         * config/sparc/t-crtin: New file.
253         * config/sparc/t-sol2 (crti.o): Delete rule.
254         (crtn.o): Likewise.
255         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
256         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
257         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
258         (ENDFILE_SPEC): Add crtn.o.
260 2011-05-22  Tom de Vries  <tom@codesourcery.com>
262         PR middle-end/48689
263         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
264         CODE_CONTAINS_STRUCT (TS_COMMON).
266 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
268         PR middle-end/49029
269         * expmed.c (extract_fixed_bit_field): Test whether target can be used
270         only after deciding which mode to use.
272 2011-05-22  Tom de Vries  <tom@codesourcery.com>
274         PR target/45098
275         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
276         for call to get_shiftadd_cost.
278 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
280         PR target/49104
281         * config/i386/cpuid.h (bit_MMXEXT): New define.
283 2011-05-22  Nick Clifton  <nickc@redhat.com>
285         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
286         initialisation of non-existant args[2] element.  Use args[] array
287         not arg[] array to pass arguments to build_function_type_list.
289 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
291         PR tree-optimization/49087
292         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
294 2011-05-21  Jason Merrill  <jason@redhat.com>
296         PR c++/49092
297         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
298         static storage duration.
300 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
302         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
303         frame pointer.
305 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
307         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
308         false if there are call-saved registers here...
309         (sparc_can_use_return_insn_p): ...but here instead.
310         (save_or_restore_regs): Fix thinko.
311         (sparc_expand_prologue): Use current_function_is_leaf.
312         (sparc_frame_pointer_required): Likewise.
314 2011-05-21  Nick Clifton  <nickc@redhat.com>
316         PR target/49098
317         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
319 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
321         * gengtype.c (walk_type): Implemented "atomic" GTY option.
322         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
324 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
326         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
327         * optc-gen.awk: Move common code to opt-read.awk.
328         * opth-gen.awk: Likewise.
329         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
331 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
333         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
335 2011-05-20  Tom de Vries  <tom@codesourcery.com>
337         PR target/45098
338         * tree-ssa-loop-ivopts.c: Include expmed.h.
339         (get_shiftadd_cost): New function.
340         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
342 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
344         PR bootstrap/49086
345         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
346         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
348 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
350         * Makefile.in: Update comment referring to $(OBJS-common).
352 2011-05-20  Ian Lance Taylor  <iant@google.com>
354         * godump.c (go_output_typedef): Put enum constants in the macro
355         hash table to avoid duplicate Go const definitions.
357 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
359         * Makefile.in (LIBDEPS): Add libcommon.a.
360         (LIBS): Likewise.
361         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
362         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
363         pretty-print.o and version.o.
364         (OBJS-libcommon): New.
365         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
366         (BACKEND): Add libcommon.a.
367         (MOSTLYCLEANFILES): Likewise.
368         (libcommon.a): New.
369         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
370         (cpp$(exeext)): Likewise.
371         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
372         pretty-print.o and input.o.
373         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
374         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
375         (errors.o): Remove.
376         (mips-tfile): Don't explicitly use version.o.
377         (mips-tdump): Likewise.
378         (gcov.o): Depend on $(DIAGNOSTIC_H).
379         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
380         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
381         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
382         * gcov-dump.c: Include intl.h and diagnostic.h.
383         (main): Initialize diagnostics.
384         * gcov.c: Include diagnostic.h.
385         (fnotice): Remove.
386         (main): Initialize diagnostics.
387         * lto-wrapper.c: Include diagnostic.h.
388         (main): Initialize diagnostics.
390 2011-05-20  Michael Matz  <matz@suse.de>
392         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
394 2011-05-20  Michael Matz  <matz@suse.de>
395             Richard Guenther  <rguenther@suse.de>
397         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
398         use lto_streamer_cache_append directly instead of returning a VEC.
399         (preload_common_node): Remove.
400         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
401         track seen nodes.
402         (lto_streamer_cache_create): Call lto_preload_common_nodes.
404 2011-05-20  Richard Guenther  <rguenther@suse.de>
406         PR tree-optimization/49079
407         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
408         MEM_REFs correctly for the trailing array access detection.
409         Special case constants the same way as decls for overall size
410         constraining.
412 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
414         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
415         argument expansion.
417 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
419         PR tree-optimization/49073
420         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
421         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
422         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
424 2011-05-20  Richard Guenther  <rguenther@suse.de>
426         PR middle-end/48849
427         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
428         of pointer types the same way the middle-end does.
430 2011-05-20  Richard Guenther  <rguenther@suse.de>
432         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
433         or pointer-to chains.  Delay all fixup to uniquify_nodes.
435 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
437         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
438         (fma4_fmaddsub): Likewise
440 2011-05-19  Jan Hubicka  <jh@suse.cz>
442         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
443         (GIMPLE_TYPE_PAIR_SIZE): New macro.
444         (type_pair_cache): New static var.
445         (lookup_type_pair): Use fixed sized custom hash; make inline.
446         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
447         calls of lookup_type_pair.
448         (print_gimple_types_stats): Remove cache stats.
449         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
450         and gtc_ob.
452 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
454         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
455         when TARGET_RDRND is active.
456         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
457         Generate dummy SImode target register when target is NULL.
459 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
461         * config/arm/arm-fpus.def: New.
462         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
463         arm-fpus.def.
464         * config/arm/arm-tables.opt: Regenerate.
465         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
466         (arm_option_override): Don't decode FPU name to string here.
467         * config/arm/arm.opt (mfpu=): Use Enum.
468         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
469         Update dependencies.
471 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
473         * collect2.c: Include diagnostic.h.
474         (fatal_perror, fatal, error, fancy_abort): Remove.
475         (main): Set progname.  Call xmalloc_set_program_name and
476         diagnostic_initialize.
477         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
478         scan_libraries, resolve_lib_name): Call fatal_error instead of
479         fatal and fatal_perror.
480         * collect2.h (error, fatal, fatal_perror): Don't declare.
481         * tlink.c: Include diagnostic-core.h.
482         (recompile_files): Call fatal_error instead of fatal_perror.
483         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
484         pretty-print.o and input.o.
485         (collect2.o, tlink.o): Update dependencies.
487 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
489         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
491 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
493         PR target/40483
494         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
495         COMDAT group syntax, both SPARC and x86 variants.
496         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
497         * configure: Regenerate.
498         * config/sol2.h (TARGET_SOLARIS): Define.
499         (PUSHSECTION_FORMAT): Remove.
500         (SECTION_NAME_FORMAT): Define.
501         * config/sol2.c: Include hashtab.h.
502         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
503         expansion, using SECTION_NAME_FORMAT.
504         (solaris_comdat_htab): New variable.
505         (struct comdat_entry): Define.
506         (comdat_hash): New function.
507         (comdat_eq): New function.
508         (solaris_elf_asm_comdat_section): New function.
509         (solaris_define_comdat_signature): New function.
510         (solaris_code_end): New function.
511         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
512         (solaris_code_end): Declare.
513         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
514         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
515         solaris_code_end.
516         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
517         Remove ATTRIBUTE_UNUSED.
518         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
519         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
520         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
521         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
522         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
523         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
524         (PUSHSECTION_FORMAT): Remove.
525         (SECTION_NAME_FORMAT): Redefine.
527 2011-05-19  Kai Tietz  <ktietz@redhat.com>
529         * tree-cfg.c (verify_gimple_assign_binary): Barf on
530         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
531         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
533 2011-05-19  Anatoly Sokolov <aesok@post.ru>
534             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
536         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
538 2011-05-19  Richard Guenther  <rguenther@suse.de>
540         PR middle-end/48985
541         * tree-object-size.c (addr_object_size): If the pointed-to
542         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
544 2011-05-19  Richard Guenther  <rguenther@suse.de>
546         * gimple.c (gimple_types_compatible_p_1): Compare names of
547         the types themselves.
548         (iterative_hash_gimple_type): And hash them that way.
549         (gimple_register_type_1): If we register a main variant properly
550         initialize the leader to ourselves.
552 2011-05-19  Tom de Vries  <tom@codesourcery.com>
554         PR target/45098
555         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
556         get_loop_invariant_expr_id.
557         (get_loop_invariant_expr_id): Use get_expr_id.
558         (parm_decl_cost): New function.
559         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
560         Improve bound cost estimation.  Use different inv_expr_id for elim and
561         express cases.
563 2011-05-19  Tom de Vries  <tom@codesourcery.com>
565         PR target/45098
566         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
567         cost_base.cost == 0.
569 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
571         PR target/49002
572         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
573         Properly handle load cast.
575 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
577         PR tree-optimization/49039
578         * tree-vrp.c (extract_range_from_binary_expr): For
579         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
580         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
582 2011-05-18  Tom de Vries  <tom@codesourcery.com>
584         PR target/45098
585         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
587 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
589         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
590         (*tls_global_dynamic_64): Ditto.
591         (*tls_local_dynamic_base_32_gnu): Ditto.
592         (*tls_local_dynamic_base_64): Ditto.
593         (tls_initial_exec_64_sun): Ditto.
595 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
597         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
598         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
599         bf592-none.
600         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
601         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
602         * config/bfin/bfin.c (bfin_cpus): Add bf592.
603         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
604         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
605         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
606         * config/bfin/elf.h (LIB_SPEC): Add bf592.
608 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
610         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
611         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
612         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
613         target_thread_pointer, arm_structure_size_boundary, struct
614         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
615         struct abi_name, arm_all_abis): Remove.
616         (arm_option_override) Don't process most enumerated option values here.
617         Don't process target_fpe_name here.  Work with integer not string for
618         structure size boundary; use separate diagnostics for each case.
619         * config/arm/arm.h (enum float_abi_type, enum
620         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
621         to arm-opts.h.
622         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
623         arm_structure_size_boundary): Remove.
624         * config/arm/arm.opt (mabi=): Use Enum and Init.
625         (arm_abi_type): New Enum and EnumValue entries.
626         (mfloat-abi=): Use Enum and Init.
627         (float_abi_type): New Enum and EnumValue entries.
628         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
629         (mfp16-format=): Use Enum and Init.
630         (arm_fp16_format_type): New Enum and EnumValue entries.
631         (mstructure-size-boundary=): Use UInteger and Init.
632         (mtp=): Use Enum and Init.
633         (arm_tp_type): New Enum and EnumValue entries.
635 2011-05-18  Richard Guenther  <rguenther@suse.de>
637         PR tree-optimization/49018
638         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
639         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
640         gimple_has_side_effects.
642 2011-05-18  Richard Guenther  <rguenther@suse.de>
644         * gimple.c (gimple_register_type_1): New function, split out from ...
645         (gimple_register_type): ... here.  Avoid infinite recursion.
647 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
649         PR tree-optimization/41881
650         * tree-vectorizer.h (struct _loop_vec_info): Add new field
651         reduction_chains along with a macro for its access.
652         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
653         (destroy_loop_vec_info): Free reduction chains.
654         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
655         (vect_is_slp_reduction): New function.
656         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
657         (vect_create_epilog_for_reduction): Support SLP reduction chains.
658         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
659         definition types for reduction chains.
660         (vect_supported_load_permutation_p): Don't allow permutations for
661         reduction chains.
662         (vect_analyze_slp_instance): Support reduction chains.
663         (vect_analyze_slp): Try to build SLP instance from reduction chains.
664         (vect_get_constant_vectors):  Handle reduction chains.
665         (vect_schedule_slp_instance): Mark the first statement of the
666         reduction chain as reduction.
668 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
670         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
671         names for group elements access.
672         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
673         reduction chains as well.  Remove data reference and interleaving
674         related words from the fields names.
675         * tree-vect-loop.c (vect_transform_loop): Use new names for group
676         elements access.
677         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
678         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
679         vect_update_interleaving_chain, vect_same_range_drs,
680         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
681         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
682         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
683         vect_analyze_group_access, vect_analyze_data_ref_access,
684         vect_create_data_ref_ptr, vect_transform_strided_load,
685         vect_record_strided_load_vectors): Likewise.
686         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
687         vect_model_load_cost, vectorizable_store, vectorizable_load,
688         vect_remove_stores, new_stmt_vec_info): Likewise.
689         * tree-vect-slp.c (vect_build_slp_tree,
690         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
692 2011-05-18  Richard Guenther  <rguenther@suse.de>
694         PR middle-end/48989
695         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
696         operand verification.
697         (verify_gimple_assign_binary): Likewise.
698         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
699         to non-1-precision BOOLEAN_TYPEs.
701 2011-05-18  Tom de Vries  <tom@codesourcery.com>
703         PR target/45098
704         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
706 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
708         PR tree-optimization/49000
709         * tree-ssa.c (execute_update_addresses_taken): Call
710         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
711         be rewritten and decl has been marked for renaming, reset
712         the debug stmt.
714 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
716         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
717         enum_opts_set when testing if attributes have set -mfpmath=.
719 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
721         * config/mips/mips.c (mips_handle_option): Remove unused variable.
723 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
725         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
726         info->entry with 0
727         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
728         id.transform_lang_insert_block with NULL.
730 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
732         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
733         (output_fp_compare): Change args 3 and 4 to bool.
734         (ix86_expand_call): Change arg 6 to bool.
735         (ix86_attr_length_immediate_default): Change arg 2 to bool.
736         (ix86_attr_length_vex_default): Change arg 3 to bool.
737         * config/i386/i386.md: Update all uses.
738         * config/i386/i386.c: Ditto.
739         (ix86_flags_dependent): Change return type to bool.
741 2011-05-17  Richard Guenther  <rguenther@suse.de>
743         * gimple.c (type_hash_pair_compare): Fix comparison.
745 2011-05-17  Richard Guenther  <rguenther@suse.de>
747         * gimple.c (iterative_hash_gimple_type): Simplify singleton
748         case some more, fix final hash value of the non-singleton case.
750 2011-05-17  Richard Guenther  <rguenther@suse.de>
752         PR bootstrap/49013
753         Revert
754         2011-05-16  Richard Guenther  <rguenther@suse.de>
756         * gimple.c (gimple_types_compatible_p_1): Use names of the
757         type itself, not its main variant.
758         (iterative_hash_gimple_type): Likewise.
760 2011-05-17  Richard Guenther  <rguenther@suse.de>
762         * gimple.c (gimple_register_canonical_type): Use the main-variant
763         leader for computing the canonical type.
765 2011-05-17  Nick Clifton  <nickc@redhat.com>
767         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
768         moves.
770         * config/rx/rx.md: Add peephole to remove redundant extensions
771         after loads.
772         (bitset_in_memory): Use rx_restricted_mem_operand.
773         (bitinvert_in_memory): Likewise.
774         (bitclr_in_memory): Likewise.
776 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
777             Nick Clifton  <nickc@redhat.com>
779         * config/rx/rx.md: Add peepholes to match a register move followed
780         by a comparison of the moved register.  Replace these with an
781         addition of zero that does both actions in one instruction.
783 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
785         PR target/48986
786         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
787         predicate to allow CONST_INT.
788         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
790 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
792         * opts-common.c (opt_enum_arg_to_value): New.
793         * opts.h (opt_enum_arg_to_value): Declare.
794         * config/i386/i386.opt (fpmath): Remove.
795         (mfpmath=): Use Enum, Init and Save.
796         (fpmath_unit): New Enum and EnumValue entries.
797         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
798         name for function fpmath state.
799         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
800         * config/i386/i386.c: Include diagnostic.h.
801         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
802         (ix86_target_string): Take enum fpmath_unit value instead of string.
803         (ix86_debug_options): Update call to ix86_target_string.
804         (ix86_option_override_internal): Don't process fpmath strings here.
805         (x86_function_specific_save, ix86_function_specific_restore):
806         Don't handle fpmath state specially.
807         (ix86_function_specific_print): Pass fpmath state to
808         ix86_target_string instead of printing in this function.
809         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
810         Handle enum attributes.
811         (IX86_ATTR_ENUM, ix86_opt_enum): New.
812         (ix86_valid_target_attribute_tree): Update option_strings
813         handling.  Handle fpmath as enum option.
814         (ix86_can_inline_p): Update field names for function fpmath state.
815         (ix86_expand_builtin): Update call to ix86_target_string.
816         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
817         (ix86_fpmath): Remove.
818         * config/i386/t-i386 (i386.o): Update dependencies.
820 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
822         PR preprocessor/48677
823         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
824         from decoded_options[0], not from itself.
826 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
828         * config/i386/constraints.md (z): New constraint.
829         * config/i386/i386.c (c): New mode attribute.
830         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
831         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
832         constraint for operand 0.
833         (*call_vzeroupper): Ditto.
834         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
835         (*call_rex64_ms_sysv_vzeroupper): Ditto.
836         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
837         Use "lzm" constraint for operand 0.
838         (*call_pop_vzeroupper): Ditto.
839         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
840         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
841         constraint for operand 0.
842         (*sibcall_vzeroupper): Ditto.
843         (*sibcall_rex64_ms_sysv): Ditto.
844         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
845         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
846         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
847         (*sibcall_pop_vzeroupper): Ditto.
848         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
849         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
850         mode iterator.  Use "<c>zm" constraint for operand 1.
851         (*call_value_vzeroupper): Ditto.
852         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
853         for operand 1.
854         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
855         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
856         *call_value_pop_1.  Use "lzm" constraint for operand 1.
857         (*call_value_pop_vzeroupper): Ditto.
858         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
859         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
860         mode iterator.  Use "Uz" constraint for operand 1.
861         (*sibcall_value_vzeroupper): Ditto.
862         (*sibcall_value_rex64_ms_sysv): Ditto.
863         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
864         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
865         constraint for operand 1.
866         (*sibcall_value_pop_vzeroupper): Ditto.
867         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
868         and "z" constraint for operand 2.
869         (*tls_global_dynamic_32_gnu): Ditto.
870         (*tls_local_dynamic_base_32_gnu): Ditto.
871         (*tls_local_dynamic_base_64): Ditto.
872         (*tls_local_dynamic_32_once): Ditto.
873         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
874         Update all callers.
875         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
877 2011-05-16  Richard Guenther  <rguenther@suse.de>
879         * gimple.c (gimple_types_compatible_p_1): Use names of the
880         type itself, not its main variant.
881         (iterative_hash_gimple_type): Likewise.
883 2011-05-16  Richard Guenther  <rguenther@suse.de>
885         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
886         always visit pointer target and function result and argument types.
888 2011-05-16  Jason Merrill  <jason@redhat.com>
890         PR c++/48999
891         * tree-inline.c (copy_statement_list): Put back recursion.
893 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
895         PR target/27663
896         PR target/41076
897         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
898         * config/avr/avr.md ("*ior<mode>qi.byte0",
899         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
901 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
903         PR target/45099
904         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
905         register is needed for a function argument.
907 2011-05-16  Richard Guenther  <rguenther@suse.de>
909         * gimple.c (struct type_hash_pair): New type.
910         (type_hash_pair_compare): New function.
911         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
913 2011-05-16  Revital Eres  <revital.eres@linaro.org>
915         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
917 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
919         * config/i386/i386.md (floating point move splitters): Fix
920         usage of standard_80387_constant_p.
921         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
923 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
925         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
927 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
929         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
930         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
931         (tree_ssa_lim_finalize): Likewise.
933 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
935         * config/i386/constraint.md (Yd, Yx): New register constraints.
936         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
937         Yd conditional register constraint.
938         (*movtf_internal): Use standard_sse_constant_opcode.
939         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
940         Yx conditional register constraint.
941         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
942         Yd conditional register constraint.  Use standard_sse_constant_p to
943         check for valid SSE constants and call standard_sse_constant_opcode to
944         output SSE insn.
945         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
946         constants and call standard_sse_constant_opcode to output SSE insn.
947         * config/i386/i386.c (ix86_option_ovverride_internal): Set
948         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
949         optimize_size is set.
950         (standard_sse_constant_opcode): Output conditional AVX insn templates.
952 2011-05-14  Tobias Burnus  <burnus@net-b.de>
954         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
956 2011-05-13  Martin Jambor  <mjambor@suse.cz>
958         * ipa-prop.c (ipa_cst_from_jfunc): New function.
959         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
960         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
961         (evaluate_conditions_for_ipcp_clone): Removed.
962         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
963         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
964         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
966 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
968         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
969         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
970         lieu of MAY_HAVE_DEBUG_STMTS.
971         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
972         debug statements if !MAY_HAVE_DEBUG_STMTS.
974 2011-05-13  Martin Thuresson  <martint@google.com>
976         PR gcov-profile/47793
977         * libgcov.c (gcov_exit): Support relative profile paths.
978         * doc/invoke.texi (-fprofile-dir): Update for above change.
980 2011-05-13  Richard Guenther  <rguenther@suse.de>
982         * gimple.c (gimple_canonical_types_compatible_p): Do not use
983         type-pair caching, do not compare hashes.
985 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
987         PR middle-end/48965
988         * tree-cfg.c (edge_to_cases_cleanup): Return true.
989         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
991 2011-05-13  Kai Tietz  <ktietz@redhat.com>
993         * gimplify.c (gimplify_expr): Make sure operand is boolified.
994         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
995         compatible type for TRUTH_NOT_EXPR.
997 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
999         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1000         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1001         can_create_pseudo_p ().
1003 2011-05-13  Richard Guenther  <rguenther@suse.de>
1005         PR lto/48978
1006         * gimple.c (iterative_hash_gimple_type): Revert change in
1007         pointer target and function result and argument hashing.
1009 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1011         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1012         (*movxf_internal_nointeger): Ditto.
1013         (*movdf_internal_rex64): Ditto.
1014         (*movdf_internal): Ditto.
1015         (*movdf_internal_nointeger): Ditto.
1016         (*movsf_internal): Ditto.
1017         (sincos splitters): Use can_create_pseudo ().
1019 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1021         * config/i386/i386-opts.h: New.
1022         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1023         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1024         ix86_section_threshold): Remove.
1025         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1026         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1027         OPT_mbranch_cost_.
1028         (ix86_option_override_internal): Don't decode strings for options
1029         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1030         __attribute__ uses in remaining diagnostics for options with
1031         string arguments.  Don't check for integer arguments being negative.
1032         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1033         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1034         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1035         ix86_branch_cost, ix86_section_threshold): Remove.
1036         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1037         HeaderInclude.
1038         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1039         but not Var.
1040         (masm=): Use Enum and Init.
1041         (asm_dialect): New Enum and EnumValue entries.
1042         (mbranch-cost=): Use UInteger.
1043         (mlarge-data-threshold=): Use UInteger and Init.
1044         (mcmodel=): Use Enum and Init.
1045         (cmodel): New Enum and EnumValue entries.
1046         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1047         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1048         mregparm=): Use UInteger.
1049         (mstringop-strategy=): Use Enum and Init.
1050         (stringop_alg): New Enum and EnumValue entries.
1051         (mtls-dialect=): Use Enum and Init.
1052         (tls_dialect): New Enum and EnumValue entries.
1053         (mabi=): Use Enum and Init.
1054         (calling_abi): New Enum and EnumValue entries.
1055         (mveclibabi=): Use Enum and Init.
1056         (ix86_veclibabi): New Enum and EnumValue entries.
1058 2011-05-13  Nick Clifton  <nickc@redhat.com>
1060         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1061         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1063 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1065         PR middle-end/48984
1066         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1067         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1068         (gimple_boolify): Check for cast for boolean_type_node instead for
1069         BOOLEAN_TYPE.
1071 2011-05-13  Richard Guenther  <rguenther@suse.de>
1073         PR tree-optimization/48172
1074         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1075         multiplying by number of iterations for equal step.
1076         (vect_create_cond_for_alias_checks): Likewise.
1078 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1080         * configure.ac: Use AS_HELP_STRING throughout.
1081         * configure: Regenerate.
1083 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1085         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1086         (ix86_emit_restore_regs_using_mov): Likewise.
1087         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1089 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1091         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1092         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1093         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1094         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1095         RTX_OK_FOR_OLO10_P): ...here.
1096         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1097         SYMBOLIC_CONST.
1099 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1101         * gimplify.c (gimple_boolify): Re-boolify expression
1102         arguments even if expression type is of kind BOOLEAN_TYPE.
1103         (gimplify_boolean_expr): Removed.
1104         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1105         and XOR. Additional take care that we keep expression's type.
1106         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1107         of TRUTH_AND|OR|XOR_EXPR.
1109 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1111         PR tree-optimization/48975
1112         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1113         on all bbs here and free and clear ifc_bbs at the end.
1115 2011-05-12  Richard Guenther  <rguenther@suse.de>
1117         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1118         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1119         until after simple checks.
1120         (gimple_types_compatible_p): Likewise.
1121         (iterative_hash_gimple_type): Always hash pointer targets
1122         and function return and argument types.
1123         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1124         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1125         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1126         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1127         completely in the simple compare section.
1128         (gimple_register_canonical_type): Query the cache again after
1129         registering.
1131 2011-05-12  Richard Guenther  <rguenther@suse.de>
1133         PR tree-optimization/48172
1134         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1135         the number of iterations from the segment size calculation.
1136         (vect_create_cond_for_alias_checks): Adjust.
1138 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1140         PR debug/48967
1141         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1142         if validate_subreg fails.
1144 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1146         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1147         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1148         early.
1150 2011-05-12  DJ Delorie  <dj@redhat.com>
1152         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1153         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1154         created builtin into rx_builtins array.
1155         (rx_builtin_decl): New function.
1156         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1158 2011-05-12  DJ Delorie  <dj@redhat.com>
1159             Nick Clifton  <nickc@redhat.com>
1161         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1162         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1163         (rx_is_legitimate_address): Add pre-decrement and post-increment
1164         addressing in HImode and QImode.  Fix test for out of range
1165         REG+INT addressing.
1166         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1167         (rx_align_for_label): Test label before extracting its usage count.
1168         (rx_adjust_insn_lengths): Fix selection of insn codes.
1169         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1171 2011-05-11  Jason Merrill  <jason@redhat.com>
1173         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1175 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1177         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1178         reindent the subsequent block.
1180 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1181             Paul Pluzhnikov  <ppluzhnikov@google.com>
1183         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1184         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1185         * config.in: Add LINKER_HASH_STYLE.
1186         * configure.ac: Add --with-linker-hash-style.
1187         * configure: Regenerate.
1189 2011-05-11  Richard Guenther  <rguenther@suse.de>
1191         PR middle-end/48964
1192         * gimple.c (iterative_hash_canonical_type): Fix typo.
1194 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1196         * config/i386/i386.c (legitimize_tls_address)
1197         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1198         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1199         __tls_get_addr symbol reference here.  Update call to
1200         gen_tls_global_dynamic_{32,64} for added arguments.
1201         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1202         expanders directly for TARGET_GNU2_TLS.  Determine
1203         __tls_get_addr symbol reference here.  Update call to
1204         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1205         unique UNSPEC REG_EQUIV to libcall block.
1206         (ix86_tls_get_addr): Declare static.
1207         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1208         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1209         Do not determine pic and __tls_get_addr symbol reference here. Do not
1210         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1211         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1212         (tls_global_dynamic_64): Add operand 2.  Do not determine
1213         __tls_get_addr symbol reference here.  Do not call
1214         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1215         (tls_local_dynamic_base64): Ditto for operand 1.
1217 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1219         * function.c (expand_function_start): Initialize stack_check_probe_note
1220         only if the generic stack checking mechanism is used.
1222 2011-05-11  Richard Guenther  <rguenther@suse.de>
1224         PR tree-optimization/15256
1225         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1226         (A & B) | C, combine (A op CST1) op CST2.
1227         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1228         visit assigns that have uses.
1230 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1232         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1233         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1234         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1235         (unpack_value_fields): Adjust for renaming.
1236         (lto_input_ts_type_tree_pointers): Split into...
1237         (lto_input_ts_type_common_tree_pointer): ...this and...
1238         (lto_input_ts_type_non_common_tree_pointers): ...this.
1239         (lto_input_tree_pointers): Adjust for above split.
1240         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1241         (pack_ts_type_common_value_fields): ...this.  Update comment.
1242         (lto_output_ts_type_tree_pointers): Split into...
1243         (lto_output_ts_type_common_tree_pointers): ...this and...
1244         (lto_output_ts_type_non_common_tree_pointers): ...this.
1245         (lto_output_tree_pointers): Adjust for above split.
1246         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1247         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1248         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1249         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1250         Define.
1251         (struct tree_type): Split into...
1252         (struct tree_type_common: ...this and...
1253         (struct tree_type_with_lang_specific): ...this and...
1254         (struct tree_type_non_common): ...this.  Adjust accessor macros
1255         accordingly.
1256         (TYPE_VALUES_RAW): Define.
1257         (union tree_node): Update for above changes.
1258         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1259         TS_TYPE_NON_COMMON.
1260         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1261         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1262         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1263         * treestructu.def (TS_TYPE): Remove.
1264         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1265         Define.
1267 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1269         PR debug/48159
1270         * tree-ssa.c (reset_debug_uses): New function.
1271         * tree-flow.h (reset_debug_uses): New prototype.
1272         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1273         * tree-loop-distribution.c (generate_loops_for_partition): Call
1274         reset_debug_uses on the stmts that will be removed.  Keep around
1275         all debug stmts, don't count them as bits in partition bitmap.
1276         (generate_builtin): Don't count debug stmts or labels as bits in
1277         partition bitmap.
1279 2011-05-11  Richard Guenther  <rguenther@suse.de>
1281         * gimple.c (gimple_type_hash_1): Merge with ...
1282         (gimple_type_hash): ... this.
1283         (gtc_visit): Remove mode parameter and simplify accordingly.
1284         (gimple_types_compatible_p_1): Likewise.
1285         (gimple_types_compatible_p): Likewise.
1286         (iterative_hash_gimple_type): Likewise.
1287         (visit): Likewise.
1288         (gimple_type_eq): Adjust.
1290 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1292         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1293         enters the branch create an anti edge in the opposite direction
1294         to prevent the creation of reg-moves.
1295         * modulo-sched.c: Adjust comment to reflect the fact we are
1296         scheduling closing branch.
1297         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1298         (stage_count): New field in struct partial_schedule.
1299         (calculate_stage_count): New function.
1300         (normalize_sched_times): Rename to reset_sched_times and handle
1301         incrementing the sched time of the nodes by a constant value
1302         passed as parameter.
1303         (duplicate_insns_of_cycles): Skip closing branch.
1304         (sms_schedule_by_order): Schedule closing branch.
1305         (ps_insn_find_column): Handle closing branch.
1306         (sms_schedule): Call reset_sched_times and adjust the code to
1307         support scheduling of the closing branch.
1308         (ps_insert_empty_row): Update calls to normalize_sched_times
1309         and rotate_partial_schedule functions.
1311 2011-05-11  Richard Guenther  <rguenther@suse.de>
1313         PR middle-end/48953
1314         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1316 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1318         * opts.c (finish_options): Move warning settings from process_options.
1319         * toplev.c (process_options): Move warning settings to finish_options.
1321 2011-05-11  Richard Guenther  <rguenther@suse.de>
1323         PR tree-optimization/18041
1324         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1325         (simplify_bitwise_binary): ... this.  Handle operand conversions
1326         by applying them to the result instead.
1327         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1329 2011-05-11  Richard Guenther  <rguenther@suse.de>
1331         * gimple.c (gimple_canonical_types_compatible_p): Split out
1332         from gimple_types_compatible_p and friends.  Do not recurse
1333         to pointed-to types.
1334         (gimple_canonical_type_eq): Use it.
1335         (iterative_hash_canonical_type): Split out from
1336         iterative_hash_gimple_type and friends.  Do not recurse
1337         to pointed-to types.
1338         (gimple_canonical_type_hash): Use it, allocate the hash here.
1340 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1342         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1343         recognizing doloop.
1345 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1347         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1348         instead of PREV_INSN.
1350 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1352         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1353         * loop-doloop.c (doloop_condition_get): Likewise.
1354         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1355         (doloop_end): New.
1356         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1358 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1360         * tree.def (CASE_LABEL_EXPR): Add an operand.
1361         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1363 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1365         * c-decl.c (c_override_global_bindings_to_false): Remove.
1366         (global_bindings_p): Don't check
1367         c_override_global_bindings_to_false.
1368         * c-tree.h (c_override_global_bindings_to_false): Remove.
1369         * c-typeck.c (composite_type): Don't set
1370         c_override_global_bindings_to_false.
1372 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1374         PR target/48857, 48495
1375         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1376         (VSX_MODE): Ditto.
1377         (VSX_MOVE_MODE): Ditto.
1378         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1379         VSX vector types.  Add V2DImode.
1380         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1381         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1382         (MODES_TIEABLE_P): Ditto.
1384         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1385         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1386         VSX_VECTOR_MODE.
1387         (init_cumulative_args): Ditto.
1388         (rs6000_function_arg_boundary): Ditto.
1389         (rs6000_function_arg_advance_1): Ditto.
1390         (rs6000_function_arg): Ditto.
1391         (rs6000_function_ok_for_sibcall): Ditto.
1392         (emit_frame_save): Ditto.
1393         (rs6000_function_value): Ditto.
1394         (rs6000_libcall_value): Ditto.
1396 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1398         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1399         i386/darwin-lib.h to $libgcc_tm_file.
1400         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1402 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1404         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1406 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1408         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1409         * config/rs6000/rs6000-tables.opt: New file (generated).
1410         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1411         rs6000/rs6000-tables.opt to extra_options.
1412         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1413         * config/rs6000/rs6000.c (rs6000_select): Remove.
1414         (processor_target_table): Move contents to rs6000-cpus.def.
1415         (darwin_rs6000_override_options): Check
1416         global_options_set.x_rs6000_cpu_index instead of
1417         rs6000_select[1].string.
1418         (rs6000_option_override_internal): Likewise.
1419         (rs6000_handle_option): Don't assert that global structures are in
1420         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1421         (rs6000_default_cpu): New variable.
1422         (rs6000_file_start): Set it instead of local default_cpu.  Check
1423         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1424         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1425         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1426         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1427         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1428         rs6000_select): Remove.
1429         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1430         Remove.
1431         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1432         * config/rs6000/t-rs6000
1433         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1434         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1435         global_options_set.x_rs6000_cpu_index instead of
1436         rs6000_select[1].string.
1437         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1438         global_options_set.x_rs6000_cpu_index instead of
1439         rs6000_select[1].string.
1441 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1443         * config.gcc (libgcc_tm_file): Define instead of including files
1444         from ../../libgcc/config/ in tm_file.
1445         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1446         * configure: Regenerate.
1447         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1448         libgcc_tm.h, cs-libgcc_tm.h): New.
1449         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1450         (clean): Remove libgcc_tm.h.
1451         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1452         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1453         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1455 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1457         PR target/48896
1458         * config/avr/avr.c (avr_ret_register): Return unsigned int
1459         instead of int.
1460         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1461         it to avr_libcall_value.
1462         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1463         expand_expr.
1464         (avr_expand_binop_builtin): Ditto.
1465         (avr_expand_unop_builtin): Ditto.
1467 2011-05-10  DJ Delorie  <dj@redhat.com>
1469         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1470         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1471         * config/rx/rx.c (rx_align_for_label): Add label and
1472         uses_threshold parameters.  Do not align when the label is not
1473         used enough.
1474         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1476 2011-05-10  Richard Guenther  <rguenther@suse.de>
1478         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1479         a series of conversions and apply foldings similar to what
1480         fold-const does.
1481         (tree_ssa_forward_propagate_single_use_vars): Call it.
1483 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1485         PR tree-optimization/48611
1486         PR tree-optimization/48794
1487         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1488         referenced from RESX or EH_DISPATCH arguments.
1490         PR debug/48928
1491         * dfp.c (decimal_to_decnumber): Handle conversion from
1492         dconst{1,2,m1,half}.
1494 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1496         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1497         for !flag_prefer_avx128.
1498         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1500 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1502         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1503         (fold_ternary_loc): Use expr_location_or.
1505 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1507         PR debug/48853
1508         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1509         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1510         Pmode and mem_mode is not VOIDmode.
1512 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1514         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1515         TYPE_QUAL_RESTRICT): Convert to enum.
1517 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1519         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1520         (const_pow2_1_to_8_operand): Ditto.
1521         (const_pow2_1_to_128_operand): Ditto.
1522         (const_pow2_1_to_32768_operand): Ditto.
1523         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1524         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1525         in insn constraint to check integer value of operand 3.
1526         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1528         (PINSR_MODE): New mode iterator.
1529         (sse2p4_1): New mode attribute.
1530         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1531         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1532         iterator.  Use const_int_operand instead of
1533         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1534         exact_log2 in insn constraint to check integer value of operand 3.
1536 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1538         * config/i386/sse.md (blendbits): Remove mode attribute.
1539         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1540         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1541         Check integer value of operand 3 in insn constraint.
1543 2011-05-09  Richard Guenther  <rguenther@suse.de>
1545         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1546         for diagnostics.
1547         (lto_symtab_merge): Likewise.  Do not register types here.
1548         (lto_symtab_merge_decls_2): Likewise.
1549         (lto_symtab_merge_decls_1): Likewise.
1550         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1551         * gimple.c (enum gtc_mode): Declare.
1552         (gimple_types_compatible_p): Make static.
1554 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1556         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1557         temporary register to match Pmode.
1559 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1561         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1562         and *vec_concatv4si_1_avx.
1564 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1566         PR rtl-optimization/48927
1567         * ira-conflicts.c (commutative_constraint_p): Use
1568         recog_data.alternative_enabled_p to disable alternatives where
1569         "enabled" attribute is false.
1570         (get_dup_num): Ditto.
1571         * ira-lives.c (single_reg_class): Ditto.
1572         (ira_implicitly_set_insn_hard_regs): Ditto.
1574 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1576         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1577         (dataflow_set_preserve_mem_locs): Likewise.
1579 2011-05-09  Philipp Thomas  <pth@suse.de>
1581         * config/mep/mep.c (mep_validate_vliw): Syntax description
1582         should not be translated.
1584 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1586         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1587         * config/mips/mips-tables.opt: New file (generated).
1588         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1589         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1590         MIPS_ARCH_OPTION_NATIVE): Define.
1591         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1592         mips-cpus.def.
1593         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1594         mips_parse_cpu): Remove.
1595         (mips_cpu_info_from_opt, mips_default_arch): New.
1596         (mips_handle_option): Don't assert that global structures are in
1597         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1598         (mips_option_override): Use new variables and functions to set
1599         state of these options.  Use strcmp to check for individual CPU names.
1600         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1601         definition.
1602         * config/mips/mips.opt (march=): Use ToLower and Enum.
1603         (mips): Use ToLower, Enum and Var.
1604         (mtune=): Use ToLower and Enum.
1605         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1607 2011-05-08  Jan Hubicka  <jh@suse.cz>
1609         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1610         Arrange type pairs to be UID ordered.
1611         (gimple_lookup_type_leader): Make inline.
1613 2011-05-09  Nick Clifton  <nickc@redhat.com>
1615         PR target/48899
1616         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1617         PROCESSOR_DEFAULT.
1619         PR target/48897
1620         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1621         variable 's'.
1623 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1625         * combine.c (simplify_comparison): Abstract out parts into...
1626         (simplify_compare_const): ... new function.
1627         (try_combine): Generalize parallel arithmetic/compare combining
1628         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1630 2011-05-08  Jan Hubicka  <jh@suse.cz>
1632         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1633         (cgraph_create_virtual_clone): Call hooks once virtual clone
1634         is finished.
1635         * cgraph.h (cgraph_clone_node): Update prototype.
1636         * ipa-cp.c (ipcp_estimate_growth): Use
1637         estimate_ipcp_clone_size_and_time.
1638         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1639         * lto-cgraph.c (input_node): Update.
1640         * ipa-inline.c (recursive_inlining): Update.
1641         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1642         (evaluate_conditions_for_known_args): Break out from ...
1643         (evaluate_conditions_for_edge): ... here.
1644         (evaluate_conditions_for_ipcp_clone): New function.
1645         (inline_node_duplication_hook): Update clone summary based
1646         on parameter map.
1647         (estimate_callee_size_and_time): Rename to ...
1648         (estimate_node_size_and_time): take NODE instead of EDGE;
1649         take POSSIBLE_TRUTHS as argument.
1650         (estimate_callee_size_and_time): Update.
1651         (estimate_ipcp_clone_size_and_time): New function.
1652         (do_estimate_edge_time): Update.
1654 2011-05-08  Richard Guenther  <rguenther@suse.de>
1656         PR middle-end/48908
1657         PR middle-end/48905
1658         * expmed.c (expand_shift_1): Compute adjusted constant shift
1659         amount manually.
1661 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1663         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1665 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1667         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1669 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1671         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1673 2011-05-07  Jan Hubicka  <jh@suse.cz>
1675         * ipa-inline-transform.c (inline_call): Account when program size
1676         decreases.
1677         * ipa-inline.c (relative_time_benefit): New function.
1678         (edge_badness): Reorganize to be power 2 based; fix thinko when
1679         computing badness for negative growth; update comments to match
1680         reality; better dumps.
1682 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1684         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1685         type to bool and adjust comment.
1686         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1687         (fold_mathfn_compare): Remove calls to global_bindings_p.
1688         (fold_inf_compare): Likewise.
1689         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1690         * c-tree.h (global_bindings_p): Adjust prototype.
1691         * c-decl.c (global_bindings_p): Return bool and simplify.
1693 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1695         PR tree-optimization/48837
1696         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1697         when accumulator transformation is performed.
1699 2011-05-06  Jan Hubicka  <jh@suse.cz>
1701         * i386.h (ix86_tune_indices): Add
1702         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1703         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1704         * i386.c (initial_ix86_tune_features): Add
1705         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1706         (software_prefetching_beneficial_p): Remove predicate.
1707         (ix86_option_override_internal): Use new macro.
1709 2011-05-06  Jan Hubicka  <jh@suse.cz>
1711         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1713 2011-05-06  Jan Hubicka  <jh@suse.cz>
1715         * cgraph.c (cgraph_add_thunk): Create real function node instead
1716         of alias node; finalize it and mark needed/reachale; arrange visibility
1717         to be right and add it into the corresponding same comdat group list.
1718         (dump_cgraph_node): Dump thunks.
1719         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1720         cgraph_function_with_gimple_body_p,
1721         cgraph_first_function_with_gimple_body,
1722         cgraph_next_function_with_gimple_body): New functions.
1723         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1724         New macros.
1725         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1726         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1727         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1728         devirtualization when optimizing.
1729         (verify_cgraph_node): Verify thunks.
1730         (cgraph_analyze_function): Analyze thunks.
1731         (cgraph_mark_functions_to_output): Output thunks only in combination
1732         with function they are assigned to.
1733         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1734         alias into normal node.
1735         (assemble_thunks): New functoin.
1736         (cgraph_expand_function): Use it.
1737         * lto-cgraph.c (lto_output_node): Stream thunks.
1738         (input_overwrite_node): Stream in thunks.
1739         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1740         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1741         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1742         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1743         (inline_analyze_function): Do not care about thunk jump functions.
1744         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1745         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1746         cgraph_function_with_gimple_body_p.
1747         * passes.c (do_per_function_toporder): Use
1748         cgraph_function_with_gimple_body_p.
1749         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1750         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1751         (function_called_by_processed_nodes_p): Likewise.
1753 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1755         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1756         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1757         entries.
1758         (mabi=): Replace with separate entries for mabi=altivec,
1759         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1760         mabi=ieeelongdouble and mabi=ibmlongdouble.
1761         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1762         check for -mabi=spe without SPE ABI support here.
1763         (rs6000_handle_option): Replace OPT_mabi_ handling with
1764         OPT_mabi_altivec and OPT_mabi_spe handling.
1766 2011-05-06  Cary Coutant  <ccoutant@google.com>
1768         * dwarf2out.c (contains_subprogram_definition): New function.
1769         (should_move_die_to_comdat): Call it.
1771 2011-05-06  Jeff Law  <law@redhat.com>
1773         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1774         remove_ctrl_stmt_and_useless_edges.
1775         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1776         (fixup_template_block, thread_single_edge): Likewise.
1777         (mark_threaded_blocks): Use THREAD_TARGET.
1779 2011-05-06  Alan Modra  <amodra@gmail.com>
1781         PR target/48900
1782         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1783         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1785 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1787         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1788         constraint modifier to "r".
1790 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1792         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1793         fall through for OPT_mcmodel_.
1795 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1797         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1798         instruction sizes.
1799         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1801 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1803         PR target/47930
1804         * config/arm/arm.opt (marm): Document it.
1805         (mthumb): Reject negative variant.
1807 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1809         PR target/48898
1810         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1811         Fix typo in "ccvt" variable name.
1813 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1815         PR target/48895
1816         * config/vms/vms-ar.c (main): Remove cwd variable.
1818 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1820         PR debug/48902
1821         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1823 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1825         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1826         * gimplify.c (gimplify_switch_expr): Likewise.
1827         * omp-low.c (expand_omp_sections): Likewise.
1828         * tree-eh.c (lower_try_finally_switch): Likewise.
1829         (lower_eh_dispatch): Likewise.
1830         * tree.h (build_case_label): Declare.
1831         * tree.c (build_case_label): Define.
1833 2011-05-05  Jason Merrill  <jason@redhat.com>
1835         PR c++/40975
1836         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1837         (copy_statement_list): Don't recurse.
1838         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1839         STATEMENT_LIST.
1841 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1843         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1844         through from -mfpu= handling.
1845         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1847 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1849         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1850         POST_MODIFY.
1852 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1854         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1855         for 11.31.
1856         (hppa[12]*-*-hpux11*): Ditto.
1857         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1858         * config/ia64/hpux-unix2003.h: New.
1859         * config/pa/pa-hpux1131.opt: New.
1860         * config/pa/pa-hpux1131.h: New.
1861         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1862         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1863         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1865 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1867         PR debug/48853
1868         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1869         instead of mode as 3rd argument to recursive call.
1870         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1871         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1872         VOIDmode.
1873         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1874         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1875         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1876         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1878 2011-05-05  Julian Brown  <julian@codesourcery.com>
1880         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1881         parenthesis in D-register case.
1883 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1885         * opt-functions.awk (var_type_struct): Handle Enum options.
1886         * optc-gen.awk: Don't check range of variables of character type.
1887         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1888         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1889         rs6000_sdata_name, rs6000_explicit_options): Remove.
1890         (rs6000_option_override_internal): Check for -malign-power here.
1891         Use global_options_set instead of rs6000_explicit_options.
1892         (rs6000_parse_fpu_option): Remove.
1893         (rs6000_handle_option): Access variables via opts and opts_set
1894         pointers.  Use error_at and warning_at.  Add fall-through
1895         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1896         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1897         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1898         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1899         here.  Don't use rs6000_parse_fpu_option.
1900         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1901         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1902         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1903         (mrecip=): Use Var.
1904         (mspe): Use Var and Save.
1905         (mtraceback=): Use Enum and Var.
1906         (rs6000_traceback_type): New Enum and EnumValue entries.
1907         (mfloat-gprs=): Use Enum, Var and Save.
1908         (rs6000_float_gprs): New Enum and EnumValue entries.
1909         (mlong-double-): use Var and Save.
1910         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1911         (malign-): Use Enum and Var.
1912         (rs6000_alignment_flags): New Enum and EnumValue entries.
1913         (mfpu=): Use Enum.
1914         (fpu_type_t): New Enum and EnumValue entries.
1915         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1916         global_options_set instead of rs6000_explicit_options.
1917         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1918         global_options_set instead of rs6000_explicit_options.
1919         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1920         global_options_set instead of rs6000_explicit_options.
1921         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1922         global_options_set instead of rs6000_explicit_options.
1923         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1924         global_options_set instead of rs6000_explicit_options.
1925         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1926         global_options_set instead of rs6000_explicit_options.
1927         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1928         definition.
1929         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1930         global_options_set instead of rs6000_explicit_options.
1931         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1932         (rs6000_cmodel): New Enum and EnumValue entries.
1933         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1934         global_options_set instead of rs6000_explicit_options.
1935         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1936         (mtls-size=): Use Enum and Var.
1937         (rs6000_tls_size): New Enum and EnumValue entries.
1939 2011-05-05  Michael Matz  <matz@suse.de>
1941         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1942         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1943         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1944         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1945         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1946         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1947         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1948         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1949         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1950         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1951         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1952         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1953         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1954         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1955         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1956         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1958 2011-05-05  Richard Guenther  <rguenther@suse.de>
1960         * expmed.c (expand_variable_shift): Rename to ...
1961         (expand_shift_1): ... this.  Take an expanded shift amount.
1962         For rotates recurse directly not building trees for the shift amount.
1963         (expand_variable_shift): Wrap around expand_shift_1.
1964         (expand_shift): Adjust.
1966 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1968         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1970 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1972         * tree.h (get_pending_sizes): Remove prototype.
1973         (put_pending_size): Likewise.
1974         (put_pending_sizes): Likewise.
1975         * stor-layout.c (pending_sizes): Delete.
1976         (get_pending_sizes): Likewise.
1977         (put_pending_size): Likewise.
1978         (put_pending_sizes): Likewise.
1979         (variable_size): Do not call put_pending_size and tidy up.
1980         * function.h (struct function): Remove dont_save_pending_sizes_p.
1981         * lto-streamer-in.c (input_function): Do not stream it.
1982         * lto-streamer-out.c (output_function): Likewise.
1983         * tree-inline.c (initialize_cfun): Do not copy it.
1984         * c-decl.c (store_parm_decls): Do not set it.
1985         * omp-low.c (create_task_copyfn): Likewise.
1986         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1988 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
1990         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1991         conditions.
1992         (*movdf_internal): Ditto.
1993         (*movdf_internal_nointeger): Ditto.
1994         (*movsf_internal): Ditto.
1996 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1998         * c-decl.c (finish_decl): Don't call get_pending_sizes.
1999         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2000         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2001         (c_variable_size): Remove.
2002         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2003         call put_pending_sizes.
2004         (get_parm_info): Add parameter expr.  Use it to set
2005         arg_info->pending_sizes.
2006         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2007         get_pending_sizes.
2008         * c-parser.c (c_parser_parms_declarator): Update call to
2009         c_parser_parms_list_declarator.
2010         (c_parser_parms_list_declarator): Take parameter expr.  Update
2011         call to push_parm_decl.  Update recursive call.  Don't call
2012         get_pending_sizes.  Update calls to get_parm_info.
2013         (c_parser_objc_method_definition): Update calls to
2014         c_parser_objc_method_decl and objc_start_method_definition.
2015         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2016         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2017         grokparm.
2018         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2019         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2020         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2022 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2024         PR pch/45979
2025         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2026         __ARM_EABI__ hosts.
2028 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2030         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2031         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2032         (spu_output_mi_thunk): New function.
2034 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2036         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2037         targetm.asm_out.print_operand.
2038         * config/sol2.c: Include target.h.
2040 2011-05-04  Jan Hubicka  <jh@suse.cz>
2042         * ipa-inline.c (reset_edge_caches): New function.
2043         (update_caller_keys): Add check_inlinablity_for; do not
2044         reset edge caches; remove now unnecesary loop.
2045         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2046         (update_all_callee_keys): Likewise.
2047         (inline_small_functions): Sanity check cache; update code
2048         recomputing it.
2050 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2052         PR rtl-optimization/47612
2053         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2054         as the last insn of the sequence to be moved.
2056 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2058         PR fortran/48864
2059         * doc/invoke.texi (Ofast): Document that it
2060         enables Fortran's -fno-protect-parens.
2062 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2064         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2066 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2068         * stor-layout.c (variable_size): Do not issue errors.
2070 2011-05-04  Richard Guenther  <rguenther@suse.de>
2072         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2073         for array-ref indices.
2074         (tree_coverage_counter_addr): Likewise.
2075         (build_fn_info_type): Use size_int for index types.
2076         (build_gcov_info): Likewise.
2078 2011-05-04  Richard Guenther  <rguenther@suse.de>
2080         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2081         to build_int_cst.
2082         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2083         for constructor indices.
2084         (push_init_level): Likewise.
2086 2011-05-04  Richard Guenther  <rguenther@suse.de>
2088         * explow.c (promote_mode): Move variable declarations before code.
2090 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2092         * tree.h (build_function_type_array): Declare.
2093         (build_varargs_function_type_array): Declare.
2094         (build_function_type_vec, build_varargs_function_type_vec): Define.
2095         * tree.c (build_function_type_array_1): New function.
2096         (build_function_type_array): New function.
2097         (build_varargs_function_type_array): New function.
2099 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2101         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2102         before setting STMT_VINFO_TYPE.
2104 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2106         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2107         instead of spu_pass_by_reference.
2109 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2111         * calls.c (emit_library_call_value_1): Invoke
2112         promote_function_mode hook on libcall arguments.
2113         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2114         argument being NULL.
2115         * targhooks.c (default_promote_function_mode): Lisewise.
2116         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2117         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2119         * doc/tm.texi: Document that TYPE argument might be NULL.
2121 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2123         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2125 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2127         From Bernd Schmidt
2128         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2130 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2132         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2133         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2134         Move ...
2135         * mips-tfile.c: ... here.
2136         Don't include coretypes.h, tm.h, filenames.h.
2137         (saber_stop): Remove definition and all calls.
2138         [__SABER__]: Remove.
2139         (__LINE__): Remove default.
2140         (Size_t, Ptrdiff_t): Remove definitions.
2141         Replace by size_t, ptrdiff_t.
2142         [!MIPS_DEBUGGING_INFO]: Remove.
2143         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2144         (progname): Add const.
2145         (STATIC): Remove.
2146         Replace all uses by static.
2147         (ALIGN_SYMTABLE_OFFSET): Remove default.
2148         * mips-tdump.c: Don't include coretypes.h, tm.h.
2149         Remove !MIPS_IS_STAB guard.
2150         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2151         $(TM_H), filenames.h dependencies.
2152         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2154 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2156         From Jie Zhang
2157         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2158         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2160 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2162         From Bernd Schmidt
2163         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2164         account and save/restore RETS.
2165         (PROFILE_BEFORE_PROLOGUE): Define.
2166         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2167         the push insn to use predecrement.
2169 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2171         From Jie Zhang
2172         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2174 2011-05-04  Nick Clifton  <nickc@redhat.com>
2176         * config/mn10300/mn10300.c: Include cfgloop.h.
2177         (DUMP): New macro.
2178         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2179         Lcc or a FLcc insn into the instruction stream.
2180         (mn10300_block_contains_call): New function.  Returns true if the
2181         given basic block contains a CALL insn.
2182         (mn10300_loop_contains_call_insn): New function.  Returns true if
2183         the given loop contains a CALL insn.
2184         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2185         to use the SETLB and Lcc or FLcc insns.
2186         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2187         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2188         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2189         disable the SETLB optimization.
2190         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2191         __SETLB__ or __NO_SETLB__.
2192         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2193         (movsf_internal): Handle MDR register.
2194         (cmpsi): Make visible.
2195         (setlb): New pattern.
2196         (Lcc): New pattern.
2197         (FLcc): New pattern.
2199 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2201         PR target/48860
2202         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2203         for reg<->xmm moves.
2204         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2205         (vec_concatv2di_rex64_sse): Ditto.
2206         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2207         (*vec_extractv2di_1_rex64): Ditto.
2209         Revert:
2210         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2212         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2213         reg<->xmm moves.
2214         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2216 2011-05-04  Richard Guenther  <rguenther@suse.de>
2218         * tree.h (int_const_binop): Remove notrunc argument.
2219         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2220         create integer constants that are properly truncated.
2221         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2222         (const_binop): Remove zero notrunc argument to int_const_binop.
2223         (size_binop_loc): Likewise.
2224         (fold_div_compare): Likewise.
2225         (maybe_canonicalize_comparison_1): Likewise.
2226         (fold_comparison): Likewise.
2227         (fold_binary_loc): Likewise.
2228         (multiple_of_p): Likewise.
2229         * expr.c (store_constructor): Likewise.
2230         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2231         (maybe_fold_stmt_addition): Likewise.
2232         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2233         * stor-layout.c (layout_type): Likewise.
2234         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2235         * tree-sra.c (build_ref_for_offset): Likewise.
2236         (build_user_friendly_ref_for_offset): Likewise.
2237         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2238         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2239         * tree-ssa-loop-niter.c (inverse): Likewise.
2240         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2241         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2242         * tree-switch-conversion.c (check_range): Likewise.
2243         (build_constructors): Likewise.
2244         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2245         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2246         (extract_range_from_assert): Likewise.
2247         (vrp_int_const_binop): Likewise.
2248         (extract_range_from_binary_expr): Likewise.
2249         (extract_range_from_unary_expr): Likewise.
2250         (check_array_ref): Likewise.
2251         (find_case_label_range): Likewise.
2252         (simplify_div_or_mod_using_ranges): Likewise.
2253         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2254         comparing case labels for merging.
2256 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2258         * dwarf2out.c (debug_str_hash_forced): Removed.
2259         (gen_label_for_indirect_string): Removed.
2260         (get_debug_string_label): Removed.
2261         (AT_string_form): Generate label directly.
2262         (output_indirect_string): Test indirect_string_node for
2263         DW_FORM_strp instead of checking label and refcount.
2264         (prune_indirect_string): Removed.
2265         (prune_unused_types): Don't check debug_str_hash_forced or
2266         call prune_indirect_string.
2268 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2270         PR other/48093
2271         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2273 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2275         PR debug/47994
2276         PR debug/47919
2277         * combine.c (try_combine): Skip debug insns at m_split tests.
2279 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2281         PR42288
2282         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2283         when info_section_emitted.
2285 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2287         * config/mips/mips-opts.h: New.
2288         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2289         to mips-opts.h.
2290         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2291         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2292         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2293         via opts pointer.
2294         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2295         mips-opts.h.
2296         (mips_abi, mips_code_readable): Don't declare.
2297         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2298         (mabi=): Use Enum and Var.
2299         (mips_abi): New Enum and EnumValue entries.
2300         (mcode-readable=): Use Enum and Var.
2301         (mips_code_readable_setting): New Enum and EnumValue entries.
2302         (mr10k-cache-barrier=): Use Enum and Var.
2303         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2305 2011-05-03  Jan Hubicka  <jh@suse.cz>
2307         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2308         replace hash by pointer map.
2309         (cgraph_node_set_element_def, cgraph_node_set_element,
2310         const_cgraph_node_set_element, varpool_node_set_element_def,
2311         varpool_node_set_element, const_varpool_node_set_element): Remove.
2312         (free_cgraph_node_set, free_varpool_node_set): New function.
2313         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2314         * tree-emutls.c: Free varpool node set.
2315         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2316         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2317         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2318         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2319         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2320         Move here from ipa.c; implement using pointer_map
2321         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2322         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2323         debug_cgraph_node_set, varpool_node_set_new,
2324         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2325         dump_varpool_node_set, debug_varpool_node_set):
2326         Move to ipa-uitls.c.
2327         * passes.c (ipa_write_summaries): Update.
2329 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2331         From Mike Frysinger:
2332         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2333         bf542/bf544/bf547/bf548/bf549.
2335 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2337         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2339 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2341         From Bernd Schmidt:
2342         * config/bfin/bfin.md (MOVCC): New mode_macro.
2343         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2344         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2345         comments from generated assembly.
2347 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2349         From Bernd Schmidt
2350         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2351         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2352         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2353         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2354         * config/bfin/lib1funcs.asm (___muldi3): New function.
2356 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2358         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2359         build_function_type_list instead of build_function_type.
2360         Rearrange initialization of `args' to do so.
2362 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2364         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2365         instead of build_function_type.
2367 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2369         * config/rs6000/rs6000.c (spe_init_builtins): Call
2370         build_function_type_list instead of build_function_type.
2371         (paired_init_builtins, altivec_init_builtins): Likewise.
2372         (builtin_function_type): Likewise.
2374 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2376         * config/sh/sh.c (sh_media_init_builtins): Call
2377         build_function_type_list instead of build_function_type.
2379 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2381         * config/sparc/sparc.c (sparc_file_end): Call
2382         build_function_type_list instead of build_function_type.
2384 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2386         * config/alpha/alpha.c (alpha_init_builtins): Call
2387         build_function_type_list instead of build_function_type.
2389 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2391         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2392         build_function_type_list instead of build_function_type.
2394 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2396         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2397         build_function_type_list instead of build_function_type.
2398         Delete `endlink' variable.
2400 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2402         * config/avr/avr.c (avr_init_builtins): Call
2403         build_function_type_list instead of build_function_type.
2405 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2407         * config/picochip/picochip.c (picochip_init_builtins): Call
2408         build_function_type_list instead of build_function_type.
2409         Delete `endlink' variable.
2411 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2413         * config/bfin/bfin.c (bfin_init_builtins): Call
2414         build_function_type_list instead of build_function_type.
2416 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2418         From Bernd Schmidt
2419         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2420         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2422 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2424         From Jie Zhang:
2425         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2426         libbffastfp overrides libgcc when -mfast-fp.
2428 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2430         Originally from Bernd Schmidt
2431         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2432         * config/bfin/bfin.c (override_options): Test it and error if
2433         TARGET_FDPIC.
2435 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2437         Originally From Bernd Schmidt
2438         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2439         FD-PIC.
2441 2011-05-03  Jeff Law  <law@redhat.com>
2443         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2444         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2445         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2446         than accessing AUX field directly.  Free the AUX field before
2447         clearing it.
2448         (thread_block, thread_through_loop_header): Likewise.
2449         (thread_single_edge, mark_threaded_blocks): Likewise.
2450         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2451         (register_jump_thread): Do not attempt to thread to a NULL edge.
2453 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2455         * function.c (init_function_start): Call decide_function_section.
2456         * varasm.c (decide_function_section): New function.
2457         (assemble_start_function): When not using
2458         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2459         or first_function_block_is_cold.
2460         * rtl.h (decide_function_section): Declare.
2462 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2463             Jakub Jelinek  <jakub@redhat.com>
2465         PR target/48774
2466         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2467         only succeed if req_mode is the same as set_mode.
2469 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2471         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2472         * genemit.c (gen_exp): Handle RETURN.
2473         * emit-rtl.c (verify_rtx_sharing): Likewise.
2474         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2475         * rtl.c (copy_rtx): RETURN is shared.
2476         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2477         (ret_rtx): New.
2478         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2479         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2480         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2481         * config/cris/cris.c (cris_expand_return): Likewise.
2482         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2483         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2484         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2485         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2486         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2487         Likewise.
2488         * config/v850/v850.c (expand_epilogue): Likewise.
2489         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2490         * config/arm/arm.md (epilogue): Likewise.
2491         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2492         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2493         variable to ret_reg.
2495 2011-05-03  Richard Guenther  <rguenther@suse.de>
2497         PR lto/48846
2498         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2499         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2500         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2502 2011-05-03  Richard Guenther  <rguenther@suse.de>
2504         * c-decl.c (grokdeclarator): Instead of looking at
2505         TREE_OVERFLOW check if the constant fits in the index type.
2507 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2509         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2510         (vec_store_lanes<mode><mode>): Likewise.
2512 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2514         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2515         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2516         convert_optab_index values.
2517         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2518         * genopinit.c (optabs): Initialize the new optabs.
2519         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2520         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2521         (expand_STORE_LANES): New functions.
2522         * tree.h (build_array_type_nelts): Declare.
2523         * tree.c (build_array_type_nelts): New function.
2524         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2525         (vect_model_load_cost): Likewise.
2526         (vect_store_lanes_supported, vect_load_lanes_supported)
2527         (vect_record_strided_load_vectors): Declare.
2528         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2529         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2530         (vect_transform_strided_load): Split out statement recording into...
2531         (vect_record_strided_load_vectors): ...this new function.
2532         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2533         (write_vector_array, create_array_ref): New functions.
2534         (vect_model_store_cost): Add store_lanes_p argument.
2535         (vect_model_load_cost): Add load_lanes_p argument.
2536         (vectorizable_store): Try to use store-lanes functions for
2537         interleaved stores.
2538         (vectorizable_load): Likewise load-lanes and loads.
2539         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2540         to vect_model_store_cost.
2541         (vect_build_slp_tree): Likewise vect_model_load_cost.
2543 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2545         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2546         * hooks.c (hook_bool_mode_uhwi_false): New function.
2547         * target.def (array_mode_supported_p): New hook.
2548         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2549         * doc/tm.texi: Regenerate.
2550         * stor-layout.c (mode_for_array): New function.
2551         (layout_type): Use it.
2552         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2553         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2555 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2557         PR target/48723
2558         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2559         for -fstack-check if the size to allocate is negative.
2561 2011-05-02  Lawrence Crowl  <crowl@google.com>
2563         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2564         (timevar_cond_start): New for starting a timer only when it is not
2565         already running.
2566         (timevar_cond_stop): New for stopping a timer when it was not already
2567         running.
2569         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2570         (timevar_cond_start): New as above.
2571         (timevar_cond_stop): New as above.
2573         * timevar.def: Add start/stop timers for compiler phases,
2574         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2575         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2576         and TV_PHASE_FINALIZE.
2577         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2578         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2579         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2580         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2581         Make unused TV_OVERLOAD into a start/stop timer.
2583         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2584         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2585         to indicate that they are start/stop timers.
2587         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2588         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2589         Move initialization to do_compile.
2590         (do_compile): Add initialization from above.
2591         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2593         * c-decl.c (c_write_global_declarations): Add start/stop of
2594         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2596         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2597         or TV_PARSE_INLINE, as appropriate.
2598         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2599         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2601 2011-05-02  Jason Merrill  <jason@redhat.com>
2603         PR c++/40975
2604         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2606 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2608         PR c/35445
2609         * c-decl.c (finish_decl): Only create a composite if the types are
2610         compatible.
2612 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2614         * config/fr30/fr30-protos.h (Mmode): Don't define.
2615         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2616         definition where used.
2617         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2618         define.  Expand definitions where used.
2619         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2620         Expand definitions where used.
2621         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2622         rx_function_arg, rx_function_arg_advance,
2623         rx_function_arg_boundary): Expand definitions of those macros.
2624         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2625         definition where used.
2627 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2629         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2630         reg<->xmm moves.
2631         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2632         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2633         with *movv2sf_internal_rex64_avx.
2634         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2635         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2636         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2637         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2638         "vex" in "prefix" attribute calculation.
2639         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2641 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2643         PR target/47951
2644         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2645         inputs match the output.
2647 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2649         PR target/47955
2650         * config/m68k/m68k.c (m68k_expand_prologue): Set
2651         current_function_static_stack_size.
2653 2011-05-02   Jan Hubicka  <jh@suse.cz>
2655         * lto-streamer.c (lto_streamer_cache_insert_1,
2656         lto_streamer_cache_lookup, lto_streamer_cache_create,
2657         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2658         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2660 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2662         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2663         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2664         config/m68k/t-opts: New files.
2665         * config/m68k/m68k-tables.opt: New file (generated).
2666         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2667         extra_options and m68k/t-opts to tmake_file.
2668         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2669         (all_isas): Initialize using m68k-isas.def.
2670         (all_microarchs): Initialize using m68k-microarchs.def.
2671         (m68k_find_selection): Remove.
2672         (m68k_handle_option): Don't assert that global structures are in
2673         use.  Use error_at.  Access variables via opts pointer.  Don't
2674         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2675         directly for -m68020-40 and -m68020-60.
2676         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2677         m68k_tune_entry here.
2678         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2679         to m68k-opts.h.
2680         (m68k_library_id_string): Remove declaration.
2681         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2682         (m68k_library_id_string): New Variable.
2683         (march=, mcpu=, mtune=): Use Enum and Var.
2685 2011-05-02  Richard Guenther  <rguenther@suse.de>
2687         * varasm.c (output_constructor_regular_field): Compute zero-based
2688         index with double-ints.  Make sure to ICE instead of producing
2689         wrong code.
2690         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2691         in asserts.  Properly use a signed type.
2693 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2695         * config/i386/sse.md (V): New mode iterator.
2696         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2697         TARGET_SSE2.
2698         (V_256): Rename from AVX256MODE.
2699         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2700         condition to all users.
2701         (VF1): Ditto.
2702         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2703         condition to all users.
2704         (VF_128): Make V4SF mode unconditional.
2705         (VF_256): Rename from AVX256MODEF2P.
2706         (VI4F_128): Rename from SSEMODE4S.
2707         (VI8F_128): Rename from SSEMODE2D.
2708         (VI4F_256): Rename from AVX256MODE8P.
2709         (VI8F_256): Rename from AVX256MODE4P.
2710         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2711         (ssescalarmodesuffix): Remove SF and DF modes.
2712         (SSEMODE124): Remove.
2713         (SSEMODE1248): Ditto.
2714         (SSEMODEF2P): Ditto.
2715         (AVXMODEF2P): Ditto.
2716         (AVXMODEFDP): Ditto.
2717         (AVXMODEFSP): Ditto.
2718         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2719         unconditional.
2720         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2721         unconditional.
2722         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2723         xop_pcmov_<mode>256.  Use V mode iterator.
2725         Adjust RTX patterns globally for renamed mode attributes.
2727 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2729         * haifa-sched.c (sched_emit_insn): Emit insn before first
2730         non-scheduled insn.  Inform back-end about new insn.  Add
2731         new insn to scheduled_insns list.
2733 2011-05-02  Richard Guenther  <rguenther@suse.de>
2735         PR tree-optimization/48822
2736         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2737         (process_scc): Indicate which iteration we start.
2739 2011-05-02  Jan Hubicka  <jh@suse.cz>
2741         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2742         (lto_section_overrun): New.
2743         * lto-section-out.c (append_block): Rename to ...
2744         (lto_append_block): ... this one; export.
2745         (lto_output_1_stream): Move lto lto-streamer.h
2746         (lto_output_data_stream): Update.
2747         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2748         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2749         functions.
2751 2011-05-02  Richard Guenther  <rguenther@suse.de>
2753         * tree.c (tree_code_counts): New global array.
2754         (record_node_allocation_statistics): Count individual tree codes.
2755         (dump_tree_statistics): Dump individual code stats.
2757 2011-05-01  Jan Hubicka  <jh@suse.cz>
2759         * ipa-inline.c (caller_growth_limits): Fix thinko when
2760         looking for largest stack frame.
2761         * ipa-inline.h (dump_inline_summary): Declare.
2762         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2763         on stack usage.
2764         (dump_inline_summary): Export.
2765         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2767 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2769         * reginfo.c (memory_move_cost): Change rclass argument type form
2770         'enum reg_class' to reg_class_t.
2771         * reload.h (memory_move_cost): Update prototype.
2772         * postreload.c reload_cse_simplify_set): Change type dclass var to
2773         reg_class_t.
2774         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2775         Update prototype.
2776         (ira_allocate_and_set_costs): Change aclass argument type form
2777         'enum reg_class' to reg_class_t.
2778         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2779         Change aclass argument type to reg_class_t.
2780         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2781         to reg_class_t.
2782         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2783         memory_move_cost call.
2785         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2786         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2787         Change type tmp var to reg_class_t.
2789 2011-04-30  Jan Hubicka  <jh@suse.cz>
2791         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2792         inlining into function with flatten attribute.
2793         (want_inline_small_function_p): Be more realistic about inlining
2794         cold calls where callee size grows.
2796 2011-04-30  Jan Hubicka  <jh@suse.cz>
2798         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2799         flags.
2801 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2803         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2804         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2805         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2806         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2807         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2808         (print_operand): Rename to...
2809         (sparc_print_operand): ...this. Make static. Adjust
2810         sparc_print_operand function call.
2811         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2812         functions.
2814 2011-04-30  Jan Hubicka  <jh@suse.cz>
2816         PR middle-end/48752
2817         * ipa-inline.c (early_inliner): Disable when doing late
2818         addition of function.
2820 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2822         * dwarf2out.c (get_address_mode): New inline.
2823         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2824         if not dwarf_strict emit
2825         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2826         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2827         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2828         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2829         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2830         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2831         mem_loc_descriptor callers.
2832         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2833         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2834         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2835         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2836         (base_types): New variable.
2837         (get_base_type_offset, calc_base_type_die_sizes,
2838         base_type_for_mode, mark_base_types, base_type_cmp,
2839         move_marked_base_types): New functions.
2840         (calc_die_sizes): Assert that die_offset is 0 or equal to
2841         next_die_offset.
2842         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2843         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2844         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2845         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2846         (gen_subprogram_die): Don't give up on call site parameters
2847         with non-integral or large integral modes.  Adjust
2848         mem_loc_descriptor callers.
2849         (prune_unused_types): Call prune_unused_types_mark on base_types
2850         vector entries.
2851         (resolve_addr): Call mark_base_types.
2852         (dwarf2out_finish): Call move_marked_base_types.
2854         PR tree-optimization/48809
2855         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2856         type.
2857         (gen_inbound_check): Don't compute index_expr - range_min in utype
2858         again, instead reuse SSA_NAME initialized in build_arrays.
2859         Remove two useless gsi_for_stmt calls.
2861 2011-04-29  Jeff Law  <law@redhat.com>
2863         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2865 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2867         * cgraph.h (cgraph_postorder): Remove declaration.
2868         * ipa-utils.h (ipa_free_postorder_info): Declare.
2869         (ipa_reverse_postorder): Likewise.
2870         * cgraphunit.c: Include ipa-utils.h.
2871         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2872         * ipa-inline.c: Include ipa-utils.h.
2873         (ipa_inline): Update call to ipa_reverse_postorder.
2874         * ipa-pure-const.c (propagate_pure_const): Update call to
2875         ipa_reduced_postorder and ipa_print_order.  Call
2876         ipa_free_postorder_info to clean up.
2877         (propagate_nothrow): Likewise.
2878         * ipa-reference.c (propagate): Removed a useless call to
2879         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2880         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2881         * ipa.c: Include ipa-utils.h.
2882         (ipa_profile): Update call to ipa_reverse_postorder.
2883         (cgraph_postorder): Moved to...
2884         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2885         (ipa_utils_print_order): Renamed to ipa_print_order.
2886         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2887         comments.
2888         (ipa_free_postorder_info): New function.
2889         * passes.c: Include ipa-utils.h.
2890         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2891         (ipa_write_summaries): Likewise.
2892         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2893         (cgraphunit.o): Likewise.
2894         (ipa.o): Likewise.
2895         (ipa-inline.o): Likewise.
2897 2011-04-29  Jan Hubicka  <jh@suse.cz>
2899         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2900         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2901         * ipa-inline.h (clause_t): Turn into unsigned int.
2902         * ipa-inline-analysis.c (add_clause): Do more simplification.
2903         (and_predicates): Shortcut more cases.
2904         (predicates_equal_p): Move forward; check that clauses are properly
2905         ordered.
2906         (or_predicates): Shortcut more cases.
2907         (edge_execution_predicate): Rewrite as...
2908         (set_cond_stmt_execution_predicate): ... this function; handle
2909         __builtin_constant_p.
2910         (set_switch_stmt_execution_predicate): New .
2911         (compute_bb_predicates): New.
2912         (will_be_nonconstant_predicate): Update TODO.
2913         (estimate_function_body_sizes): Use compute_bb_predicates
2914         and free them later, always try to estimate if stmt is constant.
2915         (estimate_time_after_inlining, estimate_size_after_inlining):
2916         Gracefully handle optimized out edges.
2917         (read_predicate): Fix off by one error.
2919 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2921         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2923 2011-04-27  Xinliang David Li  <davidxl@google.com>
2925         * tree-profile.c (init_ic_make_global_vars): Set
2926         tls attribute on ic vars.
2927         * coverage.c (coverage_end_function): Initialize
2928         function_list with zero.
2930 2011-04-29  Richard Guenther  <rguenther@suse.de>
2932         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2933         for the type of the result.
2934         (fold_builtin_isascii): Likewise.
2935         (fold_builtin_toascii): Use integer_type_node where appropriate.
2936         (fold_builtin_logb): Likewise.
2937         (fold_builtin_frexp): Likewise.
2938         (fold_builtin_strstr): Likewise.
2939         (fold_builtin_strpbrk): Likewise.
2940         (fold_builtin_fputs): Likewise.
2941         (fold_builtin_sprintf): Likewise.
2942         (fold_builtin_snprintf): Likewise.
2943         (fold_builtin_printf): Likewise.
2944         (do_mpfr_remquo): Use a proper type for the assigned constant.
2945         (do_mpfr_lgamma_r): Likewise.
2946         * dwarf2out.c (resolve_one_addr): Use size_int.
2947         * except.c (init_eh): Likewise.
2948         (assign_filter_values): Use integer_type_node for filter values.
2949         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2950         indices.
2951         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2952         for EH region numbers.
2953         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2954         for the shift amount.
2956 2011-04-29  Richard Guenther  <rguenther@suse.de>
2958         * expr.h (expand_shift): Rename to ...
2959         (expand_variable_shift): ... this.
2960         (expand_shift): Take a constant shift amount.
2961         * expmed.c (expand_shift): Rename to ...
2962         (expand_variable_shift): ... this.
2963         (expand_shift): New wrapper around expand_variable_shift.
2964         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2965         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2966         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2967         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2968         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2969         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2970         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2971         emit_store_flag_1, emit_store_flag): Likewise.
2972         * builtins.c (expand_builtin_signbit): Likewise.
2973         * calls.c (load_register_parameters): Likewise.
2974         * function.c (assign_parm_setup_block): Likewise.
2975         * lower-subreg.c (resolve_shift_zext): Likewise.
2976         * optabs.c (widen_bswap, expand_abs_nojump,
2977         expand_one_cmpl_abs_nojump, expand_float): Likewise.
2978         * spu/spu.c (spu_expand_extv): Likewise.
2979         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2981 2011-04-29  Richard Guenther  <rguenther@suse.de>
2983         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2984         for the remapped region number.
2985         * predict.c (build_predict_expr): Use integer_type_node for the
2986         predict kind.
2987         * fold-const.c (fold_binary_loc): Use integer_type_node for
2988         the shift amount.  Use a proper type for the PLUS_EXPR operand.
2990 2011-04-29  Michael Matz  <matz@suse.de>
2992         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2993         other trees that just builtins.
2994         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2996 2011-04-29  Richard Guenther  <rguenther@suse.de>
2998         * tree-nested.c (get_trampoline_type): Use size_int.
2999         (get_nl_goto_field): Likewise.
3000         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3001         for all indexes.
3002         (lower_eh_constructs_2): Likewise.
3003         (lower_resx): Likewise.
3004         (lower_eh_dispatch): Likewise.
3005         * tree-mudflap.c (mf_build_string): Use size_int.
3006         (mudflap_register_call): Use integer_type_node for the flag.
3007         (mudflap_enqueue_constant): Use size_int.
3008         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3009         instead of rebuilding it.
3011 2011-04-29  Richard Guenther  <rguenther@suse.de>
3013         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3014         Handle OBJ_TYPE_REF.
3015         (find_func_aliases_for_call): Use it more consistently.
3017 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3019         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3020         (rank_for_schedule): Use it.
3021         (schedule_block): Set it.
3023 2011-04-28  David Li  <davidxl@google.com>
3025         * tree.c (crc32_string): Use crc32_byte.
3026         (crc32_byte): New function.
3027         * tree.h (crc32_byte): New function.
3028         * gcov.c (read_graph_file): Handle new cfg_cksum.
3029         (read_count_file): Ditto.
3030         * profile.c (instrument_values): Ditto.
3031         (get_exec_counts): Ditto.
3032         (read_profile_edge_counts): Ditto.
3033         (compute_branch_probabilities): Ditto.
3034         (compute_value_histograms): Ditto.
3035         (branch_prob): Ditto.
3036         (end_branch_prob): Ditto.
3037         * coverage.c (read_counts_file): Ditto.
3038         (get_coverage_counts): Ditto.
3039         (tree_coverage_counter_addr): Ditto.
3040         (coverage_checksum_string): Ditto.
3041         (coverage_begin_output): Ditto.
3042         (coverage_end_function): Ditto.
3043         (build_fn_info_type): Ditto.
3044         (build_fn_info_value): Ditto.
3045         * libgcov.c (gcov_exit): Ditto.
3046         * gcov-dump.c (tag_function): Ditto.
3047         (compute_checksum): Remove.
3049 2011-04-29  Alan Modra  <amodra@gmail.com>
3051         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3052         unspec plus offset.  Tidy macho code.
3054 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3056         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3057         node instead of a decl.  Update all callers.
3058         * cgraph.h: Update declaration.
3060 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3062         PR tree-optimization/48765
3063         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3064         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3065         to indicate if loop aware SLP is being used.  Scan the statements
3066         and update the vectorization factor according to the type of
3067         vectorization before statement analysis.
3068         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3069         pass it to vect_analyze_loop_operations.
3070         (vectorizable_reduction): Set number of copies to 1 in case of pure
3071         SLP statement.
3072         * tree-vect-stmts.c (vectorizable_conversion,
3073         vectorizable_assignment, vectorizable_shift,
3074         vectorizable_operation, vectorizable_type_demotion,
3075         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3076         Likewise.
3077         (vectorizable_condition): Move the check that it is not SLP
3078         vectorization before the number of copies check.
3079         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3080         to vectorize the loop using SLP.
3082 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3084         PR middle-end/48597
3085         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3086         inline asm.
3088 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3090         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3091         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3092         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3093         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3094         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3095         linux*.h headers.
3096         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3097         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3098         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3099         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3100         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3101         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3102         REG_NAME.
3103         * config/i386/linux.h (REG_NAME): Don't define.
3104         * config/i386/linux64.h (REG_NAME): Don't define.
3105         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3106         Undefine before defining.
3108 2011-04-28  Jan Hubicka  <jh@suse.cz>
3110         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3111         nonconstant_names array.
3112         (estimate_function_body_sizes): Build nonconstant_names array; handle
3113         BUILT_IN_CONSTANT_P.
3115 2011-04-28  Richard Guenther  <rguenther@suse.de>
3117         PR bootstrap/48804
3118         Revert
3119         2011-04-28  Richard Guenther  <rguenther@suse.de>
3121         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3122         as late as possible.
3124 2011-04-28  Richard Guenther  <rguenther@suse.de>
3126         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3127         (debug_constraint): Do it here.
3128         (dump_constraints): And here.
3129         (rewrite_constraints): And here.
3130         (dump_constraint_edge): Remove.
3131         (dump_constraint_graph): Rewrite to produce DOT output.
3132         (solve_constraints): Build succ graph as late as possible.
3133         Dump constraint graphs before and after solving.
3135 2011-04-28  Richard Guenther  <rguenther@suse.de>
3137         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3138         New function split out from ...
3139         (find_func_aliases): ... here.  Call it.
3140         (find_func_aliases_for_call): Likewise.
3142 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3144         * internal-fn.h (internal_fn_name_array): Declare.
3145         (internal_fn_flags_array): Likewise.
3147 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3149         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3150         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3151         Move from sse.md.
3152         (ssemodefsuffix): Remove.
3153         (ssevecmodesuffix): New mode attribute.
3154         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3155         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3156         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3157         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3158         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3159         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3160         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3161         ssemodesuffix mode attribute.
3162         (float splitters): Use ssevecmodesuffix mode attribute.
3163         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3164         (sseinsmode): Rename from avxvecmode.
3165         (avxsizesuffix): Rename from avxmodesuffix.
3166         (sseintvecmode): Rename from avxpermvecmode.
3167         (ssedoublevecmode): Rename from ssedoublesizemode.
3168         (ssehalfvecmode): Rename from avxhalfvecmode.
3169         (ssescalarmode): Rename from avxscalarmode.
3170         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3171         templates for ssemodesuffix mode attribute.
3172         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3173         mode attribute.
3175         Adjust RTX patterns globally for renamed mode attributes.
3177 2011-04-27  Jan Hubcika  <jh@suse.cz>
3179         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3180         * ipa-inline-analysis.c: Include alloc-pool.h.
3181         (edge_predicate_pool): New.
3182         (trye_predicate_p): New function
3183         (false_predicate_p): New function.
3184         (add_clause): Sanity check that false clauses are "optimized";
3185         never add clauses to predicate that is already known to be false.
3186         (and_predicate): Use flase_predicate_p.
3187         (evaulate_predicate): Rename to ...
3188         (evaluate_predicate): ... this one; update all callers; assert
3189         that false is not listed among possible truths.
3190         (dump_predicate): Use true_predicate_p.
3191         (account_size_time): Use false_predicate_p.
3192         (evaulate_conditions_for_edge): Rename to ...
3193         (evaluate_conditions_for_edge) ... this one.
3194         (edge_set_predicate): New function.
3195         (inline_edge_duplication_hook): Duplicate edge predicates.
3196         (inline_edge_removal_hook): Free edge predicates.
3197         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3198         (dump_inline_summary): Update.
3199         (estimate_function_body_sizes): Set edge predicates.
3200         (estimate_calls_size_and_time): Handle predicates.
3201         (estimate_callee_size_and_time): Update.
3202         (remap_predicate): Add toplev_predicate; update comment.
3203         (remap_edge_predicates): New function.
3204         (inline_merge_summary): Compute toplev predicate; update.
3205         (read_predicate): New function.
3206         (read_inline_edge_summary): Use it.
3207         (inline_read_section): Likewise.
3208         (write_predicate): New function.
3209         (write_inline_edge_summary): Use it.
3210         (inline_write_summary): Likewise.
3211         (inline_free_summary): Free alloc pool and edge summary vec.
3213 2011-04-27  Richard Guenther  <rguenther@suse.de>
3215         * tree-ssa-structalias.c (changed_count): Remove.
3216         (changed): Use a bitmap.
3217         (unify_nodes): Adjust.
3218         (do_sd_constraint): Likewise.
3219         (do_ds_constraint): Likewise.
3220         (do_complex_constraint): Likewise.
3221         (solve_graph): Likewise.
3223 2011-04-27  Jan Hubicka  <jh@suse.cz>
3225         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3227 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3229         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3230         (avx_vperm2f128_*_operand): Ditto.
3231         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3232         Use avx_vpermilp_parallel in insn condition.
3233         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3234         Use avx_vperm2f128_parallel in insn condition.
3236 2011-04-27  Richard Guenther  <rguenther@suse.de>
3238         * Makefile.in (tree-ssa-structalias.o): Remove
3239         gt-tree-ssa-structalias.h dependency.
3240         (GTFILES): Remove tree-ssa-structalias.c.
3241         * tree.c (allocate_decl_uid): New function.
3242         (make_node_stat): Use it.
3243         (copy_node_stat): Likewise.
3244         * tree.h (allocate_decl_uid): Declare.
3245         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3246         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3247         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3248         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3249         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3250         (struct heapvar_map): Likewise.
3251         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3252         heapvar_insert): Likewise.
3253         (make_heapvar_for): Rename to ...
3254         (make_heapvar): ... this.  Simplify.
3255         (fake_var_decl_obstack): New global var.
3256         (build_fake_var_decl): New function.
3257         (make_constraint_from_heapvar): Adjust.
3258         (handle_lhs_call): Likewise.
3259         (create_function_info_for): Likewise.
3260         (intra_create_variable_infos): Likewise.
3261         (init_alias_vars): Allocate fake_var_decl_obstack.
3262         (init_alias_heapvars, delete_alias_heapvars): Remove.
3263         (compute_points_to_sets): Do not call init_alias_heapvars.
3264         (ipa_pta_execute): Likewise.
3265         (delete_points_to_sets): Free fake_var_decl_obstack.
3267 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3269         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3270         (si_from_UTItype, si_to_UTItype): New functions.
3271         (__udivmodti4): Use them to implement type-punning.
3272         * config/spu/multi3.c (union qword_TItype): New data type.
3273         (si_from_TItype, si_to_TItype): New functions.
3274         (__multi3): Use them to implement type-punning.
3276 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3278         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3280 2011-04-27  Jan Hubicka  <jh@suse.cz>
3282         * ipa-prop.c (function_insertion_hook_holder): New holder.
3283         (ipa_add_new_function): New function.
3284         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3285         Register/deregister holder.
3287 2011-04-27  Richard Guenther  <rguenther@suse.de>
3289         PR tree-optimization/48772
3290         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3292 2011-04-27  Richard Guenther  <rguenther@suse.de>
3294         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3295         TARGET_MEM_REF handling.
3297 2011-04-27  Nick Clifton  <nickc@redhat.com>
3299         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3300         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3301         (REG_CLASS_NAMES): Likewise.
3302         (REG_CLASS_CONTENTS): Likewise.
3303         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3304         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3305         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3306         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3307         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3308         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3309         duplicate register classes.
3310         (frv_class_likely_spilled_p): Likewise.
3311         (frv_register_move_cost): Likewise.
3313         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3314         end of the regno_reg_class array.
3316 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3318         PR c/48742
3319         * c-typeck.c (build_binary_op): Don't wrap arguments if
3320         int_operands is true.
3322 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3324         PR target/48767
3325         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3326         targetm.calls.must_pass_in_stack for void type.
3328 2011-04-26  Jan Hubicka  <jh@suse.cz>
3330         * cgraphbuild.c (build_cgraph_edges): Update call
3331         of cgraph_create_edge and cgraph_create_indirect_edge.
3332         * cgraph.c (cgraph_create_edge_including_clones,
3333         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3334         cgraph_update_edges_for_call_stmt_node): Do not take nest
3335         argument; do not initialize call_stmt_size/time.
3336         (dump_cgraph_node): Do not dump nest.
3337         (cgraph_clone_edge): Do not take loop_nest argument;
3338         do not propagate it; do not clone call_stmt_size/time.
3339         (cgraph_clone_node): Likewise.
3340         (cgraph_create_virtual_clone): Update.
3341         * cgraph.h (struct cgraph_edge): Remove
3342         call_stmt_size/call_stmt_time/loop_nest.
3343         (cgraph_create_edge, cgraph_create_indirect_edge,
3344         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3345         prototype.
3346         * tree-emutls.c (gen_emutls_addr): Update.
3347         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3348         loop_nest; handle indirect calls, too.
3349         (clone_inlined_nodes): Do not care about updating inline summaries.
3350         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3351         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3352         stream call_stmt_size/call_stmt_time/loop_nest.
3353         * ipa-inline.c (edge_badness): Update.
3354         (ipa_inline): dump summaries after inlining.
3355         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3356         New.
3357         (inline_edge_summary): New function.
3358         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3359         (inline_edge_removal_hook): Handle edge summaries.
3360         (inline_edge_duplication_hook): New hook.
3361         (inline_summary_alloc): Alloc hooks.
3362         (initialize_growth_caches): Do not register removal hooks.
3363         (free_growth_caches); Do not free removal hook.
3364         (dump_inline_edge_summary): New function.
3365         (dump_inline_summary): Use it.
3366         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3367         (inline_update_callee_summaries): New function.
3368         (inline_merge_summary): Use it.
3369         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3370         (read_inline_edge_summary): New function.
3371         (inline_read_section): Use it.
3372         (write_inline_edge_summary): New function.
3373         (inline_write_summary): Use it.
3374         (inline_free_summary): Free edge new holders.
3375         * tree-inline.c (copy_bb): Update.
3377 2011-04-26  Jason Merrill  <jason@redhat.com>
3379         * tree-eh.c (lower_try_finally_switch): Create the label along with
3380         the CASE_LABEL_EXPR.
3382 2011-04-26  David S. Miller  <davem@davemloft.net>
3383             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3385         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3386         * configure: Regenerate.
3388 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3390         PR target/48258
3391         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3392         reduction.
3393         (VEC_reduc): New code iterator and splitters for vector reduction.
3394         (VEC_reduc_name): Ditto.
3395         (VEC_reduc_rtx): Ditto.
3396         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3397         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3399         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3400         support for extracting SF on VSX.
3402         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3403         generating xscvspdp.
3404         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3405         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3406         double add, minimum, maximum vector reduction.
3407         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3408         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3409         optimize double vector reduction.
3410         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3412 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3414         * config/fr30/fr30.h (inhibit_libc): Don't define.
3415         * config/m32r/m32r-protos.h: Correct comment.
3416         * config/v850/v850.h (GHS_default_section_names,
3417         GHS_current_section_names): Use tree, not union tree_node *.
3419 2011-04-26  Xinliang David Li  <davidxl@google.com>
3421         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3422         * c-family/c-opts.c (c_common_handle_option): Set
3423         warn_maybe_uninitialized.
3424         * opts.c (common_handle_option): Ditto.
3425         * common.opt:  New option.
3426         * tree-ssa.c (warn_uninit): Add one more parameter.
3427         (warn_uninitialized_var): Pass warning code.
3428         * tree-flow.h: Interface change.
3431 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3433         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3434         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3435         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3437 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3439         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3440         * config/mips/mips.opt (mmips-tfile): Remove.
3442         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3443         mips-tdump reference to ...
3444         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3445         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3446         reference by Tru64 UNIX.
3448 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3450         PR debug/48768
3451         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3452         is error_mark_node, set value to NULL.
3454         PR tree-optimization/48734
3455         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3456         if return value from maybe_fold_*_comparsions isn't something
3457         the code is prepared to handle.
3459 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3461         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3462         mode check.
3463         (ext_QIreg_nomode_operands): Remove.
3464         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3465         (*andsi_1): Ditto.
3466         (*andhi_1): Ditto.
3468 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3470         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3472 2011-04-26  Richard Guenther  <rguenther@suse.de>
3474         * c-typeck.c (build_unary_op): Do not expand array-refs via
3475         pointer arithmetic.  Only adjust qualifiers for function types.
3477 2011-04-26  Richard Guenther  <rguenther@suse.de>
3479         PR middle-end/48694
3480         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3481         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3482         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3483         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3485 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3487         * doc/extend.texi: Document __underlying_type.
3489 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3491         * config/rs6000/titan.md (automata_option "progress"): Remove.
3493 2011-04-25  Jeff Law  <law@redhat.com>
3495         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3497 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3499         * system.h (ENUM_BITFIELD): Remove.
3501 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3502             Eric Botcazou  <ebotcazou@adacore.com>
3504         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3505         for STORE_FLAG_VALUE==-1 case.
3507 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3509         PR target/43804
3510         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3511         LEGITIMATE_PIC_OPERAND_P.
3513 2011-04-24  Jan Hubicka  <jh@suse.cz>
3515         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3516         WPA hack.
3517         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3518         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3519         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3520         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3521         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3522         Sanity check predicate length.
3523         (remap_predicate): Likewise; sanity check jump functions.
3524         (inline_read_section, inline_write_summary): Sanity check
3525         predicate length.
3527 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3529         PR other/48748
3530         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3531         __is_literal_type, and __is_trivial; update throughout about
3532         possibly cv-qualified void types.
3534 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3536         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3537         testsuite and make it version agnostic.
3539 2011-04-22  Jan Hubicka  <jh@suse.cz>
3541         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3543 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3545         PR c/48685
3546         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3547         to VOID_TYPE even around MODIFY_EXPR.
3549 2011-04-22  Mike Stump  <mikestump@comcast.net>
3551         * gensupport.c (read_md_rtx): Fix typo in comment.
3552         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3553         comment.
3555 2011-04-22  Jan Hubicka  <jh@suse.cz>
3557         * gengtype.c (open_base_files): Add ipa-inline.h include.
3558         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3559         ipa-prop.c; update all uses.
3560         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3561         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3562         merge summary of inlined function into former caller.
3563         * ipa-inline.c (max_benefit): Remove.
3564         (edge_badness): Compensate for removal of benefits.
3565         (update_caller_keys): Use
3566         reset_node_growth_cache/reset_edge_growth_cache.
3567         (update_callee_keys): Likewise.
3568         (update_all_callee_keys): Likewise.
3569         (inline_small_functions): Do not collect max_benefit; do not reset
3570         estimated_growth; call free_growth_caches and initialize_growth_caches.
3571         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3572         struct size_time_entry): New structures.
3573         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3574         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3575         and estimated_growth.
3576         (edge_growth_cache_entry): New structure.
3577         (node_growth_cache, edge_growth_cache): New global vars.
3578         (estimate_growth): Turn into inline.
3579         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3580         initialize_growth_caches, free_growth_caches): Declare.
3581         (estimate_edge_growth): Rewrite.
3582         (estimate_edge_time): Implement as inline cache lookup.
3583         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3584         functions.
3585         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3586         (NUM_CONDITIONS): New constant.
3587         (predicate_conditions): New enum.
3588         (IS_NOT_CONSTANT): New constant.
3589         (edge_removal_hook_holder): New var.
3590         (node_growth_cache, edge_growth_cache): New global vars.
3591         (true_predicate, single_cond_predicate, false_predicate,
3592         not_inlined_predicate, add_condition, add_clause, and_predicates,
3593         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3594         dump_clause, dump_predicate, account_size_time,
3595         evaulate_conditions_for_edge): New functions.
3596         (inline_summary_alloc): Move to heap.
3597         (inline_node_removal_hook): Clear condition and entry vectors.
3598         (inline_edge_removal_hook): New function.
3599         (initialize_growth_caches, free_growth_caches): New function.
3600         (dump_inline_summary): Update.
3601         (edge_execution_predicate): New function.
3602         (will_be_nonconstant_predicate): New function.
3603         (estimate_function_body_sizes): Compute BB and constantness predicates.
3604         (compute_inline_parameters): Do not clear estimated_growth.
3605         (estimate_edge_size_and_time): New function.
3606         (estimate_calls_size_and_time): New function.
3607         (estimate_callee_size_and_time): New function.
3608         (remap_predicate): New function.
3609         (inline_merge_summary): New function.
3610         (do_estimate_edge_time): New function based on...
3611         (estimate_edge_time): ... this one.
3612         (do_estimate_edge_growth): New function.
3613         (do_estimate_growth): New function based on....
3614         (estimate_growth): ... this one.
3615         (inline_analyze_function): Analyze after deciding on jump functions.
3616         (inline_read_section): New function.
3617         (inline_read_summary): Use it.
3618         (inline_write_summary): Write all the new data.
3619         * ipa-prop.c (ipa_get_param_decl_index): Export.
3620         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3621         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3622         Declare.
3623         (ipa_get_lattice): Move here from ipa-cp.c
3624         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3625         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3626         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3627         cgraph_edge_inlinable_p): Remove.
3628         * cgraphunit.c: Include ipainline.h
3629         (cgraph_process_new_functions): Update call of
3630         compute_inline_parameters.
3632 2011-04-22  Richard Guenther  <rguenther@suse.de>
3634         * tree.c (build_int_cst): Properly create canonicalized integer
3635         constants.
3636         (build_int_cst_type): Remove scary comments.
3638 2011-04-22  Xinliang David Li  <davidxl@google.com>
3640         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3641         by default when -Wno-error is not specified.
3642         * opts-global.c (decode_options): Remove call to
3643         control_warning_options.
3645 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3647         PR tree-optimization/48717
3648         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3649         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3651 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3653         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3654         definition where used.
3656 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3658         PR c/48716
3659         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3660         TREE_STATIC variables declared inside of some OpenMP construct.
3662 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3664         PR middle-end/48585
3665         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3667 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3669         PR c/36750
3670         * c-typeck.c (pop_init_level): Do not warn about initializing
3671         with ` = {0}'.
3673 2011-04-22  Alan Modra  <amodra@gmail.com>
3675         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3676         when returning call_cookie.
3677         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3678         pointers, to functions with no more vector args than the current
3679         function, and some non-local calls for ABI_V4.
3680         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3681         sibcall_nonlocal_aix64): Combine to ..
3682         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3683         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3684         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3685         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3686         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3687         operand.
3688         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3689         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3690         sibcall_value_symbolic_64): Delete.
3692 2011-04-21  Xinliang David Li  <davidxl@google.com>
3694         * cgraph.h: Remove pid.
3695         * cgraph.c: Remove pid.
3696         * value-prof.c (init_node_map): New function.
3697         (del_node_map): New function.
3698         (find_func_by_funcdef_no): New function.
3699         (gimple_ic_transform): Call new function.
3700         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3701         * function.c (get_last_funcdef_no): New function.
3702         * function.h (get_last_funcdef_no): New function.
3703         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3704         to libgcov function.
3705         (tree-profiling): Call node map init and delete function.
3707 2011-04-21  Ian Lance Taylor  <iant@google.com>
3709         * godump.c (go_format_type): Use exported Go name for anonymous
3710         field name.
3712 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3714         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3715         Call builtin_function_type_list instead of builtin_function_type.
3716         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3718 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3720         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3721         build_function_type_list instead of build_function_type.
3722         Delete variable `endlink'.
3724 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3726         * config/s390/s390.c (s390_init_builtins): Call
3727         build_function_type_list instead of build_function_type.
3729 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3731         * config/ia64/ia64.c (ia64_init_builtins): Call
3732         build_function_type_list instead of builtin_function_type.
3734 2011-04-21  Easwaran Raman  <eraman@google.com>
3736         * cfgexpand.c (stack_var): Remove OFFSET...
3737         (add_stack_var): ...and its reference here...
3738         (expand_stack_vars): ...and here.
3739         (stack_var_cmp): Sort by descending order of size.
3740         (partition_stack_vars): Change heuristic.
3741         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3742         (dump_stack_var_partition): Add newline after each partition.
3744 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3745             Jeff Law  <law@redhat.com>
3747         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3748         * gengtype.c (matching_file_name_substitute): Likewise.
3750 2011-04-21  Richard Guenther  <rguenther@suse.de>
3752         PR lto/48703
3753         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3755 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3757         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3759 2011-04-21  Richard Guenther  <rguenther@suse.de>
3761         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3762         file name.
3764 2011-04-21  Richard Guenther  <rguenther@suse.de>
3766         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3767         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3768         Use DECL_P, not SSA_VAR_P.
3769         (ptr_derefs_may_alias_p): Likewise.
3770         (ptr_deref_may_alias_ref_p_1): Likewise.
3771         (decl_refs_may_alias_p): Likewise.
3772         (refs_may_alias_p_1): Likewise.
3773         (ref_maybe_used_by_call_p_1): Likewise.
3774         (call_may_clobber_ref_p_1): Likewise.
3775         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3776         are either MEM_REF or TARGET_MEM_REF.
3777         (indirect_refs_may_alias_p): Likewise.
3778         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3779         for MEM_EXPR of indirect calls.
3781 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3783         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3784         (dst_file_info_struct): Remove flen field.
3785         (lookup_filename): Remove code that set flen field.
3787 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3789         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3791 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3793         PR target/48708
3794         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3795         vec_extract and vec_concat for non-SSE4_1 targets.
3797 2011-04-21  Richard Guenther  <rguenther@suse.de>
3799         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3800         return statements.
3802 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3804         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3805         undefine.
3806         (FILE): Don't undefine.
3808 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3810         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3811         struct rtx_def *.
3812         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3813         struct rtx_def *.
3814         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3815         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3816         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3817         rtx_def *.
3818         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3819         definitions where used.
3820         * config/microblaze/microblaze.h (struct microblaze_args): Use
3821         rtx, not struct rtx_def *.
3822         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3823         rtx_def *.
3824         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3825         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3826         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3827         not struct rtx_def *.
3828         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3829         struct rtx_def *.
3830         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3831         rtx_def *.
3832         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3834 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3836         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3837         operand_equal_p to compare DR_BASE_ADDRESSes.
3838         (vect_check_interleaving): Likewise.
3840 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3842         PR target/46329
3843         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3844         for all Neon struct constants.
3846 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3848         * target.def (legitimate_constant_p): New hook.
3849         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3850         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3851         * doc/tm.texi: Regenerate.
3852         * hooks.h (hook_bool_mode_rtx_true): Declare.
3853         * hooks.c (hook_bool_mode_rtx_true): Define.
3854         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3855         * calls.c (precompute_register_parameters): Replace uses of
3856         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3857         (emit_library_call_value_1): Likewise.
3858         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3859         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3860         * ira-costs.c (scan_one_insn): Likewise.
3861         * recog.c (general_operand, immediate_operand): Likewise.
3862         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3863         * reload1.c (init_eliminable_invariants): Likewise.
3865         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3866         mode argument.
3867         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3868         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3869         argument.
3870         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3871         * config/alpha/predicates.md (input_operand): Update call to
3872         alpha_legitimate_constant_p.
3874         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3875         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3876         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3877         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3878         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3879         (arm_legitimate_constant_p): New functions.
3880         (arm_cannot_force_const_mem): Make static.
3882         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3884         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3885         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3886         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3887         instead of bfin_legitimate_constant_p.
3888         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3889         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3891         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3893         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3895         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3896         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3897         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3898         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3900         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3901         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3902         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3904         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3905         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3906         * config/i386/i386.c (legitimate_constant_p): Rename to...
3907         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3908         argument.
3909         (ix86_cannot_force_const_mem): Update accordingly.
3910         (ix86_legitimate_address_p): Likewise.
3911         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3912         * config/i386/i386.md: Update commentary.
3914         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3915         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3916         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3917         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3919         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3921         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3922         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3923         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3924         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3926         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3927         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3928         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3930         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3931         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3932         (m32r_legitimate_constant_p): New function.
3934         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3935         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3936         LEGITIMATE_CONSTANT_P.
3937         (LEGITIMATE_CONSTANT_P): Delete.
3938         * config/m68k/m68k.c (m68k_expand_prologue): Call
3939         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3940         (m68k_legitimate_constant_p): New function.
3941         * config/m68k/m68k.md: Update comments.
3943         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3944         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3945         (mcore_legitimate_constant_p): New function.
3947         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3948         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3949         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3950         Add a mode argument.
3951         (mep_legitimate_address): Update accordingly.
3952         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3954         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3955         Delete.
3956         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3957         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3958         static.  Check OP's mode for VOIDmode.
3959         (microblaze_legitimate_constant_p): New function.
3960         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3962         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3963         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3964         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3965         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3966         * config/mips/predicates.md: Update comments.
3968         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3969         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3970         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3971         (mmix_legitimate_constant_p): Make static, return a bool, and take
3972         a mode argument.
3973         (mmix_print_operand_address): Update accordingly.
3975         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3976         Delete.
3977         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
3978         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3979         static.  Add a mode argument.
3980         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3982         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3984         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3985         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3986         (pa_legitimate_constant_p): New function.
3988         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3990         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3991         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3992         (pdp11_legitimate_constant_p): New function.
3994         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3995         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3996         (rs6000_legitimate_constant_p): New function.
3998         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3999         (rx_legitimate_constant_p): ...this.
4000         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4001         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4002         (rx_legitimate_constant_p): ...this.
4003         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4004         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4006         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4007         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4008         * config/s390/s390.c (legitimate_constant_p): Rename to...
4009         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4010         and add a mode argument.
4011         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4013         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4015         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4016         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4017         (sh_legitimate_constant_p): New function.
4019         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4020         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4021         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4022         (legitimate_constant_p): Rename to...
4023         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4024         argument.
4025         (constant_address_p): Update accordingly.
4027         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4028         argument and return a bool.
4029         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4030         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4031         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4032         (spu_rtx_costs): Update accordingly.
4033         * config/spu/predicates.md (vec_imm_operand): Likewise.
4035         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4037         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4038         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4039         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4041         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4042         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4043         * config/vax/vax.c (legitimate_constant_p): Likewise.
4045         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4046         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4047         (xtensa_legitimate_constant_p): New function.
4049 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4051         * target.def (cannot_force_const_mem): Add a mode argument.
4052         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4053         * doc/tm.texi: Regenerate.
4054         * hooks.h (hook_bool_mode_rtx_false): Declare.
4055         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4056         (hook_bool_mode_const_rtx_true): Likewise.
4057         (hook_bool_mode_rtx_false): New function.
4058         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4059         to be non-VOID.  Update call to cannot_force_const_mem.
4060         (find_reloads): Update accordingly.
4061         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4062         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4063         argument.
4064         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4065         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4066         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4067         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4068         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4069         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4070         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4071         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4072         (m68k_cannot_force_const_mem): ...this new function.
4073         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4074         argument.
4075         (mips_const_insns, mips_legitimize_const_move): Update calls.
4076         (mips_secondary_reload_class): Likewise.
4077         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4078         (pa_cannot_force_const_mem): ...this new function.
4079         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4080         (rs6000_cannot_force_const_mem): ...this new function.
4081         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4082         argument.
4083         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4084         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4085         to...
4086         (xtensa_cannot_force_const_mem): ...this new function.
4088 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4090         * config/mips/mips.c (mips16_build_function_stub): Call
4091         build_function_type_list instead of build_function_type.
4092         (mips16_build_call_stub): Likewise.
4094 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4096         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4097         instead of build_function_type.
4099 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4101         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4102         instead of build_function_type.
4104 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4106         PR target/48678
4107         * config/i386/i386.md (insv): Change operand 0 constraint to
4108         "register_operand".  Change operand 1 and 2 constraint to
4109         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4110         * config/i386/sse.md (sse4_1_pinsrb): Export.
4111         (sse2_pinsrw): Ditto.
4112         (sse4_1_pinsrd): Ditto.
4113         (sse4_1_pinsrq): Ditto.
4114         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4115         * config/i386/i386.c (ix86_expand_pinsr): New.
4117 2011-04-20  Easwaran Raman  <eraman@google.com>
4119         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4120         containing union type only with -fstrict-aliasing.
4122 2011-04-20  Jim Meyering  <meyering@redhat.com>
4124         Remove useless if-before-free tests.
4125         * calls.c (expand_call, save_area): Likewise.
4126         * cfgcleanup.c (try_forward_edges): Likewise.
4127         * collect2.c (collect_execute): Likewise.
4128         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4129         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4130         * coverage.c (coverage_checksum_string): Likewise.
4131         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4132         * cselib.c (cselib_init): Likewise.
4133         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4134         (df_set_clean_cfg): Likewise.
4135         * function.c (free_after_compilation): Likewise.
4136         * gcc.c (do_spec_1, main): Likewise.
4137         * gcov.c (create_file_names): Likewise.
4138         * gensupport.c (identify_predicable_attribute): Likewise.
4139         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4140         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4141         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4142         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4143         * ipa-pure-const.c (local_pure_const): Likewise.
4144         * ipa-reference.c (propagate): Likewise.
4145         * ira-costs.c (free_ira_costs): Likewise.
4146         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4147         * matrix-reorg.c (mat_free): Likewise.
4148         * prefix.c (get_key_value): Likewise.
4149         * profile.c (compute_value_histograms): Likewise.
4150         * reload1.c (free_reg_equiv): Likewise.
4151         * sched-deps.c (free_deps): Likewise.
4152         * sel-sched-ir.c (fence_clear): Likewise.
4153         * sese.c (set_rename, if_region_set_false_region): Likewise.
4154         * tree-data-ref.c (free_rdg): Likewise.
4155         * tree-eh.c (lower_try_finally): Likewise.
4156         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4157         * tree-ssa-live.c (delete_var_map): Likewise.
4158         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4159         * tree-ssa-pre.c (phi_trans_add): Likewise.
4161 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4163         PR tree-optimization/48611
4164         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4165         beyond ERT_MUST_NOT_THROW region.
4167 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4169         * config/mips/mips.opt (mfix-24k): New.
4170         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4171         * config/mips/mips.md (length): Increase by 4 for stores if
4172         fixing 24K errata.
4173         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4174         all noreorder if fixing 24K errata.
4175         * doc/invoke.texi: Document mfix-24k.
4177 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4179         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4180         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4182 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4184         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4185         (const_ok_for_op): ... to here.
4187 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4189         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4190         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4192 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4194         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4196 2011-04-20  Richard Guenther  <rguenther@suse.de>
4198         PR tree-optimization/47892
4199         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4200         are if-convertible.
4202 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4204         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4206 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4208         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4210 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4212         PR target/18145
4214         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4215         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4216         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4217         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4218         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4220         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4221         New prototype.
4223         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4224         (avr_asm_named_section, avr_asm_output_aligned_common,
4225         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4226         New functions to update...
4227         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4228         (avr_asm_init_sections): Overwrite section callbacks for
4229         data_section, bss_section.
4230         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4231         from here to...
4232         (avr_file_end): ...here.
4234 2011-04-20  Richard Guenther  <rguenther@suse.de>
4236         PR middle-end/48695
4237         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4238         objects and types here.  Adjust for their offset before comparing.
4240 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4242         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4243         statement per copy.
4245 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4247         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4248         (GIMPLE_H): Include $(INTERNAL_FN_H).
4249         (OBJS-common): Add internal-fn.o.
4250         (internal-fn.o): New rule.
4251         * internal-fn.def: New file.
4252         * internal-fn.h: Likewise.
4253         * internal-fn.c: Likewise.
4254         * gimple.h: Include internal-fn.h.
4255         (GF_CALL_INTERNAL): New gf_mask.
4256         (gimple_statement_call): Put fntype into a union with a new
4257         internal_fn field.
4258         (gimple_build_call_internal): Declare.
4259         (gimple_build_call_internal_vec): Likewise.
4260         (gimple_call_same_target_p): Likewise.
4261         (gimple_call_internal_p): New function.
4262         (gimple_call_internal_fn): Likewise.
4263         (gimple_call_fntype): Return null for internal calls.
4264         (gimple_call_set_fntype): Assert that the function is not internal.
4265         (gimple_call_set_fn): Likewise.
4266         (gimple_call_set_fndecl): Likewise.
4267         (gimple_call_set_internal_fn): New function.
4268         (gimple_call_addr_fndecl): Handle null functions.
4269         (gimple_call_return_type): Likewise null types.
4270         * gimple.c (gimple_build_call_internal_1): New function.
4271         (gimple_build_call_internal): Likewise.
4272         (gimple_build_call_internal_vec): Likewise.
4273         (gimple_call_same_target_p): Likewise.
4274         (gimple_call_flags): Handle calls to internal functions.
4275         (gimple_call_fnspec): New function.
4276         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4277         (gimple_has_side_effects): Handle null functions.
4278         (gimple_rhs_has_side_effects): Likewise.
4279         (gimple_call_copy_skip_args): Handle calls to internal functions.
4280         * cfgexpand.c (expand_call_stmt): Likewise.
4281         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4282         * gimple-fold.c (gimple_fold_call): Handle null functions.
4283         (gimple_fold_stmt_to_constant_1): Don't fold
4284         calls to internal functions.
4285         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4286         functions.
4287         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4288         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4289         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4290         (do_warn_unused_result): Likewise.
4291         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4292         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4293         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4294         the target of a call.
4295         (initialize_hash_element): Update accordingly.
4296         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4297         (iterative_hash_hashable_expr): Handle calls to internal functions.
4298         (print_expr_hash_elt): Likewise.
4299         * tree-ssa-pre.c (can_value_number_call): Likewise.
4300         (eliminate): Handle null functions.
4301         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4302         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4303         (find_func_aliases): Likewise.
4304         * value-prof.c (gimple_ic_transform): Likewise.
4305         (gimple_indirect_call_to_profile): Likewise.
4306         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4307         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4309 2011-04-19  Jan Hubicka  <jh@suse.cz>
4311         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4312         * ipa-inline.c (inline_small_functions): Compute summaries first,
4313         populate heap later.
4315 2011-04-19  Jan Hubicka  <jh@suse.cz>
4317         * cgraph.h (save_inline_function_body): Remove.
4318         * ipa-inline-transform.c: New file, broke out of...
4319         * ipa-inline.c: ... this one; Update toplevel comment.
4320         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4321         make global.
4322         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4323         (cgraph_mark_inline_edge): Rename to inline_call; move to
4324         ipa-inline-transform.c.
4325         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4326         move to ipa-inline-transform.c
4327         (recursive_inlining, inline_small_functions, flatten_function,
4328         ipa_inline, inline_always_inline_functions,
4329         early_inline_small_functions): Update.
4330         (inline_transform): Move to ipa-inline-transform.c.
4331         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4332         Declare.
4333         * Makefile.in (ipa-inline-transform.o): New file.
4334         * cgraphunit.c (save_inline_function_body): Move to
4335         ipa-inline-transform.c
4337 2011-04-19  DJ Delorie  <dj@redhat.com>
4339         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4340         registers if we already know there aren't any.
4341         (m32c_emit_epilogue): Don't emit a barrier here.
4342         (m32c_emit_eh_epilogue): Likewise.
4343         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4344         operands at expand time.
4345         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4346         int" wchar type.
4347         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4348         duplicates.  Provide aliases instead.
4349         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4350         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4351         the compiler.
4353 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4355         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4356         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4357         (general_or_i64_p, sparc_register_move_cost): New function.
4359 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4361         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4362         Add lynx, mipssde.  Sort table.
4364 2011-04-19  Xinliang David Li  <davidxl@google.com>
4366         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4367         not negative.
4369 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4371         PR target/48678
4372         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4373         is a SUBREG with non-MODE_INT mode inside of it.
4375 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4377         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4378         also according to actual contants.
4379         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4380         (gimple_fold_call): Use it.
4381         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4383 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4385         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4386         non-pointer assignments.
4388 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4390         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4391         account anc_offset and otr_type from the indirect edge info.
4392         * ipa-prop.c (get_ancestor_addr_info): New function.
4393         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4394         get_ancestor_addr_info, call it.
4395         (ipa_note_param_call): Do not initialize information about polymorphic
4396         calls, return the indirect call graph edge.  Remove the last
4397         parameter, adjust all callers.
4398         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4399         parameters.  Initialize polymorphic information in the indirect edge.
4401 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4403         PR lto/48148
4404         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4405         the types if they have different enumeration identifiers.
4407 2011-04-19  Jan Hubicka  <jh@suse.cz>
4409         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4410         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4411         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4412         (optimize_function_for_size_p) ... here.
4414 2011-04-19  Richard Guenther  <rguenther@suse.de>
4416         PR lto/48207
4417         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4418         langhook.
4420 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4422         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4423         if DECL_NO_INLINE_WARNING_P is set on the function.
4425 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4427         PR fortran/47976
4428         * reload1.c (inc_for_reload): Return void. All callers changed.
4429         (emit_input_reload_insns): Don't try to delete previous output
4430         reloads to a register, or record spill_reg_store for autoincs.
4432 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4434         * gengtype.h: Updated copyright year.
4435         (struct input_file_st): Add inpisplugin field.
4436         (type_fileloc): New function.
4437         * gengtype.c
4438         (write_typed_struct_alloc_def): Add gcc_assert.
4439         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4440         (write_typed_alloc_defns): Don't output for plugin files.
4441         (input_file_by_name): Clear inpisplugin field.
4442         (main): Set inpisplugin field for plugin files.
4444 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4446         * gengtype-state.c (string_eq): New.
4447         (read_state): Use string_eq instead of strcmp when creating the
4448         state_ident_tab.
4450 2011-04-19  Wei Guozhi  <carrot@google.com>
4452         PR target/47855
4453         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4454         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4455         linkage.
4456         * config/arm/constraints.md (Uu): New constraint.
4457         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4459 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4461         * config.gcc (-*-*-*vms): Added.
4462         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4463         definitions moved.
4464         * config/vms/vms-ld.c: New file.
4465         * config/vms/vms-ar.c: New file.
4466         * config/vms/t-vmsnative: New file.
4468 2011-04-18  Xinliang David Li  <davidxl@google.com>
4470         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4472 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4474         PR middle-end/48661
4475         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4476         if TREE_TYPE (v) is non-NULL.
4478         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4479         gimple_get_virt_mehtod_for_binfo.
4480         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4481         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4482         callers.
4483         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4485 2011-04-18  Michael Matz  <matz@suse.de>
4486             Steve Ellcey  <sje@cup.hp.com>
4488         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4489         use its mode as source mode if it isn't VOIDmode.
4491 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4493         * doc/passes.texi: Fill crossref nodes.
4495 2011-04-18  Jim Meyering  <meyering@redhat.com>
4497         Fix doubled-word typos in comments and strings
4498         * config/alpha/vms-unwind.h: s/for for/for/
4499         * config/arm/unwind-arm.h: Likewise.
4500         * config/microblaze/microblaze.c: Likewise.
4501         * config/sh/constraints.md: s/in in/in/
4502         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4504 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4506         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4507         (AVX_FLOAT_MODE_P): Ditto.
4508         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4509         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4510         (AVX_VEC_FLOAT_MODE_P): Ditto.
4511         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4512         (UNSPEC_MASKSTORE): Ditto.
4513         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4514         Merge from <sse>_movmsk<ssemodesuffix> and
4515         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4516         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4517         iterator.
4518         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4519         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4520         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4522 2011-04-18  Jan Hubicka  <jh@suse.cz>
4524         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4526         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4527         (want_inline_function_called_once_p): Break out the logic from
4528         ipa_inline.
4529         (edge_badness): Ensure that profile is not misupdated.
4530         (lookup_recursive_calls): Prioritize by call frequencies.
4531         (inline_small_functions): Move program size estimates here;
4532         actually process whole queue even when unit growth has been
4533         met. (to properly compute inline_failed reasons and for the
4534         case unit size decrease.) Revisit comments on recursive inlining.
4535         (ipa_inline): Remove unit summary code; first inline hot calls
4536         of functions called once, cold calls next.
4537         (order, nnodes): Remove unused variables.
4538         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4539         (GTFILES): Remove ipa-inline.c
4540         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4542 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4544         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4546 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4547             Richard Earnshaw  <rearnsha@arm.com>
4549         * arm.c (neon_builtin_type_bits): Remove.
4550         (typedef enum neon_builtin_mode): New.
4551         (T_MAX): Don't define.
4552         (typedef enum neon_builtin_datum): Remove bits, codes[],
4553         num_vars and base_fcode.  Add mode, code and fcode.
4554         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4555         VAR10): Change accordingly.
4556         (neon_builtin_data[]): Change accordingly
4557         (arm_init_neon_builtins): Change accordingly.
4558         (neon_builtin_compare): Remove.
4559         (locate_neon_builtin_icode): Remove.
4560         (arm_expand_neon_builtin): Change accordingly.
4562         * arm.h (enum arm_builtins): Move to ...
4563         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4565         * arm.c (arm_builtin_decl): Declare.
4566         (TARGET_BUILTIN_DECL): Define.
4567         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4568         (arm_builtin_decls[]): New.
4569         (arm_init_neon_builtins): Store builtin declarations in
4570         arm_builtin_decls[].
4571         (arm_init_tls_builtins): Likewise.
4572         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4573         (arm_builtin_decl): New.
4575 2011-04-18  Richard Guenther  <rguenther@suse.de>
4577         * tree.c (upper_bound_in_type): Build properly canonicalized
4578         INTEGER_CSTs.
4579         (lower_bound_in_type): Likewise.
4581 2011-04-18  Richard Guenther  <rguenther@suse.de>
4583         * gimple.h (gimple_call_addr_fndecl): New function.
4584         (gimple_call_fndecl): Use it.
4585         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4586         for direct calls.
4587         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4588         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4590 2011-04-18  Richard Guenther  <rguenther@suse.de>
4592         PR middle-end/48650
4593         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4595 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4597         PR lto/48492
4598         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4599         DECL_IN_CONSTANT_POOL without RTL.
4601 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4602             Ira Rosen  <ira.rosen@linaro.org>
4604         PR target/48252
4605         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4606         to match neon_vzip/vuzp/vtrn_internal.
4607         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4608         outputs explicitly dependent on both inputs.
4609         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4611 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4613         PR tree-optimization/48616
4614         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4615         whether the shift is by scalar or vector based on whether all SLP
4616         scalar stmts have the same rhs.
4618 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4620         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4621         memory operands.
4623 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4625         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4626         registers.
4628 2011-04-17  Jan Hubicka  <jh@suse.cz>
4630         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4631         * cgrpahunit.c (cgraph_finalize_function): Do not set
4632         finalized_by_frontend.
4633         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4634         finalized_by_frontend.
4636 2011-04-17  Jan Hubicka  <jh@suse.cz>
4638         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4639         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4640         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4641         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4642         method.
4643         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4644         gimple-fold.c
4645         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4647 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4649         PR lto/48538
4650         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4651         is non-null before accessing it.
4652         (input_cgraph): Remove trailing spaces.
4654 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4656         * params.def (sms-min-sc): New param flag.
4657         * modulo-sched.c (sms_schedule): Use it.
4658         * doc/invoke.texi (sms-min-sc): Document it.
4660 2011-04-17  Jan Hubicka  <jh@suse.cz>
4662         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4663         present, also set gimple_call_set_cannot_inline.
4664         * ipa-inline.c: Update toplevel comment.
4665         (MAX_TIME): Remove.
4666         (cgraph_clone_inlined_nodes): Fix linebreaks.
4667         (cgraph_check_inline_limits): Restructure to ...
4668         (caller_growth_limits): ... this one; be more tolerant
4669         on growth in nested inline chains; add explanatory comment;
4670         fix stack accounting thinko introduced by previous patch.
4671         (cgraph_default_inline_p): Remove.
4672         (report_inline_failed_reason): New function.
4673         (can_inline_edge_p): New function.
4674         (can_early_inline_edge_p): New function.
4675         (leaf_node_p): Move upwards in file.
4676         (want_early_inline_function_p): New function.
4677         (want_inline_small_function_p): New function.
4678         (want_inline_self_recursive_call_p): New function.
4679         (cgraph_edge_badness): Rename to ...
4680         (edge_badness) ... this one; fix linebreaks.
4681         (update_edge_key): Update call of edge_baddness; add
4682         detailed dump about queue updates.
4683         (update_caller_keys): Use can_inline_edge_p and
4684         want_inline_small_function_p.
4685         (cgraph_decide_recursive_inlining): Rename to...
4686         (recursive_inlining): Use can_inline_edge_p and
4687         want_inline_self_recursive_call_p; simplify and remove no longer
4688         valid FIXME.
4689         (cgraph_set_inline_failed): Remove.
4690         (add_new_edges_to_heap): Use can_inline_edge_p and
4691         want_inline_small_function_p.
4692         (cgraph_decide_inlining_of_small_functions): Rename to ...
4693         (inline_small_functions): ... this one; cleanup; use
4694         can/want predicates; cleanup debug ouput; work edges till fibheap
4695         is exhausted and do not stop once unit growth is reached; remove
4696         later loop processing remaining edges.
4697         (cgraph_flatten): Rename to ...
4698         (flatten_function): ... this one; use can_inline_edge_p
4699         and can_early_inline_edge_p predicates.
4700         (cgraph_decide_inlining): Rename to ...
4701         (ipa_inline): ... this one; remove unreachable nodes before
4702         inlining functions called once; simplify the pass.
4703         (cgraph_perform_always_inlining): Rename to ...
4704         (inline_always_inline_functions): ... this one; use
4705         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4706         (cgraph_decide_inlining_incrementally): Rename to ...
4707         (early_inline_small_functions): ... this one; simplify
4708         using new predicates; cleanup; make dumps prettier.
4709         (cgraph_early_inlining): Rename to ...
4710         (early_inliner): newer inline regular functions into always-inlines;
4711         fix updating of call stmt summaries.
4712         (pass_early_inline): Update for new names.
4713         (inline_transform): Fix formating.
4714         (gate_cgraph_decide_inlining): Rename to ...
4715         (pass_ipa_inline): ... this one.
4716         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4717         * ipa-inline-analysis.c (dump_inline_summary): Update.
4718         (compute_inline_parameters): Do not compute disregard_inline_limits;
4719         look for mismatching arguments.
4720         (estimate_growth): Fix handlig of non-trivial self recursion.
4721         (inline_read_summary): Do not read info->disregard_inline_limits.
4722         (inline_write_summary): Do not write info->disregard_inline_limits.
4723         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4724         and move all checks into can_inline_edge_p predicate; re-enable code
4725         comparing optimization levels.
4726         (expand_call_inline): Do not test inline_forbidden_into_p.
4727         * Makefile.in (ipa-inline.o): Update arguments.
4729 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4731         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4733 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4735         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4737 2011-04-17  Michael Matz  <matz@suse.de>
4739         PR tree-optimization/48622
4740         PR lto/48645
4741         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4742         in same order as they're written.
4744 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4746         * config/pa/predicates.md: Reorganize and simplify predicates.
4747         Eliminate duplicate code checks.
4748         (arith_operand): Rename to arith14_operand
4749         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4750         * config/pa/pa.md: Use renamed operands.
4751         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4752         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4753         arith11_operand, adddi3_operand, indexed_memory_operand,
4754         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4755         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4756         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4757         move_dest_operand, move_src_operand, prefetch_cc_operand,
4758         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4759         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4760         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4761         div_operand, int5_operand, movb_comparison_operator,
4762         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4763         arith_double_operand, ireg_operand, lhs_lshift_operand,
4764         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4765         integer_store_memory_operand): Likewise.
4766         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4767         (integer_store_memory_operand, read_only_operand,
4768         function_label_operand, borx_reg_operand,
4769         non_hard_reg_operand): Likewise.
4770         (eq_neq_comparison_operator): Delete unused operator.
4771         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4772         function_label_operand.
4773         (emit_move_sequence): Likewise.
4775 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4777         * config/i386/sse.md (sseunpackmode): New mode attribute.
4778         (ssepackmode): Ditto.
4779         (vec_pack_trunc_<mode>): Macroize expander from
4780         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4781         (vec_unpacks_lo_<mode>): Macroize expander from
4782         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4783         (vec_unpacks_hi_<mode>): Macroize expander from
4784         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4785         (vec_unpacku_lo_<mode>): Macroize expander from
4786         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4787         (vec_unpacku_hi_<mode>): Macroize expander from
4788         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4789         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4790         ix86_expand_sse4_unpack.
4791         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4793 2011-04-16  Jan Hubicka  <jh@suse.cz>
4795         * cgraphbuild.c: Include ipa-inline.h.
4796         (reset_inline_failed): Use initialize_inline_failed.
4797         * cgraph.c: Include ipa-inline.h.
4798         (cgraph_create_node_1): Do not initialize estimated_growth.
4799         (initialize_inline_failed): More to ipa-inline-analysis.c
4800         (dump_cgraph_node): Do not dump inline flags.
4801         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4802         and disregard_inline_limits flags.
4803         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4804         time, size, estimated_growth.
4805         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4806         Update.
4807         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4808         DECL_DISREGARD_INLINE_LIMITS.
4809         (cgraph_analyze_function): Do not initialize
4810         node->local.disregard_inline_limits.
4811         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4812         inlinable, versionable and disregard_inline_limits.
4813         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4814         cgraph_check_inline_limits, cgraph_default_inline_p,
4815         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4816         add_new_edges_to_heap): Update.
4817         (cgraph_decide_inlining_of_small_function): Update; set
4818         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4819         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4820         cgraph_decide_inlining_incrementally): Update.
4821         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4822         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4823         time, size and estimated_growth parameters.
4824         (estimate_edge_growth): Update.
4825         (initialize_inline_failed): Declare.
4826         * ipa-split.c: Include ipa-inline.h
4827         (execute_split_functions): Update.
4828         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4829         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4830         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4831         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4832         estimated_growth to INT_MIN.
4833         (inline_node_duplication_hook): Likewise.
4834         (dump_inline_summary): Dump new fields.
4835         (compute_inline_parameters): Update.
4836         (estimate_edge_time, estimate_time_after_inlining,
4837         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4838         inline_write_summary):
4839         (initialize_inline_failed): Move here from cgraph.c.
4840         * tree-sra.c: Include ipa-inline.h.
4841         (ipa_sra_preliminary_function_checks): Update.
4842         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4843         ipa-inline.h.
4845 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4847         * config/i386/sse.md (V16): New mode iterator.
4848         (VI1, VI8): Ditto.
4849         (AVXMODEQI, AVXMODEDI): Remove.
4850         (sse2, sse3): New mode attribute.
4851         (mov<mode>): Use V16 mode iterator.
4852         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4853         (push<mode>1): Use V16 mode iterator.
4854         (movmisalign<mode>): Ditto.
4855         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4856         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4857         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4858         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4859         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4860         avx_movdqu<avxmodesuffix>.
4861         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4862         *avx_movdqu<avxmodesuffix>.
4863         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4864         avx_lddqu<avxmodesuffix>.
4865         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4866         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4867         avx_movnt<AVXMODEDI:mode>.
4868         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4869         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4871 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4873         PR target/48629
4874         * haifa-sched.c (prune_ready_list, schedule_block): Use
4875         sched_pressure_p rather than flag_sched_pressure.
4877 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4879         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4880         cgraph_get_node instead of cgraph_get_create_node.
4882 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4884         * cfgexpand.c (expand_debug_expr): Use
4885         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4887 2011-04-15  Michael Matz  <matz@suse.de>
4889         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4890         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4891         * function.c (gimplify_parameters): Ditto.
4892         * gimplify.c (gimplify_vla_decl): Ditto.
4894         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4895         (gimple_call_set_alloca_for_var): New inline function.
4896         (gimple_call_alloca_for_var_p): Ditto.
4897         * gimple.c (gimple_build_call_from_tree): Remember
4898         CALL_ALLOCA_FOR_VAR_P state.
4899         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4901         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4902         calls if they were for VLA objects.
4904 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4906         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4907         of ADR_EXPRs.
4909 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4911         PR middle-end/48601
4912         * tree-emutls.c (lower_emutls_function_body): Call
4913         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4914         result is non-NULL.
4916 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4918         * c-decl.c (detect_field_duplicates): Call
4919         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4921 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4923         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4924         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4925         * ipa-pure-const.c (check_stmt): Call it.
4926         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4928 2011-04-15  Richard Guenther  <rguenther@suse.de>
4930         PR tree-optimization/48290
4931         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4932         Properly decide inhibiting propagation based on the valueized
4933         operand.  Do loop-closed SSA form preserving here ...
4934         (init_copy_prop): ... not here.
4936 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4938         PR target/48612
4939         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4940         (*ieee_smax<mode>3): Likewise.
4942 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4944         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4945         Replace match_operand with match_dup for the third operand in
4946         these expanders.
4948 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4950         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4951         to track processing of conditionals.  Update all callers.
4952         (try_combine, simplify_if_then_else): Update.
4954 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4956         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4957         -fsched-pressure.
4959 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4961         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4962         instead of match_operand for operand 3.
4964 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4966         * recog.h (insn_operand_data): Add an "allows_mem" field.
4967         * genoutput.c (output_operand_data): Initialize it.
4968         * optabs.c (maybe_legitimize_operand_same_code): New function.
4969         (maybe_legitimize_operand): Use it when matching the original
4970         op->value.
4972 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4974         * gimplify.c: Fix issues in comments throughout.
4975         (voidify_wrapper_expr): Fix long line.
4976         (build_stack_save_restore): Likewise.
4977         (gimplify_loop_expr): Likewise.
4978         (gimplify_compound_lval): Likewise.
4979         (gimplify_init_ctor_eval): Likewise.
4980         (gimplify_modify_expr_rhs): Likewise.
4981         (omp_notice_threadprivate_variable): Likewise.
4983 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4985         * cfgexpand.c (expand_call_stmt): Convert the function type to the
4986         original one if this is not a builtin function.
4988 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
4990         PR target/48605
4991         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4992         offset it as needed based on top 2 bits in operands[3], change
4993         MEM mode to SFmode and mask those 2 bits away from operands[3].
4995 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
4997         * c-parser.c (c_parser_objc_protocol_definition): Updated for
4998         change from objc_declare_protocols() to objc_declare_protocol().
5000 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5002         * config/i386/sse.md (sse4_1): New mode attribute.
5003         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5004         avx_blend<ssemodesuffix><avxmodesuffix> and
5005         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5006         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5007         avx_blendv<ssemodesuffix><avxmodesuffix> and
5008         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5009         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5010         avx_dp<ssemodesuffix><avxmodesuffix> and
5011         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5012         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5013         (sse4_1_packusdw): Merge with *avx_packusdw.
5014         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5015         (sse4_1_pblendw): Merge with *avx_pblendw.
5016         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5017         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5018         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5019         VF mode iterator.
5020         (sse4_1_round<ssescalarmodesuffix>): Merge with
5021         *avx_round<ssescalarmodesuffix>.
5022         (aesenc): Merge with *avx_aesenc.
5023         (aesenclast): Merge with *avx_aesenclast.
5024         (aesdec): Merge with *avx_aesdec.
5025         (aesdeclast): Merge with *avx_aesdeclast.
5026         (pclmulqdq): Merge with *pclmulqdq.
5027         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5028         New predicate.
5029         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5031 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5033         PR middle-end/48608
5034         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5035         (align_local_variable): This.  Update DECL_ALIGN.
5036         (add_stack_var): Updated.
5037         (expand_one_stack_var): Likewise.
5039 2011-04-14  Richard Guenther  <rguenther@suse.de>
5041         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5042         Remove.
5043         (dse_initialize_block_local_data, dse_leave_block,
5044         record_voperand_set, get_stmt_uid): Likewise.
5045         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5046         (dse_optimize_stmt): Remove voperand set handling code.
5047         Simplify and improve to handle any kind of killing stmt.
5048         (dse_record_phi): Remove.
5049         (dse_enter_block): Simplify.
5050         (tree_ssa_dse): Likewise.
5051         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5053 2011-04-14  Jan Hubicka  <jh@suse.cz>
5055         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5056         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5057         (cgraph_local_info): Remove inline_summary.
5058         * ipa-cp.c: Include ipa-inline.h.
5059         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5060         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5061         accesor.
5062         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5063         (input_overwrite_node): Do not set inline summary.
5064         (input_node): Do not stream inline summary.
5065         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5066         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5067         growth; we do not have inline parameters computed for that anyway.
5068         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5069         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5070         (inline_summary_t): New type and VECtor.
5071         (debug_inline_summary, dump_inline_summaries): Declare.
5072         (inline_summary): Use VOCtor.
5073         (estimate_edge_growth): Kill hack computing call stmt size directly.
5074         * lto-section-in.c (lto_section_name): Add inline section.
5075         * ipa-inline-analysis.c: Include lto-streamer.h
5076         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5077         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5078         (inline_summary_vec): Define.
5079         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5080         dump_inline_summaries): New functions.
5081         (estimate_function_body_sizes): Properly compute size/time of outgoing
5082         calls.
5083         (compute_inline_parameters): Alloc inline_summary; do not compute
5084         size/time of incomming calls.
5085         (estimate_edge_time): Avoid missing time summary hack.
5086         (inline_read_summary): Read inline summary info.
5087         (inline_write_summary): Write inline summary info.
5088         (inline_free_summary): Free all hooks and inline summary vector.
5089         * lto-streamer.h: Add LTO_section_inline_summary section.
5090         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5091         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5093 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5095         * tree-vectorizer.h (vect_strided_store_supported): Add a
5096         HOST_WIDE_INT argument.
5097         (vect_strided_load_supported): Likewise.
5098         (vect_permute_store_chain): Return void.
5099         (vect_transform_strided_load): Likewise.
5100         (vect_permute_load_chain): Delete.
5101         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5102         count argument.  Check that the count is a power of two.
5103         (vect_strided_load_supported): Likewise.
5104         (vect_permute_store_chain): Return void.  Update after above changes.
5105         Assert that the access is supported.
5106         (vect_permute_load_chain): Likewise.
5107         (vect_transform_strided_load): Return void.
5108         * tree-vect-stmts.c (vectorizable_store): Update calls after
5109         above interface changes.
5110         (vectorizable_load): Likewise.
5111         (vect_analyze_stmt): Don't check for strided powers of two here.
5113 2011-04-14  Richard Guenther  <rguenther@suse.de>
5115         PR tree-optimization/48590
5116         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5117         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5118         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5119         BUILT_IN_STACK_SAVE.
5120         * tree-ssa-dce.c (propagate_necessity): Handle
5121         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5123 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5125         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5126         objc_declare_class.
5128 2011-04-14  Richard Guenther  <rguenther@suse.de>
5130         * tree.h (get_object_alignment_1): Declare.
5131         * builtins.c (get_object_alignment_1): Split out worker from ...
5132         (get_object_alignment): ... here.
5133         * fold-const.c (get_pointer_modulus_and_residue): Use
5134         get_object_alignment_1.
5136 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5138         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5139         type parameter.
5140         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5141         parameter.  Generalise code to handle arrays as well as vectors.
5142         (vect_setup_realignment): Update accordingly.
5143         * tree-vect-stmts.c (vectorizable_store): Likewise.
5144         (vectorizable_load): Likewise.
5146 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5148         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5149         within the per-copy loop.
5151 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5153         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5154         in the dump file.
5156 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5158         * doc/options.texi (Negative): Explicitly mention that the
5159         Negative chain must be circular.
5161 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5163         * function.h (block_chainon): Declare.
5164         * function.c (block_chainon): Define.
5166 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5167             Eric Weddington  <eric.weddington@atmel.com>
5168             Georg-Johann Lay  <avr@gjlay.de>
5170         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5171         New Includes
5172         (avr_init_builtins, avr_expand_builtin,
5173         avr_expand_delay_cycles, avr_expand_unop_builtin,
5174         avr_expand_binop_builtin ): New functions.
5175         (avr_builtin_id): New enum
5176         (struct avr_builtin_description): New struct
5177         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5178         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5180         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5181         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5182         UNSPECV_DELAY_CYCLES): new enumeration values
5183         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5184         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5185         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5186         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5187         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5188         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5189         "fmulsu"): New insns
5191         * config/avr/avr-c.c: fix line endings
5192         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5193         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5194         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5195         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5196         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5198         * doc/extend.texi (AVR Built-in Functions): New node
5199         (Target Builtins): Add documentation of AVR
5200         built-in functions.
5202 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5204         PR target/44643
5205         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5206         alone. Error if non-const data has attribute progmem.
5208 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5210         * tree.h (struct tree_constructor): Include tree_typed instead of
5211         tree_common.
5212         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5213         TS_TYPED instead of TS_COMMON.
5215 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5217         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5218         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5219         (sse2_psadbw): Merge with *avx_psadbw.
5220         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5221         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5222         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5223         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5224         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5225         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5226         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5227         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5228         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5229         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5230         (ssse3_palignrti): Merge with *avx_palignrti.
5232 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5234         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5235         * tree-ssanames.c (fini_ssanames): VEC_free it.
5236         (make_ssa_name_fn): Update for VECness of free_ssanames.
5237         (release_ssa_name, release_dead_ssa_names): Likewise.
5238         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5239         tree_common.
5240         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5241         TS_TYPED instead of TS_COMMON.
5243 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5245         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5246         statistics_counter_event.
5247         * tree-ssa-copyrename.c (stats): Define.
5248         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5249         statistics_counter_event.
5250         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5251         (bswap_stats, widen_mul_stats): Define.
5252         (insert_reciprocals): Increment rdivs_inserted.
5253         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5254         rfuncs_inserted.  Add calls to statistics_counter_event.
5255         (execute_cse_sincos_1): Increment inserted.
5256         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5257         statistics_counter_event.
5258         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5259         of bswap_stats.  Add calls to statistics_counter_event.
5260         (convert_mult_to_widen): Increment widen_mults_inserted.
5261         (convert_plusminus_to_widen): Increment maccs_inserted.
5262         (convert_mult_to_fma): Increment fmas_inserted.
5263         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5264         calls to statistics_counter_event.
5266 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5268         PR rtl-optimization/48455
5269         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5270         `temp_costs->mem_cost'.
5272 2011-04-13  Jan Hubicka  <jh@suse.cz>
5274         * ipa-inline.h: New file.
5275         * ipa-inline-analysis.c: New file. Broken out of ...
5276         * ipa-inline.c: ... this file; update toplevel comment;
5277         include ipa-inline.h
5278         (inline_summary): Move to ipa-inline.h
5279         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5280         ipa-inline-analysis.c.
5281         (cgraph_estimate_time_after_inlining): Rename to
5282         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5283         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5284         to estimate_edge_growth.
5285         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5286         rename to estimate_size_after_inlining.
5287         (cgraph_mark_inline_edge): Update for new naming convention.
5288         (cgraph_check_inline_limits): Likewise.
5289         (cgraph_edge_badness): Likewise.
5290         (cgraph_decide_recursive_inlining): Likewise.
5291         (cgraph_decide_inlining_of_small_functions): Likewise.
5292         (cgraph_decide_inlining_incrementally): Likewise.
5293         (cgraph_estimate_growth): Rename to estimate_growth; move to
5294         ipa-inline-analysis.c.
5295         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5296         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5297         (compute_inline_parameters): Likewise.
5298         (compute_inline_parameters_for_current): Likewise.
5299         (pass_inline_parameters): Likewise.
5300         (inline_indirect_intraprocedural_analysis): Likewise.
5301         (analyze_function): Rename to inline_analyze_function; likewise.
5302         (add_new_function): Move to ipa-inline-analysis.c.
5303         (inline_generate_summary): Likewise.
5304         (inline_read_summary): Likewise.
5305         (inline_write_summary): Likewise.
5306         * Makefile.in (ipa-inline-analysis.c): New file.
5308 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5310         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5311         * configure: Regenerate.
5313 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5315         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5316         instead of tree_common.
5317         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5318         Likewise.
5319         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5320         TS_TYPED rather than TS_COMMON.
5321         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5323 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5325         PR target/45263
5326         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5327         r20 around calls of __tablejump_elpm__
5329 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5331         PR middle-end/48591
5332         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5333         NULL.
5334         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5336 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5338         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5339         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5340         (cfi_vec): New typedef.
5341         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5342         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5343         (cie_cfi_vec): New static variable.
5344         (cie_cfi_head): Delete.
5345         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5346         declaration changed. Use vector rather than list operations.
5347         (new_cfi): Don't initialize the dw_cfi_next field.
5348         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5349         rather than list operations.
5350         (lookup_cfa): Use vector rather than list operations.
5351         (output_cfis): New argument upto. Accept a cfi_vec rather than
5352         a dw_cfi_ref list head as argument. All callers changed.
5353         Iterate over the vector using upto as a maximum index.
5354         (output_all_cfis): New static function.
5355         (output_fde): Use vector rather than list operations. Use the
5356         new upto argument for output_cfis rather than manipulating a
5357         list.
5358         (dwarf2out_begin_prologue): Change initializations to match
5359         new struct members.
5360         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5361         from the vector length rather than searching for the end of a list.
5362         Use output_all_cfis.
5363         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5365 2011-04-13  Nick Clifton  <nickc@redhat.com>
5367         * config/rx/rx.md (movmemsi): Do not use this pattern when
5368         volatile pointers are involved.
5370 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5372         * config/i386/sse.md (pinsrbits): Remove.
5373         (sse2_packsswb): Merge with *avx_packsswb.
5374         (sse2_packssdw): Merge with *avx_packssdw.
5375         (sse2_packuswb): Merge with *avx_packuswb.
5376         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5377         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5378         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5379         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5380         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5381         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5382         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5383         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5384         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5385         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5386         (sse2_loadld): Merge with *avx_loadld.
5387         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5388         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5389         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5390         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5391         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5393 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5395         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5396         calling TREE_CHAIN.
5397         * print-tree.c (print_node): Likewise.
5398         * tree-inline.c (copy_tree_r): Likewise.
5399         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5400         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5401         instead of TS_COMMON.
5402         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5403         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5404         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5405         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5406         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5407         ...and these...
5408         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5409         * tree.h: ...here.
5410         (TREE_CHAIN): Check for a TS_COMMON structure.
5411         (TREE_TYPE): Check for a TS_TYPED structure.
5413 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5415         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5416         cgraph_get_create_node instead of cgraph_node.
5418 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5420         * c-parser.c (c_parser_initelt): Updated call to
5421         objc_build_message_expr.
5422         (c_parser_postfix_expression): Likewise.
5424 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5426         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5427         MASK_MS_BITFIELD_LAYOUT bit.
5429 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5431         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5432         assert it is always true.
5433         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5434         moves.
5436 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5438         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5439         compiling Objective-C to be more efficient.
5441 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5443         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5444         argv_copied.
5446 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5448         * recog.h, genoutput.c, optabs.c: Revert last patch.
5450 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5452         PR target/48090
5453         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5455 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5457         * recog.h (insn_operand_data): Add an "allows_mem" field.
5458         * genoutput.c (output_operand_data): Initialize it.
5459         * optabs.c (maybe_legitimize_operand_same_code): New function.
5460         (maybe_legitimize_operand): Use it when matching the original
5461         op->value.
5463 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5465         * genpreds.c (process_define_predicate): Move most processing
5466         to gensupport.c.  Continue to validate the expression.
5467         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5468         (process_define_predicate): Move processing to gensupport.c.
5469         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5470         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5471         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5472         argument.
5473         (valid_predicate_name_p): New function, split out from old
5474         genpreds.c:process_define_predicate.
5475         (process_define_predicate): New function, combining code from
5476         old genpreds.c and genrecog.c functions.
5477         (process_rtx): Call it for DEFINE_PREDICATE and
5478         DEFINE_SPECIAL_PREDICATE.
5480 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5482         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5483         size of a '%A' memory reference.
5484         (T_DREG, T_QREG): New neon_builtin_type_bits.
5485         (arm_init_neon_builtins): Assert that the load and store operands
5486         are neon_struct_operands.
5487         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5488         (NEON_ARG_MEMORY): New builtin_arg.
5489         (neon_dereference_pointer): New function.
5490         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5491         Handle NEON_ARG_MEMORY.
5492         (arm_expand_neon_builtin): Update after above interface changes.
5493         Use NEON_ARG_MEMORY for loads and stores.
5494         * config/arm/predicates.md (neon_struct_operand): New predicate.
5495         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5496         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5497         (V_four_elem): Tweak formatting.
5498         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5499         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5500         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5501         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5502         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5503         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5504         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5505         Use %A in the output template.
5506         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5507         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5508         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5509         the width of the memory access.  Remove post-increment.
5510         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5512 2011-04-12  Nick Clifton  <nickc@redhat.com>
5514         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5515         instruction for interrupt handlers if the target is the basic V850
5516         architecture.
5517         (expand_epilogue): Likewise.
5519 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5521         PR rtl-optimization/48549
5522         * combine.c (propagate_for_debug): Also stop after BB_END of
5523         this_basic_block.  Process LAST and just stop processing after it.
5524         (combine_instructions): If last_combined_insn has been deleted,
5525         set last_combined_insn to its PREV_INSN.
5527 2011-04-12  Richard Guenther  <rguenther@suse.de>
5529         PR tree-optimization/46076
5530         * gimple.h (struct gimple_statement_call): Add fntype field.
5531         (gimple_call_fntype): Adjust.
5532         (gimple_call_set_fntype): New function.
5533         * gimple.c (gimple_build_call_1): Set the call function type.
5534         * gimplify.c (gimplify_call_expr): Preserve the function
5535         type the frontend used for the call.
5536         (gimplify_modify_expr): Likewise.
5537         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5538         function type.
5539         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5540         function type.
5541         * tree-ssa.c (useless_type_conversion_p): Function pointer
5542         conversions are useless.
5544 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5546         * cgraph.h (cgraph_node): Remove function declaration.
5547         (cgraph_create_node): Declare.
5548         (cgraph_get_create_node): Likewise.
5549         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5550         Updated all callers.
5551         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5552         the decl does not already exist.  Call cgraph_get_create_node instead
5553         of cgraph_node.
5554         (cgraph_get_create_node): New function.
5555         (cgraph_same_body_alias): Update comment.
5556         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5557         assert it does not return NULL.
5558         (cgraph_update_edges_for_call_stmt): Likewise.
5559         (cgraph_clone_edge): Likewise.
5560         (cgraph_create_virtual_clone): Likewise.
5561         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5562         instead of cgraph_node.
5563         (cgraph_add_new_function): Call cgraph_create_node or
5564         cgraph_get_create_node instead of cgraph_node.
5565         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5566         instead of cgraph_node.
5567         (record_eh_tables): Likewise.
5568         (mark_address): Likewise.
5569         (mark_load): Likewise.
5570         (build_cgraph_edges): Call cgraph_get_create_node instead
5571         of cgraph_node.
5572         (rebuild_cgraph_edges): Likewise.
5573         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5574         instead of cgraph_node.
5575         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5576         cgraph_node.
5577         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5578         cgraph_create_node instead of cgraph_node.
5579         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5580         of cgraph_node.
5581         * lto-cgraph.c (input_node): Likewise.
5582         * lto-streamer-in.c (input_function): Likewise.
5583         * varasm.c (mark_decl_referenced): Likewise.
5584         (assemble_alias): Likewise.
5586 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5588         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5589         instead of cgraph_node and assert it does not return NULL.
5590         * lto-streamer-in.c (lto_read_body): Likewise.
5591         * omp-low.c (new_omp_context): Likewise.
5592         (create_task_copyfn): Likewise.
5593         * tree-emutls.c (lower_emutls_function_body): Likewise.
5594         * matrix-reorg.c (transform_allocation_sites): Likewise.
5596 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5598         PR c/48552
5599         * c-typeck.c (build_asm_expr): Error out on attempts to use
5600         void type outputs or inputs for constraints that allow reg or
5601         don't allow memory.
5603 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5604             Richard Earnshaw  <rearnsha@arm.com>
5606         PR target/48250
5607         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5608         to use sign-magnitude offsets. Reject unsupported unaligned
5609         cases. Add detailed description in comments.
5610         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5611         condition from TARGET_32BIT to TARGET_ARM.
5613 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5615         * tree.h (struct typed_tree): New.
5616         (struct tree_common): Include it instead of tree_base.
5617         (TREE_TYPE): Update for new location of type field.
5618         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5619         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5620         (union tree_node): Add typed field.
5621         * treestruct.def (TS_TYPED): New.
5622         * lto-streamer.c (check_handled_ts_structures): Handle it.
5623         * tree.c (MARK_TS_TYPED): New macro.
5624         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5626 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5628         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5629         (force_nonfallthru): Do not alter the loop nest if no basic block
5630         was created.
5632 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5634         * config/i386/sse.md (VI): New mode iterator.
5635         (SSEMODEI): Remove.
5636         (AVX256MODEI): Ditto.
5637         (AVXMODEF4P): Ditto.
5638         (avxvecpsmode): Ditto.
5639         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5640         (sse2_andnot<mode>3): New expander.
5641         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5642         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5643         (<any_logic:code><mode>3): Use VI mode iterator.
5644         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5645         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5646         (*andnottf3): Handle AVX three-operand constraints.
5647         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5649 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5650             Robert Millan  <rmh@gnu.org>
5652         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5653         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5654         GNU_USER_DYNAMIC_LINKER64): Define.
5655         (REG_NAME): Don't undefine.
5656         (MD_UNWIND_SUPPORT): Undefine.
5657         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5658         (REG_NAME): Don't undefine.
5659         (MD_UNWIND_SUPPORT): Undefine.
5660         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5662 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5664         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5665         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5667 2011-04-11  Xinliang David Li  <davidxl@google.com>
5669         * value-profile.c (check_ic_target): New function.
5670         (gimple_ic_transform): Sanity check indirect call target.
5671         * gimple-low.c (gimple_check_call_args): Interface change.
5672         (gimple_check_call_matching_types): New function.
5673         * tree-inline.c (tree_can_inline_p): Call new function.
5675 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5677         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5678         tree-pretty-print.h & realmpfr.h.
5680 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5682         PR middle-end/48464
5683         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5684         (setup_allocno_and_important_classes): Ditto.
5686 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5688         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5689         GNU_USER_DYNAMIC_LINKER.
5690         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5691         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5692         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5693         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5694         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5695         GNU_USER_TARGET_OS_CPP_BUILTINS.
5696         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5697         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5698         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5699         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5700         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5701         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5702         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5703         GNU_USER_TARGET_OS_CPP_BUILTINS.
5704         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5705         GNU_USER_DYNAMIC_LINKER.
5706         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5707         GNU_USER_TARGET_OS_CPP_BUILTINS.
5708         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5709         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5710         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5711         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5712         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5713         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5714         GNU_USER_DYNAMIC_LINKER64): Remove.
5715         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5716         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5717         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5718         GNU_USER_DYNAMIC_LINKER.
5719         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5720         GNU_USER_TARGET_OS_CPP_BUILTINS.
5721         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5722         GNU_USER_TARGET_OS_CPP_BUILTINS.
5723         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5724         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5725         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5726         GNU_USER_TARGET_OS_CPP_BUILTINS.
5727         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5728         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5729         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5730         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5731         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5732         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5733         GNU_USER_DYNAMIC_LINKER.
5734         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5735         GNU_USER_TARGET_OS_CPP_BUILTINS.
5736         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5737         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5738         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5739         GNU_USER_DYNAMIC_LINKER.
5740         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5741         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5742         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5743         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5744         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5745         GNU_USER_DYNAMIC_LINKER.
5746         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5747         GNU_USER_DYNAMIC_LINKERN32.
5748         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5749         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5750         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5751         GNU_USER_DYNAMIC_LINKER32.
5752         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5753         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5754         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5755         GNU_USER_DYNAMIC_LINKER.
5756         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5757         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5758         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5759         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5760         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5761         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5762         GNU_USER_DYNAMIC_LINKER32.
5763         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5764         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5765         GNU_USER_DYNAMIC_LINKER.
5766         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5767         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5768         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5769         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5770         GNU_USER_DYNAMIC_LINKER64.
5771         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5772         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5773         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5774         GNU_USER_DYNAMIC_LINKER.
5775         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5776         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5777         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5778         GNU_USER_DYNAMIC_LINKER.
5779         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5780         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5781         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5782         GNU_USER_DYNAMIC_LINKER32.
5783         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5784         GNU_USER_DYNAMIC_LINKER64.
5785         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5786         GNU_USER_DYNAMIC_LINKER64.
5787         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5788         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5789         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5790         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5791         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5793 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5795         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5796         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5797         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5798         GNU_USER_DYNAMIC_LINKER.
5799         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5800         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5801         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5802         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5803         GNU_USER_DYNAMIC_LINKER64.
5804         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5805         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5806         GNU_USER_LINK_EMULATION.
5807         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5808         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5809         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5810         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5811         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5812         CPP_SPEC, CC1_SPEC): Remove.
5813         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5814         (GNU_USER_DYNAMIC_LINKER): Define.
5815         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5816         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5817         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5818         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5819         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5820         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5821         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5822         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5823         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5824         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5825         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5826         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5827         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5828         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5829         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5830         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5831         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5832         GNU_USER_DYNAMIC_LINKER.
5833         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5834         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5835         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5836         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5837         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5838         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5839         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5840         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5841         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5842         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5844 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5846         PR target/9601
5847         PR target/11772
5848         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5849         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5850         comment.
5851         (ix86_is_msabi_thiscall): Removed.
5852         (ix86_is_type_thiscall): Likewise.
5853         (ix86_get_callcvt): New function.
5854         (ix86_comp_type_attributes): Simplify check.
5855         (ix86_function_regparm): Use ix86_get_callcvt for calling
5856         convention attribute checks.
5857         (ix86_return_pops_args): Likewise.
5858         (ix86_static_chain): Likewise.
5859         (x86_this_parameter): Likewise.
5860         (x86_output_mi_thunk): Likewise.
5861         (ix86_function_type_abi): Optimize check for types without attributes.
5862         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5863         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5864         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5865         by flag-values.
5866         (IX86_BASE_CALLCVT): Helper macro.
5867         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5868         Use ix86_get_callcvt for calling convention attribute checks and avoid
5869         symbol-decoration for stdcall in TARGET_RTD case.
5870         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5871         Likewise.
5872         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5873         for declaration.
5875 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5877         * config/i386/sse.md (VI_128): New mode iterator.
5878         (VI12_128): Rename from SSEMODE12.
5879         (VI14_128): Rename from SSEMODE14.
5880         (VI124_128): New mode iterator.
5881         (VI24_128): Rename from SSEMODE248.
5882         (VI248_128): Rename from SSEMODE248.
5883         (SSEMODE124C8): Remove.
5884         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5885         (*sse2_<plusminus_insn><mode>3): Merge with
5886         *avx_<plusminus_insn><mode>3.
5887         (*mulv8hi3): Merge with *avx_mulv8hi3.
5888         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5889         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5890         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5891         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5892         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5893         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5894         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5895         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5896         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5897         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5898         (*<smaxmin:code>v8hi3): Ditto.
5899         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5900         (*<smaxmin:code>v16qi3): Ditto.
5901         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5902         (*sse2_eq<mode>3): Ditto.
5903         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5904         (*sse2_gt<mode>3): Ditto.
5905         (vcondv2di): Split out of vcond<mode>.
5906         (vconduv2di): Split out of vcondu<mode>.
5908 2011-04-11  Richard Guenther  <rguenther@suse.de>
5910         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5911         before calling tree_low_cst.
5913 2011-04-11  Richard Guenther  <rguenther@suse.de>
5915         * stor-layout.c (layout_type): Compute all array index size operations
5916         in the original type.
5917         (initialize_sizetypes): Add comment.
5918         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5920 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5922         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5924 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5926         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5927         of cgraph_node, handle NULL return value.
5928         (cgraph_global_info): Likewise.
5929         (cgraph_rtl_info): Likewise.
5930         * tree-inline.c (estimate_num_insns): Likewise.
5931         * gimplify.c (unshare_body): Likewise.
5932         (unvisit_body): Likewise.
5933         (gimplify_body): Likewise.
5934         * predict.c (optimize_function_for_size_p): Likewise.
5935         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5936         (call_may_clobber_ref_p_1): Likewise.
5937         * varasm.c (function_section_1): Likewise.
5938         (assemble_start_function): Likewise.
5940 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5942         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5943         of cgraph_node.
5944         * final.c (rest_of_clean_state): Likewise.
5945         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5946         * passes.c (pass_init_dump_file): Likewise.
5947         (execute_all_ipa_transforms): Likewise.
5948         (function_called_by_processed_nodes_p): Likewise.
5949         * predict.c (maybe_hot_frequency_p): Likewise.
5950         (probably_never_executed_bb_p): Likewise.
5951         (compute_function_frequency): Likewise.
5952         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5953         (unnest_nesting_tree_1): Likewise.
5954         (lower_nested_functions): Likewise.
5955         * tree-optimize.c (execute_fixup_cfg): Likewise.
5956         (tree_rest_of_compilation): Likewise.
5957         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5958         * tree-sra.c (ipa_early_sra): Likewise.
5959         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5960         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5961         * ipa.c (record_cdtor_fn): Likewise.
5962         * ipa-inline.c (cgraph_early_inlining): Likewise.
5963         (compute_inline_parameters_for_current): Likewise.
5964         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5965         * ipa-pure-const.c (local_pure_const): Likewise.
5966         * ipa-split.c (split_function): Likewise.
5967         (execute_split_functions): Likewise.
5968         * cgraphbuild.c (build_cgraph_edges): Likewise.
5969         (rebuild_cgraph_edges): Likewise.
5970         (cgraph_rebuild_references): Likewise.
5971         (remove_cgraph_callee_edges): Likewise.
5972         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5973         (verify_cgraph_node): Likewise.
5974         (cgraph_analyze_functions): Likewise.
5975         (cgraph_preserve_function_body_p): Likewise.
5976         (save_inline_function_body): Likewise.
5977         (save_inline_function_body): Likewise.
5978         * tree-inline.c (copy_bb): Likewise.
5979         (optimize_inline_calls): Likewise.
5981 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5983         PR tree-optimization/48195
5984         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5985         ipa_check_create_edge_args.
5986         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5987         ipa_check_create_edge_args.
5988         * ipa-inline.c (inline_generate_summary): Do not call
5989         ipa_check_create_node_params and ipa_check_create_edge_args.
5990         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5991         ipa_check_create_edge_args.
5993 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
5995         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5996         instead of loop.
5997         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5998         * function.c (record_hard_reg_sets): Likewise.
5999         * ira.c (compute_regs_asm_clobbered): Likewise.
6000         * sched-deps.c (sched_analyze_1): Likewise.
6001         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6003 2011-04-09  Xinliang David Li  <davidxl@google.com>
6005         PR tree-optimization/PR48484
6006         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6007         has_valid_pred lazily
6009 2011-04-09  Duncan Sands  <baldrick@free.fr>
6011         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6013 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6015         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6016         cost of I0 to zero at the end, if any.
6018 2011-04-08  Xinliang David Li  <davidxl@google.com>
6020         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6021         to insane profile data.
6023 2011-04-08  Xinliang David Li  <davidxl@google.com>
6025         * ipa-cp.c (ipcp_update_profiling): Correct
6026          negative scale factor due to insane profile data.
6028 2011-04-08  Xinliang David Li  <davidxl@google.com>
6030         * final.c (dump_basic_block_info): New function.
6031         (final): Dump basic block.
6032         (final_scan_insn): Remove old dump.
6034 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6036         PR target/47829
6037         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6038         crtbegin/crtend.
6040 2011-04-08  Michael Matz  <matz@suse.de>
6042         PR middle-end/48389
6043         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6044         functions.
6045         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6046         * rtl.h (rebuild_jump_labels_chain): Declare.
6047         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6048         insns inserted on edges.
6050 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6052         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6053         * config/arm/arm-arches.def: New.
6054         * config/arm/arm-opts.h: New.
6055         * config/arm/genopt.sh: New.
6056         * config/arm/arm-tables.opt: New (generated).
6057         * config/arm/arm.c (arm_handle_option, arm_target_help,
6058         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6059         (all_architectures): Get most table contents from arm-arches.def.
6060         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6061         arm_selected_tune here.
6062         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6063         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6064         (march=, mcpu=, mtune=): Use Enum and Var.
6065         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6066         (arm.o): Update dependencies.
6068 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6070         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6071         of header_file.
6072         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6073         (write_typed_alloc_defns): Likewise.
6074         (main): Calls write_typed_alloc_defns with output_header.
6076 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6078         PR inline-asm/48435
6079         * ira-color.c (setup_profitable_hard_regs): Add comments.
6080         Don't take prohibited hard regs into account.
6081         (setup_conflict_profitable_regs): Rename to
6082         get_conflict_profitable_regs.
6083         (check_hard_reg_p): Check prohibited hard regs.
6085 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6087         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6088         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6089         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6091 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6093         PR target/48366
6094         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6095         move from floating point to shift amount register.
6096         (emit_move_sequence): Remove secondary reload support for floating
6097         point to shift amount amount register copies.
6098         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6099         amount register copies.
6100         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6101         register, return false if mode isn't a scalar integer mode.
6102         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6104 2011-04-08  Richard Guenther  <rguenther@suse.de>
6106         * gimple.c (gimple_call_flags): Remove kludge.
6108 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6110         * sel-sched.c (sel_region_init): Move call to
6111         sel_setup_region_sched_flags after setup_current_loop_nest.
6113 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6115         PR rtl-optimization/48272
6116         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6117         init_insn_reg_pressure_info.  Adjust a caller.
6118         * sched-int.h (init_insn_reg_pressure_info): Declare.
6119         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6120         when sched-pressure is enabled.
6122 2011-04-08  Richard Guenther  <rguenther@suse.de>
6124         * gimple.c (gimple_set_modified): Do not queue calls to
6125         MODIFIED_NORETURN_CALLS here ...
6126         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6128 2011-04-08  Richard Guenther  <rguenther@suse.de>
6130         PR lto/48467
6131         * toplev.c (lang_dependent_init): Do not open asm_out_file
6132         in WPA mode, nor perform debug machinery initialization.
6133         (finalize): Do not unlink asm_out_file in WPA mode.
6135 2011-04-08  Richard Guenther  <rguenther@suse.de>
6137         * gimple.h (gimple_call_fntype): New function.
6138         (gimple_call_return_type): Use it.
6139         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6140         * gimple-low.c (gimple_check_call_args): Likewise.
6141         * gimple.c (gimple_call_flags): Likewise.
6142         (gimple_call_arg_flags): Likewise.
6143         (gimple_call_return_flags): Likewise.
6144         * tree-cfg.c (verify_gimple_call): Likewise.
6145         (do_warn_unused_result): Likewise.
6146         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6147         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6149 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6151         PR rtl-optimization/48235
6152         * sel-sched.c (code_motion_process_successors): Recompute the last
6153         insn in basic block if control flow changed.
6154         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6155         Update condition for ilist_remove.
6157 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6159         PR rtl-optimization/48302
6160         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6161         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6162         it to record added preheader blocks.
6163         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6164         on to sel_add_loop_preheaders.
6165         (sel_region_init): Move call to setup_current_loop_nest after
6166         sel_init_bbs.
6168 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6170         PR target/48273
6171         * cfgloop.h (loop_has_exit_edges): New helper.
6172         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6173         non-clonable.
6174         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6175         that have no exit edges.
6177 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6179         PR rtl-optimization/48442
6180         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6181         all callers.  Adjust assert.
6183 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6185         PR tree-optimization/48377
6186         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6187         is_packed to true even for types with smaller TYPE_ALIGN than
6188         TYPE_SIZE.
6190 2011-04-08  Richard Guenther  <rguenther@suse.de>
6192         PR bootstrap/48513
6193         * doc/tm.texi: Re-generate.
6195 2011-04-08  Wei Guozhi  <carrot@google.com>
6197         PR target/47855
6198         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6199         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6200         * config/arm/arm.md (*push_multi): Change the length computation to
6201         call a C function.
6203 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6205         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6206         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6207         * doc/tm.texi: Regenerate.
6208         * system.h (ASM_OUTPUT_BSS): Poison.
6209         * varasm.c (asm_output_bss): Remove function.
6210         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6212         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6213         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6214         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6215         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6216         Likewise.
6217         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6218         Likewise.
6219         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6220         Likewise.
6221         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6223 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6225         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6226         EnumValue lines.
6228 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6230         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6231         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6232         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6233         OPT_mcpu32.
6234         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6235         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6236         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6237         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6238         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6239         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6240         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6241         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6242         options.  Don't map other m68k options manually.  Don't handle
6243         old-style options as canonical.
6244         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6245         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6247 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6249         * basic-block.h (force_nonfallthru): Move to...
6250         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6251         (force_nonfallthru): ...here.
6252         * cfghooks.c (force_nonfallthru): New function.
6253         * cfgrtl.c (force_nonfallthru): Rename into...
6254         (rtl_force_nonfallthru): ...this.
6255         (commit_one_edge_insertion): Do not set AUX field.
6256         (commit_edge_insertions): Do not discover new basic blocks.
6257         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6258         (cfg_layout_rtl_cfg_hooks): Likewise.
6259         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6260         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6261         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6263 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6265         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6266         Remove macros.
6268 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6270         * config/i386/sse.md: Update copyright year.
6271         (avxcvtvecmode): Remove.
6272         (sse_movhlps): Merge with *avx_movhlps.
6273         (sse_movlhps): Merge with *avx_movlhps.
6274         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6275         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6276         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6277         (sse_loadhps): Merge with *avx_loadhps.
6278         (sse_storelps): Merge with *avx_storelps.
6279         (sse_loadlps): Merge with *avx_loadlps.
6280         (sse_movss): Merge with *avx_movss.
6281         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6282         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6283         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6284         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6285         (vec_set<mode>_0): Ditto.
6286         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6287         (sse4_1_insertps): Merge with *avx_insertps.
6288         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6289         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6290         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6291         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6292         (sse2_storehpd): Merge with *avx_storehpd.
6293         (sse2_loadhpd): Merge with *avx_loadhpd.
6294         (sse2_loadlpd): Merge with *avx_loadlpd.
6295         (sse2_movsd): Merge with *avx_movsd.
6296         (*vec_concatv2df): Merge with *vec_concatv2df.
6298 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6300         PR debug/48343
6301         * combine.c (combine_instructions): Add last_combined_insn,
6302         update it if insn is after it, pass it to all try_combine calls.
6303         (try_combine): Add last_combined_insn parameter, pass it instead of
6304         i3 to propagate_for_debug.
6306 2011-04-07  Nick Clifton  <nickc@redhat.com>
6308         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6309         to handle MDR <-> data register transfers.
6310         (movhi_internal): Likewise.
6312 2011-04-07  Alan Modra  <amodra@gmail.com>
6314         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6315         previous stack info.
6317 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6319         PR target/43920
6320         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6321         flow_find_cross_jump.  Swap variables to implement backward replacement.
6322         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6324 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6326         PR target/43920
6327         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6328         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6329         and bb2.
6330         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6331         src1 or src2.  Redirect edges to the last basic block.  Update
6332         frequency and count on multiple basic blocks in case of fallthru.
6334 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6336         PR target/43920
6337         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6338         function.
6339         (old_insns_match_p): Change return type.  Replace return false/true
6340         with return dir_none/dir_both.  Use can_replace_by.
6341         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6342         direction from dir_p.  Register replacement direction in dir, last_dir
6343         and afterlast_dir.  Handle new return type of old_insns_match_p using
6344         merge_dir.  Return replacement direction in dir_p.
6345         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6346         return type of old_insns_match_p.
6347         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6348         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6349         flow_find_cross_jump.
6350         * basic-block.h (enum replace_direction): New type.
6351         (flow_find_cross_jump): Add parameter to declaration.
6353 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6355         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6356         (AVXMODEDCVTPS2DQ): Ditto.
6357         (VEC_FLOAT_MODE): Ditto.
6358         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6359         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6360         (<any_logic:code><mode>3): Use VF mode iterator.
6361         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6362         Use VF mode iterator.
6363         (copysign<mode>3): Use VF mode iterator.
6364         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6365         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6366         (*<any_logic:code><MODEF:mode>3): Merge with
6367         *avx_<any_logic:code><MODEF:mode>3.
6368         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6369         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6370         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6371         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6372         (sse2_cvtdq2ps): Use %v modifier.
6373         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6374         (avx_cvtps2dq<avxmodesuffix>): Remove.
6375         (sse2_cvtps2dq): Use %v modifier.
6376         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6377         (avx_cvttps2dq<avxmodesuffix>): Remove.
6378         (sse2_cvttps2dq): Use %v modifier.
6379         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6380         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6381         (sse2_cvtsd2siq): Fix insn template.
6382         (sse2_cvtsd2siq_2): Ditto.
6383         (sse2_cvttsd2siq): Ditto.
6384         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6385         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6387 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6389         * gcov-io.c: Use GCC Runtime Library Exception.
6391 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6393         PR debug/48466
6394         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6395         as base_reg whatever register reg has been eliminated to, instead
6396         of hardcoding STACK_POINTER_REGNUM.
6398 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6400         * doc/tm.texi.in: Document C target hooks as separate from general
6401         target hooks.
6402         * doc/tm.texi: Regenerate.
6403         * genhooks.c (struct hook_desc): Add docname field.
6404         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6405         docname field.
6406         (hook_array): Include c-target.def.
6407         (emit_documentation): Use docname field in output.
6408         (emit_init_macros): Take docname argument.  Only emit definitions
6409         for hooks matching docname.
6410         (main): Expect additional arguments in all cases.  Pass argument
6411         to emit_init_macros.
6412         * target.def: Move initial macro definitions and comments to
6413         target-hooks-macros.h.
6414         (gcc_targetcm): Move to c-family/c-target.def.
6415         * target.h (targetcm): Move declaration to c-family/c-target.h.
6416         * targhooks.c (default_handle_c_option): Move to
6417         c-family/c-opts.c.
6418         * targhooks.h (default_handle_c_option): Move declaration to
6419         c-family/c-common.h.
6420         * target-hooks-macros.h: New file.
6421         * config.gcc (target_has_targetcm): Define and use to add to
6422         c_target_objs and cxx_target_objs.
6423         * config/default-c.c: New file.
6424         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6425         of target.h and target-def.h.
6426         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6427         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6428         darwin_check_cfstring_format_arg): Make static.
6429         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6430         TARGET_STRING_OBJECT_REF_TYPE_P,
6431         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6432         * config/darwin-protos.h (darwin_objc_construct_string,
6433         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6434         declare.
6435         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6436         TARGET_STRING_OBJECT_REF_TYPE_P,
6437         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6438         * config/t-darwin (darwin-c.o): Update dependencies.
6439         * system.h (TARGET_HAS_TARGETCM): Poison.
6440         * Makefile.in (TARGET_H): Update.
6441         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6442         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6443         (default-c.o): New target.
6444         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6445         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6446         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6447         c-target.def.
6448         (build/genhooks.o): Update dependencies.
6450 2011-04-06  Richard Guenther  <rguenther@suse.de>
6452         * ipa-inline.c (enum inlining_mode): Remove.
6453         (cgraph_flatten): Use some other token.
6454         (cgraph_edge_early_inlinable_p): New function, split out from ...
6455         (cgraph_perform_always_inlining): New function, split out from ...
6456         (cgraph_decide_inlining_incrementally): ... here.
6457         (cgraph_mark_inline_edge): Adjust.
6458         (cgraph_early_inlining): Re-structure.
6459         (pass_early_inline): Require SSA form.
6461 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6462             Julian Brown  <julian@codesourcery.com>
6463             Mark Shinwell  <shinwell@codesourcery.com>
6465         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6466         LO_REGS only for Thumb-1.
6467         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6468         be used in short instructions when optimising for size on Thumb-2.
6470 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6472         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6473         associated with user returns to be preserved.
6475 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6477         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6478         symbol_queue_size, DBXOUT_DECR_NESTING,
6479         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6480         if XCOFF_DEBUGGING_INFO.
6482 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6484         * config/i386/i386.md (attribute isa): New.
6485         (attribute enabled): New.
6486         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6487         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6488         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6489         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6490         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6491         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6492         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6493         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6495         * config/i386/sse.md (VF): New mode iterator.
6496         (VF1): Ditto.
6497         (VF2): Ditto.
6498         (VF_128): Ditto.
6499         (SSEMODEF4): Remove.
6500         (attribute sse): Handle V8SF and V4DF modes.
6501         (<absneg:code><mode>2): Use VF mode iterator.
6502         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6503         mode iterator.
6504         (<plusminus_insn><mode>3): Use VF mode iterator.
6505         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6506         Use VF mode iterator.
6507         (<sse>_vm<plusminus_insn><mode>3): Merge with
6508         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6509         (mul<mode>3): Use VF mode iterator.
6510         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6511         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6512         mode iterator.
6513         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6514         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6515         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6516         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6517         mode iterator.
6518         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6519         Use VF1 mode iterator.
6520         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6521         (sqrt<VF2:mode>2): New expander.
6522         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6523         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6524         and sqrtv2df2.  Use VF mode iterator.
6525         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6526         mode iterator.
6527         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6528         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6529         Use VF1 mode iterator.
6530         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6531         (<smaxmin:code><mode>3): Use VF mode iterator.
6532         (*<smaxmin:code><mode>3_finite): Merge with
6533         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6534         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6535         (<sse>_vm<smaxmin:code><mode>2): Merge with
6536         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6537         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6538         mode iterator.
6539         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6540         mode iterator.
6541         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6542         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6543         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6544         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6545         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6546         VF mode iterator.
6547         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6548         Use VF_128 mode iterator.
6549         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6550         mode iterator.
6551         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6552         VF_128 mode iterator.
6553         (vcond<mode>): Use VF mode iterator.
6554         * config/i386/predicates.md (sse_comparison_operator): Merge with
6555         avx_comparison_float_operator.  Do not declare as special_predicate.
6556         * config/i386/i386.c (struct builtin_description): Update for renamed
6557         compare patterns.
6558         (ix86_expand_args_builtin): Ditto.
6559         (ix86_expand_sse_compare_mask): Ditto.
6561 2011-04-06  Richard Guenther  <rguenther@suse.de>
6563         * tree-inline.c (estimate_num_insns): For calls simply account
6564         for all passed arguments and a used return value.
6566 2011-04-06  Richard Guenther  <rguenther@suse.de>
6568         PR tree-optimization/47663
6569         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6570         call_stmt_time fields.
6571         (cgraph_edge_inlinable_p): Declare.
6572         (cgraph_edge_recursive_p): New inline function.
6573         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6574         (cgraph_clone_edge): Copy it.
6575         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6576         Account for call stmt time.
6577         (cgraph_estimate_time_after_inlining): Take edge argument.
6578         (cgraph_estimate_edge_growth): Account call stmt size.
6579         (cgraph_estimate_size_after_inlining): Take edge argument.
6580         (cgraph_mark_inline_edge): Adjust.
6581         (cgraph_check_inline_limits): Likewise.
6582         (cgraph_recursive_inlining_p): Remove.
6583         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6584         (cgraph_decide_recursive_inlining): Take edge argument and
6585         adjust.
6586         (cgraph_decide_inlining_of_small_functions): Do not avoid
6587         diags for recursive inlining here.
6588         (cgraph_flatten): Adjust.
6589         (cgraph_decide_inlining_incrementally): Likewise.
6590         (estimate_function_body_sizes): Remove call cost handling.
6591         (compute_inline_parameters): Initialize caller edge call costs.
6592         (cgraph_estimate_edge_growth): New function.
6593         (cgraph_estimate_growth): Use it.
6594         (cgraph_edge_badness): Likewise.
6595         (cgraph_check_inline_limits): Take an edge argument.
6596         (cgraph_decide_inlining_of_small_functions): Adjust.
6597         (cgraph_decide_inlining): Likewise.
6598         * tree-inline.c (estimate_num_insns): Only account for call
6599         return value if it is used.
6600         (expand_call_inline): Avoid diagnostics on recursive inline
6601         functions here.
6602         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6603         (input_edge): Input edge call costs.
6605 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6607         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6609 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6611         * doc/invoke.texi (Spec Files): Fix typo.
6613 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6615         * profile.c (branch_prob): Move declaration of local variable.  Remove
6616         obsolete ??? comment.  Expand the location explicitly instead of using
6617         the LOCATION_FILE and LOCATION_LINE macros.
6619 2011-04-06  Wei Guozhi  <carrot@google.com>
6621         PR target/47855
6622         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6623         (arm_cond_branch): Likewise.
6624         (arm_cond_branch_reversed): Likewise.
6625         (arm_jump): Likewise.
6626         (push_multi): Likewise.
6627         * config/arm/constraints.md (Py): New constraint.
6629 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6631         PR bootstrap/48471
6632         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6633         Move these...
6634         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6635         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6636         #ifdef DBX_DEBUGGING_INFO.
6638 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6640         PR bootstrap/48403
6641         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6642         if old and new states differ.
6644 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6646         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6647         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6648         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6649         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6650         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6651         mcfv4e): Use Alias.
6652         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6653         ColdFire options to -mcpu= options.
6655 2011-04-05  Jeff Law  <law@redhat.com>
6657         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6658         check if BB is a successor of LOOP->header and return
6659         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6661 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6663         * cprop.c (struct reg_use): Remove.
6664         (reg_use_table): Make an array of RTX.
6665         (find_used_regs, constprop_register, local_cprop_pass,
6666         bypass_block): Simplify users of reg_use_table.
6667         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6668         on one of the uses found by find_used_regs.
6670 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6672         PR bootstrap/48469
6673         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6674         declaration.
6676 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6678         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6679         as an rtx.
6680         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6682 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6684         PR middle-end/48441
6685         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6687 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6689         * combine.c: Include obstack.h.
6690         (struct insn_link): Define.
6691         (uid_log_links): Adjust type.
6692         (FOR_EACH_LOG_LINK): New macro.
6693         (insn_link_obstack): Declare.
6694         (alloc_insn_link): Define.
6695         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6696         type of link variables.
6697         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6698         (try_combine, record_promoted_values, distribute_notes): Likewise.
6699         (distribute_links): Likewise.  Tweak prototype.
6700         (clear_log_links): Delete.
6701         (adjust_for_new_dest): Call alloc_insn_link.
6702         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6704 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6706         * gcse.c (modify_mem_list): Convert to an array of VECs.
6707         (canon_modify_mem_list, compute_transp): Tweak formatting.
6708         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6709         (load_killed_in_block_p): Likewise.
6710         (record_last_mem_set_info): Likewise.
6711         (clear_modify_mem_tables): Likewise.
6713 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6715         PR middle-end/48461
6716         * function.c (emit_use_return_register_into_block): Only define if
6717         HAVE_return.
6719 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6721         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6723 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6725         * config/rx/rx-opts.h: New.
6726         * config/rx/rx.c (rx_cpu_type): Remove.
6727         (rx_handle_option): Don't assert that global structures are in
6728         use.  Access variables via opts pointer.  Defer most handling of
6729         OPT_mint_register_.  Use error_at.
6730         (rx_option_override): Handle deferred OPT_mint_register_ here.
6731         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6732         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6733         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6734         (rx_cpu_types): New Enum and EnumValue entries.
6735         (mint-register=): Use Defer and use Var accordingly.
6737 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6739         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6740         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6741         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6742         Move these...
6743         (debug_free_queue, debug_nesting, symbol_queue_index):
6744         ...and these...
6745         * dbxout.c: ...to here.  Make static.
6747 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6749         * gcse.c (modify_pair): Define.  Define a VEC of it.
6750         (canon_modify_mem_list): Convert to an array of VECs.
6751         (free_insn_expr_list_list): Delete.
6752         (clear_modify_mem_tables): Call VEC_free instead.
6753         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6754         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6755         (canon_list_insert, compute_transp): Likewise.
6757 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6759         PR target/43920
6760         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6761         for size.
6763 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6765         PR target/43920
6766         * function.c (emit_use_return_register_into_block): New function.
6767         (thread_prologue_and_epilogue_insns): Use
6768         emit_use_return_register_into_block.
6770 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6772         PR target/43920
6773         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6774         insn.
6776 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6778         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6780 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6782         * config/arm/arm.md (define_constants for unspec): Replace with
6783         define_c_enum.
6784         (define_constants for unspecv): Replace with define_c_enum.
6785         * config/arm/neon.md (define_constants for unspec): Replace with
6786         define_c_enum.
6788 2011-04-04  Richard Henderson  <rth@redhat.com>
6790         PR bootstrap/48400
6791         * dwarf2out.c (output_line_info): Always emit line info from
6792         at least one section.
6793         (dwarf2out_init): Create text_section_line_info here ...
6794         (set_cur_line_info_table): ... not here.
6796 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6798         PR target/48380
6799         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6800         not called.
6802         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6804 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6806         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6807         (expr_equiv_p): Remove.
6808         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6809         (hash_scan_set): Update call to insert_set_in_table.
6810         (dump_hash_table): Dump <dest, src> pair.
6811         (lookup_set): Simplify.  Lookup <dest, src> pair.
6812         (compute_transp): Remove, fold heavily simplified code into...
6813         (compute_local_properties): ...here.  Expect COMP and TRANSP
6814         unconditionally.
6815         (find_avail_set): Take set directly from struct expr.
6816         (find_bypass-set): Likewise.
6817         (bypass_block): Likewise.
6818         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6820         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6821         checks on form of COND from find_implicit_sets to here.
6822         (find_implicit_sets): Cleanup control flow. Split critical edges
6823         if it exposes implicit sets.  Allocate/resize implicit_sets as
6824         necessary.
6825         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6826         changed something.  Run df_analyze after find_implicit_sets if any
6827         edges were split.  Do not allocate implicit_sets here.
6829         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6830         (gcse_obstack): Renamed to cprop_obstack.
6831         (GNEW, GNEWVEC, GNEWVAR): Remove.
6832         (gmalloc): Remove.
6833         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6834         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6835         (gcse_alloc): Likewise, and rename to cprop_alloc.
6836         (alloc_gcse_men, free_gcse_mem): Remove.
6837         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6838         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6839         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6841         * cprop.c (oprs_not_set_p): Remove.
6842         (mark_set, mark_clobber): Remove.
6843         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6844         (reg_not_set_p): New function.
6845         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6846         (cprop_insn): Likewise.
6847         (cprop_jump): Use FOR_EACH_EDGE.
6849 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6851         PR bootstrap/48403
6852         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6853         (rank_for_schedule): Use scheduled_insns vector instead of
6854         last_scheduled_insn.
6855         (ok_for_early_queue_removal): Likewise.
6856         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6857         we have a dbg_cnt.
6858         (choose_ready): Likewise.
6859         (commit_schedule): Use VEC_iterate.
6860         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6861         a dbg_cnt, use it and ensure the first insn is in the ready list.
6862         (haifa_sched_init): Allocate scheduled_insns.
6863         (sched_extend_ready_list): Don't allocate it; reserve space.
6864         (haifa_sched_finish): Free it.
6866 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6868         * optc-gen.awk: Always remove type from Variable entry before
6869         recording in var_seen.
6871 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6873         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6874         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6875         call to tidy_fallthru_edges.
6877 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6879         * doc/options.texi (ToLower): Document.
6880         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6881         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6882         * opts.h (cl_option): Add cl_tolower field.
6883         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6884         arguments with lowercase strings.
6885         * config/rx/rx.opt (mcpu=): Add ToLower.
6886         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6887         argument.
6889 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6891         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6893 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6895         * config/vax/vax.c: Include reload.h.
6897 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6899         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6900         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6901         (sparc_preferred_reload_class): New function.
6903 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6905         PR debug/48401
6906         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6907         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6909 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6911         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6912         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6914 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6916         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6917         (ASM_OUTPUT_ALIGNED_BSS): Define.
6919 2011-04-03  Michael Matz  <matz@suse.de>
6921         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6922         and next_slot members.
6923         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6924         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6925         (lto_streamer_cache_append): Declare.
6926         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6927         unsigned index, remove offset parameter, ensure that we append
6928         or update existing entries.
6929         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6930         parameter, update next_slot for append.
6931         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6932         parameter.
6933         (lto_streamer_cache_insert_at): Likewise.
6934         (lto_streamer_cache_append): New function.
6935         (lto_streamer_cache_lookup): Use unsigned index.
6936         (lto_streamer_cache_get): Likewise.
6937         (lto_record_common_node): Don't test tree_node_can_be_shared.
6938         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6939         (lto_streamer_cache_delete): Don't free offsets member.
6940         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6941         (lto_output_string_with_length): Use lto_output_data_stream.
6942         (lto_output_tree_header): Remove ix parameter, don't write it.
6943         (lto_output_builtin_tree): Likewise.
6944         (lto_write_tree): Adjust callers to above, don't track and write
6945         offset, write unsigned index.
6946         (output_unreferenced_globals): Don't emit all global vars.
6947         (write_global_references): Use unsigned indices.
6948         (lto_output_decl_state_refs): Likewise.
6949         (write_symbol): Likewise.
6950         * lto-streamer-in.c (lto_input_chain): Move earlier.
6951         (input_function): Use unsigned index.
6952         (input_alias_pairs): Don't read and then ignore all global vars.
6953         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6954         don't pass it back, use lto_streamer_cache_append.
6955         (lto_register_var_decl_in_symtab): Use unsigned index.
6956         (lto_register_function_decl_in_symtab): Likewise.
6957         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6958         index.
6959         (lto_get_builtin_tree): Don't read index, use
6960         lto_streamer_cache_append.
6961         (lto_read_tree): Adjust call to lto_materialize_tree.
6963         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6964         don't use function calls in arguments to MIN.
6966         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6967         twice.
6969         * gimple.c (gimple_type_leader_entry): Mark deletable.
6971 2011-04-03  Alan Modra  <amodra@gmail.com>
6973         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6975 2011-04-03  Michael Matz  <matz@suse.de>
6977         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6978         an integer.
6979         * tree.h (tree_decl_non_common.vindex): Adjust comment.
6981 2011-04-03  Michael Matz  <matz@suse.de>
6983         * cgraphbuild.c (record_reference): Canonicalize constructor values.
6984         * gimple-fold.c (canonicalize_constructor_val): Accept being called
6985         without function context.
6986         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6987         current_function_decl and cfun.
6989 2011-04-03  Michael Matz  <matz@suse.de>
6991         * tree.c (decl_init_priority_insert): Don't create entry for
6992         default priority.
6993         (decl_fini_priority_insert): Ditto.
6994         (fields_compatible_p, find_compatible_field): Remove.
6995         * tree.h (fields_compatible_p, find_compatible_field): Remove.
6996         * gimple.c (gimple_compare_field_offset): Adjust block comment.
6998 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7000         * combine.c (try_combine): Remove useless local variable.
7002 2011-04-03  Richard Guenther  <rguenther@suse.de>
7003             Ira Rosen  <ira.rosen@linaro.org>
7005         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7006         non-variable offsets and compare the remaining bases of the two
7007         accesses instead of looking for exact same data-ref.
7009 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7011         PR target/48416
7012         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7014         * i386.c (ix86_is_msabi_thiscall): New helper function.
7015         (ix86_is_type_thiscall): New helper function.
7016         (ix86_comp_type_attributes): Handle thiscall for method-functions
7017         special.
7018         (init_cumulative_args): Likewise.
7019         (find_drap_reg): Likewise.
7020         (ix86_static_chain): Likewise.
7021         (x86_this_parameter): Likewise.
7022         (x86_output_mi_thunk): Likewise.
7024 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7025             Nicolas Setton  <setton@adacore.com>
7026             Eric Botcazou  <ebotcazou@adacore.com>
7028         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7029         (add_gnat_descriptive_type_attribute): New function.
7030         (gen_array_type_die): Call it.
7031         (gen_enumeration_type_die): Likewise.
7032         (gen_struct_or_union_type_die): Likewise.
7033         (modified_type_die): Likewise.
7034         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7035         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7036         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7038 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7040         PR bootstrap/48148
7041         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7042         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7044         Revert:
7045         2011-03-17  Richard Guenther  <rguenther@suse.de>
7047         PR bootstrap/48148
7048         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7049         origin for decls in other ltrans units.
7050         (input_varpool_node): Likewise.
7052 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7054         PR middle-end/48335
7055         * expr.c (expand_assignment): Handle all possibilities
7056         if TO_RTX is CONCAT.
7057         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7058         (store_split_bit_field): If SUBREG_REG (op0) or
7059         op0 itself has smaller mode than word, return it
7060         for offset 0 and const0_rtx for out-of-bounds stores.
7061         If word is const0_rtx, skip it.
7063 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7065         * config/h8300/h8300.c (print_operand_address): Rename to...
7066         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7067         Call h8300_print_operand and h8300_print_operand_address instead of
7068         print_operand and print_operand_address. Declare.
7069         (print_operand): Renake to...
7070         (h8300_print_operand): ...this. Make static. Adjust comments.
7071         Call h8300_print_operand instead of print_operand. Declare.
7072         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7073         (h8300_register_move_cost): Likewise.
7074         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7075         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7076         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7077         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7078         * config/h8300/h8300-protos.h (print_operand): Delete.
7079         (print_operand_address): Delete.
7081 2011-04-01  Richard Henderson  <rth@redhat.com>
7083         PR 48400
7084         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7085         in strict mode before dwarf4.  Re-order tests to early out
7086         before switching sections.
7088 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7090         * config/h8300/constraints.md: New file.
7091         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7092         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7093         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7094         * config/h8300/predicates.md (bit_operand): Likewise.
7095         (incdec_operand): Use satisfies_constraint_M and
7096         satisfies_constraint_O.  Don't use C code block.
7097         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7098         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7099         (compute_mov_length): Use satisfies_constraint_G.
7100         (fix_bit_operand): Use satisfies_constraint_U.
7101         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7102         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7103         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7104         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7105         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7106         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7107         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7108         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7109         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7110         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7111         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7112         (EXTRA_MEMORY_CONSTRAINT): Delete.
7114 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7115             Michael Meissner  <meissner@linux.vnet.ibm.com>
7117         PR target/48262
7118         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7119         operands, as per the specifications.
7121         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7122         (vec_extract_evenv4sf): Ditto.
7123         (vec_extract_evenv8hi): Ditto.
7124         (vec_extract_evenv16qi): Ditto.
7125         (vec_extract_oddv4si): Ditto.
7127 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7129         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7130         high_pc attribute if the CU has no associated code. Only output
7131         DW_AT_entry_pc for CU if not generating strict dwarf and
7132         dwarf_version < 4.
7134 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7136         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7137         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7138         out of ...
7139         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7140         * final.c (final_start_function): Call the new function rather
7141         than using a NULL argument for dwarf2out_frame_debug.
7143         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7144         that contains the prologue.
7146         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7147         changed.  Print it in debugging output.
7149         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7151         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7152         Split most of the code into...
7153         (begin_move_insn): ... here.  New function.
7154         (ebb_sched_info): Add a pointer to it.
7155         * haifa-sched.c (scheduled_insns): New static variable.
7156         (sched_extend_ready_list): Allocate it.
7157         (schedule_block): Use it to record the order of scheduled insns.
7158         Perform RTL changes to move insns only after all scheduling
7159         decisions have been made.
7160         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7161         begin_move_insn field.
7162         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7163         * sched-int.h (struct haifa_sched_info): Remove second argument
7164         from begin_schedule_ready hook.  Add new member begin_move_insn.
7165         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7166         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7168         * haifa-sched.c (prune_ready_list): New function, broken out of
7169         schedule_block.
7170         (schedule_block): Use it.
7172 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7174         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7176 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7178         * config.gcc (*-*-mingw*): Allow as option the
7179         posix threading model.
7180         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7181         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7182         definition.
7183         (CPP_SPEC): Add pthread/no-pthread handling.
7184         (LIB_SPEC): Likewise.
7185         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7186         (LIB_SPEC): Likewise.
7187         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7188         flag to pass -pthread option for shared libgcc build.
7189         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7190         for shared libgcc build.
7191         * config/i386/t-mingw-pthread: New file.
7192         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7193         New define to enable use of library pthread by default.
7194         * config/i386/mingw.opt (pthread): New driver option.
7195         (no-pthread): New driver option.
7196         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7197         * config/i386/mingw-w64.opt: Likewise.
7199 2011-04-01  Gary Funck  <gary@intrepid.com>
7201         * c-decl.c (grokdeclarator): Fix formatting.
7203 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7205         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7206         instead of n_operands.
7207         (set_storage_via_setmem): Likewise.
7208         * optabs.c (maybe_gen_insn): Likewise.
7209         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7210         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7211         (mips_expand_builtin_direct): Likewise.
7212         * config/spu/spu.c (expand_builtin_args): Likewise.
7214 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7216         * recog.h (insn_data_d): Add n_generator_args.
7217         * genoutput.c (data): Likewise.
7218         (output_insn_data): Print it.
7219         (max_opno, num_dups): Delete.
7220         (scan_operands): Just fill in "d->operand[...]".
7221         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7223 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7225         * gensupport.h (pattern_stats): New structure.
7226         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7227         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7228         (max_operand_1, max_operand_vec): Delete.
7229         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7231 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7233         * emit-rtl.c (emit_pattern_after_setloc): New function.
7234         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7235         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7236         (emit_pattern_after): New function.
7237         (emit_insn_after, emit_jump_insn_after): Call it.
7238         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7239         (emit_pattern_before_setloc): New function.
7240         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7241         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7242         Likewise.
7243         (emit_pattern_before): New function.
7244         (emit_insn_before, emit_jump_insn_before): Call it.
7245         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7247 2011-03-31  Richard Henderson  <rth@redhat.com>
7249         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7250         (dw_separate_line_info_entry): Remove.
7251         (enum dw_line_info_opcode): New.
7252         (dw_line_info_entry): Use it.
7253         (dw_line_info_table, dw_line_info_table_p): New.
7254         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7255         (line_info_table, line_info_label_num): Remove.
7256         (line_info_table_in_use): Remove.
7257         (separate_line_info_table): Remove.
7258         (separate_line_info_table_allocated): Remove.
7259         (separate_line_info_table_in_use): Remove.
7260         (LINE_INFO_TABLE_INCREMENT): Remove.
7261         (line_info_label_num): New.
7262         (cur_line_info_table): New.
7263         (text_section_line_info, cold_text_section_line_info): New.
7264         (separate_line_info): New.
7265         (SEPARATE_LINE_CODE_LABEL): Remove.
7266         (print_dwarf_line_table): Remove.
7267         (debug_dwarf): Don't dump it.
7268         (output_one_line_info_table): New.
7269         (output_line_info): Use it.
7270         (new_line_info_table): New.
7271         (set_cur_line_info_table): New.
7272         (dwarf2out_switch_text_section): Use it.
7273         (dwarf2out_begin_function): Likewise.
7274         (push_dw_line_info_entry): New.
7275         (dwarf2out_source_line): Rewrite for new line info tables.
7276         (dwarf2out_init): Remove dead initailizations.
7278 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7280         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7281         various flags.
7282         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7283         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7284         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7285         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7286         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7287         * opt-functions.awk (flag_init, switch_bit_fields): New.
7288         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7289         generate CL_MISSING_OK or CL_SAVE.
7290         * optc-gen.awk: Update to generate bit-field output as well as
7291         flags field.
7292         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7293         bit-field instead of CL_REJECT_DRIVER flag.
7294         * opts-common.c (generate_canonical_option,
7295         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7296         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7297         instead of CL_REJECT_NEGATIVE flag.
7298         * toplev.c (print_switch_values): Use cl_report bit-field instead
7299         of CL_REPORT flag.
7301 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7303         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7304         a zero minimum index only if it is redundant.
7306 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7308         PR rtl-optimization/48381
7309         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7310         instead of ira_class_hard_reg_index for calculating conflicting
7311         hard registers.
7313 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7315         * cprop.c: Clean up hash table building.
7316         (reg_avail_info): Remove.
7317         (oprs_available_p): Remove.
7318         (record_last_reg_set_info): Remove.
7319         (record_last_set_info): Remove.
7320         (reg_available_p): New function.
7321         (gcse_constant_p): Do not treat unfolded conditions as constants.
7322         (make_set_regs_unavailable): New function.
7323         (hash_scan_set): Simplify with new reg_available_p.
7324         (compute_hash_table_work): Traverse insns stream only once.
7325         Do not compute reg_avail_info. Traverse insns in reverse order.
7326         Record implicit sets after recording explicit sets from the block.
7328 2011-03-31  Michael Matz  <matz@suse.de>
7330         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7332 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7334         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7335         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7336         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7337         (h8300_mode_dependent_address_p): New function.
7338         (h8300_get_index): Make static.
7340 2011-03-31  Jeff Law  <law@redhat.com>
7342         * reload1.c (elimination_effects): Fix typo in recent change.
7344         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7345         typo potentially leading to null pointer dereference.
7347         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7348         (setup_save_areas): Corresponding changes to avoid useless
7349         assignments.
7351         * jump.c (reversed_comparison_code_parts): Avoid successive return
7352         statements when REVERSE_CONDITION is defined.
7354         * expr.c (expand_assignment): Avoid useless assignments.
7355         (expand_expr_real_1): Likewise.
7356         (expand_expr_real_2): Avoid useless statements.
7358         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7360         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7362         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7363         statements.
7365         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7367 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7369         PR target/47109
7370         * doc/tm.texi.in (TARGET_VERSION): Remove.
7371         * doc/tm.texi: Regenerate.
7372         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7373         * collect2.c (main): Don't use TARGET_VERSION.
7374         * mips-tdump.c (main): Don't use TARGET_VERSION.
7375         * mips-tfile.c (main): Don't use TARGET_VERSION.
7376         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7377         * config/rs6000/vxworksae.h: Remove.
7378         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7379         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7380         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7381         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7382         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7383         * config/arm/arm.h (TARGET_VERSION): Remove.
7384         * config/arm/coff.h (TARGET_VERSION): Remove.
7385         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7386         * config/arm/elf.h (TARGET_VERSION): Remove.
7387         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7388         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7389         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7390         * config/arm/pe.h (TARGET_VERSION): Remove.
7391         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7392         * config/arm/semi.h (TARGET_VERSION): Remove.
7393         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7394         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7395         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7396         * config/avr/avr.h (TARGET_VERSION): Remove.
7397         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7398         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7399         * config/frv/frv.h (TARGET_VERSION): Remove.
7400         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7401         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7402         * config/i386/darwin.h (TARGET_VERSION): Remove.
7403         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7404         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7405         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7406         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7407         * config/i386/gnu.h (TARGET_VERSION): Remove.
7408         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7409         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7410         * config/i386/linux.h (TARGET_VERSION): Remove.
7411         * config/i386/linux64.h (TARGET_VERSION): Remove.
7412         * config/i386/lynx.h (TARGET_VERSION): Remove.
7413         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7414         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7415         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7416         * config/i386/netware.h (TARGET_VERSION): Remove.
7417         * config/i386/nto.h (TARGET_VERSION): Remove.
7418         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7419         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7420         * config/ia64/elf.h (TARGET_VERSION): Remove.
7421         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7422         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7423         * config/ia64/linux.h (TARGET_VERSION): Remove.
7424         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7425         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7426         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7427         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7428         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7429         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7430         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7431         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7432         * config/m68k/linux.h (TARGET_VERSION): Remove.
7433         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7434         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7435         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7436         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7437         * config/mep/mep.h (TARGET_VERSION): Remove.
7438         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7439         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7440         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7441         * config/mips/linux.h (TARGET_VERSION): Remove.
7442         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7443         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7444         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7445         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7446         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7447         * config/pa/pa.h (TARGET_VERSION): Remove.
7448         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7449         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7450         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7451         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7452         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7453         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7454         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7455         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7456         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7457         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7458         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7459         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7460         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7461         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7462         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7463         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7464         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7465         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7466         * config/s390/linux.h (TARGET_VERSION): Remove.
7467         * config/s390/s390.h (TARGET_VERSION): Remove.
7468         * config/s390/tpf.h (TARGET_VERSION): Remove.
7469         * config/score/score.h (TARGET_VERSION): Remove.
7470         * config/sh/linux.h (TARGET_VERSION): Remove.
7471         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7472         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7473         * config/sh/sh.h (TARGET_VERSION): Remove.
7474         * config/sh/sh64.h (TARGET_VERSION): Remove.
7475         * config/sh/superh.h (TARGET_VERSION): Remove.
7476         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7477         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7478         * config/sparc/linux.h (TARGET_VERSION): Remove.
7479         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7480         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7481         TARGET_NAME32, TARGET_NAME): Remove.
7482         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7483         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7484         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7485         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7486         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7487         * config/spu/spu.h (TARGET_VERSION): Remove.
7488         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7489         * config/v850/v850.h (TARGET_VERSION): Remove.
7490         * config/vax/linux.h (TARGET_VERSION): Remove.
7491         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7492         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7493         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7495 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7497         PR target/48142
7498         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7499         frame-related from frame-unrelated adjustments to the stack pointer.
7501 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7503         * common.opt (fdebug-types-section): Move earlier.
7504         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7506 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7508         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7509         var.
7511 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7513         * tree.h (CASE_CHAIN): Define.
7514         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7515         (gimple_redirect_edge_and_branch): Likewise.
7517 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7519         PR middle-end/48367
7520         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7521         calculation.
7523 2011-03-30  Jeff Law  <law@redhat.com>
7525         * PR bootstrap/48371
7526         * reload1.c (reload): Fix botch in last change.
7528         * reload.h (struct reload): Fix typo introduced in last change.
7530 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7532         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7533         Undocumented.  Remove help text.
7534         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7535         -mhard-float.
7537 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7539         * doc/options.texi (NegativeAlias): Document.
7540         (Alias): Mention NegativeAlias.
7541         * opt-functions.awk: Handle NegativeAlias.
7542         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7543         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7544         * opts.h (CL_NEGATIVE_ALIAS): Define.
7545         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7546         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7547         OPT_mspe_.
7548         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7549         Alias entries.
7550         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7551         mno-spe and mno-isel instead of mspe=no and -misel=no.
7553 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7555         * common.opt (fdebug-types-section): New flag.
7556         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7557         * dwarf2out.c (use_debug_types): New define.
7558         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7559         (print_die): Guard output of type unit signatures using
7560         use_debug_types.
7561         (build_abbrev_table): Replace assert of dwarf_version >= 4
7562         with assert on use_debug_types.
7563         (size_of_die): Likewise.
7564         (unmark_dies): Likewise.
7565         (value_format): Decide AT_ref_external form on use_debug_types.
7566         (output_die): Replace dwarf_version version check guard with
7567         use_debug_types where appropriate.
7568         (modified_type_die): Likewise.
7569         (gen_reference_type_die): Likewise.
7570         (dwarf2out_start_source_file): Likewise.
7571         (dwarf2out_end_source_file): Likewise.
7572         (prune_unused_types_walk_attribs): Likewise.
7573         (dwarf2out_finish): Likewise.
7575 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7577         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7579 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7581         PR rtl-optimization/48332
7582         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7583         mode of input operand N and modeN to its actual mode.
7585 2011-03-30  Jeff Law  <law@redhat.com>
7587         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7588         define accessor macro.
7589         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7590         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7591         (reg_equiv_init): Likewise.
7592         (reg_equivs_size): New variable.
7593         (reg_equiv_init_size): Remove.
7594         (allocate_initial_values): Move prototype to here from....
7595         * integrate.h (allocate_initial_values): Remove prototype.
7596         * integrate.c: Include reload.h.
7597         (allocate_initial_values): Corresponding changes.
7598         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7599         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7600         (update_equiv_regs): Corresponding changes.
7601         (ira): Corresponding changes.
7602         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7603         (push_secondary_reload): Corresponding changes.
7604         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7605         (make_memloc, find_reloads_address): Corresponding changes.
7606         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7607         (find_reloads_address_1): Corresponding changes.
7608         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7609         (refers_to_regno_for_reload_p): Corresponding changes.
7610         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7611         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7612         * reload1.c: Include ggc.h.
7613         (grow_reg_equivs): New function.
7614         (replace_pseudos_in, reload): Corresponding changes.
7615         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7616         (eliminate_regs_1, elimination_effects): Corresponding changes.
7617         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7618         (delete_output_reload): Likewise.
7619         * caller-save.c (mark_referenced_regs): Corresponding changes.
7620         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7621         * frv/predicates.md (frv_load_operand): Corresponding changes.
7622         * microblaze/microblaze.c (double_memory_operand): Corresponding
7623         changes.
7624         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7625         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7626         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7627         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7628         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7629         changes.
7630         * pa/pa.c (emit_move_sequence): Corresponding changes.
7631         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7633 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7635         PR target/47551
7636         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7637         structure modes.  Don't check neon_vector_mem_operand for
7638         vector or structure modes.
7640 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7641             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7643         PR target/43590
7644         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7645         operand 1 and reshuffle the operands to match.
7646         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7648 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7650         PR driver/48208
7651         * config/c.opt (F): Added 'Driver' to -F option.
7653         PR driver/48260
7654         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7655           handler function.
7656         * config/darwin.opt: Added '-arch' option.
7658 2011-03-30  Nick Clifton  <nickc@redhat.com>
7660         * config/rx/rx.md: Add peepholes and patterns to combine
7661         extending loads and simple arithmetic instructions.
7662         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7663         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7664         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7665         modes to use pre-decrement and post-increment addressing.
7666         (rx_is_restricted_memory_address): Add range checking of REG+INT
7667         addresses.
7668         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7669         (rx_memory_move_cost): Adjust cost of stores.
7670         (rx_adjust_insn_length): New function.
7672 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7674         PR c/48305
7675         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7676         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7677         matching arg00/arg01 types.
7679 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7681         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7682         last_location to UNKNOWN_LOCATION.
7684 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7686         PR target/48349
7687         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7688         FLOAT_SSE_REGS.
7690 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7691             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7693         PR bootstrap/48337
7694         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7695         Init(PROCESSOR_V7).
7696         (sparc_cpu): Likewise.
7697         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7698         PROCESSOR_V7.
7700 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7702         PR target/48336
7703         PR middle-end/48342
7704         PR rtl-optimization/48345
7705         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7706         hard regs for given mode from profitable regs when doing secondary
7707         allocation.
7709 2011-03-29  Jeff Law  <law@redhat.com>
7711         PR bootstrap/48327
7712         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7713         do_not_duplicate field.
7714         (lookup_redirection_data): Corresponding changes.
7715         (create_duplicates): Always create a template block.
7716         (redirect_edges): Remove code which reused the original block
7717         when it was going to become unreachable code.
7718         (thread_block): Don't set do_not_duplicate field.
7720 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7722         * lto-opts.c (register_user_option_p, lto_register_user_option):
7723         Make type argument unsigned.
7724         * lto-streamer.h (lto_register_user_option): Make type argument
7725         unsigned.
7726         * opth-gen.awk: Make CL_* macros unsigned.
7727         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7728         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7729         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7730         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7731         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7732         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7733         (find_opt): Make lang_mask argument unsigned.
7735 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7737         PR rtl-optimization/48331
7738         PR rtl-optimization/48334
7739         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7740         for any used algorithm.
7742 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7744         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7745         to parent_max.
7747 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7749         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7750         (alpha_option_override): Don't set alpha_sr_alias_set.
7751         (emit_frame_store_1): Use gen_frame_mem rather than calling
7752         set_mem_alias_set.
7753         (alpha_expand_epilogue): Ditto.
7755 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7757         PR tree-optimization/48290
7758         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7759         vectorization, check that relevant phis in the basic block after
7760         the inner loop are really inner loop's exit phis.
7762 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7764         PR debug/48190
7765         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7766         (cached_dw_loc_list_def): New structure.
7767         (cached_dw_loc_list): New typedef.
7768         (cached_dw_loc_list_table): New variable.
7769         (cached_dw_loc_list_table_hash): New function.
7770         (cached_dw_loc_list_table_eq): Likewise.
7771         (add_location_or_const_value_attribute): Take a bool cache_p.
7772         Cache the list when the parameter is true.
7773         (gen_formal_parameter_die): Update caller.
7774         (gen_variable_die): Likewise.
7775         (dwarf2out_finish): Likewise.
7776         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7777         while generating debug info for the decl.
7778         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7779         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7780         (resolve_addr): Cache the result of resolving a chain of
7781         location lists.
7783 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7785         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7786         conflict object hard regset nodes have intersecting hard reg sets.
7788         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7789         after regstat_init_n_sets_and_refs.
7791         * ira.c: Add more comments at the top.
7792         (setup_stack_reg_pressure_class, setup_pressure_classes):
7793         Add comments how we compute the register pressure classes.
7794         (setup_allocno_and_important_classes): Add more comments.
7795         (setup_class_translate_array, reorder_important_classes)
7796         (setup_reg_class_relations): Add comments.
7798         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7799         start of the file.
7801         * ira-color.c: Add 2011 to the Copyright line.
7802         (assign_hard_reg):  Add more comments.
7803         (improve_allocation): Ditto.
7805         * ira-costs.c: Add 2011 to the Copyright line.
7806         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7807         comments.
7808         (setup_regno_cost_classes_by_mode): Ditto.
7810         Initial patches from ira-improv branch:
7812         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7814         * ira-build.c (ira_create_object): Remove initialization of
7815         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7816         (ira_create_allocno): Remove initialization of
7817         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7818         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7819         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7820         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7821         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7822         Initialize ALLOCNO_ADD_DATA.
7823         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7824         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7825         ALLOCNO_REG.
7826         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7827         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7829         * ira.c (ira_reallocate): Remove.
7830         (setup_pressure_classes): Call
7831         ira_init_register_move_cost_if_necessary.  Use
7832         ira_register_move_cost instead of ira_get_register_move_cost.
7833         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7834         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7836         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7837         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7838         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7839         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7840         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7841         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7842         Fix formatting.
7843         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7844         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7845         (struct allocno_color_data): New.
7846         (allocno_color_data_t): New typedef.
7847         (allocno_color_data): New definition.
7848         (ALLOCNO_COLOR_DATA): New macro.
7849         (struct object_color_data): New.
7850         (object_color_data_t): New typedef.
7851         (object_color_data): New definition.
7852         (OBJECT_COLOR_DATA): New macro.
7853         (update_copy_costs, calculate_allocno_spill_cost): Call
7854         ira_init_register_move_cost_if_necessary.  Use
7855         ira_register_move_cost instead of ira_get_register_move_cost.
7856         (move_spill_restore, update_curr_costs): Ditto.
7857         (allocno_spill_priority): Make it inline.
7858         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7859         (struct coalesce_data, coalesce_data_t): New.
7860         (allocno_coalesce_data): New definition.
7861         (ALLOCNO_COALESCE_DATA): New macro.
7862         (merge_allocnos, coalesced_allocno_conflict_p): Use
7863         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7864         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7865         (coalesce_allocnos): Ditto.
7866         (setup_coalesced_allocno_costs_and_nums): Ditto.
7867         (collect_spilled_coalesced_allocnos): Ditto.
7868         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7869         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7870         (coalesce_spill_slots): Ditto.
7871         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7872         free allocno_coalesce_data.
7874         * ira-conflicts.c: Fix formatting.
7875         (process_regs_for_copy): Call
7876         ira_init_register_move_cost_if_necessary.  Use
7877         ira_register_move_cost instead of ira_get_register_move_cost.
7878         (build_object_conflicts): Optimize.
7880         * ira-costs.c (record_reg_classes): Optimize.  Call
7881         ira_init_register_move_cost_if_necessary.  Use
7882         ira_register_move_cost, ira_may_move_in_cost, and
7883         ira_may_move_out_cost instead of ira_get_register_move_cost and
7884         ira_get_may_move_cost.
7885         (record_address_regs): Ditto.
7886         (scan_one_insn): Optimize.
7887         (find_costs_and_classes): Optimize.
7888         (process_bb_node_for_hard_reg_moves): Call
7889         ira_init_register_move_cost_if_necessary.  Use
7890         ira_register_move_cost instead of ira_get_register_move_cost.
7892         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7893         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7894         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7895         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7896         definitions.
7897         (ira_initiate_emit_data, ira_finish_emit_data)
7898         (create_new_allocno): New functions.
7899         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7900         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7901         Use ira_register_move_cost instead of ira_get_register_move_cost.
7903         * ira-int.h: Fix some comments.
7904         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7905         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7906         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7907         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7908         add_data.
7909         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7910         bitfield after mode.  Make hard_regno a short int.  Make
7911         hard_regno short.  Remove first_coalesced_allocno and
7912         next_coalesced_allocno.  Move mem_optimized_dest_p,
7913         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7914         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7915         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7916         temp, colorable_p.  Add new member add_data.
7917         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7918         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7919         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7920         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7921         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7922         (ALLOCNO_ADD_DATA): New macro.
7923         (ira_emit_data_t): New typedef.
7924         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7925         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7926         from struct ira_allocno.
7927         (ALLOCNO_EMIT_DATA): New macro.
7928         (ira_allocno_emit_data, allocno_emit_reg): New.
7929         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7930         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7931         (OBJECT_ADD_DATA): New macro.
7932         (ira_reallocate): Remove.
7933         (ira_initiate_emit_data, ira_finish_emit_data): New.
7934         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7935         (ira_init_register_move_cost_if_necessary): New.
7936         (ira_object_conflict_iter_next): Merge into
7937         ira_object_conflict_iter_cond.
7938         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7940         * ira-live.c (process_single_reg_class_operands): Call
7941         ira_init_register_move_cost_if_necessary.  Use
7942         ira_register_move_cost instead of ira_get_register_move_cost.
7944         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7946         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7948         * ira-costs.c: Fix formatting.
7949         (cost_classes, cost_classes_num): Remove.
7950         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7951         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7952         (cost_classes_del, cost_classes_htab): New.
7953         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7954         (initiate_regno_cost_classes, setup_cost_classes): New.
7955         (setup_regno_cost_classes_by_aclass): New.
7956         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7957         (record_reg_classes): Use regno_cost_classes instead of
7958         cost_classes.  Move checking opposite operand up.
7959         (record_address_regs): Use regno_cost_classes
7960         instead of cost_classes.
7961         (scan_one_insn): Ditto.  Use always general register.
7962         (print_allocno_costs): Use regno_cost_classes instead of
7963         cost_classes.
7964         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7965         (find_costs_and_classes): Set up cost classes for each registers.
7966         Use also their mode for this.  Use regno_cost_classes instead of
7967         cost_classes.
7968         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7969         cost_classes.
7970         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7971         (ira_costs, ira_set_pseudo_classes): Call
7972         initiate_regno_cost_classes and finish_regno_cost_classes.
7974         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7976         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7978         * target.def (ira_cover_classes): Remove.
7980         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
7982         * doc/tm.texi.in: Ditto.
7984         * ira-conflicts.c: Remove mentioning cover classes from the file.
7985         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
7986         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
7988         * targhooks.c (default_ira_cover_classes): Remove.
7990         * targhooks.h (default_ira_cover_classes): Ditto.
7992         * haifa-sched.c: Remove mentioning cover classes from the file.
7993         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
7994         ira_pressure_classes and ira_pressure_classes_num instead of
7995         ira_reg_class_cover_size and ira_reg_class_cover.  Use
7996         sched_regno_pressure_class instead of sched_regno_cover_class.
7997         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7998         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8000         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8001         classes from the file.
8002         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8003         (struct object_hard_regs, struct object_hard_regs_node): New.
8004         (struct ira_object): New members profitable_hard_regs,
8005         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8006         (struct ira_allocno): Rename cover_class to aclass.  Rename
8007         cover_class_cost and updated_cover_class_cost to class_cost and
8008         updated_class_cost.  Remove splay_removed_p and
8009         left_conflict_size.  Add new members colorable_p.
8010         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8011         (ALLOCNO_COLORABLE_P): New macro.
8012         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8013         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8014         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8015         (OBJECT_...): Rename parameter C to O.
8016         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8017         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8018         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8019         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8020         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8021         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8022         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8023         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8024         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8025         x_ira_reg_class_subunion.
8026         (ira_max_memory_move_cost, ira_max_register_move_cost)
8027         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8028         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8029         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8030         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8031         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8032         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8033         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8034         (ira_tune_allocno_costs_and_cover_classes): Rename to
8035         ira_tune_allocno_costs.
8036         (ira_debug_hard_regs_forest): New.
8037         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8038         (ira_object_conflict_iter_next): Fix comments.
8039         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8040         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8041         cover_class to aclass.
8042         (ira_allocate_and_accumulate_costs): Ditto.
8043         (ira_allocate_and_set_or_copy_costs): Ditto.
8045         * opts.c (decode_options): Remove ira_cover_class check.
8047         * ira-color.c: Remove mentioning cover classes from the file.  Use
8048         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8049         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8050         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8051         (splay-tree.h): Remove include.
8052         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8053         before copy_freq_compare_func.
8054         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8055         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8056         New definitions.
8057         (hard_regs_roots, hard_regs_node_vec): Ditto.
8058         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8059         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8060         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8061         (create_new_object_hard_regs_node): Ditto.
8062         (add_new_object_hard_regs_node_to_forest): Ditto.
8063         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8064         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8065         Ditto.
8066         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8067         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8068         (remove_unused_object_hard_regs_nodes): Ditto.
8069         (enumerate_object_hard_regs_nodes): Ditto.
8070         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8071         (object_hard_regs_subnode_t): Ditto.
8072         (struct object_hard_regs_subnode): Ditto.
8073         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8074         (setup_object_hard_regs_subnode_index): Ditto.
8075         (get_object_hard_regs_subnodes_num): Ditto.
8076         (form_object_hard_regs_nodes_forest): Ditto.
8077         (finish_object_hard_regs_nodes_tree): Ditto.
8078         (finish_object_hard_regs_nodes_forest): Ditto.
8079         (allocnos_have_intersected_live_ranges_p): Rename to
8080         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8081         (pseudos_have_intersected_live_ranges_p): Rename to
8082         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8083         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8084         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8085         (update_copy_costs): Remove assert.  Skip cost update if the hard
8086         reg does not belong the class.
8087         (assign_hard_reg): Process only profitable hard regs.
8088         (uncolorable_allocnos_num): Make it scalar.
8089         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8090         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8091         and ira_reg_class_max_nregs.
8092         (bucket_allocno_compare_func): Check frequency first.
8093         (sort_bucket): Add compare function as a parameter.
8094         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8095         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8096         (push_allocno_to_stack): Rewrite for checking new allocno
8097         colorability.
8098         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8099         (push_only_colorable): Pass new parameter to sort_bucket.
8100         (push_allocno_to_spill): Remove.
8101         (allocno_spill_priority_compare): Make it inline and rewrite.
8102         (splay_tree_allocate, splay_tree_free): Remove.
8103         (allocno_spill_sort_compare): New function.
8104         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8105         build and use splay tree.  Choose first allocno in uncolorable
8106         allocno bucket to spill.  Remove setting spill cost.
8107         (all_conflicting_hard_regs): Remove.
8108         (setup_allocno_available_regs_num): Check only profitable hard
8109         regs.  Print info about hard regs nodes.
8110         (setup_allocno_left_conflicts_size): Remove.
8111         (put_allocno_into_bucket): Don't call
8112         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8113         (improve_allocation): New.
8114         (color_allocnos): Call setup_profitable_hard_regs,
8115         form_object_hard_regs_nodes_forest, improve_allocation,
8116         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8117         (print_loop_title): Use pressure classes.
8118         (color_allocnso): Ditto.
8119         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8120         and allocnos_for_spilling.
8121         (ira_sort_regnos_for_alter_reg): Don't setup members
8122         {first,next}_coalesced_allocno.
8123         (color): Remove allocating and freeing removed_splay_allocno_vec.
8124         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8125         prohibited_class_mode_regs.
8127         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8128         formatting.
8129         (update_allocno_pressure_excess_length): Use pressure classes.
8130         (inc_register_pressure, dec_register_pressure): Check for pressure
8131         class.
8132         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8133         pressure class.  Use ira_reg_class_nregs instead of
8134         ira_reg_class_max_nregs.
8135         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8136         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8137         (single_reg_class): Use ira_reg_class_nregs instead of
8138         ira_reg_class_max_nregs.
8139         (process_bb_node_lives): Use pressure classes.
8141         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8142         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8143         (change_loop): Use pressure classes.
8144         (modify_move_list): Call ira_set_allocno_class instead of
8145         ira_set_allocno_cover_class.
8147         * ira-build.c: Remove mentioning cover classes from the file.  Use
8148         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8149         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8150         ALLOCNO_UPDATED_CLASS_COST instead of
8151         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8152         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8153         (ira_create_allocno): Remove initialization of
8154         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8155         ALLOCNO_COLORABLE_P.
8156         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8157         Update conflict regs for the objects.
8158         (create_cap_allocno): Remove assert.  Don't propagate
8159         ALLOCNO_AVAILABLE_REGS_NUM.
8160         (ira_free_allocno_costs): New function.
8161         (finish_allocno): Change a part of code into call of
8162         ira_free_allocno_costs.
8163         (low_pressure_loop_node_p): Use pressure classes.
8164         (object_range_compare_func): Don't compare classes.
8165         (setup_min_max_conflict_allocno_ids): Ditto.
8167         * loop-invariant.c: Remove mentioning cover classes from the file.
8168         Use ira_pressure_classes and ira_pressure_classes_num instead of
8169         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8170         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8171         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8172         Use reg_allocno_class instead of reg_cover_class.
8173         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8174         STACK_REG_COVER_CLASS.
8175         (get_regno_cover_class): Rename to get_regno_pressure_class.
8176         (move_loop_invariants): Initialize and finalize regstat.
8178         * ira.c: Remove mentioning cover classes from the file.  Add
8179         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8180         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8181         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8182         setup_class_subset_and_memory_move_costs.
8183         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8184         (setup_cover_and_important_classes): Rename to
8185         setup_allocno_and_important_classes.
8186         (setup_class_translate_array): New.
8187         (setup_class_translate): Call it for allocno and pressure classes.
8188         (cover_class_order): Rename to allocno_class_order.
8189         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8190         of ira_class_translate.
8191         (reorder_important_classes): Set up ira_important_class_nums.
8192         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8193         (print_class_cover): Rename to print_classes.  Add parameter.
8194         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8195         Print pressure classes too.
8196         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8197         setup_reg_subclasses.
8198         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8199         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8200         (setup_prohibited_class_mode_regs): Use
8201         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8202         (clarify_prohibited_class_mode_regs): New function.
8203         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8204         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8205         (ira_init_once): Initialize them.
8206         (free_register_move_costs): Process them.
8207         (ira_init): Move calls of find_reg_classes and
8208         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8209         Call clarify_prohibited_class_mode_regs.
8210         (ira_no_alloc_reg): Remove.
8211         (too_high_register_pressure_p): Use pressure classes.
8213         * sched-deps.c: Remove mentioning cover classes from the file.
8214         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8215         ira_pressure_classes and ira_pressure_classes_num instead of
8216         ira_reg_class_cover_size and ira_reg_class_cover.
8217         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8218         sched_regno_pressure_class instead of sched_regno_cover_class.
8219         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8220         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8222         * ira.h: Add 2010 to Copyright.
8223         (ira_no_alloc_reg): Remove external.
8224         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8225         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8226         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8227         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8228         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8229         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8230         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8231         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8232         x_ira_no_alloc_regs.
8233         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8234         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8235         ira_allocno_classes_num and ira_allocno_classes.
8236         (ira_class_translate): Rename to ira_allocno_class_translate.
8237         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8238         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8239         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8240         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8241         (ira_no_alloc_regs): New.
8243         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8244         classes from the file.  Use ALLOCNO_CLASS instead of
8245         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8246         ALLOCNO_COVER_CLASS_COST.
8247         (regno_cover_class): Rename to regno_aclass.
8248         (record_reg_classes): Use ira_reg_class_subunion instead of
8249         ira_reg_class_union.
8250         (record_address_regs): Check overflow.
8251         (scan_one_insn): Ditto.
8252         (print_allocno_costs): Print total mem cost fore regional allocation.
8253         (print_pseudo_costs): Use REG_N_REFS.
8254         (find_costs_and_classes): Use classes intersected with them on the
8255         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8256         ira_reg_class_union.  Use ira_allocno_class_translate and
8257         regno_aclass instead of ira_class_translate and regno_cover_class.
8258         Modify code for finding regno_aclass.  Setup preferred classes for
8259         the next pass.
8260         (setup_allocno_cover_class_and_costs): Rename to
8261         setup_allocno_class_and_costs.  Use regno_aclass instead of
8262         regno_cover_class.  Use ira_set_allocno_class instead of
8263         ira_set_allocno_cover_class.
8264         (init_costs, finish_costs): Use regno_aclass instead of
8265         regno_cover_class.
8266         (ira_costs): Use setup_allocno_class_and_costs instead of
8267         setup_allocno_cover_class_and_costs.
8268         (ira_tune_allocno_costs_and_cover_classes): Rename to
8269         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8270         by processing objects.  Use ira_reg_class_max_nregs instead of
8271         ira_reg_class_nregs.
8273         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8275         * sched-int.h: Remove mentioning cover classes from the file.
8276         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8278         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8279         classes from the file.
8280         (struct reg_pref): Rename coverclass into allocnoclass.
8281         (reg_cover_class): Rename to reg_allocno_class.
8283         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8285         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8287         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8289         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8291         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8293         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8295         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8297         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8299         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8301         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8303         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8304         (i386_ira_cover_classes): Ditto.
8306         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8308         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8310         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8312         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8314         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8316         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8318         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8319         (mips_ira_cover_classes): Ditto.
8321         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8323         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8325         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8327         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8329         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8331         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8332         (IRA_COVER_CLASSES_VSX): Ditto.
8334         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8335         (rs6000_ira_cover_classes): Ditto.
8337         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8339         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8341         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8343         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8345         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8347         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8349         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8351         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8353         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8355         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8357 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8359         PR debug/48253
8360         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8361         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8362         dw_fde_unlikely_section_end_label, cold_in_std_section,
8363         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8364         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8365         fields.
8366         (output_fde): Use dw_fde_second_{begin,end} if second is
8367         true, otherwise dw_fde_{begin,end}.
8368         (output_call_frame_info): Test dw_fde_second_begin != NULL
8369         instead of dw_fde_switched_sections.
8370         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8371         fields, initialize new fields.  Initialize in_std_section
8372         unconditionally from the first partition.
8373         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8374         dw_fde_second_begin is non-NULL.
8375         (dwarf2out_switch_text_section): Stop initializing removed
8376         dw_fde_struct fields, initialize new fields, initialize
8377         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8378         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8379         (struct var_loc_list_def): Add last_before_switch field.
8380         (arange_table, arange_table_allocated, arange_table_in_use,
8381         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8382         (size_of_aranges): Count !in_std_section and !second_in_std_section
8383         hunks in fdes, instead of looking at arange_table_in_use.
8384         (output_aranges): Add aranges_length argument, don't call
8385         size_of_aranges here.  Instead of using aranges_table*
8386         emit ranges for fdes when !in_std_section resp.
8387         !second_in_std_section.
8388         (dw_loc_list): Break ranges crossing section switch.
8389         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8390         use dw_fde_second_end instead of dw_fde_end as end of last range.
8391         (gen_subprogram_die): Don't call add_arange.  Use
8392         dw_fde_{begin,end} for first partition and if switched
8393         section dw_fde_second_{begin,end} for the second.
8394         (var_location_switch_text_section_1,
8395         var_location_switch_text_section): New functions.
8396         (dwarf2out_begin_function): Initialize cold_text_section even
8397         when function_section () isn't text_section.
8398         (prune_unused_types): Don't walk arange_table.
8399         (dwarf2out_finish): Don't needlessly test
8400         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8401         If info_section_emitted, call size_of_aranges and if it indicates
8402         non-empty .debug_aranges, call output_aranges with the computed
8403         size.  Stop using removed dw_fde_struct fields, use
8404         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8405         for second.
8407         PR debug/48203
8408         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8409         create ENTRY_VALUE if incoming or address of incoming's MEM
8410         is a hard REG.
8411         * dwarf2out.c (mem_loc_descriptor): Don't emit
8412         DW_OP_GNU_entry_value of DW_OP_fbreg.
8413         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8414         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8415         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8416         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8417         ENTRY_VALUE_EXPs.
8418         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8419         is a REG_P or MEM_P with REG_P address, compute hash directly
8420         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8421         (preserve_only_constants): Don't clear VALUES forwaring
8422         ENTRY_VALUE to some other VALUE.
8424 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8426         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8427         instead of GEN_INT.
8429 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8431         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8432         block before expanding the statement.
8433         (expand_gimple_stmt_1): Likewise.  Set them here...
8434         (expand_gimple_stmt): ...and not here.  Tidy.
8435         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8436         unknown.
8438 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8440         * Makefile.in: New rule for cprop.o.
8441         * gcse.c: Move constant/copy propagation to cprop.c.
8442         (compute_local_properties): Only handle expression tables.
8443         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8444         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8445         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8446         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8447         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8448         compute_cprop_data, find_used_regs, try_replace_reg,
8449         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8450         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8451         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8452         find_bypass_set, reg_killed_on_edge, bypass_block,
8453         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8454         execute_rtl_cprop, pass_rtl_cprop): Move to...
8455         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8456         moved from gcse.c to here with minor cleanups in duplicated code.
8458 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8460         * config/i386/i386.c (flag_opts): Fix a typo in
8461         -mavx256-split-unaligned-store.
8463 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8465         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8466         LIBCALL_VALUE): Remove macros.
8467         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8468         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8469         (h8300_function_value, h8300_libcall_value,
8470         h8300_function_value_regno_p): New functions.
8472 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8474         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8476 2011-03-28  Jeff Law  <law@redhat.com>
8478         * tree-ssa-threadupdate.c (redirect_edges): Call
8479         create_edge_and_update_destination_phis as needed.
8480         (create_edge_and_update_destination_phis): Accept new BB argument.
8481         All callers updated.
8482         (thread_block): Do not update the profile when threading around
8483         intermediate blocks.
8484         (thread_single_edge): Likewise.
8485         (determine_bb_domination_status): If BB is not a successor of the
8486         loop header, return NONDOMINATING.
8487         (register_jump_thread): Note when we register a jump thread around
8488         an intermediate block.
8489         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8490         (thread_across_edge): Use it.
8492 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8494         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8495         when for_return is 2.
8497 2011-03-28  Jeff Law  <law@redhat.com>
8499         * var-tracking.c (canonicalize_values_mark): Delete unused
8500         lhs assignment.
8501         (canonicalize_values_star, set_variable_part): Likewise.
8502         (clobber_variable_part, delete_variable_part): Likewise.
8504 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8506         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8508 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8510         * tree-inline.c (expand_call_inline): Do not check that destination
8511         node is analyzed.
8512         (optimize_inline_calls): Assert that destination node is analyzed.
8513         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8514         not call tree_lowering_passes.
8515         * cgraph.h (cgraph_analyze_function): Declare.
8516         * cgraphunit.c (cgraph_analyze_function): Make public.
8518 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8520         * config/sparc/sparc-opts.h: New.
8521         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8522         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8523         (sparc_option_override): Store processor_type enumeration rather
8524         than string in cpu_default.  Remove name and enumeration from
8525         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8526         without using sparc_select.  Use target_flags_explicit instead of
8527         fpu_option_set.
8528         * config/sparc/sparc.h (enum processor_type): Move to
8529         sparc-opts.h.
8530         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8531         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8532         HeaderInclude entry.
8533         (mcpu=, mtune=): Use Var and Enum.
8534         (sparc_processor_type): New Enum and EnumValue entries.
8536 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8537             Iain Sandoe  <iains@gcc.gnu.org>
8539         PR target/48245
8540         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8542 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8544         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8545         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8546         Insert new statements at it in lieu of STMT.
8547         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8548         * tree-vect-stmts.c (vectorizable_store): Likewise.
8549         (vectorizable_load): Likewise.
8551 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8553         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8554         (divtf3): Ditto.
8555         (multf3): Ditto.
8556         (subtf3): Ditto.
8558 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8560         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8561         unaligned 256bit load/store.
8562         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8563         (*avx_movdqu<avxmodesuffix>): Likewise.
8565 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8567         PR target/48288
8568         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8569         * config/pa/pa.md (iordi3): Use new predicate in expander.
8570         (iorsi3): Likewise.
8572 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8574         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8575         FUNCTION_VALUE_REGNO_P): Remove macros.
8576         * config/mips/mips-protos.h (mips_function_value): Remove.
8577         * config/mips/mips.c (mips_function_value): Rename to...
8578         (mips_function_value_1): ... this. Make static.  Handle receiving
8579         the function type in 'fn_decl_or_type' argument.
8580         (mips_function_value, mips_libcall_value,
8581         mips_function_value_regno_p): New function.
8582         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8583         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8585 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8587         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8588         and -mavx256-split-unaligned-store.
8589         (ix86_option_override_internal): Split 32-byte AVX unaligned
8590         load/store by default.
8591         (ix86_avx256_split_vector_move_misalign): New.
8592         (ix86_expand_vector_move_misalign): Use it.
8594         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8595         -mavx256-split-unaligned-store.
8597         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8598         256bit load/store.  Generate unaligned store on misaligned memory
8599         operand.
8600         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8601         256bit load/store.
8602         (*avx_movdqu<avxmodesuffix>): Likewise.
8604         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8605         -mavx256-split-unaligned-store.
8607 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8609         PR target/38598
8610         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8611         Update commentary.
8613 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8615         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8616         opno arguments with an expand_operand.  Use create_input_operand.
8617         (mips_prepare_builtin_target): Delete.
8618         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8619         functions.
8620         (mips_expand_builtin_direct): Use create_output_operand and
8621         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8622         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8623         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8625 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8627         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8628         function.
8629         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8631 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8633         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8634         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8635         basic blocks and call commit_edge_insertions directly.
8636         (fixup_abnormal_edges): Move from here to...
8637         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8638         on the edges and return whether some have actually been inserted.
8639         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8640         compensation code.
8642 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8644         PR rtl-optimization/48144
8645         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8646         (merge_expr_data): ... here.
8647         (av_set_intersect): Rename to av_set_code_motion_filter.
8648         Update all callers.  Call merge_history_vect when an expression
8649         is found in both sets.
8650         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8652 2011-03-26  Alan Modra  <amodra@gmail.com>
8654         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8655         cmodel medium addresses.
8656         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8657         64-bit gpr loads and stores.
8658         (rs6000_secondary_reload_ppc64): New function.
8659         * config/rs6000/rs6000-protos.h: Declare it.
8660         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8662 2011-03-26  Alan Modra  <amodra@gmail.com>
8664         PR target/47487
8665         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8666         GNU Go in traceback table.
8668 2011-03-25  Richard Henderson  <rth@redhat.com>
8670         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8671         if there are exactly 6 operands.
8672         (set_storage_via_setmem): Similarly.
8674 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8676         * collect2.c (write_c_file_stat): Handle backslash
8677         as right-hand directory separator.
8678         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8679         checking just for slash.
8680         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8681         instead of checking for trailing slash.
8682         * gcc.c (record_temp_file): Use filename_cmp instead
8683         of strcmp.
8684         (do_spec_1): Likewise.
8685         (replace_outfile_spec_function): Likewise.
8686         (is_directory): Use filename_ncmp instead of strncmp.
8687         (print_multilib_info): Likewise.
8688         * gcov.c (find_source): Use filename_cmp instead
8689         instead of strcmp.
8690         (make_gcov_file_name): Fix order of slash/backslash
8691         checks.
8692         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8693         (add_standard_paths): Likewise.
8694         * mips-tfile.c (saber_stop): Handle backslash.
8695         * prefix.c (update_path): Use filename_ncmp instead of
8696         strncmp.
8697         * profile.c (output_location): Use filename_cmp instead
8698         of strcmp.
8699         * read-md.c (handle_toplevel_file): Handle backslash.
8700         * tlink.c (frob_extension):  Likewise.
8701         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8702         strcmp.
8703         * tree-dump.c (dequeue_and_dump): Handle backslash.
8704         * tree.c (get_file_function_name): Likewise.
8705         * gengtype.c (read_input_list): Likewise.
8706         (get_file_realbasename): Likewise.
8707         (get_output_file_with_visibility): Use filename_cmp
8708         instead of strcmp.
8710 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8712         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8713         case to VFPv1.
8715 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8717         * fold-const.c (expr_location_or): New function.
8718         (fold_truth_not_expr): Call it.
8720 2011-03-25  Jeff Law  <law@redhat.com>
8722         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8723         va_end.
8724         * c-family/c-common.c (def_fn_type): Likewise.
8725         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8726         * emit-rtl.c (gen_rtvec): Likewise.
8727         * lto/lto-lang.c (def_fn_type): Likewise.
8729 2011-03-25  Richard Guenther  <rguenther@suse.de>
8731         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8732         also generate copies.
8733         (fini_copy_prop): Handle constant values properly.
8735 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8737         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8738         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8739         (hash_loc_operands, compare_loc_operands): Handle
8740         DW_OP_GNU_entry_value.
8742 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8744         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8745         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8746         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8747         comment and use macro TARGET_64BIT_MS_ABI instead.
8748         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8749         and change default behavior for 32-bit MS_ABI.
8750         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8751         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8752         32-bit, too.
8753         (ix86_cfun_abi): Likewise.
8754         (ix86_maybe_switch_abi): Adjust comment.
8755         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8756         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8757         instead of checking for SYSV_ABI.
8758         (ix86_nsaved_sseregs): Likewise.
8759         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8760         to 16 bytes.
8761         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8762         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8763         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8764         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8765         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8767 2011-03-25  Richard Guenther  <rguenther@suse.de>
8769         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8770         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8771         (verify_gimple): Remove.
8772         * tree-cfg.c (verify_gimple_call): Merge verification
8773         from verify_stmts.
8774         (verify_gimple_phi): Merge verification from verify_stmts.
8775         (verify_gimple_label): New function.
8776         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8777         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8778         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8779         (verify_stmts): Rename to verify_gimple_in_cfg.
8780         (verify_gimple_in_cfg): New function.
8781         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8782         * tree-ssa.c (verify_ssa): Likewise.
8783         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8785 2011-03-25  Richard Guenther  <rguenther@suse.de>
8787         * passes.c (init_optimization_passes): Add FRE pass after
8788         early SRA.
8790 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8791             Andrew Stubbs  <ams@codesourcery.com>
8793         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8794         for Cortex-A8.
8795         (arm_movdi_vfp_cortexa8): New pattern.
8796         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8797         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8798         instructions when tuning for Cortex-A8.  Set attribute "arch".
8799         * config/arm/arm.md: Move include arm-tune.md up a bit.
8800         (define_attr "arch"): Add "onlya8" and "nota8" values.
8801         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8803 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8805         PR bootstrap/48282
8806         Revert:
8807         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8809         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8810         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8811         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8812         * passes.c (init_optimization_passes): Move
8813         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8815 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8817         * c-typeck.c (comptypes_internal): Replace target
8818         hook call of comp_type_attributes by version in tree.c file.
8819         * gimple.c (gimple_types_compatible_p_1): Likewise.
8820         * tree-ssa.c (useless_type_conversion_p): Likewise.
8821         * tree.c (build_type_attribute_qual_variant): Likewise.
8822         (attribute_value_equal): New static helper function.
8823         (comp_type_attributes): New function.
8824         (merge_attributes): Use attribute_value_equal for comparison.
8825         (attribute_list_contained): Likewise.
8826         * tree.h (comp_type_attributes): New prototype.
8828 2011-03-25  Richard Guenther  <rguenther@suse.de>
8830         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8831         of complex types at -O0.
8832         (verify_gimple_assign_binary): Likewise.
8833         (verify_gimple_assign_ternary): Likewise.
8835 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8837         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8838         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8840 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8842         PR debug/48041
8843         * dwarf2out.c (output_abbrev_section): Only write table when
8844         abbrev_die_table_in_use > 1.
8846 2011-02-24  Richard Henderson  <rth@redhat.com>
8848         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8849         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8850         (alpha_expand_unaligned_load_words): Use extql.
8851         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8852         (emit_insxl): Handle all modes for consistency.
8854 2011-02-24  Richard Henderson  <rth@redhat.com>
8856         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8857         (alpha_expand_unaligned_load): Likewise.
8858         (alpha_expand_unaligned_store): Likewise.
8859         (alpha_expand_unaligned_load_words): Likewise.
8860         (alpha_expand_unaligned_store_words): Likewise.
8861         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8862         (alpha_split_lock_test_and_set_12): Likewise.
8863         (print_operand, alpha_fold_builtin_extxx): Likewise.
8864         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8865         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8866         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8867         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8868         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8869         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8870         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8871         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8872         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8873         (extwl, extll, extql): Similarly.
8874         (inswh, inslh, insqh): Similarly.
8875         (mskbl, mskwl, mskll, mskql): Similarly.
8876         (mskwh, msklh, mskqh): Similarly.
8878 2011-02-24  Richard Henderson  <rth@redhat.com>
8880         * config/alpha/alpha.md (attribute isa): Add er, ner.
8881         (attribute enabled): Handle them.
8882         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8884 2011-02-24  Richard Henderson  <rth@redhat.com>
8886         * config/alpha/alpha.md (attribute isa): Add vms.
8887         (attribute enabled): Handle it.
8888         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8889         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8890         (*movtf): Rename from *movtf_internal for consistency.
8891         (*movsi): Merge with *movsi_nt_vms.
8892         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8893         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8894         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8895         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8897 2011-02-24  Richard Henderson  <rth@redhat.com>
8899         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8900         (extendqisi2, extendhisi2): Likewise.
8901         (extendqidi2): Simplify BWX/non-BWX expansions.
8902         (extendhidi2): Similarly.
8904 2011-02-24  Richard Henderson  <rth@redhat.com>
8906         * config/alpha/alpha.md (attribute isa): New.
8907         (attribute enabled): New.
8908         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8909         (zero_extendqisi2, zero_extendqidi2): Similarly.
8910         (zero_extendhisi2, zero_extendhidi2): Similarly.
8911         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8913 2011-02-24  Richard Henderson  <rth@redhat.com>
8915         * config/alpha/predicates.md (input_operand): Revert last change;
8916         update comment to mention 32-bit VMS rather than Windows.
8918 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8920         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8921         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8922         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8923         * passes.c (init_optimization_passes): Move
8924         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8926 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8928         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8930 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8932         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8933         correctly.
8935 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8937         PR debug/48204
8938         * simplify-rtx.c (simplify_const_unary_operation): Call
8939         real_convert when changing mode class with FLOAT_EXTEND.
8941 2011-03-24  Nick Clifton  <nickc@redhat.com>
8943         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8944         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8945         * config/rx/rx.c (rx_option_override): Set align_jumps,
8946         align_loops and align_labels if not set by the user.
8947         (rx_align_for_label): New function.
8948         (rx_max_skip_for_label): New function.
8949         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8950         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8951         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8952         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8953         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8955 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8957         PR rtl-optimization/48263
8958         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8959         and original commutative_p handling.  Use maybe_gen_insn.
8961 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8963         * reload.c (find_reloads_subreg_address): Add address_reloaded
8964         parameter and return true there if the full address has been
8965         reloaded.
8966         (find_reloads_toplev): Pass address_reloaded flag.
8967         (find_reloads_address_1): Don't use address_reloaded parameter.
8969 2011-03-24  Jeff Law  <law@redhat.com>
8971         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8972         unused variable "ann".
8973         (remove_unused_locals): Likewise.
8975         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8976         statement.
8978         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8979         after it is freed.
8981 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8983         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8984         for invalid symbolic addresses.
8985         (s390_secondary_reload): Don't use s390_check_symref_alignment for
8986         larl operands.
8988 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8990         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8991         the argument in calls to fold_truth_not_expr.
8993 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8995         * tree.c (record_node_allocation_statistics): New function.
8996         (make_node_stat, copy_node_stat, build_string): Call it.
8997         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8998         (build1_stat, build_omp_clause): Likewise.
9000 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9002         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9003         last commit.
9005 2011-03-24  Richard Guenther  <rguenther@suse.de>
9007         PR tree-optimization/48271
9008         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9009         blocks that still exist.
9011 2011-03-24  Richard Guenther  <rguenther@suse.de>
9013         PR tree-optimization/48270
9014         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9015         not free datarefs before ddrs.
9017 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9019         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9020         from the address built for a reference with variable offset.
9022 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9024         PR target/48237
9025         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9026         alternatives that can be handled with movq or movabsq insn.
9027         (*movdf_internal): Disable for !TARGET_64BIT.
9028         (*movdf_internal_nointeger): Ditto.
9029         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9031 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9033         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9034         (FUNCTION_ARG_ADVANCE): Likewise.
9035         * tm.texi.in: Change references to them to hook references.
9036         * tm.texi: Regenerate.
9037         * targhooks.c (default_function_arg): Eliminate check for target macro.
9038         (default_function_incoming_arg): Likewise.
9039         (default_function_arg_advance): Likewise.
9040         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9041         (function_arg_advance): Likewise.
9042         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9044 2011-03-24  Richard Guenther  <rguenther@suse.de>
9046         PR middle-end/48269
9047         * tree-object-size.c (addr_object_size): Do not double-account
9048         for MEM_REF offsets.
9050 2011-03-24  Diego Novillo  <dnovillo@google.com>
9052         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9053         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9054         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9055         Update all users.
9056         (lto_input_string): Rename from input_string.  Make extern.
9057         Update all users.
9058         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9059         output_string_with_length.
9060         Output 0 to indicate a non-NULL string.  Update all callers to
9061         not emit 0.
9062         (lto_output_string): Rename from output_string.  Make extern.
9063         Update all users.
9064         (lto_output_decl_state_streams): Make extern.
9065         (lto_output_decl_state_refs): Make extern.
9066         * lto-streamer.h (lto_input_string): Declare.
9067         (lto_input_data_block): Declare.
9068         (lto_output_string): Declare.
9069         (lto_output_string_with_length): Declare.
9070         (lto_output_decl_state_streams): Declare.
9071         (lto_output_decl_state_refs): Declare.
9073 2011-03-24  Richard Guenther  <rguenther@suse.de>
9075         PR tree-optimization/46562
9076         * tree.c (build_invariant_address): New function.
9077         * tree.h (build_invariant_address): Declare.
9078         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9079         a renamed function moved ...
9080         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9081         Take valueization callback parameter.
9082         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9083         * gimple-fold.h: New file.
9084         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9085         (ccp_fold, fold_const_aggregate_ref,
9086         fold_ctor_reference, fold_nonarray_ctor_reference,
9087         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9088         get_base_constructor): Move ...
9089         * gimple-fold.c: ... here.
9090         (gimple_fold_stmt_to_constant_1): New function
9091         split out from ccp_fold.  Take a valueization callback parameter.
9092         Valueize all operands.
9093         (gimple_fold_stmt_to_constant): New wrapper function.
9094         (fold_const_aggregate_ref_1): New function split out from
9095         fold_const_aggregate_ref.  Take a valueization callback parameter.
9096         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9097         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9098         invariant POINTER_PLUS_EXPRs to invariant form.
9099         (vn_valueize): New function.
9100         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9101         * tree-vrp.c (vrp_valueize): New function.
9102         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9103         to fold statements to constants.
9104         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9105         function declarations.
9106         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9107         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9109 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9111         * config/h8300/predicates.md (jump_address_operand): Fix register
9112         mode check.
9114 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9116         * doc/invoke.texi (max-stores-to-sink): Document.
9117         * params.h (MAX_STORES_TO_SINK): Define.
9118         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9119         if either vectorization or if-conversion is disabled.
9120         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9121         tree-vect-data-refs.c vect_equal_offsets.
9122         (dr_equal_offsets_p): New function.
9123         (find_data_references_in_bb): Remove static.
9124         * tree-data-ref.h (find_data_references_in_bb): Declare.
9125         (dr_equal_offsets_p): Likewise.
9126         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9127         (vect_drs_dependent_in_basic_block): Update calls to
9128         vect_equal_offsets.
9129         (vect_check_interleaving): Likewise.
9130         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9131         (cond_if_else_store_replacement): Rename to...
9132         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9133         documentation.
9134         (cond_if_else_store_replacement): New function.
9135         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9136         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9138 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9140         PR target/46934
9141         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9142         to subtract lower bound instead of GEN_INT().
9144 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9146         PR other/48179
9147         PR other/48221
9148         PR other/48234
9149         * doc/extend.texi (Alignment): Move section to match order in TOC.
9150         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9151         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9153 2011-03-23  Jeff Law  <law@redhat.com>
9155         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9156         before removing the edge.
9158         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9159         it may have been freed by redirect_branch_edge or
9160         redirect_edge_succ_nodup.
9162 2011-03-23  Richard Guenther  <rguenther@suse.de>
9164         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9165         (check_va_list_escapes): Likewise.
9166         (check_all_va_list_escapes): Likewise.
9168 2011-03-23  Richard Guenther  <rguenther@suse.de>
9170         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9171         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9172         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9173         (alias.o): Likewise.
9174         (ipa-type-escape.o): Remove.
9175         (ipa-struct-reorg.o): Likewise.
9176         (GTFILES): Remove ipa-struct-reorg.c.
9177         * alias.c: Do not include ipa-type-escape.h.
9178         * tree-ssa-alias.c: Likewise.
9179         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9180         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9181         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9182         and ipa-type-escape passes.
9183         * tree-pass.h (pass_ipa_type_escape): Remove.
9184         (pass_ipa_struct_reorg): Likewise.
9185         * ipa-struct-reorg.h: Remove.
9186         * ipa-struct-reorg.c: Likewise.
9187         * ipa-type-escape.h: Likewise.
9188         * ipa-type-escape.c: Likewise.
9189         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9190         (--param struct-reorg-cold-struct-ratio): Likewise.
9191         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9192         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9193         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9195 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9197         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9198         cpu attribute value.
9199         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9200         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9201         * config/s390/s390.c (processor_flags_table): New constant array.
9202         (s390_handle_arch_option): Remove.
9203         (s390_handle_option): Remove s390_handle_arch_option invocations
9204         and OPT_mwarn_framesize_ handling.
9205         (s390_option_override): Remove s390_handle_arch_option invocation.
9206         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9207         warnings.
9208         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9209         * config/s390/s390.opt (s390_tune, s390_arch)
9210         (march=): Replace s390_arch_option enum and values with
9211         processor_type.  Set variable name to s390_arch.  Set
9212         initialization value.
9213         (mtune=): Replace s390_arch_option with processor_type.  Set
9214         variable name to s390_tune.  Set initialization value.
9216 2011-03-23  Julian Brown  <julian@codesourcery.com>
9218         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9219         accesses which are not naturally aligned.
9221 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9223         PR target/47553
9224         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9226 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9228         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9229         parameter from "int" to "enum insn_code".
9230         (expand_operand_type): New enum.
9231         (expand_operand): New structure.
9232         (create_expand_operand): New function.
9233         (create_fixed_operand, create_output_operand): Likewise
9234         (create_input_operand, create_convert_operand_to): Likewise.
9235         (create_convert_operand_from, create_address_operand): Likewise.
9236         (create_integer_operand): Likewise.
9237         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9238         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9239         (expand_insn, expand_jump_insn): Likewise.
9240         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9241         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9242         (expand_movstr, expand_builtin___clear_cache): Likewise.
9243         (expand_builtin_lock_release): Likewise.
9244         * explow.c (allocate_dynamic_stack_space): Likewise.
9245         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9246         and use the default handling in that case.
9247         * expmed.c (check_predicate_volatile_ok): Delete.
9248         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9249         (emit_cstore): Likewise.
9250         * expr.c (emit_block_move_via_movmem): Likewise.
9251         (set_storage_via_setmem, expand_assignment): Likewise.
9252         (emit_storent_insn, try_casesi): Likewise.
9253         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9254         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9255         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9256         (expand_twoval_unop, expand_twoval_binop): Likewise.
9257         (expand_unop_direct, emit_indirect_jump): Likewise.
9258         (emit_conditional_move, vector_compare_rtx): Likewise.
9259         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9260         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9261         (expand_sync_lock_test_and_set): Likewise.
9262         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9263         (emit_unop_insn): Likewise.
9264         (expand_copysign_absneg): Change icode to an insn_code.
9265         (create_convert_operand_from_type): New function.
9266         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9267         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9268         (expand_insn, expand_jump_insn): Likewise.
9269         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9270         than const_int_operand for operand 2.
9272 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9274         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9275         if possible.
9277 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9279         * emit-rtl.c (emit_pattern_before_noloc): New function.
9280         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9281         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9282         (emit_pattern_after_noloc): New function.
9283         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9284         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9286 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9288         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9289         (__ffsDI2): Likewise.
9291 2011-03-22  Richard Henderson  <rth@redhat.com>
9293         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9294         of !TARGET_ABI_OPEN_VMS.
9295         (alpha_trampoline_init, alpha_start_function): Likewise.
9296         (alpha_expand_epilogue, alpha_file_start): Likewise.
9297         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9298         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9299         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9300         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9301         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9303 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9305         * config/s390/s390-opts.h: New.
9306         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9307         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9308         s390_stack_guard): Remove.
9309         (s390_handle_arch_option): Return void.  Take enum
9310         s390_arch_option value instead of string and searching array.
9311         (s390_handle_option): Don't assert that global structures are in
9312         use.  Access variables via opts pointer.  Use error_at.  Don't use
9313         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9314         s390_handle_arch_option.
9315         (s390_option_override): Update call to s390_handle_arch_option.
9316         (s390_emit_prologue): Use %d format for s390_stack_size in
9317         diagnostic.  Use %wd for HOST_WIDE_INT.
9318         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9319         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9320         * config/s390/s390.opt (config/s390/s390-opts.h): New
9321         HeaderInclude entry.
9322         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9323         s390_arch_flags, s390_warn_framesize): New Variable entries.
9324         (s390_arch_option): New Enum and EnumValue entries.
9325         (march=): Use Enum instead of Var.
9326         (mstack-guard=, mstack-size=): Use UInteger and Var.
9327         (mtune=): Use Enum.
9329 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9331         * config/score/score.c (score_handle_option): Don't assert that
9332         global structures are in use.  Access target_flags via opts
9333         pointer.  Use value of -march= option to determine target_flags
9334         settings.
9335         * config/score/score.opt (march=): Use Enum.
9336         (score_arch): New Enum and EnumValue entries.
9338 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9340         * config/mep/mep.c (option_mtiny_specified): Remove.
9341         (mep_option_override): Move register handling for -mivc2 from
9342         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9343         instead of option_mtiny_specified.
9344         (mep_handle_option): Access target_flags via opts pointer.  Don't
9345         assert that global structures are in use.  Defer part of -mivc2
9346         handling and move it to mep_option_override.
9347         * config/mep/mep.opt (IVC2): New Mask entry.
9348         (mivc2): Use Var and Defer instead of Mask.
9350 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9352         * config/v850/v850-opts.h: New.
9353         * config/v850/v850.c (small_memory): Replace with
9354         small_memory_physical_max array.  Make that array static const.
9355         (v850_handle_memory_option): Take integer value of argument.  Take
9356         gcc_options pointer, option text and location.  Return void.
9357         Update for changes to small memory structures.
9358         (v850_handle_option): Access target_flags via opts pointer.  Don't
9359         assert that global structures are in use.  Update calls to
9360         v850_handle_memory_option.
9361         (v850_encode_data_area): Update references to small memory settings.
9362         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9363         (enum small_memory_type): Move to v850-opts.h.
9364         * config/v850/v850.opt (config/v850/v850-opts.h): New
9365         HeaderInclude entry.
9366         (small_memory_max): New Variable entry.
9367         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9368         (mtda, mzda): Likewise.
9370 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9372         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9373         pointer.  Don't assert that global structures are in use.
9375 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9377         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9378         via opts pointer.  Don't assert that global structures are in use.
9380 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9382         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9383         (munix=93): Use Var.
9384         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9385         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9386         * config/pa/pa-opts.h: New.
9387         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9388         (pa_handle_option): Don't assert that global structures are in
9389         use.  Access target_flags via opts pointer.  Don't handle
9390         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9391         OPT_munix_98 here.
9392         (pa_option_override): Handle deferred OPT_mfixed_range_.
9394 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9396         * config/mn10300/mn10300-opts.h: New.
9397         * config/mn10300/mn10300.c (mn10300_processor,
9398         mn10300_tune_string): Remove.
9399         (mn10300_handle_option): Don't assert that global structures are
9400         in use.  Access mn10300_processor via opts pointer.  Don't handle
9401         OPT_mtune_ here.
9402         * config/mn10300/mn10300.h (enum processor_type): Move to
9403         mn10300-opts.h.
9404         (mn10300_processor): Remove.
9405         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9406         HeaderInclude entry.
9407         (mn10300_processor): New Variable entry.
9408         (mtune=): Use Var.
9410 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9412         * config/microblaze/microblaze.c: Don't include opts.h.
9413         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9414         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9415         (mno-clearbss): Use Var and Warn.
9417 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9419         * config/m32r/m32r-opts.h: New.
9420         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9421         (m32r_handle_option): Don't assert that global structures are in
9422         use.  Access target_flags and m32r_cache_flush_func via opts
9423         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9424         OPT_mno_flush_trap here.
9425         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9426         include of m32r-opts.h.
9427         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9428         HeaderInclude entry.
9429         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9430         (mmodel=): Use Enum and Var.
9431         (m32r_model): New Enum and EnumValue entries.
9432         (mno-flush-trap): Use Var.
9433         (msdata=): Use Enum and Var.
9434         (m32r_sdata): New Enum and EnumValue entries.
9436 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9438         * config/m32c/m32c.c: Don't include opts.h.
9439         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9440         m32c_handle_option): Remove.
9441         (m32c_option_override): Check global_options_set.x_target_memregs
9442         instead of target_memregs_set.
9443         * config/m32c/m32c.h (target_memregs): Remove.
9444         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9445         variable.
9447 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9449         * config/iq2000/iq2000-opts.h: New.
9450         * config/iq2000/iq2000.c: Don't include opts.h.
9451         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9452         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9453         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9454         HeaderInclude entry.
9455         (iq2000_tune): New Variable entry.
9456         (march=): Add comment.  Use Enum.
9457         (iq2000_arch): New Enum and EnumValue entries.
9458         (mcpu=): Use Enum and Var.
9459         (iq2000_tune): New Enum and EnumValue entries.
9461 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9463         * config/ia64/ia64-opts.h: New.
9464         * config/ia64/ia64.c (ia64_tune): Remove.
9465         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9466         here.  Use error_at.
9467         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9468         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9469         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9470         HeaderInclude entry.
9471         (ia64_tune): New Variable entry.
9472         (mfixed-range=): Use Defer and Var.
9473         (mtune=): Use Enum and Var.
9474         (ia64_tune): New Enum and EnumValue entries.
9476 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9478         * config/frv/frv-opts.h: New.
9479         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9480         frv-opts.h.
9481         (frv_cpu_type): Remove.
9482         * config/frv/frv.c: Don't include opts.h.
9483         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9484         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9485         (frv_cpu_type): New Variable entry.
9486         (frv_cpu): New Enum and EnumValue entries.
9488 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9490         * config/cris/cris.c (cris_handle_option): Access target_flags via
9491         opts pointer.  Don't assert that global structures are in use.
9492         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9493         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9495 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9497         * config/bfin/bfin-opts.h: New.
9498         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9499         bfin_si_revision, bfin_workarounds): Remove.
9500         (bfin_cpus): Make static const.
9501         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9502         not bfin_lib_id_given.
9503         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9504         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9505         pointer. Use error_at.  Don't assert that global structures are in use.
9506         * config/bfin/bfin.h: Include bfin-opts.h.
9507         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9508         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9509         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9510         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9511         entries.
9513 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9515         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9516         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9517         or -msoft-float here.
9518         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9519         -msoft-float and -mhard-float.
9520         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9521         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9522         msoft-float.
9523         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9524         -msoft-float.
9525         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9526         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9527         not mhard-float.
9528         (LIBGCC_SPEC): Don't handle -msoft-float.
9529         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9530         -mhard-float.
9531         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9532         msoft-float.
9533         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9534         -mfloat-abi=*, not -msoft-float and -mhard-float.
9535         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9536         -msoft-float.
9537         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9538         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9539         mhard-float and msoft-float.
9540         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9541         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9542         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9543         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9544         mhard-float.
9545         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9546         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9547         msoft-float.
9548         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9549         not mhard-float.
9550         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9551         not msoft-float.
9553 2011-03-22  Richard Henderson  <rth@redhat.com>
9555         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9556         TARGET_ABI_WINDOWS_NT.
9557         (alpha_output_function_end_prologue): Likewise.
9558         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9559         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9560         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9561         (trap, *movsi_nt_vms): Likewise.
9562         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9563         (*tablejump_osf_nt_internal): Remove.
9564         * config/alpha/predicates.md (input_operand): Only test Pmode.
9566 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9568         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9569         via opts pointer.  Use error_at.  Don't assert that global
9570         structures are in use.
9572 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9574         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9575         (ix86_handle_option): Access ix86_isa_flags and
9576         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9577         global structures are in use.
9578         (ix86_function_specific_save, ix86_function_specific_restore):
9579         Update ix86_isa_flags_explicit field name.
9580         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9581         (ix86_isa_flags_explicit): Rename TargetSave entry to
9582         x_ix86_isa_flags_explicit.
9584 2011-03-22  Richard Henderson  <rth@redhat.com>
9586         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9587         (alpha_option_override, direct_return): Likewise.
9588         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9589         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9590         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9591         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9592         (alpha_expand_epilogue, alpha_end_function): Likewise.
9593         (alpha_init_libfuncs): Likewise.
9594         (struct machine_function): Remove unicosmk members.
9595         (print_operand) ['t']: Remove.
9596         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9597         unicosmk_output_module_name, unicosmk_output_common,
9598         current_section_align, unicosmk_output_text_section_asm_op,
9599         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9600         unicosmk_section_type_flags, unicosmk_unique_section,
9601         unicosmk_asm_named_section, unicosmk_insert_attributes,
9602         unicosmk_output_align, unicosmk_defer_case_vector,
9603         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9604         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9605         unicosmk_output_ssib, unicosmk_add_call_info_word,
9606         unicosmk_extern_head, unicosmk_output_default_externs,
9607         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9608         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9609         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9610         * config/alpha/alpha-protos.h: Update.
9611         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9612         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9613         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9614         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9615         (*mulsi_se, mulvsi3): Likewise.
9616         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9617         (*divmodsi_internal, call, call_value, realign): Likewise.
9618         (moddi3, umoddi3): Likewise; remove duplicate expander.
9619         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9620         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9621         (*movdi_nofix): Remove r/U alternative.
9622         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9623         * config/alpha/constraints.md ("U"): Remove.
9624         * config/alpha/predicates.md (call_operand"): Don't test
9625         TARGET_ABI_UNICOSMK.
9627 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9629         * target.def (handle_option): Take gcc_options and
9630         cl_decoded_option pointers and location_t.
9631         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9632         * doc/tm.texi: Regenerate.
9633         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9634         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9635         * lto-opts.c (lto_reissue_options): Generate option structure for
9636         targetm.handle_option call.
9637         * opts.c (target_handle_option): Update call to
9638         targetm.handle_option.  Remove assertions about values now passed
9639         down to hook.
9640         * targhooks.c (default_target_handle_option): New.
9641         * targhooks.h (default_target_handle_option): Declare.
9642         * config/alpha/alpha.c: Include opts.h.
9643         (alpha_handle_option): Update to new hook interface.
9644         * config/arm/arm.c: Include opts.h.
9645         (arm_handle_option): Update to new hook interface.
9646         * config/arm/t-arm (arm.o): Update dependencies.
9647         * config/bfin/bfin.c: Include opts.h.
9648         (bfin_handle_option): Update to new hook interface.
9649         * config/cris/cris.c: Include opts.h.
9650         (cris_handle_option): Update to new hook interface.
9651         * config/frv/frv.c: Include opts.h.
9652         (frv_handle_option): Update to new hook interface.
9653         * config/i386/i386.c: Include opts.h.
9654         (ix86_handle_option): Update to new hook interface.
9655         (ix86_valid_target_attribute_inner_p): Generate option structure
9656         for call to ix86_handle_option.
9657         * config/i386/t-i386 (i386.o): Update dependencies.
9658         * config/ia64/ia64.c: Include opts.h.
9659         (ia64_handle_option): Update to new hook interface.
9660         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9661         * config/iq2000/iq2000.c: Include opts.h.
9662         (iq2000_handle_option): Update to new hook interface.
9663         * config/m32c/m32c.c: Include opts.h.
9664         (m32c_handle_option): Update to new hook interface.
9665         * config/m32r/m32r.c: Include opts.h.
9666         (m32r_handle_option): Update to new hook interface.
9667         * config/m68k/m68k.c: Include opts.h.
9668         (m68k_handle_option): Update to new hook interface.
9669         * config/mep/mep.c: Include opts.h.
9670         (mep_handle_option): Update to new hook interface.
9671         * config/microblaze/microblaze.c: Include opts.h.
9672         (microblaze_handle_option): Update to new hook interface.
9673         * config/mips/mips.c: Include opts.h.
9674         (mips_handle_option): Update to new hook interface.
9675         * config/mn10300/mn10300.c: Include opts.h.
9676         (mn10300_handle_option): Update to new hook interface.
9677         * config/pa/pa.c: Include opts.h.
9678         (pa_handle_option): Update to new hook interface.
9679         * config/pdp11/pdp11.c: Include opts.h.
9680         (pdp11_handle_option): Update to new hook interface.
9681         * config/rs6000/rs6000.c: Include opts.h.
9682         (rs6000_handle_option): Update to new hook interface.
9683         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9684         * config/rx/rx.c: Include opts.h.
9685         (rx_handle_option): Update to new hook interface.
9686         * config/s390/s390.c: Include opts.h.
9687         (s390_handle_option): Update to new hook interface.
9688         * config/score/score.c: Include opts.h.
9689         (score_handle_option): Update to new hook interface.
9690         * config/sh/sh.c: Include opts.h.
9691         (sh_handle_option): Update to new hook interface.
9692         * config/sparc/sparc.c: Include opts.h.
9693         (sparc_handle_option): Update to new hook interface.
9694         * config/v850/v850.c: Include opts.h.
9695         (v850_handle_option): Update to new hook interface.
9697 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9699         * gcc.c (driver_unknown_option_callback): Only permit and save
9700         unknown -Wno- options.
9701         (driver_wrong_lang_callback): Save options directly instead of via
9702         driver_unknown_option_callback.
9704 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9706         * combine.c (simplify_set): Try harder to find the best CC mode when
9707         simplifying a nested COMPARE on the RHS.
9709 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9711         * config/alpha/gnu.h: Remove.
9712         * config/arc: Remove directory.
9713         * config/arm/netbsd.h: Remove.
9714         * config/arm/t-pe: Remove.
9715         * config/crx: Remove directory.
9716         * config/i386/netbsd.h: Remove.
9717         * config/m68hc11: Remove directory.
9718         * config/m68k/uclinux-oldabi.h: Remove.
9719         * config/mcore/mcore-pe.h: Remove.
9720         * config/mcore/t-mcore-pe: Remove.
9721         * config/netbsd-aout.h: Remove.
9722         * config/rs6000/gnu.h: Remove.
9723         * config/sh/sh-symbian.h: Remove.
9724         * config/sh/symbian-base.c: Remove.
9725         * config/sh/symbian-c.c: Remove.
9726         * config/sh/symbian-cxx.c: Remove.
9727         * config/sh/symbian-post.h: Remove.
9728         * config/sh/symbian-pre.h: Remove.
9729         * config/sh/t-symbian: Remove.
9730         * config/svr3.h: Remove.
9731         * config/vax/netbsd.h: Remove.
9732         * config.build: Don't handle i[34567]86-*-pe.
9733         * config.gcc: Remove handling of deprecations for most deprecated
9734         targets.
9735         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9736         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9737         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9738         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9739         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9740         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9741         Remove cases.
9742         * config.host: Don't handle i[34567]86-*-pe.
9743         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9744         (ASM_SPEC32): Don't handle -mcall-gnu.
9745         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9746         -mcall-gnu.
9747         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9748         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9749         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9750         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9751         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9752         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9753         conditional on SYMBIAN.
9754         * configure.ac: Don't handle powerpc*-*-gnu*.
9755         * configure: Regenerate.
9756         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9757         * doc/install-old.texi (m6811, m6812): Don't mention.
9758         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9759         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9760         (m68k-uclinuxoldabi): Don't mention.
9761         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9762         Remove.
9763         (-mcall-gnu): Remove.
9764         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9765         families): Remove constraint documentation.
9767 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9769         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9770         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9771         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9773 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9775         PR target/48226
9776         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9777         vector when peeking at the next token for vector, don't expand the
9778         keywords.
9780 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9782         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9783         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9784         * config/avr/avr.c (init_cumulative_args)
9785         (avr_function_arg_advance): Use it.
9786         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9787         sibcall epilogues.
9788         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9789         (avr_function_ok_for_sibcall): ...this new function.
9790         (avr_lookup_function_attribute1): New static Function.
9791         (avr_naked_function_p, interrupt_function_p)
9792         (signal_function_p, avr_OS_task_function_p)
9793         (avr_OS_main_function_p): Use it.
9794         * config/avr/avr.md ("sibcall", "sibcall_value")
9795         ("sibcall_epilogue"): New expander.
9796         ("*call_insn", "*call_value_insn"): New insn.
9797         ("call_insn", "call_value_insn"): Remove
9798         ("call", "call_value", "epilogue"): Change expander to handle
9799         sibling calls.
9801 2011-03-21  Nick Clifton  <nickc@redhat.com>
9803         * doc/invoke.texi (Overall Options): Move closing brace to end of
9804         options list.
9805         (Optimization Options): Add missing @gol.
9806         (Directory Options): Likewise.
9807         (i386 and x86-64 Options): Likewise.
9808         (RS6000 and PowerPC Options): Likewise.
9809         (i386 and x86-64 Windows Options): Likewise.
9810         (V850 Options): Add text missing from descriptions.
9812 2011-03-22  Richard Henderson  <rth@redhat.com>
9814         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9815         (avr_incoming_return_addr_rtx): New.
9816         (emit_push_byte): New.
9817         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9818         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9819         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9820         (emit_pop_byte): New.
9821         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9822         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9823         (INCOMING_RETURN_ADDR_RTX): New.
9824         (INCOMING_FRAME_SP_OFFSET): New.
9825         (ARG_POINTER_CFA_OFFSET): New.
9826         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9827         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9828         (pophi): Remove.
9830         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9832 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9834         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9835         (FUNCTION_ARG_ADVANCE): Likewise.
9836         * tm.texi.in: Change references to them to hook references.
9837         * tm.texi: Regenerate.
9838         * targhooks.c (default_function_arg): Eliminate check for target
9839         macro.
9840         (default_function_incoming_arg): Likewise.
9841         (default_function_arg_advance): Likewise.
9842         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9843         (function_arg_advance): Likewise.
9844         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9846 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9848         * tree.c (build_call_1): New function.
9849         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9851 2011-03-22  Richard Guenther  <rguenther@suse.de>
9853         PR tree-optimization/48228
9854         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9855         for single-arg PHIs.
9857 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9859         PR rtl-optimization/48143
9860         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9861         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9862         sse2_cvtps2pd): Likewise.
9864 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9866         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9868 2011-03-22  Richard Guenther  <rguenther@suse.de>
9870         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9871         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9872         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9873         and REALIGN_LOAD_EXPR.
9874         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9875         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9876         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9877         DOT_PROD_EXPR case ...
9878         (expand_expr_real_2): ... here.
9879         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9880         and REALIGN_LOAD_EXPR.
9881         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9882         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9883         (vect_create_epilog_for_reduction): Likewise.
9884         (vectorizable_reduction): Likewise.
9885         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9886         * tree-vect-stmts.c (vectorizable_load): Likewise.
9888 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9890         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9892 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9894         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9895         handling for PLTOFF/GOTOFF.
9897 2011-03-22  Nick Clifton  <nickc@redhat.com>
9899         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9900         trailing backslash from the end of the macro definition.
9902 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9904         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9905         and PLT unspecs.
9907 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9909         * expr.h (prepare_operand): Move to...
9910         * optabs.h (prepare_operand): ...here and change the insn code
9911         parameter from "int" to "enum insn_code".
9912         (insn_operand_matches): Declare.
9913         * expr.c (init_expr_target): Use insn_operand_matches.
9914         (compress_float_constant): Likewise.
9915         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9916         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9917         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9918         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9919         Likewise.
9920         (gen_cond_trap): Likewise.
9921         (prepare_operand): Likewise.  Change icode to an insn_code.
9922         (insn_operand_matches): New function.
9923         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9924         * reload1.c (gen_reload): Likewise.
9925         * targhooks.c (default_secondary_reload): Likewise.
9927 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9929         * config/alpha/alpha.md (unspec): New define_c_enum.
9930         (unspecv): Ditto.
9932 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9934         PR debug/48214
9935         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9936         between a call and its CALL_ARG_LOCATION note.
9938 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9940         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9942 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9944         PR c/42544
9945         PR c/48197
9946         * c-common.c (shorten_compare): If primopN is first sign-extended
9947         to opN and then zero-extended to result type, set primopN to opN.
9949 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9951         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9952         for barrier handlers.
9954 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9956         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9957         UNSPEC constants to be in the unspec enumeration, and redefine
9958         all UNSPECV constants to be in the unspecv enumeration, so that
9959         dumps print which unspec/unspec_volatile this is.
9960         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9961         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9962         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9963         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9964         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9966         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9967         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9968         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9969         * config/rs6000/sync.md (isync, lwsync): Ditto.
9971 2011-03-21  Richard Guenther  <rguenther@suse.de>
9973         * params.def (lto-min-partition): Fix typo.
9975 2011-03-21  Richard Guenther  <rguenther@suse.de>
9977         PR c/47939
9978         * c-decl.c (grokdeclarator): Drop to the main variant only
9979         for array types.  Drop flag_gen_aux_info check.
9981 2011-03-21  Richard Guenther  <rguenther@suse.de>
9983         PR translation/47911
9984         * params.def (lto-partitions): Fix typo.
9985         (lto-min-partition): Fix wording.
9987 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
9989         * config/rs6000/t-freebsd: Remove duplication from file.
9991 2011-03-21  Richard Guenther  <rguenther@suse.de>
9993         PR middle-end/47661
9994         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9996 2011-03-21  Richard Guenther  <rguenther@suse.de>
9998         PR lto/48210
9999         * params.def (lto-partitions): Require at least 1 partition.
10001 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10003         * gthr-solaris.h: Remove.
10004         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10005         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10006         (LIB_SPEC): Likewise.
10007         * config/sol2.opt (threads): Remove.
10008         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10009         (sparc*-*-solaris2*): Likewise.
10010         * configure.ac (enable_threads): Enable solaris support.
10011         * configure: Regenerate.
10012         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10013         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10014         solaris.
10016 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10018         * config.gcc: Obsolete *-*-solaris2.8*.
10019         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10021 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10023         PR bootstrap/48135
10024         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10025         reference.  Solaris 8 perl works.
10027 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10029         PR bootstrap/48135
10030         * doc/install.texi (Prerequisites): Move jar etc. up.
10031         Explain support library version requirements.
10033 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10035         PR bootstrap/48135
10036         * doc/install.texi (Prerequisites): Move Perl to build
10037         requirements.  Always necessary on Solaris 2 with Sun ld.
10039 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10041         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10042         binutils 2.21.
10043         (Specific, i?86-*-solaris2.[89]): Likewise.
10044         (Specific, i?86-*-solaris2.10): Likewise.
10045         (Specific, mips-sgi-irix6): Likewise.
10046         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10047         Update for binutils 2.21.
10049 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10051         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10052         Allow -fuse-linker-plugin for non-default plugin linker.
10053         * configure: Regenerate.
10055 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10057         PR bootstrap/48167
10058         * gengtype.c (files_rules): Added rule for cp/parser.h.
10060 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10062         PR target/48213
10063         * config/s390/s390.c (s390_delegitimize_address): Don't call
10064         lowpart_subreg if orig_x has BLKmode.
10066 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10068         PR target/12171
10069         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10070         * tree.h (attribute_spec): Add new member affects_type_identity.
10071         * attribs.c (empty_attribute_table): Adjust attribute_spec
10072         initializers.
10073         * config/alpha/alpha.c: Likewise.
10074         * config/arc/arc.c: Likewise.
10075         * config/arm/arm.c: Likewise.
10076         * config/avr/avr.c: Likewise.
10077         * config/bfin/bfin.c: Likewise.
10078         * config/crx/crx.c: Likewise.
10079         * config/darwin.h: Likewise.
10080         * config/h8300/h8300.c: Likewise.
10081         * config/i386/cygming.h: Likewise.
10082         * config/i386/i386.c: Likewise.
10083         * config/ia64/ia64.c: Likewise.
10084         * config/m32c/m32c.c: Likewise.
10085         * config/m32r/m32r.c: Likewise.
10086         * config/m68hc11/m68hc11.c: Likewise.
10087         * config/m68k/m68k.c: Likewise.
10088         * config/mcore/mcore.c: Likewise.
10089         * config/mep/mep.c: Likewise.
10090         * config/microblaze/microblaze.c: Likewise.
10091         * config/mips/mips.c: Likewise.
10092         * config/rs6000/rs6000.c: Likewise.
10093         * config/rx/rx.c: Likewise.
10094         * config/sh/sh.c: Likewise.
10095         * config/sol2.h: Likewise.
10096         * config/sparc/sparc.c: Likewise.
10097         * config/spu/spu.c: Likewise.
10098         * config/stormy16/stormy16.c: Likewise.
10099         * config/v850/v850.c: Likewise.
10101 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10103         * simplify-rtx.c (simplify_binary_operation_1): Handle
10104         (xor (and A B) C) case when B and C are both constants.
10106 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10108         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10110 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10112         PR bootstrap/48168
10113         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10115 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10117         PR rtl-optimization/48156
10118         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10119         assume df and df_lr are not NULL.
10121 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10123         PR debug/48023
10124         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10125         between a call and its CALL_ARG_LOCATION note.
10127 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10129         PR debug/48178
10130         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10131         between a call and its corresponding CALL_ARG_LOCATION note.
10133 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10135         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10136         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10137         * haifa-sched.c (setup_ref_regs): Ditto.
10138         * caller-save.c (add_used_regs_1): Ditto.
10139         * dse.c (look_for_hardregs): Ditto.
10140         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10141         * sched-rgn.c (check_live_1): Ditto.
10143 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10145         * c-decl.c (diagnose_mismatched_decls): Give an error for
10146         redefining a typedef with variably modified type.
10148 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10150         * c-decl.c (grokfield): Don't allow typedefs for structures or
10151         unions with no tag by default.
10152         * doc/extend.texi (Unnamed Fields): Update.
10154 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10156         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10157         Rewrite using indirect functions.
10158         (lwp_slwpcb): Ditto.
10159         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10160         (avx_vinsertf128<mode>): Ditto.
10162 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10164         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10165         unspecs.
10167 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10169         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10170         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10172 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10174         PR rtl-optimization/48170
10175         * gcse.c (hoist_code): Remove bogus asserts.
10177 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10179         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10180         computation for prologue/epilogue.
10182 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10184         * Makefile.in (check-consistency): Remove.
10186 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10188         PR debug/48176
10189         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10190         arange_table_in_use is 0, but either text_section_used or
10191         cold_text_section_used is true.  Don't call it if
10192         !info_section_emitted.
10194 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10196         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10197         FUNCTION_VALUE_REGNO_P): Remove.
10198         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10199         Remove.
10200         * config/avr/avr.c (avr_ret_register): Make static inline.
10201         (avr_function_value_regno_p): New function.
10202         (avr_libcall_value): Make static. Add 'func' argument.
10203         (avr_function_value): Make static. Rename 'func' argument to
10204         'fn_decl_or_type', forward it to avr_libcall_value. Call
10205         avr_ret_register function instead of RET_REGISTER macro.
10206         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10208 2011-03-18  Jason Merrill  <jason@redhat.com>
10210         PR c++/23372
10211         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10213 2011-03-18  Richard Guenther  <rguenther@suse.de>
10215         * doc/install.texi (--enable-gold): Remove.
10216         (--with-plugin-ld): Document.
10217         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10219 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10221         PR middle-end/47790
10222         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10223         again after expansion changes.
10225 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10227         * combine.c (try_combine): Do simplification only call of
10228         subst() on i2 even when i1 is present. Update comments.
10230 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10232         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10233         and UNSPEC_PCREL_SYMOFF.
10235 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10237         * config/s390/s390.md: Use define_c_enum for the unspec constant
10238         definitions.
10240 2011-03-18  Richard Henderson  <rth@redhat.com>
10241             Jakub Jelinek  <jakub@redhat.com>
10243         PR bootstrap/48161
10244         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10245         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10247 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10249         PR middle-end/47725
10250         * combine.c (cant_combine_insn_p): Don't check zero/sign
10251         extended hard registers.
10253 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10255         PR middle-end/47725
10256         * combine.c (cant_combine_insn_p): Check zero/sign extended
10257         hard registers.
10259 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10261         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10262         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10263         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10264         Change return type to bool.
10265         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10267 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10269         PR debug/48163
10270         * var-tracking.c (prepare_call_arguments): If CALL target
10271         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10272         pc instead of looking it up using cselib_lookup and use
10273         Pmode for it if x has VOIDmode.
10274         * dwarf2out.c (gen_subprogram_die): If also both first and
10275         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10277         PR debug/48163
10278         * function.c (assign_parms): For data.passed_pointer parms
10279         use MEM of data.entry_parm instead of data.entry_parm itself
10280         as DECL_INCOMING_RTL.
10281         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10282         also when passed and declared mode is the same, DECL_RTL
10283         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10284         a MEM too.
10286 2011-03-16  Jeff Law  <law@redhat.com>
10288         PR rtl-optimization/37273
10289         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10290         handle them like argument loads from stack slots.  Do not double
10291         count memory for memory constants and argument loads from stack slots.
10293 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10295         PR debug/48160
10296         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10298 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10300         PR target/48171
10301         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10303 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10305         PR bootstrap/48153
10306         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10307         if dwarf_strict.
10308         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10309         Clear call_arg_locations and call_arg_loc_last always.
10311         PR middle-end/48152
10312         * var-tracking.c (prepare_call_arguments): If argument needs to be
10313         passed by reference, adjust argtype and mode.
10315 2011-03-17  Richard Guenther  <rguenther@suse.de>
10317         PR middle-end/48134
10318         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10319         a value make sure to fold the statement.
10321 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10323         PR target/43872
10324         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10325         return condition with !cfun->calls_alloca.
10327 2011-03-17  Richard Guenther  <rguenther@suse.de>
10329         PR bootstrap/48148
10330         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10331         origin for decls in other ltrans units.
10332         (input_varpool_node): Likewise.
10334 2011-03-17  Richard Guenther  <rguenther@suse.de>
10336         PR middle-end/48165
10337         * tree-object-size.c (compute_object_offset): Properly return
10338         the offset operand of MEM_REFs as sizetype.
10340 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10342         PR rtl-optimization/48141
10343         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10344         * dse.c: Include params.h.
10345         (active_local_stores_len): New variable.
10346         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10347         to NULL.
10348         (record_store, check_mem_read_rtx): Decrease it when removing
10349         from the chain.
10350         (scan_insn): Likewise.  Increase it when adding to chain, if it
10351         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10352         set active_local_stores to NULL before the addition.
10353         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10355         PR rtl-optimization/48141
10356         * dse.c (record_store): If no positions are needed in an insn
10357         that cannot be deleted, at least unchain it from active_local_stores.
10359 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10361         PR debug/47510
10362         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10363         (lookup_type_die_strip_naming_typedef): ... here.
10364         (get_context_die): Use it.
10365         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10366         the anonymous struct named by the naming typedef.
10368 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10370         PR target/48154
10371         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10372         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10374 2011-03-16  Jeff Law  <law@redhat.com>
10376         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10377         check for operands of conditional.  Allow type to be a pointer.
10379 2011-03-16  Richard Guenther  <rguenther@suse.de>
10381         PR tree-optimization/48149
10382         * fold-const.c (fold_binary_loc): Fold
10383         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10385 2011-03-16  Richard Guenther  <rguenther@suse.de>
10387         PR tree-optimization/26134
10388         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10389         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10390         (non_rewritable_mem_ref_base): Handle complex type component
10391         accesses, constrain offsets for vector and complex extracts
10392         more properly.
10394 2011-03-16  Richard Guenther  <rguenther@suse.de>
10396         PR tree-optimization/48146
10397         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10398         operands avoiding the need for renaming.
10400 2011-03-16  Richard Guenther  <rguenther@suse.de>
10402         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10403         constant folding.  Move MEM_REF canonicalization first.
10404         Rely on fold_const_aggregate_ref for initializer folding.
10405         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10407 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10409         PR middle-end/48136
10410         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10411         arg0/arg1 or their arguments are always fold converted to matching
10412         types.
10414         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10415         to nargs.
10417 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10419         PR lto/46944
10420         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10421         Handle in-tree gold.
10422         (ld_vers): Extract binutils version for gold.
10423         (gcc_cv_ld_hidden): Handle gold here.
10424         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10425         * configure: Regenerate.
10426         * config.in: Regenerate.
10427         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10428         -fuse-linker-plugin otherwise.
10429         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10430         (LINK_COMMAND_SPEC): Use it.
10431         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10433 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10435         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10436         * calls.c: Remove debug.h include.
10437         (emit_call_1): Don't call virtual_call_token debug hook.
10438         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10439         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10440         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10441         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10442         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10443         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10444         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10445         dwarf2out_virtual_call): Remove.
10446         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10447         copy_call_info and virtual_call hooks.
10448         (dwarf2out_init): Don't initialize vcall_insn_table,
10449         debug_dcall_section and debug_vcall_section.
10450         (prune_unused_types): Don't mark nodes from dcall_table.
10451         (dwarf2out_finish): Don't output dcall or vcall tables.
10452         * final.c (final_scan_insn): Don't call direct_call or
10453         virtual_call debug hooks.
10454         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10455         virtual_call_token, copy_call_info and virtual_call hooks.
10456         (debug_nothing_uid): Remove prototype.
10457         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10458         copy_call_info and virtual_call hooks.
10459         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10460         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10461         * debug.c (do_nothing_debug_hooks): Likewise.
10462         (debug_nothing_uid): Remove.
10463         * doc/invoke.texi (-fenable-icf-debug): Remove.
10464         * common.opt (-fenable-icf-debug): Likewise.
10466         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10467         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10468         call's MEM.  Handle functions returning aggregate through a hidden
10469         first pointer.  For virtual calls add clobbered pc to call arguments
10470         chain.
10471         * dwarf2out.c (gen_subprogram_die): Emit
10472         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10473         can't be emitted.
10475         PR debug/45882
10476         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10477         * rtl.h (ENTRY_VALUE_EXP): Define.
10478         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10479         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10480         * print-rtl.c (print_rtx): Likewise.
10481         * gengtype.c (adjust_field_rtx_def): Likewise.
10482         * var-tracking.c (vt_add_function_parameter): Adjust
10483         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10484         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10485         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10486         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10487         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10489         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10490         Call var_location debug hook even on CALL_INSNs.
10491         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10492         * rtl.def (ENTRY_VALUE): New.
10493         * dwarf2out.c: Include cfglayout.h.
10494         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10495         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10496         (struct call_arg_loc_node): New type.
10497         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10498         tail_call_site_count): New variables.
10499         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10500         DW_TAG_GNU_call_site_parameter.
10501         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10502         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10503         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10504         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10505         and DW_AT_GNU_all_source_call_sites.
10506         (mem_loc_descriptor): Handle ENTRY_VALUE.
10507         (add_src_coords_attributes): Don't add enything if
10508         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10509         (dwarf2out_abstract_function): Save and clear call_arg_location,
10510         call_site_count and tail_call_site_count around dwarf2out_decl call.
10511         (gen_call_site_die): New function.
10512         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10513         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10514         (dwarf2out_function_decl): Clear call_arg_locations,
10515         call_arg_loc_last, set call_site_count and tail_call_site_count
10516         to -1 and free block_map.
10517         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10518         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10519         followed by any real instructions.
10520         (dwarf2out_begin_function): Set call_site_count and
10521         tail_call_site_count to 0.
10522         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10523         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10524         attempt to force a DIE for it and worst case remove the attribute.
10525         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10526         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10527         the decl itself.
10528         * var-tracking.c: Include tm_p.h.
10529         (vt_stack_adjustments): For calls call note_register_arguments.
10530         (argument_reg_set): New variable.
10531         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10532         ensure the VALUE is resolved.
10533         (call_arguments): New variable.
10534         (prepare_call_arguments): New function.
10535         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10536         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10537         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10538         always use the best expression.
10539         (vt_expand_loc): Add ignore_cur_loc argument.
10540         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10541         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10542         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10543         note for all calls.
10544         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10545         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10546         argument.  Don't call cselib_preserve_only_values and
10547         cselib_reset_table.
10548         (note_register_arguments): New function.
10549         (vt_initialize): Compute argument_reg_set.  Call
10550         vt_add_function_parameters before processing basic blocks instead of
10551         afterwards.  For calls call prepare_call_arguments before calling
10552         cselib_process_insn.
10553         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10554         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10555         (var-tracking.o): Depend on $(TM_P_H).
10556         * cfglayout.h (insn_scope): New prototype.
10557         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10558         * cfglayout.c (insn_scope): No longer static.
10559         * insn-notes.def (CALL_ARG_LOCATION): New.
10560         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10561         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10562         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10563         nothing for DECL_EXTERNAL BLOCK_VARS.
10565 2011-03-16  Alan Modra  <amodra@gmail.com>
10567         PR target/45844
10568         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10569         create invalid offset address for vsx splat insn.
10570         * config/rs6000/predicates.md (splat_input_operand): New.
10571         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10573 2011-03-15  Xinliang David Li  <davidxl@google.com>
10575         PR c/47837
10576         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10577         (normalize_preds): New function.
10578         (is_use_properly_guarded): Normalize def predicates.
10580 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10582         PR target/46788
10583         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10584         in the output template.
10586 2011-03-15  Richard Guenther  <rguenther@suse.de>
10588         PR middle-end/47650
10589         * tree-pretty-print.c (dump_function_declaration): Properly
10590         dump unprototyped and varargs function types.
10592 2011-03-15  Richard Guenther  <rguenther@suse.de>
10594         PR tree-optimization/13954
10595         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10596         and friends.
10598 2011-03-15  Richard Guenther  <rguenther@suse.de>
10600         PR tree-optimization/48037
10601         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10602         selects into BIT_FIELD_REFs.
10603         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10604         vector select.
10606 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10608         PR tree-optimization/48129
10609         * builtins.c (fold_builtin_snprintf): Convert to type of
10610         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10611         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10613 2011-03-15  Richard Guenther  <rguenther@suse.de>
10615         PR tree-optimization/41490
10616         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10617         value but with VUSE.
10618         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10619         return statements.
10620         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10621         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10622         * tree-tailcall.c (find_tail_calls): Ignore returns.
10624 2011-03-15  Richard Guenther  <rguenther@suse.de>
10626         PR middle-end/48031
10627         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10628         or variable-indexed array accesses when in gimple form.
10630 2011-03-15  Richard Guenther  <rguenther@suse.de>
10632         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10634 2011-03-15  Alan Modra  <amodra@gmail.com>
10636         PR target/48032
10637         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10638         presume symbol_refs without a symbol_ref_decl are suitably
10639         aligned, nor other trees we may see here.  Handle anchor symbols.
10640         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10641         Check cmodel=medium addresses.  Adjust all calls.
10642         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10643         creating cmodel=medium optimized access to locals.
10644         * config/rs6000/constraints.md (R): Pass QImode to
10645         legitimate_constant_pool_address_p.
10646         * config/rs6000/predicates.md (input_operand): Pass mode to
10647         legitimate_constant_pool_address_p.
10648         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10649         Update prototype.
10651 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10653         PR target/48053
10654         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10655         64-bit constants being loaded into registers other than GPRs such
10656         as loading 0 into a VSX register.
10658 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10660         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10662 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10664         PR middle-end/47917
10665         * builtins.c (fold_builtin_snprintf): New function.
10666         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10667         (fold_builtin_4): Likewise.
10669         PR middle-end/38878
10670         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10671         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10672         and C - X == X also strip nops from +/-/p+ operand.
10673         When optimizing -X == C, fold C to arg0's type.
10675         PR debug/47946
10676         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10677         emit it as add_AT_int instead of add_AT_unsigned.
10679 2011-03-14  Tom Tromey  <tromey@redhat.com>
10681         * unwind-dw2.c: Include sys/sdt.h if it exists.
10682         (_Unwind_DebugHook): Use STAP_PROBE2.
10683         * config.in, configure: Rebuild.
10684         * configure.ac: Check for sys/sdt.h.
10686 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10688         * config/i386/i386.md (ROUND_FLOOR): New constant.
10689         (ROUND_CEIL): Ditto.
10690         (ROUND_TRUNC): Ditto.
10691         (ROUND_MXCSR): Ditto.
10692         (ROUND_NO_EXC): Ditto.
10693         (rint<mode>2): Use new defines instead of numerical constants.
10694         (floor<mode>2): Ditto.
10695         (ceil<mode>2): Ditto.
10696         (btrunc<mode>2): Ditto.
10697         * config/i386/i386-builtin-types.def: Define ROUND function type
10698         aliases.
10699         * config/i386/i386.c (enum ix86_builtins): Add
10700         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10701         (struct builtin_description): Add
10702         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10703         (ix86_expand_sse_round): New static function.
10704         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10705         function types.
10706         (ix86_builtin_vectorized_function): Handle
10707         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10709 2011-03-14  Tom Tromey  <tromey@redhat.com>
10711         * c-parser.c (c_parser_asm_string_literal): Clear
10712         warn_overlength_strings.
10714 2011-03-14  Tom Tromey  <tromey@redhat.com>
10716         * c-parser.c (disable_extension_diagnostics): Save
10717         warn_overlength_strings.
10718         (restore_extension_diagnostics): Restore warn_overlength_strings.
10720 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10722         * BASE-VER: Change to 4.7.0.
10724 2011-03-14  Richard Guenther  <rguenther@suse.de>
10726         PR middle-end/48098
10727         * tree.c (build_vector_from_val): Adjust assert to requirements
10728         and reality.
10730 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10732         PR bootstrap/48102
10733         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10735 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10737         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10738         terms of target_flags_explicit. Adjust copyright year.
10740         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10741         * config/rs6000/t-freebsd: New file. Add override for
10742         LIB2FUNCS_EXTRA.
10744 2011-03-13  Chris Demetriou  <cgd@google.com>
10746         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10747         (-fno-diagnostics-show-option): this, to reflect current default.
10748         (-Werror=): Update text about -fno-diagnostics-show-option.
10750 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10752         PR target/48053
10753         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10754         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10755         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10756         mode is not V2DImode or V2DFmode.
10757         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10758         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10759         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10760         registers to 0.
10761         (movdi_internal64): Likewise.
10763 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10765         PR tree-optimization/47127
10766         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10767         parameter.
10768         (set_cloog_options): Same.
10769         (scop_to_clast): Same.
10770         (print_clast_stmt): Do not call cloog_state_malloc and
10771         cloog_state_free.
10772         (print_generated_program): Same.
10773         (gloog): Same.
10774         * graphite-clast-to-gimple.h (cloog_state): Declared.
10775         (scop_to_clast): Adjust declaration.
10776         * graphite.c (cloog_state): Defined here.
10777         (graphite_initialize): Call cloog_state_malloc.
10778         (graphite_finalize): Call cloog_state_free.
10780 2011-03-11  Jason Merrill  <jason@redhat.com>
10782         * attribs.c (lookup_attribute_spec): Take const_tree.
10783         * tree.h: Adjust.
10785 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10787         * config/sparc/sparc.c (sparc_option_override): Use
10788         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10790 2011-03-11  Richard Guenther  <rguenther@suse.de>
10792         PR tree-optimization/48067
10793         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10794         multiplication result will be only used once on the target
10795         stmt.
10797 2011-03-11  Richard Guenther  <rguenther@suse.de>
10799         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10801 2011-03-11  Richard Guenther  <rguenther@suse.de>
10803         PR lto/48073
10804         * tree.c (find_decls_types_r): Do not walk types only reachable
10805         from IDENTIFIER_NODEs.
10807 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10809         PR middle-end/48044
10810         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10811         all vnode->force_output nodes as needed.
10813 2011-03-11  Jason Merrill  <jason@redhat.com>
10815         PR c++/48069
10816         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10817         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10819 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10821         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10822         cgraph_node.
10824 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10826         PR tree-optimization/48063
10827         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10828         inline functions called once if !tree_can_inline_p (node->callers).
10830 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10832         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10833         extra_objs.
10834         * config/score/score3.c: Delete.
10835         * config/score/score3.h: Delete.
10836         * config/score/mul-div.S: Delete.
10837         * config/score/sfp-machine.h: Add new file.
10838         * config/score/constraints.md: Add new file.
10839         * config/score/t-score-softfp: Add new file.
10840         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10841         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10842         (score7_extra_constraint): Delete.
10843         (score7_option_override): Remove unused code.
10844         * config/score/score.c: Remove score3 and score5 define and code.
10845         * config/score/score.h: Remove score3 and score5 define and code.
10846         * config/score/score.md: Remove score3 template and unusual insn.
10847         * config/score/score.opt: Remove score3 and score5 options.
10849 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10851         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10852         when _HPUX_SOURCE is defined.
10853         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10855 2011-03-10  Jason Merrill  <jason@redhat.com>
10857         PR c++/48029
10858         * stor-layout.c (layout_type): Don't set structural equality
10859         on arrays of incomplete type.
10860         * tree.c (type_hash_eq): Handle comparing them properly.
10862 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10864         PR debug/48043
10865         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10866         result mode matches original rtl mode.
10868 2011-03-10  Nick Clifton  <nickc@redhat.com>
10870         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10871         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10873 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10875         PR rtl-optimization/47866
10876         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10877         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10878         if target wasn't scalar.
10879         * function.c (assign_stack_temp_for_type): Assert that neither
10880         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10881         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10882         macro.
10883         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10885 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10887         * config/s390/s390-protos.h (s390_label_align): New prototype.
10888         * config/s390/s390.c (s390_label_align): New function.
10889         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10891 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10893         PR target/47755
10894         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10895         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10896         (output_vec_const_move): Ditto.
10898 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10900         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10901         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10902         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10903         Change 'rclass' argument and result type to reg_class_t.
10904         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10906 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10908         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10909         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10910         (TARGET_MEMORY_MOVE_COST): Define.
10911         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10913 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10915         PR debug/47881
10916         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10917         removed anything.
10919         PR tree-optimization/48022
10920         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10921         for EQ/NE_EXPR.
10923 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10925         PR debug/47991
10926         * var-tracking.c (find_use_val): Return NULL for
10927         cui->sets && cui->store_p BLKmode MEMs.
10929 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10931         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10932         Remove.
10933         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10934         xstormy16_print_operand_address): Remove.
10935         * config/stormy16/stormy16.c (xstormy16_print_operand,
10936         xstormy16_print_operand_address): Make static.
10937         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10939 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10941         PR target/47862
10942         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10943         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10944         before definition.
10946 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10948         PR bootstrap/48000
10949         * cfgloopmanip.c (fix_bb_placements): Return immediately
10950         if FROM is BASE_LOOP's header.
10952 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10954         * gimplify.c (gimplify_function_tree): Fix building calls
10955         to __builtin_return_address.
10957 2011-03-07  Alan Modra  <amodra@gmail.com>
10959         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10960         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10961         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10962         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10963         return_mode args.
10964         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10965         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10966         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10967         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10968         * config/rs6000/rs6000.c
10969         (rs6000_elf_end_indicate_exec_stack): Rename to..
10970         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10971         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10972         (rs6000_file_start): ..here.
10973         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10974         file scope variables.
10975         (call_ABI_of_interest): New function.
10976         (init_cumulative_args): Set above vars when function return value
10977         is a float, vector, or small struct.
10978         (rs6000_function_arg_advance_1): Likewise for function args.
10979         (rs6000_va_start): Set rs6000_passes_float if variable arg function
10980         references float args.
10982 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
10984         * doc/cfg.texi: Remove "See" before @ref.
10985         * doc/invoke.texi: Likewise.
10987 2011-03-05  Jason Merrill  <jason@redhat.com>
10989         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10991 2011-03-05  Anthony Green  <green@moxielogic.com>
10993         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10995 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
10997         PR rtl-optimization/47899
10998         * cfgloopmanip.c (fix_bb_placements): Fix first argument
10999         to flow_loop_nested_p when moving the loop upward.
11001 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11003         PR target/47719
11004         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11006 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11008         PR tree-optimization/47967
11009         * ipa-cp.c (build_const_val): Return NULL instead of creating
11010         VIEW_CONVERT_EXPR for mismatching sizes.
11011         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11012         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11013         give up on versioning.
11015 2011-03-05  Alan Modra  <amodra@gmail.com>
11017         PR target/47986
11018         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11019         full cmodel medium/large lo_sum + high addresses.
11021 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11023         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11024         pool references in UNSPEC_LTREL_OFFSET.
11026 2011-03-04  Jan Hubicka  <jh@suse.cz>
11028         PR lto/47497
11029         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11030         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11031         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11032         Add node pointers.
11033         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11034         cgraph_add_thunk): Add node pointers.
11035         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11036         associated to right node.
11037         (input_node): Update use of cgraph_same_body_alias
11038         and cgraph_add_thunk.
11040 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11042         * config/i386/i386.opt (mprefer-avx128): New flag.
11043         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11044         modes when the flag -mprefer-avx128 is on.
11046 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11048         * dwarf2out.c (compare_loc_operands): Fix address handling.
11050 2011-03-04  Alan Modra  <amodra@gmail.com>
11052         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11054 2011-03-04  Richard Guenther  <rguenther@suse.de>
11056         PR middle-end/47968
11057         * expmed.c (extract_bit_field_1): Prefer vector modes that
11058         vec_extract patterns can handle.
11060 2011-03-04  Richard Guenther  <rguenther@suse.de>
11062         PR middle-end/47975
11063         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11065 2011-03-04  Richard Henderson  <rth@redhat.com>
11067         * explow.c (emit_stack_save): Remove 'after' parameter.
11068         (emit_stack_restore): Likewise.
11069         * expr.h: Update to match.
11070         * builtins.c, calls.c, stmt.c: Likewise.
11071         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11072         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11073         * function.c (expand_function_end): Insert the emit_stack_save
11074         sequence before parm_birth_insn instead of after.
11076 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11078         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11079         (ssse3_pmaddubsw128): Ditto.
11080         (ssse3_pmaddubsw): Ditto.
11082 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11084         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11086 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11088         PR c/47963
11089         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11090         on TYPE_SIZE_UNIT if it is a DECL.
11092         PR debug/47283
11093         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11094         first operand is not is_gimple_mem_ref_addr, try to fold it.
11095         If the operand still isn't is_gimple_mem_ref_addr, clear
11096         MEM_EXPR on op0.
11098 2011-03-03  Richard Guenther  <rguenther@suse.de>
11100         PR middle-end/47283
11101         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11102         match comment.
11103         (refs_may_alias_p_1): For release branches return true if
11104         we are confused by our input.
11106 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11108         * config/s390/s390.c (s390_function_value): Rename to ...
11109         (s390_function_and_libcall_value): ... this.
11110         (s390_function_value): New function.
11111         (s390_libcall_value): New function.
11112         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11113         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11114         target macro definitions.
11115         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11117 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11119         * config/i386/freebsd64.h (CC1_SPEC): Define.
11120         * config/i386/linux64.h (CC1_SPEC): Define.
11121         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11123 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11125         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11126         Remove.
11127         * config/stormy16/stormy16.c: Include reload.h.
11128         (xstormy16_memory_move_cost): New function.
11129         (TARGET_MEMORY_MOVE_COST): Define.
11131 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11133         PR rtl-optimization/47925
11134         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11135         with side effects.  Remove the more-specific check for volatile asms.
11137 2011-03-02  Alan Modra  <amodra@gmail.com>
11139         PR target/47935
11140         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11141         toc relative addresses for valid offsets.
11143 2011-03-01  Richard Guenther  <rguenther@suse.de>
11145         PR tree-optimization/47890
11146         * tree-vect-loop.c (get_initial_def_for_induction): Set
11147         related stmt properly.
11149 2011-03-01  Richard Guenther  <rguenther@suse.de>
11151         PR lto/47924
11152         * lto-streamer.c (lto_record_common_node): Also register
11153         the canonical type.
11155 2011-03-01  Richard Guenther  <rguenther@suse.de>
11157         PR lto/46911
11158         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11159         Do not stream DECL_ABSTRACT_ORIGIN.
11160         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11161         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11162         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11163         Do not stream DECL_ABSTRACT_ORIGIN.
11164         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11165         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11167 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11169         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11170         FUNCTION_VALUE_REGNO_P): Remove.
11171         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11172         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11173         Add 'outgoing' argument.
11174         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11175         function.
11176         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11177         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11179 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11181         PR debug/28047
11182         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11183         (lookup_filename): Likewise.
11184         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11186 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11187             Jakub Jelinek  <jakub@redhat.com>
11189         PR middle-end/47893
11190         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11191         (assign_stack_local_1): Change last argument type to int.
11192         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11193         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11194         don't record padding space into frame_space_list nor use those areas.
11195         (assign_stack_local): Adjust caller.
11196         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11197         of assign_stack_local, pass 0 as last argument.
11198         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11199         callers.
11201 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11203         PR debug/47283
11204         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11205         Use target address_mode and pointer_mode hooks instead of hardcoded
11206         Pmode and ptr_mode.  Handle some simple cases of extending if
11207         POINTERS_EXTEND_UNSIGNED < 0.
11208         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11209         Call convert_debug_memory_address.
11210         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11211         convert_debug_memory_address.
11213         PR middle-end/46790
11214         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11215         * configure: Regenerated.
11216         * config.in: Regenerated.
11217         * varasm.c (default_function_section): Return NULL
11218         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11220 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11222         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11223         the description to match the printed values.
11225 2011-02-28  Richard Guenther  <rguenther@suse.de>
11227         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11228         of the copied scope tree.
11230 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11232         * doc/extend.texi (Function Attributes): Avoid deeply (and
11233         wrongly) nested tables.
11235 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11237         PR middle-end/47903
11238         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11239         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11240         r isn't op0 nor op1.
11242 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11244         * config/avr/avr.md: Remove magic comment for emacs.
11246 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11248         PR target/45261
11249         * config/avr/avr.c (avr_option_override): Use error on bad options.
11250         (avr_help): New function.
11251         (TARGET_HELP): Define.
11253 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11255         PR target/42240
11256         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11257         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11259 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11261         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11262         (ARM Options): Ditto.
11263         (i386 and x86-64 Options): Ditto.
11264         (RX Options): Ditto.
11265         (SPARC Options): Ditto.
11267 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11269         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11270         FreeBSD 6 and later.  Generally use cpu generic.
11272 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11274         * doc/cpp.texi: Update copyright years.
11276 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11278         PR target/46898
11279         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11281 2011-02-25  Jon Beniston  <jon@beniston.com>
11283         PR target/46898
11284         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11285         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11286         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11287         (lm32_block_move_inline): Add type cast to remove warning.
11288         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11289         (gen_int_relational): Move declarations to start of function.
11291 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11293         PR tree-optimization/45470
11294         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11295         can throw internally only.
11296         * tree-vect-stmts.c (vectorizable_call): Likewise.
11298 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11300         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11301         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11302         * config/stormy16/stormy16-protos.h
11303         (xstormy16_preferred_reload_class): Remove.
11304         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11305         static. Change 'rclass' argument and return type to reg_class_t.
11306         (TARGET_PREFERRED_RELOAD_CLASS,
11307         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11309 2011-02-24  Richard Guenther  <rguenther@suse.de>
11311         * lto-streamer-in.c (input_bb): Do not find referenced vars
11312         in debug statements.
11314 2011-02-23  Jason Merrill  <jason@redhat.com>
11316         * common.opt (fabi-version): Document v5 and v6.
11318 2011-02-23  Richard Guenther  <rguenther@suse.de>
11320         PR tree-optimization/47849
11321         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11323 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11325         * opts-common.c (decode_cmdline_option): Print empty string
11326         argument as "" in decoded->orig_option_with_args_text.
11327         * gcc.c (execute): Print empty string argument as ""
11328         in the verbose output.
11329         (do_spec_1): Keep empty string argument.
11331 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11333         * config.gcc: Declare score-* and crx-* obsolete.
11335 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11337         PR rtl-optimization/47763
11338         * web.c (web_main): Ignore naked clobber when replacing register.
11340 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11342         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11343         Remove.
11345 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11347         PR doc/47848
11348         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11350 2011-02-22  Mike Stump  <mikestump@comcast.net>
11352         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11353         assembler.
11354         * configure: Regenerate.
11356 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11358         PR rtl-optimization/46002
11359         * ira-color.c (update_copy_costs): Change class intersection
11360         test to reg_class_contents[] test of 'hard_regno'.
11362 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11364         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11365         than Driver option.
11366         * config/hpux11.opt (mt): Likewise.
11367         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11368         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11369         * config/vax/elf.opt (mno-asm-pic): Likewise.
11370         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11372 2011-02-21  Mike Stump  <mikestump@comcast.net>
11374         PR target/47822
11375         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11376         tree so we can get save the type.
11377         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11378         for CFString instead of trying to use past the end of the builtins.
11379         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11380         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11381         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11382         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11383         Rename to darwin_builtin_cfstring.
11384         (darwin_init_cfstring_builtins): Return the built type.
11386 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11388         PR target/47840
11389         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11390         (_mm256_insert_epi64): Use _mm_insert_epi64.
11392 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11394         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11395         * config/stormy16/stormy16-protos.h
11396         (xstormy16_mode_dependent_address_p): Remove.
11397         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11398         Make static. Change return type to bool. Change argument type to
11399         const_rtx. Remove dead code.
11400         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11402 2011-02-21  Richard Guenther  <rguenther@suse.de>
11404         PR lto/47820
11405         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11406         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11407         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11408         TUs context.
11409         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11410         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11412 2011-02-20  Richard Guenther  <rguenther@suse.de>
11414         PR lto/47822
11415         * tree.c (free_lang_data_in_decl): Clean builtins from
11416         the TU decl BLOCK_VARS.
11418 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11420         PR debug/47620
11421         PR debug/47630
11422         * haifa-sched.c (fix_tick_ready): Skip tick computation
11423         for debug insns.
11425 2011-02-19  Richard Guenther  <rguenther@suse.de>
11427         PR lto/47647
11428         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11429         Remove lazy BLOCK_VARS streaming.
11430         (lto_input_ts_block_tree_pointers): Likewise.
11431         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11433 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11435         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11437 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11439         * config/i386/biarch32.h, config/i386/mach.h,
11440         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11442 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11444         PR target/47800
11445         * config/i386/i386.md (peephole2 for shift and plus): Use
11446         operands[1] original mode in the first insn.
11448 2011-02-18  Mike Stump  <mikestump@comcast.net>
11450         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11452 2011-02-18  Jan Hubicka  <jh@suse.cz>
11454         PR middle-end/47788
11455         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11456         to zero when the function is not inlinable at all.
11458 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11460         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11461         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11462         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11463         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11464         * config/pa/t-pa64: Likewise.
11465         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11467 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11469         PR driver/47787
11470         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11472 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11474         PR target/47792
11475         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11477 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11479         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11480         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11481         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11482         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11483         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11484         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11485         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11486         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11487         m32r_legitimate_address_p): New functions.
11488         * config/m32r/constraints.md (constraint "S"): Don't use
11489         STORE_PREINC_PREDEC_P.
11490         (constraint "U"): Don't use LOAD_POSTINC_P.
11492 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11494         PR rtl-optimization/46178
11495         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11496         compute ira_hard_regno_cover_class[].
11498 2011-02-18  Richard Guenther  <rguenther@suse.de>
11500         PR lto/47798
11501         * lto-streamer.h (lto_global_var_decls): Declare.
11502         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11503         statics for global var processing.
11505 2011-02-18  Richard Guenther  <rguenther@suse.de>
11507         PR tree-optimization/47737
11508         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11509         edge dominance check.
11511 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11513         PR debug/47780
11514         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11515         avoid invalid rtx sharing.
11517 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11519         * doc/cpp.texi (Obsolete Features): Add background on the
11520         origin of assertions.
11522 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11524         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11525         objc_abi == 2.
11526         * config/darwin.c (output_objc_section_asm_op): Added support for
11527         ABI v1 and v2.
11528         (is_objc_metadata): New.
11529         (darwin_objc2_section): New.
11530         (darwin_objc1_section): New.
11531         (machopic_select_section): Added support for ABI v1 and v2.
11532         (darwin_emit_objc_zeroed): New.
11533         (darwin_output_aligned_bss): Detect objc metadata and treat it
11534         appropriately.
11535         (darwin_asm_output_aligned_decl_common): Same.
11536         (darwin_asm_output_aligned_decl_local): Same.
11537         * config/darwin-sections.def: Updated for ABI v1 and v2.
11538         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11539         compiling Objective-C code for the NeXT runtime, default to using
11540         ABI version 0 for 32-bit, and version 2 for 64-bit.
11542 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11544         * common.opt (optimize_fast): New Variable.
11545         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11546         instead of local variable ofast.
11548 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11550         * doc/invoke.texi (fobjc-abi-version): Documented.
11551         (fobjc-nilcheck): Documented.
11552         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11553         version.
11555 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11557         PR driver/47390
11558         * common.opt (export-dynamic): New Driver option.
11559         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11561 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11563         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11565 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11566             Jan Hubicka  <jh@suse.cz>
11568         PR debug/47106
11569         PR debug/47402
11570         * cfgexpand.c (account_used_vars_for_block): Remove.
11571         (estimated_stack_frame_size): Use referenced vars.
11572         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11573         that were referenced in the original function.  Test src_fn
11574         rather than cfun.  Drop redundant get_var_ann.
11575         (setup_one_parameter): Drop redundant get_var_ann.
11576         (declare_return_variable): Likewise.
11577         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11578         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11579         * ipa-inline.c (compute_inline_parameters): Do not compute
11580         disregard_inline_limits here.
11581         (compute_inlinable_for_current, pass_inlinable): New.
11582         (pass_inline_parameters): Require PROP_referenced_vars.
11583         * cgraphunit.c (cgraph_process_new_functions): Don't run
11584         compute_inline_parameters explicitly unless function is in SSA form.
11585         (cgraph_analyze_function): Set .disregard_inline_limits.
11586         * tree-sra.c (convert_callers): Compute inliner parameters
11587         only for functions already in SSA form.
11589 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11591         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11592         -mlittle-endian-data.
11594 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11596         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11597         -mno-fpu, not -fpu and -no-fpu.
11598         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11599         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11601 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11603         PR target/43653
11604         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11605         input reload with PLUS RTX.
11607 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11609         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11610         of InverseVar(MDMX).
11612 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11614         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11615         --m4-340.
11617 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11619         * config/mn10300/mn10300.opt (mno-crt0): New.
11621 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11623         * config/m68k/uclinux.opt (static-libc): New Driver option.
11625 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11627         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11629 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11631         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11632         %{muser-extend-enabled}.
11634 2011-02-16  Richard Guenther  <rguenther@suse.de>
11636         PR tree-optimization/47738
11637         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11638         the TODO from tree_predictive_commoning.
11640 2011-02-15  Jeff Law  <law@redhat.com>
11642         Revert
11643         2011-01-25  Jeff Law  <law@redhat.com>
11645         PR rtl-optimization/37273
11646         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11647         handle them like argument loads from stack slots.  Do not double
11648         count memory for memory constants and argument loads from stack slots.
11650 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11652         PR middle-end/47725
11653         * combine.c (cant_combine_insn_p): Revert the last change.
11655 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11657         PR target/47755
11658         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11659         mode for vector constants.  Remove code that checks for TImode.
11661 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11663         PR debug/47106
11664         PR debug/47402
11665         * cgraph.h (compute_inline_parameters): Return void.
11666         * ipa-inline.c (compute_inline_parameters): Adjust.
11668 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11670         PR debug/47106
11671         PR debug/47402
11672         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11673         rather than decl.
11674         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11675         * ipa-inline.c (compute_inline_parameters): Adjust.
11677 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11679         PR debug/47106
11680         PR debug/47402
11681         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11682         Adjust all users.  Pass FN to...
11683         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11684         fn argument.
11685         * ipa-struct-reorg.c: Adjust.
11686         * tree-dfa.c: Adjust.
11687         * tree-into-ssa.c: Adjust.
11688         * tree-sra.c: Adjust.
11689         * tree-ssa-alias.c: Adjust.
11690         * tree-ssa-live.c: Adjust.
11691         * tree-ssa.c: Adjust.
11692         * tree-ssanames.c: Adjust.
11693         * tree-tailcall.c: Adjust.
11695 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11697         PR debug/47106
11698         PR debug/47402
11699         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11700         Adjust all callers.
11701         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11702         * tree-flow-inline.h: Adjust.
11703         * gimple-pretty-print.c: Adjust.
11704         * tree-into-ssa.c: Adjust.
11705         * tree-ssa.c: Adjust.
11706         * cfgexpand.c: Adjust.
11708 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11710         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11711         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11712         (EXTRA_CONSTRAINT): Delete.
11713         * config/iq2000/constraints.md: New file.
11714         * config/iq2000/iq2000.md: Include it.
11715         (define_insn ""): Delete.
11716         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11717         unsupported constraint letters from patterns.
11718         (call_value, call_value_internal1): Likewise.
11719         (call_value_multiple_internal1): Likewise.
11721 2011-02-15  Nick Clifton  <nickc@redhat.com>
11723         * config/mn10300/mn10300.c: Include tm-constrs.h.
11724         (struct liw_data): New data structure describing an LIW candidate
11725         instruction.
11726         (extract_bundle): Use struct liw_data.  Allow small integer
11727         operands for some instructions.
11728         (check_liw_constraints): Use struct liw_data.  Remove swapped
11729         parameter.  Add comments describing the checks.  Fix bug when
11730         assigning the source of liw1 to the source of liw2.
11731         (liw_candidate): Delete.  Code moved into extract_bundle.
11732         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11733         before swapping.
11734         * config/mn10300/predicates.md (liw_operand): New predicate.
11735         Allows registers and small integer constants.
11736         * config/mn10300/constraints.md (O): New constraint.  Accetps
11737         integers in the range -8 to +7 inclusive.
11738         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11739         for moving a small integer into a register.  Give this alternative
11740         LIW attributes.
11741         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11742         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11743         using the J,K,L and M constraints,
11744         (liw): Remove SI mode on second operands to allow for HI and QI
11745         mode values.
11746         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11747         instruction.
11749 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11751         PR middle-end/47725
11752         * combine.c (cant_combine_insn_p): Check zero/sign extended
11753         hard registers.
11755 2011-02-15  Richard Guenther  <rguenther@suse.de>
11757         PR tree-optimization/47743
11758         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11759         for a non-type-compatible VN lookup bail out.
11761 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11763         * config/fr30/constraints.md: New file.
11764         * config/fr30/fr30.md: Include it.
11765         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11766         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11767         (EXTRA_CONSTRAINT): Delete.
11769 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11771         * config/frv/constraints.md: New file.
11772         * config/frv/predicates.md: Include it.
11773         * config/frv/frv.c (reg_class_from_letter): Delete.
11774         (frv_option_override): Don't initialize it.
11775         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11776         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11777         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11778         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11779         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11780         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11781         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11782         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11783         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11784         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11785         (REG_CLASS_FROM_CONSTRAINT): Delete.
11787 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11789         PR middle-end/47581
11790         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11791         if frame size is 0 in a leaf function.
11793 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11795         PR pch/14940
11796         * config/alpha/host-osf.c: New file.
11797         * config/alpha/x-osf: New file.
11798         * config.host (alpha*-dec-osf*): Use it.
11800 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11802         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11803         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11804         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11805         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11806         type to const_rtx.
11807         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11809 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11811         * config/stormy16/constraints.md: New file.
11812         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11813         Use satisfies_constraint_Q and satisfies_constraint_R.
11814         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11815         Delete.
11816         (xstormy16_legitiamte_address_p): Declare.
11817         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11818         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11819         (EXTRA_CONSTRAINT): Delete.
11820         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11821         Un-staticize.
11822         (xstormy16_extra_constraint_p): Delete.
11824 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11826         PR tree-optimization/46494
11827         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11828         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11829         (pass_rtl_loop_done): Add TODO_verify_flow.
11830         * fwprop.c (pass_rtl_fwprop): Likewise.
11831         * modulo-sched.c (pass_sms): Likewise.
11832         * tree-ssa-dom.c (pass_dominator): Likewise.
11833         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11834         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11835         (pass_tree_loop_done): Likewise.
11836         * tree-ssa-pre.c (execute_pre): Likewise.
11837         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11838         * tree-ssa-sink.c (pass_sink_code): Likewise.
11839         * tree-vrp.c (pass_vrp): Likewise.
11841 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11843         * config/v850/constraints.md: New file.
11844         * config/v850/v850.md: Include it.
11845         * config/v850/predicates.md (reg_or_0_operand): Use
11846         satisfies_constraint_G.
11847         (special_symbolref_operand): Use satisfies_constraint_K.
11848         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11849         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11850         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11851         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11852         (EXTRA_CONSTRAINT): Delete.
11853         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11854         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11855         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11857 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11859         PR target/47696
11860         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11861         description.
11863 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11865         * config/mcore/constraints.md: New file.
11866         * config/mcore/mcore.md: Include it.
11867         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11868         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11869         (REG_CLASS_FROM_LETTER): Delete.
11870         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11871         insn_const_int_ok_for_constraint.
11872         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11873         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11874         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11875         (EXTRA_CONSTRAINT): Delete.
11877 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11879         PR ada/41929
11880         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11881         (IS_SIGHANDLER): Define.
11882         (sparc64_is_sighandler): New function, split off from
11883         sparc64_fallback_frame_state.
11884         (sparc_is_sighandler): New function, split off from
11885         sparc_fallback_frame_state.
11886         (sparc64_fallback_frame_state): Merge with ...
11887         (sparc_fallback_frame_state): ... this into ...
11888         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11889         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11890         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11891         stack instead of hardcoded offsets.
11893 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11895         PR target/45808
11896         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11898 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11900         * configure: Regenerate.
11902 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11904         PR driver/45731
11905         * gcc.c (asm_options): Correct spec matching --target-help.
11907 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11909         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11910         to gimple call error.
11912 2011-02-12  Mike Stump  <mikestump@comcast.net>
11914         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11915         comments in backslash regions.
11917 2011-02-12  Mike Stump  <mikestump@comcast.net>
11918             Jakub Jelinek  <jakub@redhat.com>
11919             Iain Sandoe  <iains@gcc.gnu.org>
11921         PR target/47324
11922         * dwarf2out.c (output_cfa_loc): When required, apply the
11923         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11924         (output_loc_sequence): Likewise.
11925         (output_loc_operands_raw): Likewise.
11926         (output_loc_sequence_raw): Likewise.
11927         (output_cfa_loc): Likewise.
11928         (output_loc_list): Suppress register number adjustment when
11929         calling output_loc_sequence()
11930         (output_die): Likewise.
11932 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11934         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11935         Remove macros.
11936         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11937         xtensa_memory_move_cost): New functions.
11938         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11940 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11942         PR lto/47225
11943         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11944         in the current directory.
11945         * configure: Rebuilt.
11947 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11949         * config/darwin.c (darwin_override_options): Add a hunk missed
11950         from the commit of r168571.  Trim comment line lengths and
11951         correct indents of the preceding block.
11953 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11955         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11956         the switch.
11958 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11960         * common.opt (nostartfiles): New Driver option.
11962 2011-02-11  Xinliang David Li  <davidxl@google.com>
11964         PR tree-optimization/47707
11965         * tree-chrec.c (convert_affine_scev): Keep type precision.
11967 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11969         PR tree-optimization/47420
11970         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11972 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11974         PR rtl-optimization/47614
11975         * rtl.h (check_for_inc_dec): Declare.
11976         * dse.c (check_for_inc_dec): Externalize...
11977         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11978         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11980 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11982         PR driver/47678
11983         * gcc.c (main): Do not compile inputs if there were errors in
11984         option handling.
11985         * opts-common.c (read_cmdline_option): Check for wrong language
11986         after other error checks.
11988 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
11990         * cgraph.c: Fix comment typos.
11991         * cgraph.h: Likewise.
11992         * cgraphunit.c: Likewise.
11993         * ipa-cp.c: Likewise.
11994         * ipa-inline.c: Likewise.
11995         * ipa-prop.c: Likewise.
11996         * ipa-pure-const.c: Likewise.
11997         * ipa-ref.c: Likewise.
11998         * ipa-reference.c: Likewise.
12000 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12002         PR debug/47684
12003         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12005 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12007         PR testsuite/47400
12008         * doc/sourcebuild.texi (Require Support): Document
12009         dg-require-ascii-locale.
12011 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12013         * doc/lto.texi (Write summary): Fix missing parentheses.
12015 2011-02-10  DJ Delorie  <dj@redhat.com>
12017         * config/m32c/m32c.c (m32c_option_override): Disable
12018         -fcombine-stack-adjustments until flag value tracking and compare
12019         optimization can be rewritten.
12021 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12023         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12024         PROCESSOR_POWER7.
12025         (PROCESSOR_DEFAULT64): Likewise.
12027 2011-02-10  Richard Henderson  <rth@redhat.com>
12029         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12030         change from 2011-02-03.
12031         * config/rx/rx.c (flags_from_code): Likewise.
12032         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12033         is valid, n/pz otherwise.
12034         (rx_select_cc_mode): Return CCmode if Y is not zero.
12036 2011-02-10  Richard Guenther  <rguenther@suse.de>
12038         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12040 2011-02-10  Richard Guenther  <rguenther@suse.de>
12042         PR tree-optimization/47677
12043         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12045 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12047         PR target/47665
12048         * combine.c (make_compound_operation): Only change shifts into
12049         multiplication for SCALAR_INT_MODE_P.
12051 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12053         PR testsuite/47622
12054         Revert
12055         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12056         PR debug/42631
12057         * web.c (entry_register): Don't clobber the number of the
12058         first uninitialized reference in used[].
12060 2011-02-09  Richard Guenther  <rguenther@suse.de>
12062         PR tree-optimization/47664
12063         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12064         all edges again.
12066 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12068         PR target/46481
12069         PR target/47032
12070         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12071         PROCESSOR_POWER7.
12072         (PROCESSOR_DEFAULT64): Same.
12073         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12075 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12077         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12079 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12081         PR middle-end/45505
12082         * tree-sra.c (struct access): New flags grp_scalar_read and
12083         grp_scalar_write.  Changed description of assignment read and write
12084         flags.
12085         (dump_access): Dump new flags, reorder all of them.
12086         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12087         to detect multiple scalar reads.
12088         (analyze_access_subtree): Use the new scalar read write flags instead
12089         of the old flags.  Adjusted comments.
12091 2011-02-08  DJ Delorie  <dj@redhat.com>
12093         PR target/47548
12094         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12095         patterns.
12097 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12099         * config/m68k/uclinux.opt: New.
12100         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12102 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12104         * config/cris/elf.opt (sim): New Driver option.
12106 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12108         * config/xtensa/elf.opt: New.
12109         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12111 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12113         * config/vax/elf.opt: New.
12114         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12116 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12118         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12120 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12122         * config/gnu-user.opt: New.
12123         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12124         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12125         *-*-uclinux*): Use gnu-user.opt.
12127 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12129         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12130         * config/i386/gnu.h (CPP_SPEC): Likewise.
12132 2011-02-08  Ian Lance Taylor  <iant@google.com>
12134         * common.opt (fcx-limited-range): Add SetByCombined flag.
12135         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12136         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12137         (fassociative-math, freciprocal-math): Likewise.
12138         (funsafe-math-optimizations): Likewise.
12139         * opth-gen.awk: Handle SetByCombined.
12140         * optc-gen.awk: Likewise.
12141         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12142         (set_unsafe_math_optimizations_flags): Likewise.
12143         * doc/options.texi (Option properties): Document SetByCombined.
12145 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12147         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12148         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12149         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12150         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12151         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12153 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12155         PR tree-optimization/46834
12156         PR tree-optimization/46994
12157         PR tree-optimization/46995
12158         * graphite-sese-to-poly.c (used_outside_reduction): New.
12159         (detect_commutative_reduction): Call used_outside_reduction.
12160         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12161         translate_scalar_reduction_to_array only when at least one
12162         loop-phi/close-phi tuple has been detected.
12164 2011-02-08  Richard Guenther  <rguenther@suse.de>
12166         PR middle-end/47639
12167         * tree-vect-generic.c (expand_vector_operations_1): Update
12168         stmts here ...
12169         (expand_vector_operations): ... not here.  Cleanup EH info
12170         and the CFG if required.
12172 2011-02-08  Richard Guenther  <rguenther@suse.de>
12174         PR tree-optimization/47641
12175         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12176         require type compatibility.
12178 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12180         * gimple-low.c (lower_function_body): Don't remove the location of
12181         the return statement here.
12182         (lower_gimple_return): Do it here instead but only if the return
12183         statement is actually used twice.
12185 2011-02-08  Richard Guenther  <rguenther@suse.de>
12187         PR tree-optimization/47632
12188         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12189         unused up_to_stmt parameter, return whether cfg-cleanup is
12190         necessary, remove EH info properly.
12191         (forward_propagate_into_gimple_cond): Adjust caller.
12192         (forward_propagate_into_cond): Likewise.
12193         (forward_propagate_comparison): Likewise.
12194         (tree_ssa_forward_propagate_single_use_vars): Make
12195         forward_propagate_comparison case similar to the two others.
12197 2011-02-08  Nick Clifton  <nickc@redhat.com>
12199         * config/mn10300/mn10300.opt (mliw): New command line option.
12200         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12201         (liw_bundling): New automaton.
12202         (liw): New attribute.
12203         (liw_op): New attribute.
12204         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12205         (movsi_internal): Add LIW attributes.
12206         (andsi3): Likewise.
12207         (iorsi3): Likewise.
12208         (xorsi3): Likewise.
12209         (addsi3): Separate register and immediate alternatives.
12210         Add LIW attributes.
12211         (subsi3): Likewise.
12212         (cmpsi): Likewise.
12213         (aslsi3): Likewise.
12214         (lshrsi3): Likewise.
12215         (ashrsi3): Likewise.
12216         (liw): New pattern.
12217         * config/mn10300/mn10300.c (liw_op_names): New
12218         (mn10300_print_operand): Handle 'W' operand descriptor.
12219         (extract_bundle): New function.
12220         (check_liw_constraints): New function.
12221         (liw_candidate): New function.
12222         (mn10300_bundle_liw): New function.
12223         (mn10300_reorg): New function.
12224         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12225         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12226         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12227         __LIW__ or __NO_LIW__.
12228         * doc/invoke.texi: Describe the -mliw command line option.
12230 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12232         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12233         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12234         pthread_mutex_unlock): Remove.
12235         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12236         * config/pa/t-pa64: Likewise.
12237         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12238         shared libc if not linking against libpthread.
12239         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12241 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12243         PR target/47558
12244         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12245         on 10.6 and later to ensure that we always use the unwinder from
12246         the system.  Only add -no_compact_unwind when tarteting darwin
12247         10.6 or later.
12249 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12251         PR target/46997
12252         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12253         (vec_interleave_lowv2sf): Ditto.
12254         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12255         (vec_extract_oddv2sf): Ditto.
12257 2011-02-07  Mike Stump  <mikestump@comcast.net>
12259         PR target/42333
12260         Add __ieee_divdc3 entry point.
12261         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12262         entry point.
12263         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12264         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12265         * config/darwin.c (darwin_rename_builtins): Add.
12266         * config/darwin-protos.h (darwin_rename_builtins): Add.
12268 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12270         PR target/47636
12271         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12272         for the condition.
12274 2011-02-07  Mike Stump  <mikestump@comcast.net>
12276         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12278 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12280         PR target/47534
12281         * config/avr/libgcc.S (exit): Move .endfunc
12283 2011-02-07  Richard Guenther  <rguenther@suse.de>
12285         PR tree-optimization/47615
12286         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12287         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12288         (run_scc_vn): Initialize it.
12289         (visit_reference_op_load): Use it.
12290         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12292 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12294         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12295         DImode trapping arithmetic libfuncs.
12297 2011-02-07  Richard Guenther  <rguenther@suse.de>
12299         PR tree-optimization/47621
12300         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12301         two duplicates ...
12302         (execute_update_addresses_taken): ... here.  Make it more
12303         conservative in what we accept.
12305 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12307         * config/sparc/freebsd.h (ASM_SPEC): Define.
12308         * config/sparc/vxworks.h (ASM_SPEC): Define.
12310 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12312         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12314 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12316         * doc/invoke.texi: Remove reference to compiler internals from
12317         user documentation.
12319         * reg-notes.def: Remove REG_VALUE_PROFILE.
12320         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12322 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12324         PR middle-end/47610
12325         * varasm.c (default_section_type_flags): If decl is NULL,
12326         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12328 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12330         PR debug/42631
12331         * web.c (entry_register): Don't clobber the number of the
12332         first uninitialized reference in used[].
12334 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12336         PR tree-optimization/46194
12337         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12338         (build_classic_dist_vector_1): Do not represent classic distance
12339         vectors when the access functions are variating in different loops.
12341 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12343         * config/mips/iris6.opt: New.
12344         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12346 2011-02-04  Richard Henderson  <rth@redhat.com>
12347             Steve Ellcey  <sje@cup.hp.com>
12349         PR target/46997
12350         * config/ia64/predicates.md (mux1_brcst_element): New.
12351         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12352         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12353         (ia64_unpack_sign): New.
12354         (ia64_expand_unpack): Rewrite using new routines.
12355         (ia64_expand_widen_sum): Ditto.
12356         (ia64_expand_dot_prod_v8qi): Ditto.
12357         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12358         routines, add endian check.
12359         (pmpy2_even): Rename from pmpy2_r, add endian check.
12360         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12361         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12362         (vec_widen_smult_hi_v4hi): Ditto.
12363         (vec_widen_umult_lo_v4hi): Ditto.
12364         (vec_widen_umult_hi_v4hi): Ditto.
12365         (mulv2si3): Change endian checks.
12366         (sdot_prodv4hi): Rewrite with new calls.
12367         (udot_prodv4hi): New.
12368         (vec_pack_ssat_v4hi): Add endian check.
12369         (vec_pack_usat_v4hi): Ditto.
12370         (vec_pack_ssat_v2si): Ditto.
12371         (max1_even): Rename from max1_r, add endian check.
12372         (max1_odd): Rename from max1_l, add endian check.
12373         (*mux1_rev): Format change.
12374         (*mux1_mix): Ditto.
12375         (*mux1_shuf): Ditto.
12376         (*mux1_alt): Ditto.
12377         (*mux1_brcst_v8qi): Use new predicate.
12378         (vec_extract_evenv8qi): Remove endian check.
12379         (vec_extract_oddv8qi): Ditto.
12380         (vec_interleave_lowv4hi): Format change.
12381         (vec_interleave_highv4hi): Ditto.
12382         (mix2_even): Rename from mix2_r, add endian check.
12383         (mix2_odd): Rename from mux2_l, add endian check.
12384         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12385         (vec_extract_evenodd_helper): Format change.
12386         (vec_extract_evenv4hi): Remove endian check.
12387         (vec_extract_oddv4hi): Remove endian check.
12388         (vec_interleave_lowv2si): Format change.
12389         (vec_interleave_highv2si): Format change.
12390         (vec_initv2si): Remove endian check.
12391         (vecinit_v2si): Add endian check.
12392         (reduc_splus_v2sf): Add endian check.
12393         (reduc_smax_v2sf): Ditto.
12394         (reduc_smin_v2sf): Ditto.
12395         (vec_initv2sf): Remove endian check.
12396         (fpack): Add endian check.
12397         (fswap): Add endian check.
12398         (vec_interleave_highv2sf): Add endian check.
12399         (vec_interleave_lowv2sf): Add endian check.
12400         (fmix_lr): Add endian check.
12401         (vec_setv2sf): Format change.
12402         (*vec_extractv2sf_0_be): Use shift to extract operand.
12403         (*vec_extractv2sf_1_be): New.
12404         (vec_pack_trunc_v4hi): Add endian check.
12405         (vec_pack_trunc_v2si): Format change.
12407 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12409         PR inline-asm/23200
12410         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12411         do bb, locus and block comparison and disallow loads if it is not set.
12412         (stmt_is_replaceable_p): New function.
12413         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12414         callers.
12415         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12416         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12417         SSA_NAME_DEF_STMT.
12418         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12420 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12422         * config/rs6000/xilinx.opt: New.
12423         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12425 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12427         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12429 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12431         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12432         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12433         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12434         secondary_reload_info, xtensa_secondary_reload): Remove.
12435         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12436         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12437         (xtensa_preferred_reload_class): Make static. Change return and
12438         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12439         Use CONST_DOUBLE_P predicate.
12440         (xtensa_preferred_output_reload_class): New function.
12441         (xtensa_secondary_reload): Make static.
12443 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12445         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12446         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12447         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12449 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12451         PR middle-end/31490
12452         * output.h (SECTION_RELRO): Define.
12453         (SECTION_MACH_DEP): Adjust.
12454         (get_variable_section): New prototype.
12455         * varpool.c (varpool_finalize_named_section_flags): New function.
12456         (varpool_assemble_pending_decls): Call it.
12457         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12458         * cgraphunit.c (cgraph_output_in_order): Call
12459         varpool_finalize_named_section_flags.
12460         * varasm.c (get_section): Allow section flags conflicts between
12461         relro and read-only sections if the section hasn't been declared yet.
12462         Set SECTION_OVERRIDE after diagnosing section type conflict.
12463         (get_variable_section): No longer static.
12464         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12465         readonly sections that need relocations.
12466         (decl_readonly_section_1): New function.
12467         (decl_readonly_section): Use it.
12469         Revert:
12470         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12471                     Steve Ellcey  <sje@cup.hp.com>
12473         PR middle-end/31490
12474         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12475         if section attribute used.
12477 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12479         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12480         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12481         (darwin_init_sections): Remove assertion.
12483 2011-02-03  Nick Clifton  <nickc@redhat.com>
12485         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12486         lt and ge.
12487         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12488         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12489         instead of "n" and "pz".
12490         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12491         CC_FLAG_S.
12493 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12495         PR target/47312
12496         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12497         fma, expand FMA_EXPR as fma{,f,l} call.
12499         PR lto/47274
12500         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12501         copy them into a unsigned char variable and pass address of it to
12502         lto_output_data_stream.
12504         PR target/47564
12505         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12506         around backend_init_target and lang_dependent_init_target calls.
12507         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12508         (verify_cgraph_node): Don't call set_cfun here.  Use
12509         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12510         Set error_found for incorrectly represented calls to thunks.
12512 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12514         PR debug/43092
12515         PR rtl-optimization/43494
12516         * rtl.h (for_each_inc_dec_fn): New type.
12517         (for_each_inc_dec): Declare.
12518         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12519         (for_each_inc_dec_find_inc_dec): New fn.
12520         (for_each_inc_dec_find_mem): New fn.
12521         (for_each_inc_dec): New fn.
12522         * dse.c (struct insn_size): Remove.
12523         (replace_inc_dec, replace_inc_dec_mem): Remove.
12524         (emit_inc_dec_insn_before): New fn.
12525         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12526         (canon_address): Pass mem modes to cselib_lookup.
12527         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12528         (cselib_lookup_from_insn): Likewise.
12529         (cselib_subst_to_values): Likewise.
12530         * cselib.c (find_slot_memmode): New var.
12531         (cselib_find_slot): New fn.  Use it instead of
12532         htab_find_slot_with_hash everywhere.
12533         (entry_and_rtx_equal_p): Use find_slot_memmode.
12534         (autoinc_split): New fn.
12535         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12536         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12537         Deal with autoinc.  Special-case recursion into MEMs.
12538         (cselib_hash_rtx): Likewise.
12539         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12540         address and MEM modes.
12541         (cselib_subst_to_values): Add memmode, pass it on.
12542         Deal with autoinc.
12543         (cselib_lookup): Add memmode argument, pass it on.
12544         (cselib_lookup_from_insn): Add memmode.
12545         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12546         (struct cselib_record_autoinc_data): New.
12547         (cselib_record_autoinc_cb): New fn.
12548         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12549         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12550         (cselib_process_insn): ... here.
12551         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12552         to cselib_lookup.
12553         (add_uses): Likewise, also to cselib_subst_to_values.
12554         (add_stores): Likewise.
12555         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12556         cselib_subst_to_values.
12557         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12558         * gcse.c (do_local_cprop): Adjusted.
12559         * postreload.c (reload_cse_simplify_set): Adjusted.
12560         (reload_cse_simplify_operands): Adjusted.
12561         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12563 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12565         PR tree-optimization/45122
12566         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12567         unsafe assumptions when there's more than one loop exit.
12569 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12571         PR target/47272
12572         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12573         Document using vector double with the load/store builtins, and
12574         that the load/store builtins always use Altivec instructions.
12576         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12577         to use altivec memory instructions, even on VSX.
12578         (vector_altivec_store_<mode>): Ditto.
12580         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12581         function.
12583         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12584         V2DF, V2DI support to load/store overloaded builtins.
12586         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12587         altivec load/store builtins for V2DF/V2DI types.
12589         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12590         set avoid indexed addresses on power6 if -maltivec.
12591         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12592         vector_altivec_load/vector_altivec_store builtins.
12593         (altivec_expand_st_builtin): Ditto.
12594         (altivec_expand_builtin): Add VSX memory builtins.
12595         (rs6000_init_builtins): Add V2DI types to internal types.
12596         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12597         load/store builtins.
12598         (rs6000_address_for_altivec): Insure memory address is appropriate
12599         for Altivec.
12601         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12602         vec_vsx_ld and vec_vsx_st.
12603         (vsx_store_<mode>): Ditto.
12605         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12606         variables to hold long long types for VSX vector memory builtins.
12607         (RS6000_BTI_unsigned_long_long): Ditto.
12608         (long_long_integer_type_internal_node): Ditti.
12609         (long_long_unsigned_type_internal_node): Ditti.
12611         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12612         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12613         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12615         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12616         short cuts.
12617         (vec_vsx_st): Ditto.
12619 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12621         * config/pa/pa-hpux10.opt: New.
12622         * config/hpux11.opt (pthread): New Driver option.
12623         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12624         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12626 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12628         * config/ia64/vms.opt: New.
12629         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12631 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12633         PR target/47580
12634         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12635         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12636         generator functions.
12637         (vsx_floatuns<VSi><mode>2): Ditto.
12638         (vsx_fix_trunc<mode><VSi>2): Ditto.
12639         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12641 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12643         * config/i386/djgpp.opt (posix): New Driver option.
12645 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12647         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12648         Move to the unsupported targets list.
12650 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12652         PR rtl-optimization/47525
12653         * df-scan.c: Update copyright years.
12654         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12655         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12657 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12659         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12660         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12661         (ASM_OUTPUT_ASCII): Remove.
12662         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12664 2011-02-02  Jeff Law  <law@redhat.com>
12666         PR middle-end/47543
12667         * reload.c (find_reloads_address): Handle reg+d address where both
12668         components are invalid by reloading the entire address.
12670 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12671             Richard Guenther  <rguenther@suse.de>
12673         PR tree-optimization/40979
12674         PR bootstrap/47044
12675         * passes.c (init_optimization_passes): After LIM call copy_prop
12676         and DCE to clean up.
12677         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12679 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12681         PR tree-optimization/47576
12682         PR tree-optimization/47555
12683         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12684         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12685         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12686         * tree-scalar-evolution.c (follow_ssa_edge): Use
12687         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12689 2011-02-02  Richard Guenther  <rguenther@suse.de>
12691         PR tree-optimization/47566
12692         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12694 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12696         PR debug/47106
12697         PR debug/47402
12698         * tree-inline.c (declare_return_variable): Remove unused caller
12699         variable.
12701         PR debug/47106
12702         PR debug/47402
12703         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12704         * cfgexpand.c (account_used_vars_for_block): Use them.
12705         * tree-nrv.c (tree_nrv): Likewise.
12706         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12707         (dump_scope_block): Likewise.
12708         (remove_unused_locals): Likewise.
12710         PR debug/47106
12711         PR debug/47402
12712         * tree-inline.c (declare_return_variable): Add result decl to
12713         local decls only once.
12714         * gimple-low.c (record_vars_into): Mark newly-created variables
12715         as referenced.
12717 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12719         PR debug/47498
12720         PR debug/47501
12721         PR debug/45136
12722         PR debug/45130
12723         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12724         debug insns.
12725         (no_real_insns_p, schedule_block, set_priorities): Drop special
12726         treatment of boundary debug insns.
12727         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12728         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12729         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12730         (BOUNDARY_DEBUG_INSN_P): Likewise.
12731         (SCHEDULE_DEBUG_INSN_P): Likewise.
12732         * sched-rgn.c (init_ready_list): Drop special treatment of
12733         boundary debug insns.
12734         * final.c (rest_of_clean_state): Clear notes' BB.
12736 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12738         * config/openbsd.opt (assert=): New Driver option.
12740 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12742         * config/i386/nto.opt: New.
12743         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12745 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12747         * config/i386/netware.opt: New.
12748         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12750 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12752         * config/interix.opt (posix): New Driver option.
12754 2011-02-01  DJ Delorie  <dj@redhat.com>
12756         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12758         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12759         class for A0/A1.
12761 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12763         PR tree-optimization/47561
12764         * toplev.c (process_options): Print the Graphite flags.  Add
12765         flag_loop_flatten to the list of options requiring Graphite.
12767 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12769         * config/i386/cygming.opt (posix): New Driver option.
12771 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12773         * config/arm/vxworks.opt: New.
12774         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12776 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12778         * config/alpha/elf.opt: New.
12779         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12780         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12782 2011-02-01  Richard Guenther  <rguenther@suse.de>
12784         PR tree-optimization/47559
12785         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12786         store-motion on references that can throw.
12788 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12790         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12791         * tree-pass.h (TDF_CSELIB): New macro.
12792         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12793         cselib_lookup): Check for it rather than for TDF_DETAILS.
12795 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12797         PR driver/47547
12798         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12799         is HOST_BIT_BUCKET.
12801         * opts.c (finish_options): Don't add x_aux_base_name if it is
12802         HOST_BIT_BUCKET.
12804 2011-02-01  Richard Guenther  <rguenther@suse.de>
12806         PR tree-optimization/47555
12807         Revert
12808         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12810         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12812 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12814         PR gcc/46692
12815         * config/lm32/t-lm32: Add multilib for all CPU options.
12817 2011-02-01  Richard Guenther  <rguenther@suse.de>
12819         PR tree-optimization/47541
12820         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12821         sure to have a field at offset zero.
12823 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12825         * config/arc/arc.opt (EB, EL): New Driver options.
12827 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12829         * config/alpha/osf5.opt: New.
12830         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12832 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12834         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12836 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12838         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12839         -floop-interchange.
12840         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12841         is an alias of -floop-interchange and that it requires the
12842         Graphite infrastructure.
12843         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12844         flag_loop_interchange based on the value of flag_tree_loop_linear.
12846 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12847             Richard Guenther  <rguenther@suse.de>
12849         PR tree-optimization/47538
12850         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12851         type instead of r1type, except for comparisons.  For right
12852         shifts and comparisons punt if there are mismatches in
12853         sizetype vs. non-sizetype types.
12855 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12857         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12858         avx_runtime.
12860 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12862         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12863         version number.
12864         * configure: Regenerate.
12866 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12868         * configure.ac (gcc_cv_ld_static_option): Define.
12869         (gcc_cv_ld_dynamic_option): Define.
12870         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12871         instead.
12872         (HAVE_LD_STATIC_DYNAMIC): Update message.
12873         (LD_STATIC_OPTION): Define.
12874         (LD_DYNAMIC_OPTION): Define.
12875         * configure: Regenerate.
12876         * config.in: Regenerate.
12877         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12878         HAVE_LD_STATIC_DYNAMIC]: Use them.
12880 2011-01-31  Nick Clifton  <nickc@redhat.com>
12882         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12883         registers inside interrupt handlers if the handler is not a leaf
12884         function.
12886 2011-01-31  Nick Clifton  <nickc@redhat.com>
12888         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12889         reg_renumber returning an INVALID_REGNUM.
12891 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12893         PR libgcj/44341
12894         * doc/install.texi: Document host options discarded when cross
12895         configuring target libraries.
12897 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12899         Reverted:
12900         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12901         PR debug/45136
12902         PR debug/45130
12903         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12904         debug insns.
12905         (no_real_insns_p, schedule_block, set_priorities): Drop special
12906         treatment of boundary debug insns.
12907         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12908         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12909         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12910         (BOUNDARY_DEBUG_INSN_P): Likewise.
12911         (SCHEDULE_DEBUG_INSN_P): Likewise.
12912         * sched-rgn.c (init_ready_list): Drop special treatment of
12913         boundary debug insns.
12914         * final.c (rest_of_clean-state): Clear notes' BB.
12916 2011-01-31  Alan Modra  <amodra@gmail.com>
12918         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12919         toc relative expressions as we do in print_operand_address.
12921 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12923         * doc/extend.texi: Follow spelling conventions.
12924         * doc/invoke.texi: Fix a typo.
12926 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12928         * config/hpux11.opt: New.
12929         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12930         ia64*-*-hpux*): Use hpux11.opt.
12932 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12934         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12935         to tmake_file.
12937 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12939         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12940         support sites.
12942 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12944         * doc/install.texi (Binaries): Remove outdated reference for
12945         Motorola 68HC11/68HC12 downloads.
12947 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12949         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12950         Drepper's paper.
12952 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12954         PR bootstrap/47147
12955         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12956         used by NetBSD.
12958 2011-01-28  Ahmad Sharif  <asharif@google.com>
12960         * value-prof.c (check_counter): Corrected error message.
12962 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12964         * config/arm/arm.c (arm_legitimize_reload_address): New.
12965         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12966         arm_legitimize_reload_address.
12967         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12969 2011-01-28  Ian Lance Taylor  <iant@google.com>
12971         * godump.c (go_define): Ignore macros whose definitions include
12972         two adjacent operands.
12974 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12976         PR target/42894
12977         * varasm.c (force_const_mem): Store copy of x in desc->constant
12978         instead of x itself.
12979         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12980         itself into REG_EQUAL note.
12982 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
12984         * config/freebsd.opt (posix, rdynamic): New Driver options.
12986 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12988         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12989         -Bstatic/-Bdynamic.
12990         * configure: Regenerate.
12992 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
12994         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12995         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12997 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
12999         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13000         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13001         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13002         (s390_preferred_reload_class): Make static. Change return and
13003         'rclass' argument type to reg_class_t.
13005 2011-01-27  Jan Hubicka  <jh@suse.cz>
13007         PR middle-end/46949
13008         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13009         (process_function_and_variable_attributes): Check defined weakrefs.
13011 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13013         PR tree-optimization/47228
13014         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13015         build_ref_for_offset.
13017 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13019         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13021 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13023         PR rtl-optimization/46856
13024         * postreload.c (reload_combine_recognize_const_pattern): Do not
13025         separate cc0 setter and user on cc0 targets.
13027 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13029         PR c/43082
13030         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13031         passed a VOID_TYPE expression, immediately emit an error and
13032         return error_mark_node.
13034 2011-01-26  Jeff Law  <law@redhat.com>
13036         PR rtl-optimization/47464
13037         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13038         rather than may_trap_p as needed.
13040 2011-01-26  DJ Delorie  <dj@redhat.com>
13042         PR rtl-optimization/46878
13043         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13044         setter/user dependency as well.
13046 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13048         PR rtl-optimization/44469
13049         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13050         after removing trivially dead basic blocks.
13052 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13054         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13055         * config/frv/frv.h (LINK_SPEC): Likewise.
13056         * config/i386/netware.h (LINK_SPEC): Likewise.
13057         * config/m68k/linux.h (ASM_SPEC): Likewise.
13058         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13059         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13060         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13061         * config/sparc/linux.h (ASM_SPEC): Likewise.
13062         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13063         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13065 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13067         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13068         * config/frv/frv.h (ASM_SPEC): Likewise.
13069         * config/m68k/linux.h (ASM_SPEC): Likewise.
13070         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13071         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13072         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13073         * config/sparc/linux.h (ASM_SPEC): Likewise.
13074         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13075         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13077 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13079         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13080         * config/frv/frv.h (LINK_SPEC): Likewise.
13081         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13083 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13085         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13086         * config/frv/frv.h (ASM_SPEC): Likewise.
13087         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13088         * config/m68k/linux.h (ASM_SPEC): Likewise.
13089         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13090         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13091         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13092         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13093         * config/sparc/linux.h (ASM_SPEC): Likewise.
13094         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13095         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13096         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13098 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13100         PR target/46997
13101         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13102         (*mux2): Ditto.
13103         (vec_extract_evenodd_help): Ditto.
13104         (vec_extract_evenv4hi): Ditto.
13105         (vec_extract_oddv4hi): Ditto.
13106         (vec_interleave_lowv2si): Ditto.
13107         (vec_interleave_highv2si): Ditto.
13108         (vec_extract_evenv2si): Ditto.
13109         (vec_extract_oddv2si: Ditto.
13110         (vec_pack_trunc_v2si): Ditto.
13112 2011-01-22  Jan Hubicka  <jh@suse.cz>
13114         PR target/47237
13115         * cgraph.h (cgraph_local_info): New field can_change_signature.
13116         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13117         signature can change.
13118         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13119         can change.
13120         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13121         (cgraph_function_versioning): We can not change signature of functions
13122         that don't allow that.
13123         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13124         (lto_input_node): Likewise.
13125         * ipa-inline.c (compute_inline_parameters): Compute
13126         local.can_change_signature.
13127         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13128         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13129         functions that can not change signature.
13130         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13131         init_cumulative_args): Do not use local calling conventions
13132         for functions that can not change signature.
13134 2011-01-22  Jan Hubicka  <jh@suse.cz>
13136         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13138 2011-01-26  Richard Guenther  <rguenther@suse.de>
13140         PR tree-optimization/47190
13141         * cgraphunit.c (process_common_attributes): New function.
13142         (process_function_and_variable_attributes): Use it.
13144 2011-01-26  Richard Guenther  <rguenther@suse.de>
13146         PR lto/47423
13147         * cgraphbuild.c (record_eh_tables): Record reference to personality
13148         function.
13150 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13152         PR debug/45454
13153         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13154         non-debug insns from moving up.
13156 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13158         PR target/40125
13159         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13160         t-dlldir{,-x} fragment for build and add it to tmake_file.
13161         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13162         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13163         * config/i386/t-dlldir: New file.
13164         (SHLIB_DLLDIR): Define.
13165         * config/i386/t-dlldir-x: New file.
13166         (SHLIB_DLLDIR): Define.
13167         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13168         (SHLIB_INSTALL): Use it.
13170 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13172         PR target/47246
13173         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13174         lower bound of the allowed Thumb-2 coprocessor load/store
13175         index range to -256. Add explaining comment.
13177 2011-01-25  Ian Lance Taylor  <iant@google.com>
13179         * godump.c (go_define): Improve lexing of macro expansion to only
13180         accept expressions which match Go spec.
13182 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13184         PR c++/43601
13185         * tree.c (handle_dll_attribute): Handle it.
13186         * doc/extend.texi (@item dllexport): Mention it.
13187         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13189 2011-01-25  Ian Lance Taylor  <iant@google.com>
13191         PR tree-optimization/26854
13192         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13193         (decl_jump_unsafe): Move higher in file, with no other change.
13194         (bind): Set has_jump_unsafe_decl if appropriate.
13195         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13196         (check_earlier_gotos): Likewise.
13197         (c_check_switch_jump_warnings): Likewise.
13199 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13201         * doc/invoke.texi (Warning Options): Add missing hyphen.
13202         (-fprofile-dir): Minor grammatical fixes.
13203         (-fbranch-probabilities): Likewise.
13205 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13207         PR debug/45136
13208         PR debug/45130
13209         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13210         debug insns.
13211         (no_real_insns_p, schedule_block, set_priorities): Drop special
13212         treatment of boundary debug insns.
13213         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13214         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13215         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13216         (BOUNDARY_DEBUG_INSN_P): Likewise.
13217         (SCHEDULE_DEBUG_INSN_P): Likewise.
13218         * sched-rgn.c (init_ready_list): Drop special treatment of
13219         boundary debug insns.
13220         * final.c (rest_of_clean-state): Clear notes' BB.
13222 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13224         * Makefile.in (LAMBDA_H): Removed.
13225         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13226         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13227         lambda-trans.o, and tree-loop-linear.o.
13228         (lto-symtab.o): Remove dependence on LAMBDA_H.
13229         (tree-loop-linear.o): Remove rule.
13230         (lambda-mat.o): Same.
13231         (lambda-trans.o): Same.
13232         (lambda-code.o): Same.
13233         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13234         (tree-vect-slp.o): Same.
13235         * hwint.h (gcd): Moved here.
13236         (least_common_multiple): Same.
13237         * lambda-code.c: Removed.
13238         * lambda-mat.c: Removed.
13239         * lambda-trans.c: Removed.
13240         * lambda.h: Removed.
13241         * tree-loop-linear.c: Removed.
13242         * lto-symtab.c: Do not include lambda.h.
13243         * omega.c (gcd): Removed.
13244         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13245         * tree-data-ref.c (print_lambda_vector): Moved here.
13246         (lambda_vector_copy): Same.
13247         (lambda_matrix_copy): Same.
13248         (lambda_matrix_id): Same.
13249         (lambda_vector_first_nz): Same.
13250         (lambda_matrix_row_add): Same.
13251         (lambda_matrix_row_exchange): Same.
13252         (lambda_vector_mult_const): Same.
13253         (lambda_vector_negate): Same.
13254         (lambda_matrix_row_negate): Same.
13255         (lambda_vector_equal): Same.
13256         (lambda_matrix_right_hermite): Same.
13257         * tree-data-ref.h: Do not include lambda.h.
13258         (lambda_vector): Moved here.
13259         (lambda_matrix): Same.
13260         (dependence_level): Same.
13261         (lambda_transform_legal_p): Removed declaration.
13262         (lambda_collect_parameters): Same.
13263         (lambda_compute_access_matrices): Same.
13264         (lambda_vector_gcd): Same.
13265         (lambda_vector_new): Same.
13266         (lambda_vector_clear): Same.
13267         (lambda_vector_lexico_pos): Same.
13268         (lambda_vector_zerop): Same.
13269         (lambda_matrix_new): Same.
13270         * tree-flow.h (least_common_multiple): Removed declaration.
13271         * tree-parloops.c (lambda_trans_matrix): Moved here.
13272         (LTM_MATRIX): Same.
13273         (LTM_ROWSIZE): Same.
13274         (LTM_COLSIZE): Same.
13275         (LTM_DENOMINATOR): Same.
13276         (lambda_trans_matrix_new): Same.
13277         (lambda_matrix_vector_mult): Same.
13278         (lambda_transform_legal_p): Same.
13279         * tree-pass.h (pass_linear_transform): Removed declaration.
13280         * tree-ssa-loop.c (tree_linear_transform): Removed.
13281         (gate_tree_linear_transform): Removed.
13282         (pass_linear_transform): Removed.
13283         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13284         flag_loop_interchange.
13286 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13288         PR tree-optimization/47265
13289         PR tree-optimization/47443
13290         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13291         if name still has some uses.
13293 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13295         PR tree-optimization/47382
13296         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13297         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13299 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13301         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13302         sjlj_except_unwind_info.
13304 2011-01-25  Richard Guenther  <rguenther@suse.de>
13306         PR tree-optimization/47426
13307         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13308         visible functions results escape.
13310 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13312         PR target/45701
13313         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13314         (arm_get_frame_offsets): Use it.
13316 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13317             Jakub Jelinek  <jakub@redhat.com>
13319         PR tree-optimization/47271
13320         * tree-if-conv.c (bb_postdominates_preds): New.
13321         (if_convertible_bb_p): Call bb_postdominates_preds.
13322         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13323         (predicate_scalar_phi): Call bb_postdominates_preds.
13325 2011-01-25  Nick Clifton  <nickc@redhat.com>
13327         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13328         * config/rx/rx.c (rx_function_value): Likewise.
13329         (rx_promote_function_mode): Likewise.
13330         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13331         in order to make it legitimate.
13332         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13333         make sure that the first operand is the same as the result register.
13334         (addsi3_unspec): Delete.
13335         (subdi3): Do not accept immediate operands.
13336         (subdi3_internal): Likewise.
13338 2011-01-25  Jeff Law  <law@redhat.com>
13340         PR rtl-optimization/37273
13341         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13342         handle them like argument loads from stack slots.  Do not double
13343         count memory for memory constants and argument loads from stack slots.
13345 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13347         PR tree-optimization/47427
13348         PR tree-optimization/47428
13349         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13350         coalesce if the new root var would be TREE_READONLY.
13352 2011-01-25  Richard Guenther  <rguenther@suse.de>
13354         PR middle-end/47414
13355         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13356         correct type for TBAA.
13358 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13360         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13361         (close_phi_written_to_memory): Call for_each_index with
13362         dr_indices_valid_in_loop.
13364 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13366         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13367         when it is initialized.
13369 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13371         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13372         call to graphite_find_data_references_in_stmt.
13373         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13374         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13375         call to graphite_find_data_references_in_stmt.
13376         (analyze_drs_in_stmts): Same.
13377         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13378         in which the scalar analysis of indices is performed.
13379         (create_data_ref): Same.  Update call to dr_analyze_indices.
13380         (find_data_references_in_stmt): Update call to create_data_ref.
13381         (graphite_find_data_references_in_stmt): Same.
13382         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13383         declaration.
13384         (create_data_ref): Same.
13385         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13386         call to create_data_ref.
13388 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13390         * graphite-sese-to-poly.c (build_poly_scop): Move
13391         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13395         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13396         VAR_DECL, PARM_DECL, and RESULT_DECL.
13398 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13400         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13401         in a reduction PBB.
13402         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13403         that have already been marked as PBB_IS_REDUCTION.
13405 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13407         * graphite-scop-detection.c (same_close_phi_node): New.
13408         (remove_duplicate_close_phi): New.
13409         (make_close_phi_nodes_unique): New.
13410         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13412 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13414         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13415         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13416         of both data references to be the same.
13418 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13420         * graphite-dependences.c (build_lexicographical_constraint): Remove
13421         the gdim parameter.
13422         (build_lexicographical_constraint): Adjust call to
13423         ppl_powerset_is_empty.
13424         (dependence_polyhedron): Same.
13425         (graphite_legal_transform_dr): Same.
13426         (graphite_carried_dependence_level_k): Same.
13427         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13428         parameter.
13429         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13431 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13433         * graphite-sese-to-poly.c
13434         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13435         (close_phi_written_to_memory): New.
13436         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13437         and unshare_expr.
13439 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13441         * doc/install.texi: Update the expected version number of PPL to 0.11.
13442         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13443         #if PPL_VERSION_MINOR < 11.
13445 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13447         * graphite-dependences.c: Include graphite-cloog-util.h.
13448         (new_poly_ddr): Inlined into dependence_polyhedron.
13449         (free_poly_ddr): Moved close by new_poly_ddr.
13450         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13451         Early return NULL when ppl_powerset_is_empty returns true.
13452         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13453         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13454         (graphite_legal_transform_dr): Call new_poly_ddr.
13455         (graphite_carried_dependence_level_k): Same.
13456         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13457         (dot_transformed_deps_stmt_1): Removed.
13458         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13459         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13460         (dot_deps_1): Call dot_deps_2.
13461         * Makefile.in (graphite-dependences.o): Add missing dependence on
13462         graphite-cloog-util.h.
13464 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13466         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13467         (build_lexicographical_constraint): Same.
13468         (dependence_polyhedron_1): Same.
13469         (graphite_legal_transform_dr): Same.
13470         (graphite_carried_dependence_level_k): Same.
13471         * graphite-ppl.c (ppl_powerset_is_empty): New.
13472         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13473         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13475 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13477         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13478         the "a followed by b" relation and document it.
13480 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13482         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13483         iteration when the bag of constraints is empty.
13485 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13487         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13489 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13491         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13492         nest and two loop depths as parameters.
13493         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13494         lst_perfect_nestify.
13496 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13498         * graphite-dependences.c (print_pddr): Call
13499         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13501 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13503         * graphite-ppl.c (debug_gmp_value): New.
13504         * graphite-ppl.h (debug_gmp_value): Declared.
13506 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13508         * doc/install.texi: Document availability of cloog-0.16.
13510 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13512         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13513         invalid postdominance info.
13515 2011-01-24  Jan Hubicka  <jh@suse.cz>
13517         PR c/21659
13518         * doc/extend.texi (weak pragma): Drop claim that it must
13519         appear before definition.
13520         * varasm.c (merge_weak, declare_weak): Only sanity check
13521         that DECL is not output at a time it is declared weak.
13523 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13525         * machmode.def: Fixed comments.
13527 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13529         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13531 2011-01-24  Paul Koning  <ni1d@arrl.net>
13533         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13534         WORDS_BIG_ENDIAN.
13536 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13538         PR target/46519
13539         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13540         (block_info): Add scanned and prev.
13541         (move_or_delete_vzeroupper_2): Return if the basic block
13542         has been scanned and the upper 128bit state is unchanged
13543         from the last scan.
13544         (move_or_delete_vzeroupper_1): Return true if the exit
13545         state is changed.
13546         (move_or_delete_vzeroupper): Visit basic blocks using the
13547         work-list based algorithm based on vt_find_locations in
13548         var-tracking.c.
13550         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13552 2011-01-24  Nick Clifton  <nickc@redhat.com>
13554         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13555         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13556         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13557         then define __v850e1__.
13558         * doc/invoke.texi: Document -mv850es.
13560 2011-01-24  Richard Henderson  <rth@redhat.com>
13562         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13563         compound unordered comparisons.
13564         * config/rx/rx.c (rx_split_fp_compare): Remove.
13565         * config/rx/rx-protos.h: Update.
13566         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13567         (cbranchsf4): Don't call rx_split_fp_compare.
13568         (*cbranchsf4): Use rx_split_cbranch.
13569         (*cmpsf): Don't accept "i" constraint.
13570         (*conditional_branch): Only valid after reload.
13571         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13573 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13575         PR target/47385
13576         * config/rs6000/altivec.md (vector constant splitters): Add
13577         support for creating vector single precision constants if -mvsx is
13578         used and we would create the constant using Altivec primitives.
13580 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13581             Richard Sandiford  <rdsandiford@googlemail.com>
13583         PR rtl-optimization/47166
13584         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13585         mechanism for PRE_MODIFY and POST_MODIFY.
13586         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13587         reloadreg.
13589 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13591         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13593 2011-01-22  Jan Hubicka  <jh@suse.cz>
13595         PR lto/47333
13596         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13598 2011-01-22  Jan Hubicka  <jh@suse.cz>
13600         PR tree-optimization/43884
13601         PR lto/44334
13602         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13603         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13605 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13607         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13608         * config/s390/s390.c (s390_register_move_cost,
13609         s390_memory_move_cost): New.
13610         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13612 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13614         PR middle-end/47401
13615         * except.c (sjlj_assign_call_site_values): Move setting the
13616         crtl->uses_eh_lsda flag to ...
13617         (sjlj_mark_call_sites): ... here.
13618         (sjlj_emit_function_enter): Support NULL dispatch label.
13619         (sjlj_build_landing_pads): In a function with no landing pads
13620         that still has must-not-throw regions, generate code to register
13621         a personality function with empty LSDA.
13623 2011-01-21  Richard Henderson  <rth@redhat.com>
13625         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13627         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13629         * compare-elim.c: New file.
13630         * Makefile.in (OBJS-common): Add it.
13631         (compare-elim.o): New.
13632         * common.opt (fcompare-elim): New.
13633         * opts.c (default_options_table): Add OPT_fcompare_elim.
13634         * tree-pass.h (pass_compare_elim_after_reload): New.
13635         * passes.c (init_optimization_passes): Add it.
13636         * recog.h: Protect against re-inclusion.
13637         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13638         * doc/invoke.texi (-fcompare-elim): Document it.
13639         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13640         * doc/tm.texi: Rebuild.
13642 2011-01-22  Nick Clifton  <nickc@redhat.com>
13644         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13645         rx_split_fp_compare.
13647 2011-01-22  Nick Clifton  <nickc@redhat.com>
13649         * config/rx/rx.md (UNSPEC_CONST): New.
13650         (deallocate_and_return): Wrap the amount popped off the stack in
13651         an UNSPEC_CONST in order to stop it being rejected by
13652         -mmax-constant-size.
13653         (pop_and_return): Add a "(return)" rtx.
13654         (call): Drop the immediate operand.
13655         (call_internal): Likewise.
13656         (call_value): Likewise.
13657         (call_value_internal): Likewise.
13658         (sibcall_internal): Likewise.
13659         (sibcall_value_internal): Likewise.
13660         (sibcall): Likewise.  Generate an explicit call using
13661         sibcall_internal.
13662         (sibcall_value): Likewise.
13663         (mov<>): FAIL if a constant operand is not legitimate.
13664         (addsi3_unpsec): New pattern.
13666         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13667         (ok_for_max_constant): New function.
13668         (gen_safe_add): New function.
13669         (rx_expand_prologue): Use gen_safe_add.
13670         (rx_expand_epilogue): Likewise.
13671         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13672         UNSPEC CONSTs.
13674 2011-01-21  Jeff Law  <law@redhat.com>
13676         PR tree-optimization/47053
13677         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13678         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13679         statements are deleted.
13680         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13681         is nonempty, then purge dead edges and cleanup the CFG.
13683 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13685         PR debug/47402
13686         Temporarily revert:
13687         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13688         PR debug/47106
13689         * tree-dfa.c (create_var_ann): Mark variable as used.
13691 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13693         PR middle-end/45566
13694         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13695         notes from other section in hot/cold partitioning even if
13696         last_action is -3.  Increment call_site_base.
13698         PR rtl-optimization/47366
13699         * fwprop.c (forward_propagate_into): Return bool.  If
13700         any changes are made, -fnon-call-exceptions is used and
13701         REG_EH_REGION note is present, call purge_dead_edges
13702         and return true if it purged anything.
13703         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13704         any EH edges were purged.
13706 2011-01-21  Jeff Law  <law@redhat.com>
13708         PR rtl-optimization/41619
13709         * caller-save.c (setup_save_areas): Break out code to determine
13710         which hard regs are live across calls by examining the reload chains
13711         so that it is always used.
13712         Eliminate code which checked REG_N_CALLS_CROSSED.
13714 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13716         PR tree-optimization/47355
13717         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13718         NOP has non-debug uses beyond PHIs in new_bb.
13720 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13722         PR debug/47106
13723         * cfgexpand.c (account_used_vars_for_block): Only account vars
13724         that are annotated as used.
13725         (estimated_stack_frame_size): Don't set TREE_USED.
13726         * tree-dfa.c (create_var_ann): Mark variable as used.
13728 2011-01-21  Richard Guenther  <rguenther@suse.de>
13730         PR middle-end/47395
13731         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13733 2011-01-21  Richard Guenther  <rguenther@suse.de>
13735         PR tree-optimization/47365
13736         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13737         (vn_reference_lookup_pieces): Adjust.
13738         (vn_reference_lookup): Likewise.
13739         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13740         (vn_reference_lookup_3): Only look through kills if in
13741         VN_WALKREWRITE mode.
13742         (vn_reference_lookup_pieces): Adjust.
13743         (vn_reference_lookup): Likewise.
13744         (visit_reference_op_load): Likewise.
13745         (visit_reference_op_store): Likewise.
13746         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13747         (compute_avail): Likewise.
13748         (eliminate): Likewise.
13750 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13752         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13753         DECL_IGNORED_P non-reg vars if they are used.
13755         PR tree-optimization/47391
13756         * varpool.c (const_value_known_p): Return false if
13757         decl is volatile.
13759 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13761         PR bootstrap/47215
13762         * config/i386/i386.c (ix86_local_alignment): Handle
13763         case for va_list_type_node is nil.
13764         (ix86_canonical_va_list_type): Likewise.
13766 2011-01-21  Alan Modra  <amodra@gmail.com>
13768         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13769         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13771 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13773         * config/arm/arm.md (define_attr type): Rename f_load
13774         and f_store to f_fpa_load and f_fpa_store. Update.
13775         (write_conflict): Deal with rename fallout.
13776         (*push_fp_multi): Likewise.
13777         * config/arm/fpa.md (f_load): Use f_fpa_load.
13778         (f_store): Use f_fpa_store.
13779         (*movsf_fpa): Likewise.
13780         (*movdf_fpa): Likewise.
13781         (*movxf_fpa): Likewise.
13782         (*thumb2_movsf_fpa): Likewise.
13783         (*thumb2_movdf_fpa): Likewise.
13784         (*thumb2_movxf_fpa): Likewise.
13785         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13786         f_loadd and f_stored.
13787         (*thumb2_movdi_vfp): Likewise.
13788         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13789         (*thumb2_movsi_vfp): Likewise.
13790         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13791         Use f_loads instead of f_load.
13792         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13794 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13796         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13797         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13798         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13799         (xtensa_mode_dependent_address_p): New function.
13800         (constantpool_address_p): Make static. Change return type to bool.
13801         Change argument type to const_rtx. Use CONST_INT_P predicate.
13803 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13805         PR debug/46583
13806         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13808 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13810         PR debug/47283
13811         * cfgexpand.c (expand_debug_expr): Instead of generating
13812         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13813         etc. handling.
13815 2011-01-20  Richard Guenther  <rguenther@suse.de>
13817         PR middle-end/47370
13818         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13819         the pointer operand of MEM_REFs.
13821 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13823         PR tree-optimization/46130
13824         * ipa-split.c (consider_split): If return_bb contains non-virtual
13825         PHIs other than for retval or if split_function would not adjust it,
13826         refuse to split.
13828 2011-01-20  Richard Guenther  <rguenther@suse.de>
13830         PR tree-optimization/47167
13831         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13832         Revert previous change, only avoid enumeral type changes.
13834 2011-01-19  Mike Stump  <mikestump@comcast.net>
13836         * doc/tm.texi.in (BRANCH_COST): Englishify.
13837         * doc/tm.texi (BRANCH_COST): Likewise.
13839 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13841         PR c++/47291
13842         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13843         (gen_scheduled_generic_parms_dies): New functions.
13844         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13845         generation for the end of CU compilation.
13846         (dwarf2out_finish): Generate template parameters DIEs here.
13848 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13850         PR debug/46240
13851         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13852         debug bind stmt on merge edges.
13854 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13856         PR debug/47079
13857         PR debug/46724
13858         * function.c (instantiate_expr): Instantiate incoming rtl of
13859         implicit arguments, and recurse on VALUE_EXPRs.
13860         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13861         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13863 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13865         * c-parser.c (c_parser_for_statement): Initialize
13866         collection_expression.
13868 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13870         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13872 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13874         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13875         (LINK_SHLIB_SPEC): Don't use %(link_path).
13876         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13878 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13880         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13881         (NO_SHARED_LIB_SUPPORT): Remove.
13882         (LINK_SHLIB_SPEC): Remove one conditional definition.
13884 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13886         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13887         %{call_shared}.
13888         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13889         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13890         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13891         %{call_shared} and conditionals on these options not being passed.
13892         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13893         %{call_shared}.
13895 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13897         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13898         simplify.
13900         * ipa-split.c: Spelling fixes.
13902 2011-01-19  Richard Henderson  <rth@redhat.com>
13904         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13905         (*mulsi3): Likewise.
13907         * longlong.h [__mn10300__] (count_leading_zeros): New.
13908         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13909         [__mn10300__] (add_ssaaaa, subddmmss): New.
13910         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13911         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13913 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13915         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13917 2011-01-19  Richard Henderson  <rth@redhat.com>
13919         * config/mn10300/mn10300.md (addsi3_flags): New.
13920         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13921         (subsi3_flags, subc_internal, subdi3): New.
13922         (subdi3_internal, *subdi3_degenerate): New.
13923         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13925         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13926         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13927         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13928         * config/mn10300/mn10300-protos.h: Update.
13929         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13930         (return_ret): Likewise.  Rename from return_internal_regs.
13931         (return_internal): Remove.
13933         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13934         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13935         (mn10300_legitimate_constant_p): Likewise.
13936         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13937         (mn10300_frame_size): New.
13938         (mn10300_expand_prologue): Use it.
13939         (mn10300_expand_epilogue): Likewise.
13940         (mn10300_initial_offset): Likewise.
13941         * config/mn10300/mn10300-protos.h: Update.
13942         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13943         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13944         (prologue, epilogue, return_internal): Tidy output code.
13945         (mn10300_store_multiple_operation, return): Likewise.
13946         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13947         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13948         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13949         (load_pic, am33_load_pic): New.
13950         (mn10300_load_pic0, mn10300_load_pic1): New.
13952         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13953         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13954         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13955         (cc_flags_for_mode, cc_flags_for_code): New.
13956         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13957         overflow flag is not valid.  Validate that the flags we need
13958         for the comparison are valid.
13959         (mn10300_output_cmp): Remove.
13960         (mn10300_output_add): New.
13961         (mn10300_select_cc_mode): Use cc_flags_for_code.
13962         (mn10300_split_cbranch): New.
13963         (mn10300_match_ccmode): New.
13964         (mn10300_split_and_operand_count): New.
13965         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13966         to the function.
13967         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13968         (addsi3): ... here.  Use mn10300_output_add.
13969         (*addsi3_flags): New.
13970         (*am33_subsi3, *mn10300_subsi3): Merge...
13971         (subsi3): ... here.  Use attribute isa.
13972         (*subsi3_flags): New.
13973         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13974         when possible.
13975         (*am33_andsi3, *mn10300_andsi3): Merge...
13976         (andsi3): ... here.
13977         (*andsi3_flags): New.
13978         (andsi3 splitters): New.
13979         (*am33_iorsi3, *mn10300_iorsi3): Merge...
13980         (iorsi3): ... here.
13981         (*iorsi3_flags): New.
13982         (*am33_xorsi3, *mn10300_xorsi3): Merge...
13983         (xorsi3): ... here.
13984         (*xorsi3_flags): New.
13985         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13986         (one_cmplsi2): ... here.
13987         (*one_cmplsi2_flags): New.
13988         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
13989         instead of "dax" in constraints.  Use mn10300_split_cbranch.
13990         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
13991         use matching constraints to eliminate a self-comparison.
13992         (*integer_conditional_branch): Rename from integer_conditional_branch.
13993         Use int_mode_flags to match CC_REG.
13994         (*cbranchsi4_btst, *btstsi): New.
13995         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
13996         mn10300_split_cbranch.
13997         (*am33_cmpsf): Rename from am33_cmpsf.
13998         (*float_conditional_branch): Rename from float_conditional_branch.
13999         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14000         (zero_extendqisi2): ... here.
14001         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14002         (zero_extendhisi2): ... here.
14003         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14004         (extendqisi2): ... here.
14005         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14006         (extendhisi2): ... here.
14007         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14008         (ashlsi3): ... here.
14009         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14010         (lshrsi3): ... here.
14011         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14012         (ashrsi3): ... here.
14013         (consecutive add peephole): Remove.
14014         * config/mn10300/predicates.md (label_ref_operand): New.
14015         (int_mode_flags): New.
14016         (CCZN_comparison_operator): New.
14018         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14019         (throughput_42_latency_43): New reservation.
14020         (mulsidi3, umulsidi3): New expanders.
14021         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14022         the MDR register to allocation; separately allocate the low and
14023         high parts of the DImode result.
14024         (umulsidi3_internal): Similarly.
14025         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14026         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14027         (udivsi3, umodsi3): Remove.
14028         (udivmodsi4, divmodsi4): New expanders.
14029         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14030         (*divmodsi4): Simiarly.
14031         (ext_internal): New.
14033         * config/mn10300/constraints.md ("z"): New constraint.
14034         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14035         (FIXED_REGISTERS): Don't fix MDR.
14036         (CALL_USED_REGSITERS): Reformat nicely.
14037         (REG_ALLOC_ORDER): Add MDR.
14038         (enum regclass): Add MDR_REGS.
14039         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14040         (IRA_COVER_CLASSES): Add MDR_REGS.
14041         (REGNO_REG_CLASS): Handle MDR_REG.
14042         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14043         (mn10300_register_move_cost): Likewise.
14044         * config/mn10300/mn10300.md (MDR_REG): New.
14045         (*movsi_internal): Handle moves to/from MDR_REGS.
14047         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14048         POST_MODIFY.
14049         (mn10300_secondary_reload): Tidy combination reload classes.
14050         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14051         addresses for AM33.  Allow symbolic offsets for reg+imm.
14052         (mn10300_regno_in_class_p): New.
14053         (mn10300_legitimize_reload_address): New.
14054         * config/mn10300/mn10300.h (enum reg_class): Remove
14055         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14056         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14057         SP_OR_GENERAL_REGS.
14058         (REG_CLASS_NAMES): Update to match.
14059         (REG_CLASS_CONTENTS): Likewise.
14060         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14061         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14062         (REGNO_IN_RANGE_P): Remove.
14063         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14064         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14065         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14066         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14067         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14068         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14069         (REGNO_GENERAL_P): New.
14070         (HAVE_POST_MODIFY_DISP): New.
14071         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14072         (LEGITIMIZE_RELOAD_ADDRESS): New.
14073         * config/mn10300/mn10300-protos.h: Update.
14075         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14076         DATA_REGS for AM33 stack-pointer destination.
14077         (mn10300_preferred_output_reload_class): Likewise.
14078         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14079         into a form appropriate for ...
14080         (TARGET_SECONDARY_RELOAD): New.
14081         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14082         * config/mn10300/mn10300-protos.h: Update.
14083         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14084         reload_insi; use the "A" constraint for the scratch; handle AM33
14085         moves of sp to non-address registers.
14087         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14088         (*movqi_internal): ... here.
14089         (*am33_movhi, *mn10300_movhi): Merge into...
14090         (*movhi_internal): ... here.
14091         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14092         as the source/destination of moves from/to SP.
14093         (movsf): Only allow for AM33-2.
14094         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14095         any integer constant constraint.  Only allow for AM33-2.  Tidy
14096         all of the alternative outputs.
14097         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14098         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14099         for MN103.
14100         (udivsi3, umodsi3): New patterns for MN103 only.
14102 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14104         * doc/tm.texi.in: Spell out that a lack of register class unions
14105         can lead to ICEs.
14106         * doc/tm.texi: Regenerate.
14108 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14110         PR rtl-optimization/47337
14111         * dce.c (check_argument_store): New function.
14112         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14114         PR tree-optimization/47290
14115         * tree-eh.c (infinite_empty_loop_p): New function.
14116         (cleanup_empty_eh): Use it.
14118 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14120         PR target/46997
14121         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14122         (a64_expand_widen_sum): Ditto.
14123         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14124         (vec_extract_evenodd_help): Ditto.
14125         (vec_extract_evenv4hi): Ditto.
14126         (vec_extract_oddv4hi): Ditto.
14127         (vec_extract_evenv2si): Ditto.
14128         (vec_extract_oddv2si): Ditto.
14129         (vec_extract_evenv2sf): Ditto.
14130         (vec_extract_oddv2sf): Ditto.
14131         (vec_pack_trunc_v4hi: Ditto.
14132         (vec_pack_trunc_v2si): Ditto.
14133         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14134         (vec_interleave_highv8qi): Ditto.
14135         (mix1_r): Ditto.
14136         (vec_extract_oddv8qi): Ditto.
14137         (vec_interleave_lowv4hi): Ditto.
14138         (vec_interleave_highv4hi): Ditto.
14139         (vec_interleave_lowv2si): Ditto.
14140         (vec_interleave_highv2si): Ditto.
14142 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14144         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14145         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14146         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14147         (pa_c_mode_for_suffix): New.
14148         (TARGET_EXPAND_BUILTIN): Define.
14149         (TARGET_C_MODE_FOR_SUFFIX): Define.
14150         (pa_builtins): Define.
14151         (pa_init_builtins): Register __float128 type and init new support
14152         builtins.
14153         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14154         * config/pa/quadlib.c (_U_Qfcopysign): New.
14156 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14158         PR middle-end/46894
14159         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14160         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14161         are defined.
14163 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14165         PR tree-optimization/47179
14166         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14167         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14169 2011-01-18  Richard Guenther  <rguenther@suse.de>
14171         PR rtl-optimization/47216
14172         * emit-rtl.c: Include tree-flow.h.
14173         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14174         of replicating it with different semantics.
14175         * Makefile.in (emit-rtl.o): Adjust.
14177 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14179         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14180         (cortex_a9_dp): Handle neon types correctly.
14182 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14184         PR rtl-optimization/47299
14185         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14186         subtarget.  Use normal multiplication if both operands are constants.
14187         * expmed.c (expand_widening_mult): Don't try to optimize constant
14188         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14189         before using it.
14191 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14193         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14194         spacing after 'e.g.', typos, comma, hyphenation.
14196 2011-01-17  Richard Henderson  <rth@redhat.com>
14198         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14199         (rx_restricted_mem_operand): New.
14200         (rx_shift_operand): Use register_operand.
14201         (rx_source_operand, rx_compare_operand): Likewise.
14202         * config/rx/rx.md (addsi3_flags): New expander.
14203         (adddi3): Rewrite as expander.
14204         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14205         (subsi3_flags): New expander.
14206         (subdi3): Rewrite as expander.
14207         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14209         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14210         (rx_init_builtins): Remove sat builtin.
14211         (rx_expand_builtin): Likewise.
14212         * config/rx/rx.md (ssaddsi3): New.
14213         (*sat): Rename from sat.  Represent the CC_REG input.
14215         * config/rx/predicates.md (rshift_operator): New.
14216         * config/rx/rx.c (rx_expand_insv): Remove.
14217         * config/rx/rx-protos.h: Update.
14218         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14219         operand to the canonical position.
14220         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14221         (*bitclr, *bitclr_in_memory): Similarly.
14222         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14223         (insv): Retain the zero_extract in the expansion.
14225         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14226         (bswaphi2, bitinvert, revw): Likewise.
14228         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14229         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14230         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14231         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14232         (bitset, bitset_in_memory): Likewise.
14233         (bitinvert, bitinvert_in_memory): Likewise.
14234         (bitclr, bitclr_in_memory): Likewise.
14235         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14236         (rx_strend, rx_cmpstrn): Likewise.
14237         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14238         (bitop peep2 patterns): Remove.
14240         * config/rx/rx.c (rx_match_ccmode): New.
14241         * config/rx/rx-protos.h: Update.
14242         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14243         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14244         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14245         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14246         (fix_truncsfsi2, floatsisf2): Likewise.
14247         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14248         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14249         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14250         (*subsi3_flags, *xorsi3_flags): New.
14252         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14254         * config/rx/rx.c (rx_print_operand): Remove workaround for
14255         unsplit comparison operations.
14257         * config/rx/rx.md (movsicc): Split after reload.
14258         (*movsicc): Merge *movsieq and *movsine via match_operator.
14259         (*stcc): New pattern.
14261         * config/rx/rx.c (rx_float_compare_mode): Remove.
14262         * config/rx/rx.h (rx_float_compare_mode): Remove.
14263         * config/rx/rx.md (cstoresi4): Split after reload.
14264         (*sccc): New pattern.
14266         * config/rx/predicates.md (label_ref_operand): New.
14267         (rx_z_comparison_operator): New.
14268         (rx_zs_comparison_operator): New.
14269         (rx_fp_comparison_operator): New.
14270         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14271         Validate that the flags are set properly for the comparison.
14272         (rx_gen_cond_branch_template): Remove.
14273         (rx_cc_modes_compatible): Remove.
14274         (mode_from_flags): New.
14275         (flags_from_code): Rename from flags_needed_for_conditional.
14276         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14277         (rx_select_cc_mode): Likewise.
14278         (rx_split_fp_compare): New.
14279         (rx_split_cbranch): New.
14280         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14281         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14282         (*cbranchsf4): Similarly.
14283         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14284         match_operator and rx_split_cbranch.
14285         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14286         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14287         (*cmpsi): Rename from cmpsi.
14288         (*tstsi): Rename from tstsi.
14289         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14290         (*conditional_branch): Rename from conditional_branch.
14291         (*reveresed_conditional_branch): Remove.
14292         (b<code>): Remove expander.
14293         * config/rx/rx-protos.h: Update.
14295         * config/rx/rx.c (rx_compare_redundant): Remove.
14296         * config/rx/rx.md (cmpsi): Don't use it.
14297         * config/rx/rx-protos.h: Update.
14299         * config/rx/rx-modes.def (CC_F): New mode.
14300         * config/rx/rx.c (rx_select_cc_mode): New.
14301         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14302         * config/rx/rx-protos.h: Update.
14304 2011-01-17  Richard Henderson  <rth@redhat.com>
14306         * except.c (dump_eh_tree): Fix stray ; after for statement.
14308 2011-01-17  Richard Guenther  <rguenther@suse.de>
14310         PR tree-optimization/47313
14311         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14312         handling before copying the body.  Properly deal with
14313         by-reference result in SSA form.
14315 2011-01-17  Ian Lance Taylor  <iant@google.com>
14317         PR target/47219
14318         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14319         (struct_value_alias_set): Don't define.
14320         (sparc_option_override): Don't set sparc_sr_alias_set and
14321         struct_value_alias_set.
14322         (save_or_restore_regs): Use gen_frame_mem rather than calling
14323         set_mem_alias_set.
14324         (sparc_struct_value_rtx): Likewise.
14326 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14328         PR target/47318
14329         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14330         (_mm_maskstore_pd): Likewise.
14331         (_mm_maskload_ps): Likewise.
14332         (_mm_maskstore_ps): Likewise.
14333         (_mm256_maskload_pd): Change mask to __m256i.
14334         (_mm256_maskstore_pd): Likewise.
14335         (_mm256_maskload_ps): Likewise.
14336         (_mm256_maskstore_ps): Likewise.
14338         * config/i386/i386-builtin-types.def: Updated.
14339         (ix86_expand_special_args_builtin): Likewise.
14341         * config/i386/i386.c (bdesc_special_args): Update
14342         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14343         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14344         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14345         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14347         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14348         Use <avxpermvecmode> on mask register.
14349         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14351 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14352             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14353             Eric Botcazou  <ebotcazou@adacore.com>
14355         PR target/46655
14356         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14357         if <= USHRT_MAX in 32-bit mode.
14359 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14361         * doc/install.texi (Configuration, Specific): Wrap long
14362         lines in examples.  Allow line wrapping in long options
14363         and URLs where beneficial for PDF output.
14365 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14367         * config/mips/mips.c (mips_classify_symbol): Don't return
14368         SYMBOL_PC_RELATIVE for nonlocal labels.
14370 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14372         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14374 2011-01-15  Jan Hubicka  <jh@suse.cz>
14376         PR tree-optimization/47276
14377         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14378         declarations as needed.
14380 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14382         * common.opt (fdevirtualize): New flag.
14383         * doc/invoke.texi (Option Summary): Document it.
14384         * opts.c (default_options_table): Add devirtualize flag.
14385         * ipa-prop.c (detect_type_change): Return immediately if
14386         devirtualize flag is not set.
14387         (detect_type_change_ssa): Likewise.
14388         (compute_known_type_jump_func): Likewise.
14389         (ipa_analyze_virtual_call_uses): Likewise.
14391 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14393         PR tree-optimization/45934
14394         PR tree-optimization/46302
14395         * ipa-prop.c (type_change_info): New type.
14396         (stmt_may_be_vtbl_ptr_store): New function.
14397         (check_stmt_for_type_change): Likewise.
14398         (detect_type_change): Likewise.
14399         (detect_type_change_ssa): Likewise.
14400         (compute_complex_assign_jump_func): Check for dynamic type change.
14401         (compute_complex_ancestor_jump_func): Likewise.
14402         (compute_known_type_jump_func): Likewise.
14403         (compute_scalar_jump_functions): Likewise.
14404         (ipa_analyze_virtual_call_uses): Likewise.
14405         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14407 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14409         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14410         * config/i386/i386.opt (msse5): New Alias.
14412 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14414         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14415         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14416         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14417         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14419 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14421         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14422         -mcpu options.
14423         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14424         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14425         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14426         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14427         Likewise.
14428         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14430 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14432         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14434 2011-01-14  Mike Stump  <mikestump@comcast.net>
14436         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14437         * config/fr30/fr30.md: Likweise
14438         (movsi_push): Likewise.
14439         (movsi_pop): Likewise.
14440         (enter_func): Likewise.
14441         * config/moxie/moxie.md (movsi_push): Likewise.
14442         (movsi_pop): Likewise.
14444 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14446         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14447         %{no_archive} %{exact_version}.
14448         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14449         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14450         %{no_archive} %{exact_version}.
14451         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14452         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14453         * config/mips/vxworks.h: Likewise.
14455 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14457         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14459 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14461         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14462         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14464 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14466         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14467         -nodefaultlib.
14469 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14471         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14472         for mcpu not cpu.
14473         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14474         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14475         not cpu.
14476         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14477         Don't handle -shlib.
14479 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14481         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14482         (CC1_SPEC): Don't handle -profile.
14484 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14486         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14487         * config/mips/mips.h (CC1_SPEC): Likewise.
14489 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14491         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14492         * config/mips/mips.h (CC1_SPEC): Likewise.
14494 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14496         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14497         * config/m32r/linux.h (LINK_SPEC): Likewise.
14498         * config/mips/linux.h (LINK_SPEC): Likewise.
14499         * config/mips/linux64.h (LINK_SPEC): Likewise.
14500         * config/sparc/linux.h (LINK_SPEC): Likewise.
14501         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14502         LINK_SPEC): Likewise.
14503         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14505 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14507         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14508         %{version:-v}.
14509         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14511 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14513         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14514         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14516 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14518         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14520 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14522         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14523         supports -Bstatic/-Bdynamic.
14524         * configure: Regenerate.
14526 2011-01-14  Jan Hubicka  <jh@suse.cz>
14527             Jack Howarth  <howarth@bromo.med.uc.edu>
14529         PR target/46037
14530         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14531         when checking debug_info_level. Test write_symbols instead of
14532         debug_hooks->var_location when setting flag_var_tracking_uninit.
14534 2011-01-14  Richard Guenther  <rguenther@suse.de>
14536         PR tree-optimization/47179
14537         * target.def (ref_may_alias_errno): New target hook.
14538         * targhooks.h (default_ref_may_alias_errno): Declare.
14539         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14540         (default_ref_may_alias_errno): New function.
14541         * target.h (struct ao_ref_s): Declare.
14542         * tree-ssa-alias.c: Include target.h.
14543         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14544         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14545         (targhooks.o): Likewise.
14546         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14547         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14549 2011-01-14  Richard Guenther  <rguenther@suse.de>
14551         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14553 2011-01-14  Richard Guenther  <rguenther@suse.de>
14555         PR tree-optimization/47280
14556         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14557         return CFG changes.
14558         (tree_ssa_forward_propagate_single_use_vars): Deal with
14559         CFG changes from associate_plusminus.
14561 2011-01-14  Richard Guenther  <rguenther@suse.de>
14563         PR middle-end/47281
14564         Revert
14565         2011-01-11  Richard Guenther  <rguenther@suse.de>
14567         PR tree-optimization/46076
14568         * tree-ssa.c (useless_type_conversion_p): Conversions from
14569         unprototyped to empty argument list function types are useless.
14571 2011-01-14  Richard Guenther  <rguenther@suse.de>
14573         PR tree-optimization/47286
14574         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14576 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14578         PR middle-end/46823
14579         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14581 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14583         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14584         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14585         * config/xtensa/xtensa.c (xtensa_libcall_value,
14586         xtensa_function_value_regno_p): New functions.
14587         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14589 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14591         PR c++/47213
14592         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14593         PE specific hook.
14594         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14595         New function prototype.
14596         * config/i386/winnt.c (i386_pe_assemble_visibility):
14597         Warn only if attribute was specified by user.
14599 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14601         PR target/47251
14602         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14603         floating point.
14604         (floatunsdidf2_fcfidu): Ditto.
14606 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14608         * config/s390/s390.c (print_operand_address): Replace 'error' with
14609         'output_operand_lossage'.
14610         (print_operand): Likewise.
14612 2011-01-13  Jeff Law  <law@redhat.com>
14614         PR rtl-optimization/39077
14615         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14616         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14617         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14618         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14619         * gcse.c (prune_insertions_deletions): New function.
14620         (compute_pre_data): Use it.
14622 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14624         PR debug/PR46973
14625         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14626         static function.
14627         (prune_unused_types_mark): Use it.
14629 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14631         PR rtl-optimization/45352
14632         * sel-sched.c: Update copyright years.
14633         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14634         in the advancing loop when we have issued issue_rate insns.
14636 2011-01-12  Richard Henderson  <rth@redhat.com>
14638         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14639         (TARGET_MD_ASM_CLOBBERS): New.
14641         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14642         (TARGET_DELEGITIMIZE_ADDRESS): New.
14644         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14645         (clzsi2, *bsch): New patterns.
14647         * config/mn10300/mn10300.md (INT): New mode iterator.
14648         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14650         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14651         flag_split_wide_types.
14653         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14654         (mn10300_trampoline_init): Rewrite without a template, an immediate
14655         load and a direct branch.
14656         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14658 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14660         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14661         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14662         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14663         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14665 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14667         PR debug/47209
14668         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14669         of type.
14671 2011-01-12  Jan Hubicka  <jh@suse.cz>
14673         PR driver/47244
14674         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14675         (PLUGIN_COND_CLOSE): New macro.
14676         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14678 2011-01-12  Richard Guenther  <rguenther@suse.de>
14680         PR lto/47259
14681         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14682         register variables in a MEM_REF.
14684 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14686         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14687         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14688         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14689         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14690         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14691         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14692         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14693         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14694         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14695         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14696         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14697         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14698         * config/gnu-user.h: New.  Copied from linux.h.
14699         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14700         GNU_USER_TARGET_STARTFILE_SPEC.
14701         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14702         GNU_USER_TARGET_ENDFILE_SPEC.
14703         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14704         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14705         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14706         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14707         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14708         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14709         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14710         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14711         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14712         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14713         * config/arm/linux-eabi.h (CC1_SPEC): Use
14714         GNU_USER_TARGET_CC1_SPEC.
14715         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14716         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14717         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14718         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14719         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14720         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14721         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14722         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14724 2011-01-12  Richard Guenther  <rguenther@suse.de>
14726         PR other/46946
14727         * doc/invoke.texi (ffast-math): Document it is turned on
14728         with -Ofast.
14730 2011-01-12  Jan Hubicka  <jh@suse.cz>
14732         PR tree-optimization/47233
14733         * opts.c (common_handle_option): Disable ipa-reference with profile
14734         feedback.
14736 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14738         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14739         error message.
14741 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14743         * c-parser.c (c_lex_one_token): Updated and reindented some
14744         comments.  No changes in code.
14746 2011-01-11  Ian Lance Taylor  <iant@google.com>
14748         * godump.c (go_output_var): Don't output the variable if there is
14749         already a type with the same name.
14751 2011-01-11  Ian Lance Taylor  <iant@google.com>
14753         * godump.c (go_format_type): Don't generate float80.
14755 2011-01-11  Richard Henderson  <rth@redhat.com>
14757         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14758         declaration.  Rewrite for both speed and size.
14759         (mn10300_address_cost_1): Remove.
14760         (mn10300_register_move_cost): New.
14761         (mn10300_memory_move_cost): New.
14762         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14763         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14764         extensions, shifts, BSWAP, CLZ.
14765         (mn10300_wide_const_load_uses_clr): Remove.
14766         (TARGET_REGISTER_MOVE_COST): New.
14767         (TARGET_MEMORY_MOVE_COST): New.
14768         * config/mn10300/mn10300-protos.h: Update.
14769         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14771         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14772         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14773         * config/mn10300/mn10300-protos.h: Update.
14774         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14775         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14776         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14777         (*test_int_bitfield, *test_byte_bitfield): Remove.
14778         (*bit_test, *subreg_bit_test): Remove.
14779         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14781         * config/mn10300/constraints.md ("c"): Rename from "A".
14782         ("A", "D"): New constraint letters.
14783         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14784         (fmssf4, fnmasf4, fnmssf4): Likewise.
14786         * config/mn10300/mn10300.md (isa): New attribute.
14787         (enabled): New attribute.
14789         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14790         (abssf2, negsf2): Define only for hardware fp.
14791         (sqrtsf2): Reformat.
14792         (addsf3, subsf3, mulsf3): Merge expander and insn.
14794         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14795         (DEBUGGER_AUTO_OFFSET): Remove.
14796         (DEBUGGER_ARG_OFFSET): Remove.
14798         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14799         Emit register stores with the same offsets as the hardware.
14800         (mn10300_store_multiple_operation): Don't check that the register
14801         save offsets are monotonic.
14802         * config/mn10300/mn10300-protos.h: Update.
14804         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14806         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14807         in terms of the value on the stack, not the MDR register.
14809 2011-01-11  Jan Hubicka  <jh@suse.cz>
14811         PR lto/45721
14812         PR lto/45375
14813         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14814         (symbol_alias_set_destroy, symbol_alias_set_contains,
14815         propagate_aliases_backward): Declare.
14816         * lto-streamer-out.c (struct sets): New sturcture.
14817         (trivally_defined_alias): New function.
14818         (output_alias_pair_p): Rewrite.
14819         (output_unreferenced_globals): Fix output of alias pairs.
14820         (produce_symtab): Likewise.
14821         * ipa.c (function_and_variable_visibility): Set weak alias destination
14822         as needed in lto.
14823         * varasm.c (symbol_alias_set_t): Remove.
14824         (symbol_alias_set_destroy): Export.
14825         (propagate_aliases_forward, propagate_aliases_backward): New functions
14826         based on ...
14827         (compute_visible_aliases): ... this one; remove.
14828         (trivially_visible_alias): New
14829         (trivially_defined_alias): New.
14830         (remove_unreachable_alias_pairs): Rewrite.
14831         (finish_aliases_1): Reorganize code checking if alias is defined.
14832         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14833         in LTO mode.
14835 2011-01-11  Richard Guenther  <rguenther@suse.de>
14837         PR tree-optimization/46076
14838         * tree-ssa.c (useless_type_conversion_p): Conversions from
14839         unprototyped to empty argument list function types are useless.
14841 2011-01-11  Richard Guenther  <rguenther@suse.de>
14843         PR middle-end/45235
14844         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14845         volatile MEMs as MEM_READONLY_P.
14847 2011-01-11  Richard Guenther  <rguenther@suse.de>
14849         PR tree-optimization/47239
14850         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14852 2011-01-11  Jeff Law  <law@redhat.com>
14854         PR tree-optimization/47086
14855         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14856         IVs from statements that might throw.
14858 2011-01-10  Jan Hubicka  <jh@suse.cz>
14860         PR lto/45375
14861         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14863 2011-01-10  Jan Hubicka  <jh@suse.cz>
14865         PR lto/45375
14866         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14867         when correcting profile.
14869 2011-01-10  Jan Hubicka  <jh@suse.cz>
14871         PR lto/46083
14872         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14873         DECL_FINI_PRIORITY.
14874         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14875         Restore DECL_FINI_PRIORITY.
14877 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14879         * doc/gimple.texi: Fix quoting of multi-word return values in
14880         @deftypefn statements.  Ensure presence of return value.  Wrap
14881         overlong @deftypefn lines.
14882         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14883         descriptions of removed functions.
14884         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14885         of multi-word return value in @deftypefn statement.
14887 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14889         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14890         (Conditional Expressions, Logical Operators)
14891         (Statement and operand traversals): Do not indent smallexample
14892         code.  Fix duplicate function argument in example.
14894 2011-01-10  Jeff Law  <law@redhat.com>
14896         PR tree-optimization/47141
14897         * ipa-split.c (split_function): Handle case where we are
14898         returning a value and the return block has a virtual operand phi.
14900 2011-01-10  Jan Hubicka  <jh@suse.cz>
14902         PR tree-optimization/47234
14903         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14904         (pass_feedback_split_functions): Declare.
14905         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14906         tree-profile.
14907         * ipa-split.c (gate_split_functions): Update comments; disable
14908         split-functions for profile_arc_flag and branch_probabilities.
14909         (gate_feedback_split_functions): New function.
14910         (execute_feedback_split_functions): New function.
14911         (pass_feedback_split_functions): New global var.
14913 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14915         PR lto/46760
14916         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14917         calling gimple_call_set_cannot_inline.
14919 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14921         * config/darwin-sections.def: Remove unused section.
14923 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14925         PR c++/47218
14926         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14928 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14930         PR objc/47232
14931         * c-parser.c (c_parser_declaration_or_fndef): Improved
14932         error message.
14934 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14936         * config/i386/winnt.c (i386_pe_start_function): Make sure
14937         to switch back to function's section.
14939 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14941         PR gcc/46902
14942         PR testsuite/46912
14943         * plugin.c: Move include of dlfcn.h from here...
14944         * system.h: ... to here.
14946 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14948         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14949         file name.
14950         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14951         two extra empty pages in PDF output.
14953 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14955         PR objc/47078
14956         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14957         for error recovery purposes behave as if it was not specified so
14958         that the default type is usd.
14960 2011-01-07  Jan Hubicka  <jh@suse.cz>
14962         PR tree-optmization/46469
14963         * ipa.c (function_and_variable_visibility): Clear needed flags on
14964         nodes with external decls; handle weakrefs merging correctly.
14966 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14968         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14969         not false.
14971 2011-01-07  Jan Hubicka  <jh@suse.cz>
14973         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14974         and no longer claim that gold is required for linker plugin.
14975         * configure: Regenerate.
14976         * gcc.c (PLUGIN_COND): New macro.
14977         (LINK_COMMAND_SPEC): Use it.
14978         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14979         * config.in (HAVE_LTO_PLUGIN): New.
14980         * configure.ac (--with-lto-plugin): New parameter; autodetect
14981         HAVE_LTO_PLUGIN.
14983 2011-01-07  Jan Hubicka  <jh@suse.cz>
14985         PR tree-optimization/46367
14986         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14987         when we can update original.
14988         (cgraph_mark_inline_edge): Sanity check.
14989         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14991 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14993         * config/spu/spu.h (ASM_COMMENT_START): Define.
14995 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
14997         PR driver/42445
14998         * gcc.c (%>S): New.
14999         (SWITCH_KEEP_FOR_GCC): Likewise.
15000         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15001         (do_spec_1): Handle "%>".
15003         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15005 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15007         PR target/47201
15008         * config/i386/i386.c (ix86_delegitimize_address): If
15009         simplify_gen_subreg fails, return orig_x.
15011         PR bootstrap/47187
15012         * value-prof.c (gimple_stringop_fixed_value): Handle
15013         lhs of the call properly.
15015 2011-01-07  Jan Hubicka  <jh@suse.cz>
15017         PR lto/45375
15018         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15020 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15022         * target.def (function_switched_text_sections): New hook.
15023         * doc/tm.texi: Regenerated.
15024         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15025         * final.c (default_function_switched_text_sections): New.
15026         (final_scan_insn): Call function_switched_text_sections when a
15027         mid-function section change occurs.
15028         * output.h (default_function_switched_text_sections): Declare.
15029         * config/darwin-protos.h (darwin_function_switched_text_sections):
15030         Likewise.
15031         * config/darwin.c (darwin_function_switched_text_sections): New.
15032         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15034 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15036         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15037         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15038         the secondary code fragment when outputting for DWARF == 2.
15040 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15042         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15043         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15044         Remove.
15045         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15046         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15048 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15050         PR debug/46704
15051         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15052         when it is not empty.
15054 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15056         Bobcat Enablement
15057         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15058         (case ${target}): Add btver1.
15059         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15060         -march=native recognize btver1 processors.
15061         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15062         btver1 def_and_undef
15063         * config/i386/i386.c (struct processor_costs btver1_cost): New
15064         btver1 cost table.
15065         (m_BTVER1): New definition.
15066         (m_AMD_MULTIPLE): Includes m_BTVER1.
15067         (initial_ix86_tune_features): Add btver1 tune.
15068         (processor_target_table): Add btver1 entry.
15069         (static const char *const cpu_names): Add btver1 entry.
15070         (software_prefetching_beneficial_p): Add btver1.
15071         (ix86_option_override_internal): Add btver1 instruction sets.
15072         (ix86_issue_rate): Add btver1.
15073         (ix86_adjust_cost): Add btver1.
15074         * config/i386/i386.h (TARGET_BTVER1): New definition.
15075         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15076         (enum processor_type): Add PROCESSOR_BTVER1.
15077         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15079 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15081         PR target/43309
15082         * config/i386/i386.c (legitimize_tls_address)
15083         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15084         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15085         (tls_initial_exec_64_sun): New pattern.
15087 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15089         * doc/invoke.texi (Overall Options): Improve wording and markup
15090         of the description of -wrapper.
15092 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15094         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15095         rdynamic, threads): New Driver options.
15097 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15099         PR target/38118
15100         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15101         if coming from .tdata.
15102         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15104 2011-01-06  Jan Hubicka  <jh@suse.cz>
15106         PR lto/47188
15107         * collect2.c (main): Do not enable LTOmode when plugin is active.
15109 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15111         PR other/45915
15112         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15113         --version output if supported.
15114         * configure: Regenerate.
15116 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15118         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15119         Driver options.
15121 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15123         PR c/47150
15124         * c-convert.c (convert): When converting a complex expression
15125         other than COMPLEX_EXPR to a different complex type, ensure
15126         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15127         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15128         when converting COMPLEX_TYPE.
15130 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15132         PR tree-optimization/47139
15133         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15134         only the last reduction value is used outside the loop.  Update
15135         documentation.
15137 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15139         * config/rtems.opt: New.
15140         * config.gcc (*-*-rtems*): Use rtems.opt.
15142 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15144         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15145         processors do not support 3DNow instructions.
15147 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15149         * config/spu/spu.c (spu_option_override): Set parameter
15150         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15152 2011-01-05  Jan Hubicka  <jh@suse.cz>
15154         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15155         at the command line.
15157 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15159         PR lto/47162
15160         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15161         deltas on streamed outgoing edges.
15162         (output_node_opt_summary): Output info for outgoing edges only when
15163         the node is in new parameter set.
15164         (output_cgraph_opt_summary): New parameter set, passed to the two
15165         aforementioned functions.  Update its forward declaration and its
15166         callee too.
15168 2011-01-05  Tom Tromey  <tromey@redhat.com>
15170         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15171         operator to c_finish_omp_atomic.
15172         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15173         (build_unary_op): Update.
15174         (build_modify_expr): Update.
15175         (build_asm_expr): Update.
15177 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15179         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15180         newly inserted insns.
15181         (pad_bb): Likewise.
15182         (spu_emit_branch_hint): Likewise.
15183         (insert_hbrp_for_ilb_runout): Likewise.
15184         (spu_machine_dependent_reorg): Call df_finish_pass after
15185         schedule_insns returns.
15187 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15189         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15191 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15193         PR tree-optimization/47005
15194         * tree-sra.c (struct access): Add 'non_addressable' bit.
15195         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15196         (decide_one_param_reduction): Return 0 if the parameter is passed by
15197         reference and one of the accesses in the group is non_addressable.
15199 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15201         PR tree-optimization/47056
15202         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15203         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15204         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15206 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15208         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15209         initializer.  Skip view conversions from aggregate types.
15211 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15213         PR bootstrap/47055
15214         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15216 2011-01-04  Philipp Thomas  <pth@suse.de>
15218         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15219         obvious typo.
15221 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15223         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15224         on empty epilogue sequences.
15226 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15228         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15229         non-static): New Driver options.
15231 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15233         PR driver/47137
15234         * gcc.c (default_compilers[]): Set combinable field to 0
15235         for all assembly languages.
15237 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15239         * config/mips/loongson3a.md: New file.
15240         * config/mips/mips.md: Include loongson3a.md.
15241         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15242         TUNE_LOONGSON_3A.
15244 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15246         PR middle-end/47017
15247         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15248         instead of convert_memory_address_addr_space on the base expression.
15250 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15252         * config/spu/spu.c (spu_option_override): Update error text
15253         for bad -march= / -mtune= values.
15255 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15257         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15258         if branch-hint optimization will be performed.
15260 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15262         PR tree-optimization/47148
15263         * ipa-split.c (split_function): Convert arguments to
15264         DECL_ARG_TYPE if possible.
15266         PR tree-optimization/47155
15267         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15268         when computing uns.
15270         PR rtl-optimization/47157
15271         * combine.c (try_combine): If undobuf.other_insn becomes
15272         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15273         and set *new_direct_jump_p too.
15275 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15277         PR tree-optimization/47021
15278         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15280 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15282         * gcc.c (process_command): Update copyright notice dates.
15283         * gcov.c (print_version): Likewise.
15284         * gcov-dump.c (print_version): Likewise.
15285         * mips-tfile.c (main): Likewise.
15286         * mips-tdump.c (main): Likewise.
15288 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15290         PR tree-optimization/46801
15291         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15292         aggregate fields start at byte boundary instead of the bit-field flag.
15294 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15296         PR driver/47137
15297         * gcc.c (main): Revert revision 168407.
15299 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15301         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15303 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15305         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15306         vector optab to expand vector/scalar shift, update gimple to vector.
15308 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15310         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15311         a thunk.
15313 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15315         PR tree-optimization/46984
15316         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15317         HOST_WIDE_INT.
15318         (cgraph_create_indirect_edge): Fixed line length.
15319         (cgraph_indirect_call_info): Declare.
15320         (cgraph_make_edge_direct) Update declaration.
15321         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15322         (cgraph_create_indirect_edge): Use it.
15323         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15324         callees.
15325         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15326         the new thunk_delta representation.
15327         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15328         HOST_WIDE_INT.
15329         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15330         (ipa_read_indirect_edge_info): Likewise.
15331         * lto-cgraph.c (output_edge_opt_summary): New function.
15332         (output_node_opt_summary): Call it on all outgoing edges.
15333         (input_edge_opt_summary): New function.
15334         (input_node_opt_summary): Call it on all outgoing edges.
15336 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15338         PR driver/47137
15339         * gcc.c (main): Don't check have_o when settting combine_inputs.
15341 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15343         * regrename.c: Add general comment describing the pass.
15344         (struct du_head): Remove 'length' field.
15345         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15346         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15347         Force renaming to the preferred class (if any) in the first pass and do
15348         not consider registers that belong to it in the second pass.
15349         (create_new_chain): Do not set 'length' field.
15350         (scan_rtx_reg): Likewise.
15352 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15354         PR tree-optimization/47140
15355         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15356         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15357         to bit_value_binop.
15359         PR rtl-optimization/47028
15360         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15361         parm_birth_insn instead of at the beginning of first bb.
15363 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15365         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15366         Remove the word "see" before "@pxref".
15367         * doc/rtl.texi: Remove the word "see" before "@pxref".
15369 2011-01-01  Jan Hubicka  <jh@suse.cz>
15371         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15372         memory.
15374 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15376         PR target/38662
15377         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15380 Copyright (C) 2011 Free Software Foundation, Inc.
15382 Copying and distribution of this file, with or without modification,
15383 are permitted in any medium without royalty provided the copyright
15384 notice and this notice are preserved.