2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob9bafa1de3180644fcb96f86ed2992d788eebe1ae
1 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
3         PR rtl-optimization/48757
4         * ira-build.c (loop_with_eh_edge_p): Rename to
5         loop_with_complex_edge_p, check edges on complexity, make function
6         conditional.
7         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
8         conditional.
10 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13         force flag_ira_share_save_slots to 0.
15 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
17         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
18         (vt_initialize): Set PROLOGUE_BB unconditionally.
19         Add block comment about CFA_BASE_RTX machinery.
20         Reset FP_CFA_OFFSET to -1 on all invalid paths.
21         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
23 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
25         PR objc/48187
26         * c-parser.c (c_parser_objc_class_instance_variables): More robust
27         parsing of syntax error in ObjC instance variable lists.  In
28         particular, avoid an infinite loop if there is a stray ']'.
29         Updated error message.
31 2011-05-24  Ian Lance Taylor  <iant@google.com>
33         * godump.c (go_define): Don't accept a string immediately after
34         another operand.
36 2011-05-24  Ian Lance Taylor  <iant@google.com>
38         * godump.c (struct godump_container): Add invalid_hash field.
39         (go_format_type): Return false if type is found in invalid_hash.
40         (go_output_typedef): Add invalid type to invalid_hash.
41         (go_finish): Create and delete invalid_hash.
43 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
45         PR tree-optimization/46728
46         * tree-ssa-math-opts.c (powi_table): New.
47         (powi_lookup_cost): New.
48         (powi_cost): New.
49         (powi_as_mults_1): New.
50         (powi_as_mults): New.
51         (gimple_expand_builtin_powi): New.
52         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
53         (gate_cse_sincos): Remove sincos/cexp restriction.
55 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
57         PR target/3746
58         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
59         mips-tdump native.
60         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
61         * mips-tdump.c: Likewise.
63 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
65         PR target/49128
66         * config/i386/driver-i386.c (host_detect_local_cpu): Always
67         add -mno-XXX.  Handle FMA.
69 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
71         PR rtl-optimization/48633
72         * ira-build.c (loop_with_eh_edge_p): New function.
73         (mark_loops_for_removal): Use it.
75 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
77         PR rtl-optimization/48971
78         * ira.c (setup_pressure_classes): Don't check register move cost
79         for classes with one registers.  Don't add pressure class if there
80         is a pressure class with the same available hard registers.
81         Check contains_reg_of_mode.  Fix a typo in collecting
82         temp_hard_regset.  Ignore hard registers not belonging to a class.
84 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
86         PR target/49133
87         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
89 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
90             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
92         PR gcov-profile/48845
93         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
95 2011-05-24  Richard Guenther  <rguenther@suse.de>
97         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
98         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
99         (gimple_types_compatible_p_1): Adjust.
100         (iterative_hash_canonical_type): Do not bother about complete vs.
101         incomplete types.
102         (gimple_canonical_types_compatible_p): Likewise.
104 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
106         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
108 2011-05-24  Richard Guenther  <rguenther@suse.de>
110         PR bootstrap/49078
111         * gimple.c (gimple_register_canonical_type): Revert
112         previous change.
113         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
114         does not for a tree for the case where it matters.  Cache
115         pointer-type alias-sets.
117 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
119         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
120         (OBJS): Remove options.o, opts-common.o and prefix.o.
121         (OBJS-libcommon-target): New.
122         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
123         (BACKEND): Include libcommon-target.a.
124         (MOSTLYCLEANFILES): Include libcommon-target.a.
125         (libcommon-target.a): New.
126         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
127         prefix.o.
129 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
131         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
132         parts of output shared with the driver.
133         * optc-gen.awk: Don't generate parts of output not shared with the
134         driver.
135         * opth-gen.awk: Remove GCC_DRIVER conditionals.
136         * doc/options.texi (SourcerInclude): Mention options-save.c.
137         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
138         (OBJS): Add options-save.o.
139         (options-save.c, options-save.o): New.
140         (options.o): Update dependencies.
141         (gcc-options.o): Remove.
142         (mostlyclean): Remove options-save.c.
144 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
146         PR debug/49032
147         * dbxout.c: Include cgraph.h.
148         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
149         and without value expr, return NULL if no varpool node exists for
150         it or if it is not needed.
151         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
153         PR c/49120
154         * c-decl.c (start_decl): Convert expr to void_type_node.
156 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
158         PR rtl-optimization/48826
159         * emit-rtl.c (try_split): When splitting a call that is followed
160         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
162 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
164         * cfgexpand.c (expand_debug_expr): For unused non-addressable
165         parameters passed in memory prefer using DECL_INCOMING_RTL over
166         the pseudos it will be copied into.
168 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
170         PR target/47315
171         * config/i386/i386.c (ix86_option_override_internal): Save the
172         initial options after checking vzeroupper.
174 2011-05-23  David Li  <davidxl@google.com>
176         PR tree-optimization/48988
177         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
178         Initialize has_valid_pred for each pred chain.
180 2011-05-23  Richard Guenther  <rguenther@suse.de>
182         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
183         (iterative_hash_gimple_type): Always hash type names.
185 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
187         * c-typeck.c (build_function_call_vec): Tweak call to
188         check_function_arguments.
190 2011-05-23  Richard Guenther  <rguenther@suse.de>
192         PR tree-optimization/49115
193         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
194         is not necessarily carried out, do not claim it kills the ref.
195         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
197 2011-05-23  Richard Guenther  <rguenther@suse.de>
199         PR middle-end/15419
200         * builtins.c (fold_builtin_memory_op): Be less restrictive about
201         what pointer types we accept for folding.
203 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
205         * gthr-gnat.c: Remove.
206         * gthr-gnat.h: Remove.
207         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
208         * config/t-freebsd (LIB2ADDEH): Likewise.
209         * config/t-linux (LIB2ADDEH): Likewise.
210         * config/t-sol2 (LIB2ADDEH): Likewise.
211         * config/ia64/t-vms (LIB2ADDEH): Likewise.
212         * configure.ac (target_thread_file): Remove gnat handling.
213         * configure: Regenerate.
214         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
216 2011-05-23  Tristan Gingold  <gingold@adacore.com>
217             Eric Botcazou  <ebotcazou@adacore.com>
219         * gcov.c (create_file_names): If no object directory is specified,
220         keep the directory of the file.
222 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
224         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
225         * configure: Regenerate.
227 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
229         PR middle-end/48973
230         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
231         failed and the comparison has a single bit signed type, use
232         constm1_rtx instead of const1_rtx for true value.
233         (do_store_flag): If ops->type is single bit signed type, disable
234         signel bit test optimization and pass -1 instead of 1 as last
235         parameter to emit_store_flag_force.
237 2011-05-23  Tom de Vries  <tom@codesourcery.com>
239         PR target/45098
240         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
241         function.
242         (infer_loop_bounds_from_undefined): Use new function.
244 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
246         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
247         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
248         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
249         and -O0 otherwise.
250         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
252 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
254         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
255         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
256         returns true.
258 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
260         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
262 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
264         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
265         UNSPEC_MOVE_PIC pattern.
267 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
269         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
270         (sparc-*-rtems*): Likewise.
271         (sparc64-*-elf*): Likewise.
272         (sparc64-*-rtems*): Likewise.
273         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
274         * config/sparc/t-crtin: New file.
275         * config/sparc/t-sol2 (crti.o): Delete rule.
276         (crtn.o): Likewise.
277         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
278         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
279         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
280         (ENDFILE_SPEC): Add crtn.o.
282 2011-05-22  Tom de Vries  <tom@codesourcery.com>
284         PR middle-end/48689
285         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
286         CODE_CONTAINS_STRUCT (TS_COMMON).
288 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
290         PR middle-end/49029
291         * expmed.c (extract_fixed_bit_field): Test whether target can be used
292         only after deciding which mode to use.
294 2011-05-22  Tom de Vries  <tom@codesourcery.com>
296         PR target/45098
297         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
298         for call to get_shiftadd_cost.
300 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
302         PR target/49104
303         * config/i386/cpuid.h (bit_MMXEXT): New define.
305 2011-05-22  Nick Clifton  <nickc@redhat.com>
307         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
308         initialisation of non-existant args[2] element.  Use args[] array
309         not arg[] array to pass arguments to build_function_type_list.
311 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
313         PR tree-optimization/49087
314         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
316 2011-05-21  Jason Merrill  <jason@redhat.com>
318         PR c++/49092
319         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
320         static storage duration.
322 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
324         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
325         frame pointer.
327 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
329         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
330         false if there are call-saved registers here...
331         (sparc_can_use_return_insn_p): ...but here instead.
332         (save_or_restore_regs): Fix thinko.
333         (sparc_expand_prologue): Use current_function_is_leaf.
334         (sparc_frame_pointer_required): Likewise.
336 2011-05-21  Nick Clifton  <nickc@redhat.com>
338         PR target/49098
339         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
341 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
343         * gengtype.c (walk_type): Implemented "atomic" GTY option.
344         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
346 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
348         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
349         * optc-gen.awk: Move common code to opt-read.awk.
350         * opth-gen.awk: Likewise.
351         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
353 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
355         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
357 2011-05-20  Tom de Vries  <tom@codesourcery.com>
359         PR target/45098
360         * tree-ssa-loop-ivopts.c: Include expmed.h.
361         (get_shiftadd_cost): New function.
362         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
364 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
366         PR bootstrap/49086
367         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
368         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
370 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
372         * Makefile.in: Update comment referring to $(OBJS-common).
374 2011-05-20  Ian Lance Taylor  <iant@google.com>
376         * godump.c (go_output_typedef): Put enum constants in the macro
377         hash table to avoid duplicate Go const definitions.
379 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
381         * Makefile.in (LIBDEPS): Add libcommon.a.
382         (LIBS): Likewise.
383         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
384         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
385         pretty-print.o and version.o.
386         (OBJS-libcommon): New.
387         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
388         (BACKEND): Add libcommon.a.
389         (MOSTLYCLEANFILES): Likewise.
390         (libcommon.a): New.
391         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
392         (cpp$(exeext)): Likewise.
393         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
394         pretty-print.o and input.o.
395         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
396         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
397         (errors.o): Remove.
398         (mips-tfile): Don't explicitly use version.o.
399         (mips-tdump): Likewise.
400         (gcov.o): Depend on $(DIAGNOSTIC_H).
401         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
402         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
403         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
404         * gcov-dump.c: Include intl.h and diagnostic.h.
405         (main): Initialize diagnostics.
406         * gcov.c: Include diagnostic.h.
407         (fnotice): Remove.
408         (main): Initialize diagnostics.
409         * lto-wrapper.c: Include diagnostic.h.
410         (main): Initialize diagnostics.
412 2011-05-20  Michael Matz  <matz@suse.de>
414         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
416 2011-05-20  Michael Matz  <matz@suse.de>
417             Richard Guenther  <rguenther@suse.de>
419         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
420         use lto_streamer_cache_append directly instead of returning a VEC.
421         (preload_common_node): Remove.
422         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
423         track seen nodes.
424         (lto_streamer_cache_create): Call lto_preload_common_nodes.
426 2011-05-20  Richard Guenther  <rguenther@suse.de>
428         PR tree-optimization/49079
429         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
430         MEM_REFs correctly for the trailing array access detection.
431         Special case constants the same way as decls for overall size
432         constraining.
434 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
436         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
437         argument expansion.
439 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
441         PR tree-optimization/49073
442         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
443         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
444         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
446 2011-05-20  Richard Guenther  <rguenther@suse.de>
448         PR middle-end/48849
449         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
450         of pointer types the same way the middle-end does.
452 2011-05-20  Richard Guenther  <rguenther@suse.de>
454         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
455         or pointer-to chains.  Delay all fixup to uniquify_nodes.
457 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
459         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
460         (fma4_fmaddsub): Likewise
462 2011-05-19  Jan Hubicka  <jh@suse.cz>
464         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
465         (GIMPLE_TYPE_PAIR_SIZE): New macro.
466         (type_pair_cache): New static var.
467         (lookup_type_pair): Use fixed sized custom hash; make inline.
468         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
469         calls of lookup_type_pair.
470         (print_gimple_types_stats): Remove cache stats.
471         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
472         and gtc_ob.
474 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
476         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
477         when TARGET_RDRND is active.
478         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
479         Generate dummy SImode target register when target is NULL.
481 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
483         * config/arm/arm-fpus.def: New.
484         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
485         arm-fpus.def.
486         * config/arm/arm-tables.opt: Regenerate.
487         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
488         (arm_option_override): Don't decode FPU name to string here.
489         * config/arm/arm.opt (mfpu=): Use Enum.
490         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
491         Update dependencies.
493 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
495         * collect2.c: Include diagnostic.h.
496         (fatal_perror, fatal, error, fancy_abort): Remove.
497         (main): Set progname.  Call xmalloc_set_program_name and
498         diagnostic_initialize.
499         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
500         scan_libraries, resolve_lib_name): Call fatal_error instead of
501         fatal and fatal_perror.
502         * collect2.h (error, fatal, fatal_perror): Don't declare.
503         * tlink.c: Include diagnostic-core.h.
504         (recompile_files): Call fatal_error instead of fatal_perror.
505         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
506         pretty-print.o and input.o.
507         (collect2.o, tlink.o): Update dependencies.
509 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
511         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
513 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
515         PR target/40483
516         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
517         COMDAT group syntax, both SPARC and x86 variants.
518         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
519         * configure: Regenerate.
520         * config/sol2.h (TARGET_SOLARIS): Define.
521         (PUSHSECTION_FORMAT): Remove.
522         (SECTION_NAME_FORMAT): Define.
523         * config/sol2.c: Include hashtab.h.
524         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
525         expansion, using SECTION_NAME_FORMAT.
526         (solaris_comdat_htab): New variable.
527         (struct comdat_entry): Define.
528         (comdat_hash): New function.
529         (comdat_eq): New function.
530         (solaris_elf_asm_comdat_section): New function.
531         (solaris_define_comdat_signature): New function.
532         (solaris_code_end): New function.
533         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
534         (solaris_code_end): Declare.
535         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
536         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
537         solaris_code_end.
538         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
539         Remove ATTRIBUTE_UNUSED.
540         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
541         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
542         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
543         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
544         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
545         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
546         (PUSHSECTION_FORMAT): Remove.
547         (SECTION_NAME_FORMAT): Redefine.
549 2011-05-19  Kai Tietz  <ktietz@redhat.com>
551         * tree-cfg.c (verify_gimple_assign_binary): Barf on
552         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
553         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
555 2011-05-19  Anatoly Sokolov <aesok@post.ru>
556             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
558         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
560 2011-05-19  Richard Guenther  <rguenther@suse.de>
562         PR middle-end/48985
563         * tree-object-size.c (addr_object_size): If the pointed-to
564         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
566 2011-05-19  Richard Guenther  <rguenther@suse.de>
568         * gimple.c (gimple_types_compatible_p_1): Compare names of
569         the types themselves.
570         (iterative_hash_gimple_type): And hash them that way.
571         (gimple_register_type_1): If we register a main variant properly
572         initialize the leader to ourselves.
574 2011-05-19  Tom de Vries  <tom@codesourcery.com>
576         PR target/45098
577         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
578         get_loop_invariant_expr_id.
579         (get_loop_invariant_expr_id): Use get_expr_id.
580         (parm_decl_cost): New function.
581         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
582         Improve bound cost estimation.  Use different inv_expr_id for elim and
583         express cases.
585 2011-05-19  Tom de Vries  <tom@codesourcery.com>
587         PR target/45098
588         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
589         cost_base.cost == 0.
591 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
593         PR target/49002
594         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
595         Properly handle load cast.
597 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
599         PR tree-optimization/49039
600         * tree-vrp.c (extract_range_from_binary_expr): For
601         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
602         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
604 2011-05-18  Tom de Vries  <tom@codesourcery.com>
606         PR target/45098
607         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
609 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
611         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
612         (*tls_global_dynamic_64): Ditto.
613         (*tls_local_dynamic_base_32_gnu): Ditto.
614         (*tls_local_dynamic_base_64): Ditto.
615         (tls_initial_exec_64_sun): Ditto.
617 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
619         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
620         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
621         bf592-none.
622         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
623         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
624         * config/bfin/bfin.c (bfin_cpus): Add bf592.
625         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
626         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
627         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
628         * config/bfin/elf.h (LIB_SPEC): Add bf592.
630 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
632         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
633         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
634         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
635         target_thread_pointer, arm_structure_size_boundary, struct
636         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
637         struct abi_name, arm_all_abis): Remove.
638         (arm_option_override) Don't process most enumerated option values here.
639         Don't process target_fpe_name here.  Work with integer not string for
640         structure size boundary; use separate diagnostics for each case.
641         * config/arm/arm.h (enum float_abi_type, enum
642         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
643         to arm-opts.h.
644         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
645         arm_structure_size_boundary): Remove.
646         * config/arm/arm.opt (mabi=): Use Enum and Init.
647         (arm_abi_type): New Enum and EnumValue entries.
648         (mfloat-abi=): Use Enum and Init.
649         (float_abi_type): New Enum and EnumValue entries.
650         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
651         (mfp16-format=): Use Enum and Init.
652         (arm_fp16_format_type): New Enum and EnumValue entries.
653         (mstructure-size-boundary=): Use UInteger and Init.
654         (mtp=): Use Enum and Init.
655         (arm_tp_type): New Enum and EnumValue entries.
657 2011-05-18  Richard Guenther  <rguenther@suse.de>
659         PR tree-optimization/49018
660         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
661         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
662         gimple_has_side_effects.
664 2011-05-18  Richard Guenther  <rguenther@suse.de>
666         * gimple.c (gimple_register_type_1): New function, split out from ...
667         (gimple_register_type): ... here.  Avoid infinite recursion.
669 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
671         PR tree-optimization/41881
672         * tree-vectorizer.h (struct _loop_vec_info): Add new field
673         reduction_chains along with a macro for its access.
674         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
675         (destroy_loop_vec_info): Free reduction chains.
676         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
677         (vect_is_slp_reduction): New function.
678         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
679         (vect_create_epilog_for_reduction): Support SLP reduction chains.
680         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
681         definition types for reduction chains.
682         (vect_supported_load_permutation_p): Don't allow permutations for
683         reduction chains.
684         (vect_analyze_slp_instance): Support reduction chains.
685         (vect_analyze_slp): Try to build SLP instance from reduction chains.
686         (vect_get_constant_vectors):  Handle reduction chains.
687         (vect_schedule_slp_instance): Mark the first statement of the
688         reduction chain as reduction.
690 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
692         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
693         names for group elements access.
694         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
695         reduction chains as well.  Remove data reference and interleaving
696         related words from the fields names.
697         * tree-vect-loop.c (vect_transform_loop): Use new names for group
698         elements access.
699         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
700         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
701         vect_update_interleaving_chain, vect_same_range_drs,
702         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
703         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
704         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
705         vect_analyze_group_access, vect_analyze_data_ref_access,
706         vect_create_data_ref_ptr, vect_transform_strided_load,
707         vect_record_strided_load_vectors): Likewise.
708         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
709         vect_model_load_cost, vectorizable_store, vectorizable_load,
710         vect_remove_stores, new_stmt_vec_info): Likewise.
711         * tree-vect-slp.c (vect_build_slp_tree,
712         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
714 2011-05-18  Richard Guenther  <rguenther@suse.de>
716         PR middle-end/48989
717         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
718         operand verification.
719         (verify_gimple_assign_binary): Likewise.
720         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
721         to non-1-precision BOOLEAN_TYPEs.
723 2011-05-18  Tom de Vries  <tom@codesourcery.com>
725         PR target/45098
726         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
728 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
730         PR tree-optimization/49000
731         * tree-ssa.c (execute_update_addresses_taken): Call
732         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
733         be rewritten and decl has been marked for renaming, reset
734         the debug stmt.
736 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
738         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
739         enum_opts_set when testing if attributes have set -mfpmath=.
741 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
743         * config/mips/mips.c (mips_handle_option): Remove unused variable.
745 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
747         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
748         info->entry with 0
749         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
750         id.transform_lang_insert_block with NULL.
752 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
754         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
755         (output_fp_compare): Change args 3 and 4 to bool.
756         (ix86_expand_call): Change arg 6 to bool.
757         (ix86_attr_length_immediate_default): Change arg 2 to bool.
758         (ix86_attr_length_vex_default): Change arg 3 to bool.
759         * config/i386/i386.md: Update all uses.
760         * config/i386/i386.c: Ditto.
761         (ix86_flags_dependent): Change return type to bool.
763 2011-05-17  Richard Guenther  <rguenther@suse.de>
765         * gimple.c (type_hash_pair_compare): Fix comparison.
767 2011-05-17  Richard Guenther  <rguenther@suse.de>
769         * gimple.c (iterative_hash_gimple_type): Simplify singleton
770         case some more, fix final hash value of the non-singleton case.
772 2011-05-17  Richard Guenther  <rguenther@suse.de>
774         PR bootstrap/49013
775         Revert
776         2011-05-16  Richard Guenther  <rguenther@suse.de>
778         * gimple.c (gimple_types_compatible_p_1): Use names of the
779         type itself, not its main variant.
780         (iterative_hash_gimple_type): Likewise.
782 2011-05-17  Richard Guenther  <rguenther@suse.de>
784         * gimple.c (gimple_register_canonical_type): Use the main-variant
785         leader for computing the canonical type.
787 2011-05-17  Nick Clifton  <nickc@redhat.com>
789         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
790         moves.
792         * config/rx/rx.md: Add peephole to remove redundant extensions
793         after loads.
794         (bitset_in_memory): Use rx_restricted_mem_operand.
795         (bitinvert_in_memory): Likewise.
796         (bitclr_in_memory): Likewise.
798 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
799             Nick Clifton  <nickc@redhat.com>
801         * config/rx/rx.md: Add peepholes to match a register move followed
802         by a comparison of the moved register.  Replace these with an
803         addition of zero that does both actions in one instruction.
805 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
807         PR target/48986
808         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
809         predicate to allow CONST_INT.
810         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
812 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
814         * opts-common.c (opt_enum_arg_to_value): New.
815         * opts.h (opt_enum_arg_to_value): Declare.
816         * config/i386/i386.opt (fpmath): Remove.
817         (mfpmath=): Use Enum, Init and Save.
818         (fpmath_unit): New Enum and EnumValue entries.
819         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
820         name for function fpmath state.
821         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
822         * config/i386/i386.c: Include diagnostic.h.
823         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
824         (ix86_target_string): Take enum fpmath_unit value instead of string.
825         (ix86_debug_options): Update call to ix86_target_string.
826         (ix86_option_override_internal): Don't process fpmath strings here.
827         (x86_function_specific_save, ix86_function_specific_restore):
828         Don't handle fpmath state specially.
829         (ix86_function_specific_print): Pass fpmath state to
830         ix86_target_string instead of printing in this function.
831         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
832         Handle enum attributes.
833         (IX86_ATTR_ENUM, ix86_opt_enum): New.
834         (ix86_valid_target_attribute_tree): Update option_strings
835         handling.  Handle fpmath as enum option.
836         (ix86_can_inline_p): Update field names for function fpmath state.
837         (ix86_expand_builtin): Update call to ix86_target_string.
838         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
839         (ix86_fpmath): Remove.
840         * config/i386/t-i386 (i386.o): Update dependencies.
842 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
844         PR preprocessor/48677
845         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
846         from decoded_options[0], not from itself.
848 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
850         * config/i386/constraints.md (z): New constraint.
851         * config/i386/i386.c (c): New mode attribute.
852         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
853         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
854         constraint for operand 0.
855         (*call_vzeroupper): Ditto.
856         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
857         (*call_rex64_ms_sysv_vzeroupper): Ditto.
858         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
859         Use "lzm" constraint for operand 0.
860         (*call_pop_vzeroupper): Ditto.
861         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
862         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
863         constraint for operand 0.
864         (*sibcall_vzeroupper): Ditto.
865         (*sibcall_rex64_ms_sysv): Ditto.
866         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
867         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
868         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
869         (*sibcall_pop_vzeroupper): Ditto.
870         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
871         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
872         mode iterator.  Use "<c>zm" constraint for operand 1.
873         (*call_value_vzeroupper): Ditto.
874         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
875         for operand 1.
876         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
877         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
878         *call_value_pop_1.  Use "lzm" constraint for operand 1.
879         (*call_value_pop_vzeroupper): Ditto.
880         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
881         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
882         mode iterator.  Use "Uz" constraint for operand 1.
883         (*sibcall_value_vzeroupper): Ditto.
884         (*sibcall_value_rex64_ms_sysv): Ditto.
885         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
886         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
887         constraint for operand 1.
888         (*sibcall_value_pop_vzeroupper): Ditto.
889         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
890         and "z" constraint for operand 2.
891         (*tls_global_dynamic_32_gnu): Ditto.
892         (*tls_local_dynamic_base_32_gnu): Ditto.
893         (*tls_local_dynamic_base_64): Ditto.
894         (*tls_local_dynamic_32_once): Ditto.
895         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
896         Update all callers.
897         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
899 2011-05-16  Richard Guenther  <rguenther@suse.de>
901         * gimple.c (gimple_types_compatible_p_1): Use names of the
902         type itself, not its main variant.
903         (iterative_hash_gimple_type): Likewise.
905 2011-05-16  Richard Guenther  <rguenther@suse.de>
907         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
908         always visit pointer target and function result and argument types.
910 2011-05-16  Jason Merrill  <jason@redhat.com>
912         PR c++/48999
913         * tree-inline.c (copy_statement_list): Put back recursion.
915 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
917         PR target/27663
918         PR target/41076
919         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
920         * config/avr/avr.md ("*ior<mode>qi.byte0",
921         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
923 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
925         PR target/45099
926         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
927         register is needed for a function argument.
929 2011-05-16  Richard Guenther  <rguenther@suse.de>
931         * gimple.c (struct type_hash_pair): New type.
932         (type_hash_pair_compare): New function.
933         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
935 2011-05-16  Revital Eres  <revital.eres@linaro.org>
937         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
939 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
941         * config/i386/i386.md (floating point move splitters): Fix
942         usage of standard_80387_constant_p.
943         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
945 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
947         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
949 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
951         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
952         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
953         (tree_ssa_lim_finalize): Likewise.
955 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
957         * config/i386/constraint.md (Yd, Yx): New register constraints.
958         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
959         Yd conditional register constraint.
960         (*movtf_internal): Use standard_sse_constant_opcode.
961         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
962         Yx conditional register constraint.
963         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
964         Yd conditional register constraint.  Use standard_sse_constant_p to
965         check for valid SSE constants and call standard_sse_constant_opcode to
966         output SSE insn.
967         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
968         constants and call standard_sse_constant_opcode to output SSE insn.
969         * config/i386/i386.c (ix86_option_ovverride_internal): Set
970         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
971         optimize_size is set.
972         (standard_sse_constant_opcode): Output conditional AVX insn templates.
974 2011-05-14  Tobias Burnus  <burnus@net-b.de>
976         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
978 2011-05-13  Martin Jambor  <mjambor@suse.cz>
980         * ipa-prop.c (ipa_cst_from_jfunc): New function.
981         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
982         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
983         (evaluate_conditions_for_ipcp_clone): Removed.
984         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
985         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
986         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
988 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
990         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
991         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
992         lieu of MAY_HAVE_DEBUG_STMTS.
993         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
994         debug statements if !MAY_HAVE_DEBUG_STMTS.
996 2011-05-13  Martin Thuresson  <martint@google.com>
998         PR gcov-profile/47793
999         * libgcov.c (gcov_exit): Support relative profile paths.
1000         * doc/invoke.texi (-fprofile-dir): Update for above change.
1002 2011-05-13  Richard Guenther  <rguenther@suse.de>
1004         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1005         type-pair caching, do not compare hashes.
1007 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1009         PR middle-end/48965
1010         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1011         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1013 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1015         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1016         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1017         compatible type for TRUTH_NOT_EXPR.
1019 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1021         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1022         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1023         can_create_pseudo_p ().
1025 2011-05-13  Richard Guenther  <rguenther@suse.de>
1027         PR lto/48978
1028         * gimple.c (iterative_hash_gimple_type): Revert change in
1029         pointer target and function result and argument hashing.
1031 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1033         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1034         (*movxf_internal_nointeger): Ditto.
1035         (*movdf_internal_rex64): Ditto.
1036         (*movdf_internal): Ditto.
1037         (*movdf_internal_nointeger): Ditto.
1038         (*movsf_internal): Ditto.
1039         (sincos splitters): Use can_create_pseudo ().
1041 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1043         * config/i386/i386-opts.h: New.
1044         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1045         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1046         ix86_section_threshold): Remove.
1047         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1048         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1049         OPT_mbranch_cost_.
1050         (ix86_option_override_internal): Don't decode strings for options
1051         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1052         __attribute__ uses in remaining diagnostics for options with
1053         string arguments.  Don't check for integer arguments being negative.
1054         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1055         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1056         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1057         ix86_branch_cost, ix86_section_threshold): Remove.
1058         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1059         HeaderInclude.
1060         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1061         but not Var.
1062         (masm=): Use Enum and Init.
1063         (asm_dialect): New Enum and EnumValue entries.
1064         (mbranch-cost=): Use UInteger.
1065         (mlarge-data-threshold=): Use UInteger and Init.
1066         (mcmodel=): Use Enum and Init.
1067         (cmodel): New Enum and EnumValue entries.
1068         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1069         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1070         mregparm=): Use UInteger.
1071         (mstringop-strategy=): Use Enum and Init.
1072         (stringop_alg): New Enum and EnumValue entries.
1073         (mtls-dialect=): Use Enum and Init.
1074         (tls_dialect): New Enum and EnumValue entries.
1075         (mabi=): Use Enum and Init.
1076         (calling_abi): New Enum and EnumValue entries.
1077         (mveclibabi=): Use Enum and Init.
1078         (ix86_veclibabi): New Enum and EnumValue entries.
1080 2011-05-13  Nick Clifton  <nickc@redhat.com>
1082         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1083         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1085 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1087         PR middle-end/48984
1088         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1089         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1090         (gimple_boolify): Check for cast for boolean_type_node instead for
1091         BOOLEAN_TYPE.
1093 2011-05-13  Richard Guenther  <rguenther@suse.de>
1095         PR tree-optimization/48172
1096         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1097         multiplying by number of iterations for equal step.
1098         (vect_create_cond_for_alias_checks): Likewise.
1100 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1102         * configure.ac: Use AS_HELP_STRING throughout.
1103         * configure: Regenerate.
1105 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1107         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1108         (ix86_emit_restore_regs_using_mov): Likewise.
1109         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1111 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1113         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1114         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1115         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1116         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1117         RTX_OK_FOR_OLO10_P): ...here.
1118         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1119         SYMBOLIC_CONST.
1121 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1123         * gimplify.c (gimple_boolify): Re-boolify expression
1124         arguments even if expression type is of kind BOOLEAN_TYPE.
1125         (gimplify_boolean_expr): Removed.
1126         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1127         and XOR. Additional take care that we keep expression's type.
1128         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1129         of TRUTH_AND|OR|XOR_EXPR.
1131 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1133         PR tree-optimization/48975
1134         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1135         on all bbs here and free and clear ifc_bbs at the end.
1137 2011-05-12  Richard Guenther  <rguenther@suse.de>
1139         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1140         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1141         until after simple checks.
1142         (gimple_types_compatible_p): Likewise.
1143         (iterative_hash_gimple_type): Always hash pointer targets
1144         and function return and argument types.
1145         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1146         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1147         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1148         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1149         completely in the simple compare section.
1150         (gimple_register_canonical_type): Query the cache again after
1151         registering.
1153 2011-05-12  Richard Guenther  <rguenther@suse.de>
1155         PR tree-optimization/48172
1156         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1157         the number of iterations from the segment size calculation.
1158         (vect_create_cond_for_alias_checks): Adjust.
1160 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1162         PR debug/48967
1163         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1164         if validate_subreg fails.
1166 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1168         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1169         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1170         early.
1172 2011-05-12  DJ Delorie  <dj@redhat.com>
1174         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1175         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1176         created builtin into rx_builtins array.
1177         (rx_builtin_decl): New function.
1178         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1180 2011-05-12  DJ Delorie  <dj@redhat.com>
1181             Nick Clifton  <nickc@redhat.com>
1183         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1184         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1185         (rx_is_legitimate_address): Add pre-decrement and post-increment
1186         addressing in HImode and QImode.  Fix test for out of range
1187         REG+INT addressing.
1188         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1189         (rx_align_for_label): Test label before extracting its usage count.
1190         (rx_adjust_insn_lengths): Fix selection of insn codes.
1191         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1193 2011-05-11  Jason Merrill  <jason@redhat.com>
1195         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1197 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1199         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1200         reindent the subsequent block.
1202 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1203             Paul Pluzhnikov  <ppluzhnikov@google.com>
1205         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1206         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1207         * config.in: Add LINKER_HASH_STYLE.
1208         * configure.ac: Add --with-linker-hash-style.
1209         * configure: Regenerate.
1211 2011-05-11  Richard Guenther  <rguenther@suse.de>
1213         PR middle-end/48964
1214         * gimple.c (iterative_hash_canonical_type): Fix typo.
1216 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1218         * config/i386/i386.c (legitimize_tls_address)
1219         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1220         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1221         __tls_get_addr symbol reference here.  Update call to
1222         gen_tls_global_dynamic_{32,64} for added arguments.
1223         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1224         expanders directly for TARGET_GNU2_TLS.  Determine
1225         __tls_get_addr symbol reference here.  Update call to
1226         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1227         unique UNSPEC REG_EQUIV to libcall block.
1228         (ix86_tls_get_addr): Declare static.
1229         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1230         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1231         Do not determine pic and __tls_get_addr symbol reference here. Do not
1232         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1233         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1234         (tls_global_dynamic_64): Add operand 2.  Do not determine
1235         __tls_get_addr symbol reference here.  Do not call
1236         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1237         (tls_local_dynamic_base64): Ditto for operand 1.
1239 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1241         * function.c (expand_function_start): Initialize stack_check_probe_note
1242         only if the generic stack checking mechanism is used.
1244 2011-05-11  Richard Guenther  <rguenther@suse.de>
1246         PR tree-optimization/15256
1247         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1248         (A & B) | C, combine (A op CST1) op CST2.
1249         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1250         visit assigns that have uses.
1252 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1254         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1255         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1256         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1257         (unpack_value_fields): Adjust for renaming.
1258         (lto_input_ts_type_tree_pointers): Split into...
1259         (lto_input_ts_type_common_tree_pointer): ...this and...
1260         (lto_input_ts_type_non_common_tree_pointers): ...this.
1261         (lto_input_tree_pointers): Adjust for above split.
1262         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1263         (pack_ts_type_common_value_fields): ...this.  Update comment.
1264         (lto_output_ts_type_tree_pointers): Split into...
1265         (lto_output_ts_type_common_tree_pointers): ...this and...
1266         (lto_output_ts_type_non_common_tree_pointers): ...this.
1267         (lto_output_tree_pointers): Adjust for above split.
1268         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1269         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1270         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1271         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1272         Define.
1273         (struct tree_type): Split into...
1274         (struct tree_type_common: ...this and...
1275         (struct tree_type_with_lang_specific): ...this and...
1276         (struct tree_type_non_common): ...this.  Adjust accessor macros
1277         accordingly.
1278         (TYPE_VALUES_RAW): Define.
1279         (union tree_node): Update for above changes.
1280         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1281         TS_TYPE_NON_COMMON.
1282         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1283         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1284         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1285         * treestructu.def (TS_TYPE): Remove.
1286         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1287         Define.
1289 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1291         PR debug/48159
1292         * tree-ssa.c (reset_debug_uses): New function.
1293         * tree-flow.h (reset_debug_uses): New prototype.
1294         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1295         * tree-loop-distribution.c (generate_loops_for_partition): Call
1296         reset_debug_uses on the stmts that will be removed.  Keep around
1297         all debug stmts, don't count them as bits in partition bitmap.
1298         (generate_builtin): Don't count debug stmts or labels as bits in
1299         partition bitmap.
1301 2011-05-11  Richard Guenther  <rguenther@suse.de>
1303         * gimple.c (gimple_type_hash_1): Merge with ...
1304         (gimple_type_hash): ... this.
1305         (gtc_visit): Remove mode parameter and simplify accordingly.
1306         (gimple_types_compatible_p_1): Likewise.
1307         (gimple_types_compatible_p): Likewise.
1308         (iterative_hash_gimple_type): Likewise.
1309         (visit): Likewise.
1310         (gimple_type_eq): Adjust.
1312 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1314         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1315         enters the branch create an anti edge in the opposite direction
1316         to prevent the creation of reg-moves.
1317         * modulo-sched.c: Adjust comment to reflect the fact we are
1318         scheduling closing branch.
1319         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1320         (stage_count): New field in struct partial_schedule.
1321         (calculate_stage_count): New function.
1322         (normalize_sched_times): Rename to reset_sched_times and handle
1323         incrementing the sched time of the nodes by a constant value
1324         passed as parameter.
1325         (duplicate_insns_of_cycles): Skip closing branch.
1326         (sms_schedule_by_order): Schedule closing branch.
1327         (ps_insn_find_column): Handle closing branch.
1328         (sms_schedule): Call reset_sched_times and adjust the code to
1329         support scheduling of the closing branch.
1330         (ps_insert_empty_row): Update calls to normalize_sched_times
1331         and rotate_partial_schedule functions.
1333 2011-05-11  Richard Guenther  <rguenther@suse.de>
1335         PR middle-end/48953
1336         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1338 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1340         * opts.c (finish_options): Move warning settings from process_options.
1341         * toplev.c (process_options): Move warning settings to finish_options.
1343 2011-05-11  Richard Guenther  <rguenther@suse.de>
1345         PR tree-optimization/18041
1346         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1347         (simplify_bitwise_binary): ... this.  Handle operand conversions
1348         by applying them to the result instead.
1349         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1351 2011-05-11  Richard Guenther  <rguenther@suse.de>
1353         * gimple.c (gimple_canonical_types_compatible_p): Split out
1354         from gimple_types_compatible_p and friends.  Do not recurse
1355         to pointed-to types.
1356         (gimple_canonical_type_eq): Use it.
1357         (iterative_hash_canonical_type): Split out from
1358         iterative_hash_gimple_type and friends.  Do not recurse
1359         to pointed-to types.
1360         (gimple_canonical_type_hash): Use it, allocate the hash here.
1362 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1364         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1365         recognizing doloop.
1367 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1369         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1370         instead of PREV_INSN.
1372 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1374         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1375         * loop-doloop.c (doloop_condition_get): Likewise.
1376         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1377         (doloop_end): New.
1378         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1380 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1382         * tree.def (CASE_LABEL_EXPR): Add an operand.
1383         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1385 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1387         * c-decl.c (c_override_global_bindings_to_false): Remove.
1388         (global_bindings_p): Don't check
1389         c_override_global_bindings_to_false.
1390         * c-tree.h (c_override_global_bindings_to_false): Remove.
1391         * c-typeck.c (composite_type): Don't set
1392         c_override_global_bindings_to_false.
1394 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1396         PR target/48857, 48495
1397         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1398         (VSX_MODE): Ditto.
1399         (VSX_MOVE_MODE): Ditto.
1400         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1401         VSX vector types.  Add V2DImode.
1402         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1403         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1404         (MODES_TIEABLE_P): Ditto.
1406         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1407         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1408         VSX_VECTOR_MODE.
1409         (init_cumulative_args): Ditto.
1410         (rs6000_function_arg_boundary): Ditto.
1411         (rs6000_function_arg_advance_1): Ditto.
1412         (rs6000_function_arg): Ditto.
1413         (rs6000_function_ok_for_sibcall): Ditto.
1414         (emit_frame_save): Ditto.
1415         (rs6000_function_value): Ditto.
1416         (rs6000_libcall_value): Ditto.
1418 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1420         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1421         i386/darwin-lib.h to $libgcc_tm_file.
1422         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1424 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1426         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1428 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1430         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1431         * config/rs6000/rs6000-tables.opt: New file (generated).
1432         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1433         rs6000/rs6000-tables.opt to extra_options.
1434         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1435         * config/rs6000/rs6000.c (rs6000_select): Remove.
1436         (processor_target_table): Move contents to rs6000-cpus.def.
1437         (darwin_rs6000_override_options): Check
1438         global_options_set.x_rs6000_cpu_index instead of
1439         rs6000_select[1].string.
1440         (rs6000_option_override_internal): Likewise.
1441         (rs6000_handle_option): Don't assert that global structures are in
1442         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1443         (rs6000_default_cpu): New variable.
1444         (rs6000_file_start): Set it instead of local default_cpu.  Check
1445         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1446         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1447         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1448         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1449         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1450         rs6000_select): Remove.
1451         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1452         Remove.
1453         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1454         * config/rs6000/t-rs6000
1455         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1456         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1457         global_options_set.x_rs6000_cpu_index instead of
1458         rs6000_select[1].string.
1459         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1460         global_options_set.x_rs6000_cpu_index instead of
1461         rs6000_select[1].string.
1463 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1465         * config.gcc (libgcc_tm_file): Define instead of including files
1466         from ../../libgcc/config/ in tm_file.
1467         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1468         * configure: Regenerate.
1469         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1470         libgcc_tm.h, cs-libgcc_tm.h): New.
1471         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1472         (clean): Remove libgcc_tm.h.
1473         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1474         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1475         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1477 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1479         PR target/48896
1480         * config/avr/avr.c (avr_ret_register): Return unsigned int
1481         instead of int.
1482         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1483         it to avr_libcall_value.
1484         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1485         expand_expr.
1486         (avr_expand_binop_builtin): Ditto.
1487         (avr_expand_unop_builtin): Ditto.
1489 2011-05-10  DJ Delorie  <dj@redhat.com>
1491         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1492         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1493         * config/rx/rx.c (rx_align_for_label): Add label and
1494         uses_threshold parameters.  Do not align when the label is not
1495         used enough.
1496         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1498 2011-05-10  Richard Guenther  <rguenther@suse.de>
1500         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1501         a series of conversions and apply foldings similar to what
1502         fold-const does.
1503         (tree_ssa_forward_propagate_single_use_vars): Call it.
1505 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1507         PR tree-optimization/48611
1508         PR tree-optimization/48794
1509         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1510         referenced from RESX or EH_DISPATCH arguments.
1512         PR debug/48928
1513         * dfp.c (decimal_to_decnumber): Handle conversion from
1514         dconst{1,2,m1,half}.
1516 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1518         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1519         for !flag_prefer_avx128.
1520         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1522 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1524         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1525         (fold_ternary_loc): Use expr_location_or.
1527 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1529         PR debug/48853
1530         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1531         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1532         Pmode and mem_mode is not VOIDmode.
1534 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1536         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1537         TYPE_QUAL_RESTRICT): Convert to enum.
1539 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1541         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1542         (const_pow2_1_to_8_operand): Ditto.
1543         (const_pow2_1_to_128_operand): Ditto.
1544         (const_pow2_1_to_32768_operand): Ditto.
1545         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1546         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1547         in insn constraint to check integer value of operand 3.
1548         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1550         (PINSR_MODE): New mode iterator.
1551         (sse2p4_1): New mode attribute.
1552         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1553         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1554         iterator.  Use const_int_operand instead of
1555         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1556         exact_log2 in insn constraint to check integer value of operand 3.
1558 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1560         * config/i386/sse.md (blendbits): Remove mode attribute.
1561         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1562         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1563         Check integer value of operand 3 in insn constraint.
1565 2011-05-09  Richard Guenther  <rguenther@suse.de>
1567         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1568         for diagnostics.
1569         (lto_symtab_merge): Likewise.  Do not register types here.
1570         (lto_symtab_merge_decls_2): Likewise.
1571         (lto_symtab_merge_decls_1): Likewise.
1572         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1573         * gimple.c (enum gtc_mode): Declare.
1574         (gimple_types_compatible_p): Make static.
1576 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1578         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1579         temporary register to match Pmode.
1581 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1583         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1584         and *vec_concatv4si_1_avx.
1586 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1588         PR rtl-optimization/48927
1589         * ira-conflicts.c (commutative_constraint_p): Use
1590         recog_data.alternative_enabled_p to disable alternatives where
1591         "enabled" attribute is false.
1592         (get_dup_num): Ditto.
1593         * ira-lives.c (single_reg_class): Ditto.
1594         (ira_implicitly_set_insn_hard_regs): Ditto.
1596 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1598         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1599         (dataflow_set_preserve_mem_locs): Likewise.
1601 2011-05-09  Philipp Thomas  <pth@suse.de>
1603         * config/mep/mep.c (mep_validate_vliw): Syntax description
1604         should not be translated.
1606 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
1608         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1609         * config/mips/mips-tables.opt: New file (generated).
1610         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1611         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1612         MIPS_ARCH_OPTION_NATIVE): Define.
1613         * config/mips/mips.c (mips_cpu_info_table): Move contents to
1614         mips-cpus.def.
1615         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1616         mips_parse_cpu): Remove.
1617         (mips_cpu_info_from_opt, mips_default_arch): New.
1618         (mips_handle_option): Don't assert that global structures are in
1619         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1620         (mips_option_override): Use new variables and functions to set
1621         state of these options.  Use strcmp to check for individual CPU names.
1622         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1623         definition.
1624         * config/mips/mips.opt (march=): Use ToLower and Enum.
1625         (mips): Use ToLower, Enum and Var.
1626         (mtune=): Use ToLower and Enum.
1627         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1629 2011-05-08  Jan Hubicka  <jh@suse.cz>
1631         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1632         Arrange type pairs to be UID ordered.
1633         (gimple_lookup_type_leader): Make inline.
1635 2011-05-09  Nick Clifton  <nickc@redhat.com>
1637         PR target/48899
1638         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1639         PROCESSOR_DEFAULT.
1641         PR target/48897
1642         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1643         variable 's'.
1645 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
1647         * combine.c (simplify_comparison): Abstract out parts into...
1648         (simplify_compare_const): ... new function.
1649         (try_combine): Generalize parallel arithmetic/compare combining
1650         to call simplify_compare_const() and CANONICALIZE_COMPARE().
1652 2011-05-08  Jan Hubicka  <jh@suse.cz>
1654         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1655         (cgraph_create_virtual_clone): Call hooks once virtual clone
1656         is finished.
1657         * cgraph.h (cgraph_clone_node): Update prototype.
1658         * ipa-cp.c (ipcp_estimate_growth): Use
1659         estimate_ipcp_clone_size_and_time.
1660         * ipa-inline-transform.c (clone_inlined_nodes): Update.
1661         * lto-cgraph.c (input_node): Update.
1662         * ipa-inline.c (recursive_inlining): Update.
1663         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1664         (evaluate_conditions_for_known_args): Break out from ...
1665         (evaluate_conditions_for_edge): ... here.
1666         (evaluate_conditions_for_ipcp_clone): New function.
1667         (inline_node_duplication_hook): Update clone summary based
1668         on parameter map.
1669         (estimate_callee_size_and_time): Rename to ...
1670         (estimate_node_size_and_time): take NODE instead of EDGE;
1671         take POSSIBLE_TRUTHS as argument.
1672         (estimate_callee_size_and_time): Update.
1673         (estimate_ipcp_clone_size_and_time): New function.
1674         (do_estimate_edge_time): Update.
1676 2011-05-08  Richard Guenther  <rguenther@suse.de>
1678         PR middle-end/48908
1679         PR middle-end/48905
1680         * expmed.c (expand_shift_1): Compute adjusted constant shift
1681         amount manually.
1683 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1685         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1687 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
1689         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1691 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1693         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1695 2011-05-07  Jan Hubicka  <jh@suse.cz>
1697         * ipa-inline-transform.c (inline_call): Account when program size
1698         decreases.
1699         * ipa-inline.c (relative_time_benefit): New function.
1700         (edge_badness): Reorganize to be power 2 based; fix thinko when
1701         computing badness for negative growth; update comments to match
1702         reality; better dumps.
1704 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1706         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1707         type to bool and adjust comment.
1708         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1709         (fold_mathfn_compare): Remove calls to global_bindings_p.
1710         (fold_inf_compare): Likewise.
1711         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1712         * c-tree.h (global_bindings_p): Adjust prototype.
1713         * c-decl.c (global_bindings_p): Return bool and simplify.
1715 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
1717         PR tree-optimization/48837
1718         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1719         when accumulator transformation is performed.
1721 2011-05-06  Jan Hubicka  <jh@suse.cz>
1723         * i386.h (ix86_tune_indices): Add
1724         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1725         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1726         * i386.c (initial_ix86_tune_features): Add
1727         X86_SOFTARE_PREFETCHING_BENEFICIAL.
1728         (software_prefetching_beneficial_p): Remove predicate.
1729         (ix86_option_override_internal): Use new macro.
1731 2011-05-06  Jan Hubicka  <jh@suse.cz>
1733         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1735 2011-05-06  Jan Hubicka  <jh@suse.cz>
1737         * cgraph.c (cgraph_add_thunk): Create real function node instead
1738         of alias node; finalize it and mark needed/reachale; arrange visibility
1739         to be right and add it into the corresponding same comdat group list.
1740         (dump_cgraph_node): Dump thunks.
1741         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1742         cgraph_function_with_gimple_body_p,
1743         cgraph_first_function_with_gimple_body,
1744         cgraph_next_function_with_gimple_body): New functions.
1745         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1746         New macros.
1747         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1748         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1749         * cgraphunit.c (cgraph_finalize_function): Only look into possible
1750         devirtualization when optimizing.
1751         (verify_cgraph_node): Verify thunks.
1752         (cgraph_analyze_function): Analyze thunks.
1753         (cgraph_mark_functions_to_output): Output thunks only in combination
1754         with function they are assigned to.
1755         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1756         alias into normal node.
1757         (assemble_thunks): New functoin.
1758         (cgraph_expand_function): Use it.
1759         * lto-cgraph.c (lto_output_node): Stream thunks.
1760         (input_overwrite_node): Stream in thunks.
1761         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1762         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1763         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1764         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1765         (inline_analyze_function): Do not care about thunk jump functions.
1766         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1767         * ipa-prop.c (ipa_prop_write_jump_functions): Use
1768         cgraph_function_with_gimple_body_p.
1769         * passes.c (do_per_function_toporder): Use
1770         cgraph_function_with_gimple_body_p.
1771         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1772         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1773         (function_called_by_processed_nodes_p): Likewise.
1775 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1777         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1778         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1779         entries.
1780         (mabi=): Replace with separate entries for mabi=altivec,
1781         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1782         mabi=ieeelongdouble and mabi=ibmlongdouble.
1783         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1784         check for -mabi=spe without SPE ABI support here.
1785         (rs6000_handle_option): Replace OPT_mabi_ handling with
1786         OPT_mabi_altivec and OPT_mabi_spe handling.
1788 2011-05-06  Cary Coutant  <ccoutant@google.com>
1790         * dwarf2out.c (contains_subprogram_definition): New function.
1791         (should_move_die_to_comdat): Call it.
1793 2011-05-06  Jeff Law  <law@redhat.com>
1795         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1796         remove_ctrl_stmt_and_useless_edges.
1797         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1798         (fixup_template_block, thread_single_edge): Likewise.
1799         (mark_threaded_blocks): Use THREAD_TARGET.
1801 2011-05-06  Alan Modra  <amodra@gmail.com>
1803         PR target/48900
1804         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1805         const0_rtx as the arg to the dummy __tls_get_addr libcall.
1807 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1809         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1810         constraint modifier to "r".
1812 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
1814         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1815         fall through for OPT_mcmodel_.
1817 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1819         * config/s390/s390.c (s390_asm_trampoline_template): Comment
1820         instruction sizes.
1821         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1823 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1825         PR target/47930
1826         * config/arm/arm.opt (marm): Document it.
1827         (mthumb): Reject negative variant.
1829 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
1831         PR target/48898
1832         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1833         Fix typo in "ccvt" variable name.
1835 2011-05-06  Tristan Gingold  <gingold@adacore.com>
1837         PR target/48895
1838         * config/vms/vms-ar.c (main): Remove cwd variable.
1840 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1842         PR debug/48902
1843         * var-tracking.c (prepare_call_arguments): Move else before #endif.
1845 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
1847         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1848         * gimplify.c (gimplify_switch_expr): Likewise.
1849         * omp-low.c (expand_omp_sections): Likewise.
1850         * tree-eh.c (lower_try_finally_switch): Likewise.
1851         (lower_eh_dispatch): Likewise.
1852         * tree.h (build_case_label): Declare.
1853         * tree.c (build_case_label): Define.
1855 2011-05-05  Jason Merrill  <jason@redhat.com>
1857         PR c++/40975
1858         * tree-inline.c (copy_tree_r): Use copy_statement_list.
1859         (copy_statement_list): Don't recurse.
1860         * stor-layout.c (copy_self_referential_tree_r): Don't allow
1861         STATEMENT_LIST.
1863 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1865         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1866         through from -mfpu= handling.
1867         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1869 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
1871         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1872         POST_MODIFY.
1874 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
1876         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1877         for 11.31.
1878         (hppa[12]*-*-hpux11*): Ditto.
1879         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1880         * config/ia64/hpux-unix2003.h: New.
1881         * config/pa/pa-hpux1131.opt: New.
1882         * config/pa/pa-hpux1131.h: New.
1883         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1884         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
1885         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
1887 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1889         PR debug/48853
1890         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1891         instead of mode as 3rd argument to recursive call.
1892         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1893         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1894         VOIDmode.
1895         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1896         don't give up if mode is Pmode and mem_mode is not VOIDmode.
1897         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1898         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1900 2011-05-05  Julian Brown  <julian@codesourcery.com>
1902         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1903         parenthesis in D-register case.
1905 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
1907         * opt-functions.awk (var_type_struct): Handle Enum options.
1908         * optc-gen.awk: Don't check range of variables of character type.
1909         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1910         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1911         rs6000_sdata_name, rs6000_explicit_options): Remove.
1912         (rs6000_option_override_internal): Check for -malign-power here.
1913         Use global_options_set instead of rs6000_explicit_options.
1914         (rs6000_parse_fpu_option): Remove.
1915         (rs6000_handle_option): Access variables via opts and opts_set
1916         pointers.  Use error_at and warning_at.  Add fall-through
1917         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1918         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1919         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1920         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1921         here.  Don't use rs6000_parse_fpu_option.
1922         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1923         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1924         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1925         (mrecip=): Use Var.
1926         (mspe): Use Var and Save.
1927         (mtraceback=): Use Enum and Var.
1928         (rs6000_traceback_type): New Enum and EnumValue entries.
1929         (mfloat-gprs=): Use Enum, Var and Save.
1930         (rs6000_float_gprs): New Enum and EnumValue entries.
1931         (mlong-double-): use Var and Save.
1932         (msched-costly-dep=, minsert-sched-nops=): Use Var.
1933         (malign-): Use Enum and Var.
1934         (rs6000_alignment_flags): New Enum and EnumValue entries.
1935         (mfpu=): Use Enum.
1936         (fpu_type_t): New Enum and EnumValue entries.
1937         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1938         global_options_set instead of rs6000_explicit_options.
1939         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1940         global_options_set instead of rs6000_explicit_options.
1941         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1942         global_options_set instead of rs6000_explicit_options.
1943         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1944         global_options_set instead of rs6000_explicit_options.
1945         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1946         global_options_set instead of rs6000_explicit_options.
1947         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1948         global_options_set instead of rs6000_explicit_options.
1949         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1950         definition.
1951         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1952         global_options_set instead of rs6000_explicit_options.
1953         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1954         (rs6000_cmodel): New Enum and EnumValue entries.
1955         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1956         global_options_set instead of rs6000_explicit_options.
1957         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1958         (mtls-size=): Use Enum and Var.
1959         (rs6000_tls_size): New Enum and EnumValue entries.
1961 2011-05-05  Michael Matz  <matz@suse.de>
1963         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1964         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1965         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1966         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1967         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1968         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1969         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1970         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1971         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1972         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1973         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1974         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1975         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1976         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1977         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1978         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1980 2011-05-05  Richard Guenther  <rguenther@suse.de>
1982         * expmed.c (expand_variable_shift): Rename to ...
1983         (expand_shift_1): ... this.  Take an expanded shift amount.
1984         For rotates recurse directly not building trees for the shift amount.
1985         (expand_variable_shift): Wrap around expand_shift_1.
1986         (expand_shift): Adjust.
1988 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
1990         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1992 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
1994         * tree.h (get_pending_sizes): Remove prototype.
1995         (put_pending_size): Likewise.
1996         (put_pending_sizes): Likewise.
1997         * stor-layout.c (pending_sizes): Delete.
1998         (get_pending_sizes): Likewise.
1999         (put_pending_size): Likewise.
2000         (put_pending_sizes): Likewise.
2001         (variable_size): Do not call put_pending_size and tidy up.
2002         * function.h (struct function): Remove dont_save_pending_sizes_p.
2003         * lto-streamer-in.c (input_function): Do not stream it.
2004         * lto-streamer-out.c (output_function): Likewise.
2005         * tree-inline.c (initialize_cfun): Do not copy it.
2006         * c-decl.c (store_parm_decls): Do not set it.
2007         * omp-low.c (create_task_copyfn): Likewise.
2008         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2010 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2012         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2013         conditions.
2014         (*movdf_internal): Ditto.
2015         (*movdf_internal_nointeger): Ditto.
2016         (*movsf_internal): Ditto.
2018 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2020         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2021         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2022         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2023         (c_variable_size): Remove.
2024         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2025         call put_pending_sizes.
2026         (get_parm_info): Add parameter expr.  Use it to set
2027         arg_info->pending_sizes.
2028         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2029         get_pending_sizes.
2030         * c-parser.c (c_parser_parms_declarator): Update call to
2031         c_parser_parms_list_declarator.
2032         (c_parser_parms_list_declarator): Take parameter expr.  Update
2033         call to push_parm_decl.  Update recursive call.  Don't call
2034         get_pending_sizes.  Update calls to get_parm_info.
2035         (c_parser_objc_method_definition): Update calls to
2036         c_parser_objc_method_decl and objc_start_method_definition.
2037         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2038         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2039         grokparm.
2040         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2041         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2042         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2044 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2046         PR pch/45979
2047         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2048         __ARM_EABI__ hosts.
2050 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2052         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2053         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2054         (spu_output_mi_thunk): New function.
2056 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2058         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2059         targetm.asm_out.print_operand.
2060         * config/sol2.c: Include target.h.
2062 2011-05-04  Jan Hubicka  <jh@suse.cz>
2064         * ipa-inline.c (reset_edge_caches): New function.
2065         (update_caller_keys): Add check_inlinablity_for; do not
2066         reset edge caches; remove now unnecesary loop.
2067         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2068         (update_all_callee_keys): Likewise.
2069         (inline_small_functions): Sanity check cache; update code
2070         recomputing it.
2072 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2074         PR rtl-optimization/47612
2075         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2076         as the last insn of the sequence to be moved.
2078 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2080         PR fortran/48864
2081         * doc/invoke.texi (Ofast): Document that it
2082         enables Fortran's -fno-protect-parens.
2084 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2086         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2088 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2090         * stor-layout.c (variable_size): Do not issue errors.
2092 2011-05-04  Richard Guenther  <rguenther@suse.de>
2094         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2095         for array-ref indices.
2096         (tree_coverage_counter_addr): Likewise.
2097         (build_fn_info_type): Use size_int for index types.
2098         (build_gcov_info): Likewise.
2100 2011-05-04  Richard Guenther  <rguenther@suse.de>
2102         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2103         to build_int_cst.
2104         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2105         for constructor indices.
2106         (push_init_level): Likewise.
2108 2011-05-04  Richard Guenther  <rguenther@suse.de>
2110         * explow.c (promote_mode): Move variable declarations before code.
2112 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2114         * tree.h (build_function_type_array): Declare.
2115         (build_varargs_function_type_array): Declare.
2116         (build_function_type_vec, build_varargs_function_type_vec): Define.
2117         * tree.c (build_function_type_array_1): New function.
2118         (build_function_type_array): New function.
2119         (build_varargs_function_type_array): New function.
2121 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2123         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2124         before setting STMT_VINFO_TYPE.
2126 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2128         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2129         instead of spu_pass_by_reference.
2131 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2133         * calls.c (emit_library_call_value_1): Invoke
2134         promote_function_mode hook on libcall arguments.
2135         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2136         argument being NULL.
2137         * targhooks.c (default_promote_function_mode): Lisewise.
2138         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2139         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2141         * doc/tm.texi: Document that TYPE argument might be NULL.
2143 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2145         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2147 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2149         From Bernd Schmidt
2150         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2152 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2154         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2155         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2156         Move ...
2157         * mips-tfile.c: ... here.
2158         Don't include coretypes.h, tm.h, filenames.h.
2159         (saber_stop): Remove definition and all calls.
2160         [__SABER__]: Remove.
2161         (__LINE__): Remove default.
2162         (Size_t, Ptrdiff_t): Remove definitions.
2163         Replace by size_t, ptrdiff_t.
2164         [!MIPS_DEBUGGING_INFO]: Remove.
2165         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2166         (progname): Add const.
2167         (STATIC): Remove.
2168         Replace all uses by static.
2169         (ALIGN_SYMTABLE_OFFSET): Remove default.
2170         * mips-tdump.c: Don't include coretypes.h, tm.h.
2171         Remove !MIPS_IS_STAB guard.
2172         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2173         $(TM_H), filenames.h dependencies.
2174         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2176 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2178         From Jie Zhang
2179         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2180         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2182 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2184         From Bernd Schmidt
2185         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2186         account and save/restore RETS.
2187         (PROFILE_BEFORE_PROLOGUE): Define.
2188         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2189         the push insn to use predecrement.
2191 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2193         From Jie Zhang
2194         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2196 2011-05-04  Nick Clifton  <nickc@redhat.com>
2198         * config/mn10300/mn10300.c: Include cfgloop.h.
2199         (DUMP): New macro.
2200         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2201         Lcc or a FLcc insn into the instruction stream.
2202         (mn10300_block_contains_call): New function.  Returns true if the
2203         given basic block contains a CALL insn.
2204         (mn10300_loop_contains_call_insn): New function.  Returns true if
2205         the given loop contains a CALL insn.
2206         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2207         to use the SETLB and Lcc or FLcc insns.
2208         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2209         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2210         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2211         disable the SETLB optimization.
2212         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2213         __SETLB__ or __NO_SETLB__.
2214         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2215         (movsf_internal): Handle MDR register.
2216         (cmpsi): Make visible.
2217         (setlb): New pattern.
2218         (Lcc): New pattern.
2219         (FLcc): New pattern.
2221 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2223         PR target/48860
2224         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2225         for reg<->xmm moves.
2226         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2227         (vec_concatv2di_rex64_sse): Ditto.
2228         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2229         (*vec_extractv2di_1_rex64): Ditto.
2231         Revert:
2232         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2234         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2235         reg<->xmm moves.
2236         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2238 2011-05-04  Richard Guenther  <rguenther@suse.de>
2240         * tree.h (int_const_binop): Remove notrunc argument.
2241         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2242         create integer constants that are properly truncated.
2243         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2244         (const_binop): Remove zero notrunc argument to int_const_binop.
2245         (size_binop_loc): Likewise.
2246         (fold_div_compare): Likewise.
2247         (maybe_canonicalize_comparison_1): Likewise.
2248         (fold_comparison): Likewise.
2249         (fold_binary_loc): Likewise.
2250         (multiple_of_p): Likewise.
2251         * expr.c (store_constructor): Likewise.
2252         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2253         (maybe_fold_stmt_addition): Likewise.
2254         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2255         * stor-layout.c (layout_type): Likewise.
2256         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2257         * tree-sra.c (build_ref_for_offset): Likewise.
2258         (build_user_friendly_ref_for_offset): Likewise.
2259         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2260         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2261         * tree-ssa-loop-niter.c (inverse): Likewise.
2262         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2263         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2264         * tree-switch-conversion.c (check_range): Likewise.
2265         (build_constructors): Likewise.
2266         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2267         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2268         (extract_range_from_assert): Likewise.
2269         (vrp_int_const_binop): Likewise.
2270         (extract_range_from_binary_expr): Likewise.
2271         (extract_range_from_unary_expr): Likewise.
2272         (check_array_ref): Likewise.
2273         (find_case_label_range): Likewise.
2274         (simplify_div_or_mod_using_ranges): Likewise.
2275         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2276         comparing case labels for merging.
2278 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2280         * dwarf2out.c (debug_str_hash_forced): Removed.
2281         (gen_label_for_indirect_string): Removed.
2282         (get_debug_string_label): Removed.
2283         (AT_string_form): Generate label directly.
2284         (output_indirect_string): Test indirect_string_node for
2285         DW_FORM_strp instead of checking label and refcount.
2286         (prune_indirect_string): Removed.
2287         (prune_unused_types): Don't check debug_str_hash_forced or
2288         call prune_indirect_string.
2290 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2292         PR other/48093
2293         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2295 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2297         PR debug/47994
2298         PR debug/47919
2299         * combine.c (try_combine): Skip debug insns at m_split tests.
2301 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2303         PR42288
2304         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2305         when info_section_emitted.
2307 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2309         * config/mips/mips-opts.h: New.
2310         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2311         to mips-opts.h.
2312         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2313         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2314         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2315         via opts pointer.
2316         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2317         mips-opts.h.
2318         (mips_abi, mips_code_readable): Don't declare.
2319         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2320         (mabi=): Use Enum and Var.
2321         (mips_abi): New Enum and EnumValue entries.
2322         (mcode-readable=): Use Enum and Var.
2323         (mips_code_readable_setting): New Enum and EnumValue entries.
2324         (mr10k-cache-barrier=): Use Enum and Var.
2325         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2327 2011-05-03  Jan Hubicka  <jh@suse.cz>
2329         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2330         replace hash by pointer map.
2331         (cgraph_node_set_element_def, cgraph_node_set_element,
2332         const_cgraph_node_set_element, varpool_node_set_element_def,
2333         varpool_node_set_element, const_varpool_node_set_element): Remove.
2334         (free_cgraph_node_set, free_varpool_node_set): New function.
2335         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2336         * tree-emutls.c: Free varpool node set.
2337         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2338         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2339         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2340         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2341         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2342         Move here from ipa.c; implement using pointer_map
2343         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2344         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2345         debug_cgraph_node_set, varpool_node_set_new,
2346         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2347         dump_varpool_node_set, debug_varpool_node_set):
2348         Move to ipa-uitls.c.
2349         * passes.c (ipa_write_summaries): Update.
2351 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2353         From Mike Frysinger:
2354         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2355         bf542/bf544/bf547/bf548/bf549.
2357 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2359         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2361 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2363         From Bernd Schmidt:
2364         * config/bfin/bfin.md (MOVCC): New mode_macro.
2365         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2366         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2367         comments from generated assembly.
2369 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2371         From Bernd Schmidt
2372         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2373         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2374         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2375         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2376         * config/bfin/lib1funcs.asm (___muldi3): New function.
2378 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2380         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2381         build_function_type_list instead of build_function_type.
2382         Rearrange initialization of `args' to do so.
2384 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2386         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2387         instead of build_function_type.
2389 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2391         * config/rs6000/rs6000.c (spe_init_builtins): Call
2392         build_function_type_list instead of build_function_type.
2393         (paired_init_builtins, altivec_init_builtins): Likewise.
2394         (builtin_function_type): Likewise.
2396 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2398         * config/sh/sh.c (sh_media_init_builtins): Call
2399         build_function_type_list instead of build_function_type.
2401 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2403         * config/sparc/sparc.c (sparc_file_end): Call
2404         build_function_type_list instead of build_function_type.
2406 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2408         * config/alpha/alpha.c (alpha_init_builtins): Call
2409         build_function_type_list instead of build_function_type.
2411 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2413         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2414         build_function_type_list instead of build_function_type.
2416 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2418         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2419         build_function_type_list instead of build_function_type.
2420         Delete `endlink' variable.
2422 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2424         * config/avr/avr.c (avr_init_builtins): Call
2425         build_function_type_list instead of build_function_type.
2427 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2429         * config/picochip/picochip.c (picochip_init_builtins): Call
2430         build_function_type_list instead of build_function_type.
2431         Delete `endlink' variable.
2433 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2435         * config/bfin/bfin.c (bfin_init_builtins): Call
2436         build_function_type_list instead of build_function_type.
2438 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2440         From Bernd Schmidt
2441         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2442         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2444 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2446         From Jie Zhang:
2447         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2448         libbffastfp overrides libgcc when -mfast-fp.
2450 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2452         Originally from Bernd Schmidt
2453         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2454         * config/bfin/bfin.c (override_options): Test it and error if
2455         TARGET_FDPIC.
2457 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2459         Originally From Bernd Schmidt
2460         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2461         FD-PIC.
2463 2011-05-03  Jeff Law  <law@redhat.com>
2465         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2466         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2467         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2468         than accessing AUX field directly.  Free the AUX field before
2469         clearing it.
2470         (thread_block, thread_through_loop_header): Likewise.
2471         (thread_single_edge, mark_threaded_blocks): Likewise.
2472         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2473         (register_jump_thread): Do not attempt to thread to a NULL edge.
2475 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2477         * function.c (init_function_start): Call decide_function_section.
2478         * varasm.c (decide_function_section): New function.
2479         (assemble_start_function): When not using
2480         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2481         or first_function_block_is_cold.
2482         * rtl.h (decide_function_section): Declare.
2484 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2485             Jakub Jelinek  <jakub@redhat.com>
2487         PR target/48774
2488         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2489         only succeed if req_mode is the same as set_mode.
2491 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2493         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2494         * genemit.c (gen_exp): Handle RETURN.
2495         * emit-rtl.c (verify_rtx_sharing): Likewise.
2496         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2497         * rtl.c (copy_rtx): RETURN is shared.
2498         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2499         (ret_rtx): New.
2500         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2501         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2502         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2503         * config/cris/cris.c (cris_expand_return): Likewise.
2504         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2505         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2506         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2507         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2508         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2509         Likewise.
2510         * config/v850/v850.c (expand_epilogue): Likewise.
2511         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2512         * config/arm/arm.md (epilogue): Likewise.
2513         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2514         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2515         variable to ret_reg.
2517 2011-05-03  Richard Guenther  <rguenther@suse.de>
2519         PR lto/48846
2520         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2521         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2522         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2524 2011-05-03  Richard Guenther  <rguenther@suse.de>
2526         * c-decl.c (grokdeclarator): Instead of looking at
2527         TREE_OVERFLOW check if the constant fits in the index type.
2529 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2531         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2532         (vec_store_lanes<mode><mode>): Likewise.
2534 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2536         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2537         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2538         convert_optab_index values.
2539         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2540         * genopinit.c (optabs): Initialize the new optabs.
2541         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2542         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2543         (expand_STORE_LANES): New functions.
2544         * tree.h (build_array_type_nelts): Declare.
2545         * tree.c (build_array_type_nelts): New function.
2546         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2547         (vect_model_load_cost): Likewise.
2548         (vect_store_lanes_supported, vect_load_lanes_supported)
2549         (vect_record_strided_load_vectors): Declare.
2550         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2551         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2552         (vect_transform_strided_load): Split out statement recording into...
2553         (vect_record_strided_load_vectors): ...this new function.
2554         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2555         (write_vector_array, create_array_ref): New functions.
2556         (vect_model_store_cost): Add store_lanes_p argument.
2557         (vect_model_load_cost): Add load_lanes_p argument.
2558         (vectorizable_store): Try to use store-lanes functions for
2559         interleaved stores.
2560         (vectorizable_load): Likewise load-lanes and loads.
2561         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2562         to vect_model_store_cost.
2563         (vect_build_slp_tree): Likewise vect_model_load_cost.
2565 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2567         * hooks.h (hook_bool_mode_uhwi_false): Declare.
2568         * hooks.c (hook_bool_mode_uhwi_false): New function.
2569         * target.def (array_mode_supported_p): New hook.
2570         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2571         * doc/tm.texi: Regenerate.
2572         * stor-layout.c (mode_for_array): New function.
2573         (layout_type): Use it.
2574         * config/arm/arm.c (arm_array_mode_supported_p): New function.
2575         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2577 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
2579         PR target/48723
2580         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2581         for -fstack-check if the size to allocate is negative.
2583 2011-05-02  Lawrence Crowl  <crowl@google.com>
2585         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2586         (timevar_cond_start): New for starting a timer only when it is not
2587         already running.
2588         (timevar_cond_stop): New for stopping a timer when it was not already
2589         running.
2591         * timevar.c (timevar_stop): Enable start/stop timers to start again.
2592         (timevar_cond_start): New as above.
2593         (timevar_cond_stop): New as above.
2595         * timevar.def: Add start/stop timers for compiler phases,
2596         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2597         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2598         and TV_PHASE_FINALIZE.
2599         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2600         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2601         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2602         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2603         Make unused TV_OVERLOAD into a start/stop timer.
2605         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2606         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2607         to indicate that they are start/stop timers.
2609         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2610         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2611         Move initialization to do_compile.
2612         (do_compile): Add initialization from above.
2613         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2615         * c-decl.c (c_write_global_declarations): Add start/stop of
2616         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2618         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2619         or TV_PARSE_INLINE, as appropriate.
2620         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2621         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2623 2011-05-02  Jason Merrill  <jason@redhat.com>
2625         PR c++/40975
2626         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2628 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
2630         PR c/35445
2631         * c-decl.c (finish_decl): Only create a composite if the types are
2632         compatible.
2634 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2636         * config/fr30/fr30-protos.h (Mmode): Don't define.
2637         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
2638         definition where used.
2639         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2640         define.  Expand definitions where used.
2641         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2642         Expand definitions where used.
2643         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2644         rx_function_arg, rx_function_arg_advance,
2645         rx_function_arg_boundary): Expand definitions of those macros.
2646         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
2647         definition where used.
2649 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2651         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2652         reg<->xmm moves.
2653         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2654         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
2655         with *movv2sf_internal_rex64_avx.
2656         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2657         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2658         Use %v prefix in insn mnemonic to handle TARGET_AVX.
2659         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
2660         "vex" in "prefix" attribute calculation.
2661         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
2663 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
2665         PR target/47951
2666         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2667         inputs match the output.
2669 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
2671         PR target/47955
2672         * config/m68k/m68k.c (m68k_expand_prologue): Set
2673         current_function_static_stack_size.
2675 2011-05-02   Jan Hubicka  <jh@suse.cz>
2677         * lto-streamer.c (lto_streamer_cache_insert_1,
2678         lto_streamer_cache_lookup, lto_streamer_cache_create,
2679         lto_streamer_cache_delete): Use pointer map instead of hashtable.
2680         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2682 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
2684         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2685         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2686         config/m68k/t-opts: New files.
2687         * config/m68k/m68k-tables.opt: New file (generated).
2688         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2689         extra_options and m68k/t-opts to tmake_file.
2690         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2691         (all_isas): Initialize using m68k-isas.def.
2692         (all_microarchs): Initialize using m68k-microarchs.def.
2693         (m68k_find_selection): Remove.
2694         (m68k_handle_option): Don't assert that global structures are in
2695         use.  Use error_at.  Access variables via opts pointer.  Don't
2696         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
2697         directly for -m68020-40 and -m68020-60.
2698         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2699         m68k_tune_entry here.
2700         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2701         to m68k-opts.h.
2702         (m68k_library_id_string): Remove declaration.
2703         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2704         (m68k_library_id_string): New Variable.
2705         (march=, mcpu=, mtune=): Use Enum and Var.
2707 2011-05-02  Richard Guenther  <rguenther@suse.de>
2709         * varasm.c (output_constructor_regular_field): Compute zero-based
2710         index with double-ints.  Make sure to ICE instead of producing
2711         wrong code.
2712         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2713         in asserts.  Properly use a signed type.
2715 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2717         * config/i386/sse.md (V): New mode iterator.
2718         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
2719         TARGET_SSE2.
2720         (V_256): Rename from AVX256MODE.
2721         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
2722         condition to all users.
2723         (VF1): Ditto.
2724         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
2725         condition to all users.
2726         (VF_128): Make V4SF mode unconditional.
2727         (VF_256): Rename from AVX256MODEF2P.
2728         (VI4F_128): Rename from SSEMODE4S.
2729         (VI8F_128): Rename from SSEMODE2D.
2730         (VI4F_256): Rename from AVX256MODE8P.
2731         (VI8F_256): Rename from AVX256MODE4P.
2732         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2733         (ssescalarmodesuffix): Remove SF and DF modes.
2734         (SSEMODE124): Remove.
2735         (SSEMODE1248): Ditto.
2736         (SSEMODEF2P): Ditto.
2737         (AVXMODEF2P): Ditto.
2738         (AVXMODEFDP): Ditto.
2739         (AVXMODEFSP): Ditto.
2740         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2741         unconditional.
2742         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
2743         unconditional.
2744         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2745         xop_pcmov_<mode>256.  Use V mode iterator.
2747         Adjust RTX patterns globally for renamed mode attributes.
2749 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2751         * haifa-sched.c (sched_emit_insn): Emit insn before first
2752         non-scheduled insn.  Inform back-end about new insn.  Add
2753         new insn to scheduled_insns list.
2755 2011-05-02  Richard Guenther  <rguenther@suse.de>
2757         PR tree-optimization/48822
2758         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2759         (process_scc): Indicate which iteration we start.
2761 2011-05-02  Jan Hubicka  <jh@suse.cz>
2763         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2764         (lto_section_overrun): New.
2765         * lto-section-out.c (append_block): Rename to ...
2766         (lto_append_block): ... this one; export.
2767         (lto_output_1_stream): Move lto lto-streamer.h
2768         (lto_output_data_stream): Update.
2769         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2770         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2771         functions.
2773 2011-05-02  Richard Guenther  <rguenther@suse.de>
2775         * tree.c (tree_code_counts): New global array.
2776         (record_node_allocation_statistics): Count individual tree codes.
2777         (dump_tree_statistics): Dump individual code stats.
2779 2011-05-01  Jan Hubicka  <jh@suse.cz>
2781         * ipa-inline.c (caller_growth_limits): Fix thinko when
2782         looking for largest stack frame.
2783         * ipa-inline.h (dump_inline_summary): Declare.
2784         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2785         on stack usage.
2786         (dump_inline_summary): Export.
2787         (debug_inline_summary): Declare as DEBUG_FUNCTION.
2789 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
2791         * reginfo.c (memory_move_cost): Change rclass argument type form
2792         'enum reg_class' to reg_class_t.
2793         * reload.h (memory_move_cost): Update prototype.
2794         * postreload.c reload_cse_simplify_set): Change type dclass var to
2795         reg_class_t.
2796         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2797         Update prototype.
2798         (ira_allocate_and_set_costs): Change aclass argument type form
2799         'enum reg_class' to reg_class_t.
2800         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2801         Change aclass argument type to reg_class_t.
2802         (update_conflict_hard_reg_costs): Change type aclass and pref vars
2803         to reg_class_t.
2804         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2805         memory_move_cost call.
2807         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2808         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2809         Change type tmp var to reg_class_t.
2811 2011-04-30  Jan Hubicka  <jh@suse.cz>
2813         * ipa-inline.c (can_inline_edge_p): Disregard limits when
2814         inlining into function with flatten attribute.
2815         (want_inline_small_function_p): Be more realistic about inlining
2816         cold calls where callee size grows.
2818 2011-04-30  Jan Hubicka  <jh@suse.cz>
2820         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2821         flags.
2823 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
2825         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2826         PRINT_OPERAND_PUNCT_VALID_P): Remove.
2827         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2828         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2829         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2830         (print_operand): Rename to...
2831         (sparc_print_operand): ...this. Make static. Adjust
2832         sparc_print_operand function call.
2833         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2834         functions.
2836 2011-04-30  Jan Hubicka  <jh@suse.cz>
2838         PR middle-end/48752
2839         * ipa-inline.c (early_inliner): Disable when doing late
2840         addition of function.
2842 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
2844         * dwarf2out.c (get_address_mode): New inline.
2845         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2846         if not dwarf_strict emit
2847         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2848         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2849         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
2850         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2851         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2852         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2853         mem_loc_descriptor callers.
2854         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2855         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2856         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2857         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2858         (base_types): New variable.
2859         (get_base_type_offset, calc_base_type_die_sizes,
2860         base_type_for_mode, mark_base_types, base_type_cmp,
2861         move_marked_base_types): New functions.
2862         (calc_die_sizes): Assert that die_offset is 0 or equal to
2863         next_die_offset.
2864         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2865         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
2866         callers.  If not dwarf_strict, call mem_loc_descriptor even for
2867         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2868         (gen_subprogram_die): Don't give up on call site parameters
2869         with non-integral or large integral modes.  Adjust
2870         mem_loc_descriptor callers.
2871         (prune_unused_types): Call prune_unused_types_mark on base_types
2872         vector entries.
2873         (resolve_addr): Call mark_base_types.
2874         (dwarf2out_finish): Call move_marked_base_types.
2876         PR tree-optimization/48809
2877         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2878         type.
2879         (gen_inbound_check): Don't compute index_expr - range_min in utype
2880         again, instead reuse SSA_NAME initialized in build_arrays.
2881         Remove two useless gsi_for_stmt calls.
2883 2011-04-29  Jeff Law  <law@redhat.com>
2885         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2887 2011-04-29  Martin Jambor  <mjambor@suse.cz>
2889         * cgraph.h (cgraph_postorder): Remove declaration.
2890         * ipa-utils.h (ipa_free_postorder_info): Declare.
2891         (ipa_reverse_postorder): Likewise.
2892         * cgraphunit.c: Include ipa-utils.h.
2893         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2894         * ipa-inline.c: Include ipa-utils.h.
2895         (ipa_inline): Update call to ipa_reverse_postorder.
2896         * ipa-pure-const.c (propagate_pure_const): Update call to
2897         ipa_reduced_postorder and ipa_print_order.  Call
2898         ipa_free_postorder_info to clean up.
2899         (propagate_nothrow): Likewise.
2900         * ipa-reference.c (propagate): Removed a useless call to
2901         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2902         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
2903         * ipa.c: Include ipa-utils.h.
2904         (ipa_profile): Update call to ipa_reverse_postorder.
2905         (cgraph_postorder): Moved to...
2906         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2907         (ipa_utils_print_order): Renamed to ipa_print_order.
2908         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2909         comments.
2910         (ipa_free_postorder_info): New function.
2911         * passes.c: Include ipa-utils.h.
2912         (do_per_function_toporder): Update call to ipa_reverse_postorder.
2913         (ipa_write_summaries): Likewise.
2914         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2915         (cgraphunit.o): Likewise.
2916         (ipa.o): Likewise.
2917         (ipa-inline.o): Likewise.
2919 2011-04-29  Jan Hubicka  <jh@suse.cz>
2921         * gcc.dg/tree-ssa/inline-10.c: New testcase.
2922         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2923         * ipa-inline.h (clause_t): Turn into unsigned int.
2924         * ipa-inline-analysis.c (add_clause): Do more simplification.
2925         (and_predicates): Shortcut more cases.
2926         (predicates_equal_p): Move forward; check that clauses are properly
2927         ordered.
2928         (or_predicates): Shortcut more cases.
2929         (edge_execution_predicate): Rewrite as...
2930         (set_cond_stmt_execution_predicate): ... this function; handle
2931         __builtin_constant_p.
2932         (set_switch_stmt_execution_predicate): New .
2933         (compute_bb_predicates): New.
2934         (will_be_nonconstant_predicate): Update TODO.
2935         (estimate_function_body_sizes): Use compute_bb_predicates
2936         and free them later, always try to estimate if stmt is constant.
2937         (estimate_time_after_inlining, estimate_size_after_inlining):
2938         Gracefully handle optimized out edges.
2939         (read_predicate): Fix off by one error.
2941 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2943         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2945 2011-04-27  Xinliang David Li  <davidxl@google.com>
2947         * tree-profile.c (init_ic_make_global_vars): Set
2948         tls attribute on ic vars.
2949         * coverage.c (coverage_end_function): Initialize
2950         function_list with zero.
2952 2011-04-29  Richard Guenther  <rguenther@suse.de>
2954         * builtins.c (fold_builtin_classify_type): Use integer_type_node
2955         for the type of the result.
2956         (fold_builtin_isascii): Likewise.
2957         (fold_builtin_toascii): Use integer_type_node where appropriate.
2958         (fold_builtin_logb): Likewise.
2959         (fold_builtin_frexp): Likewise.
2960         (fold_builtin_strstr): Likewise.
2961         (fold_builtin_strpbrk): Likewise.
2962         (fold_builtin_fputs): Likewise.
2963         (fold_builtin_sprintf): Likewise.
2964         (fold_builtin_snprintf): Likewise.
2965         (fold_builtin_printf): Likewise.
2966         (do_mpfr_remquo): Use a proper type for the assigned constant.
2967         (do_mpfr_lgamma_r): Likewise.
2968         * dwarf2out.c (resolve_one_addr): Use size_int.
2969         * except.c (init_eh): Likewise.
2970         (assign_filter_values): Use integer_type_node for filter values.
2971         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2972         indices.
2973         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2974         for EH region numbers.
2975         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2976         for the shift amount.
2978 2011-04-29  Richard Guenther  <rguenther@suse.de>
2980         * expr.h (expand_shift): Rename to ...
2981         (expand_variable_shift): ... this.
2982         (expand_shift): Take a constant shift amount.
2983         * expmed.c (expand_shift): Rename to ...
2984         (expand_variable_shift): ... this.
2985         (expand_shift): New wrapper around expand_variable_shift.
2986         * expr.c (convert_move, emit_group_load_1, emit_group_store,
2987         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2988         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2989         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2990         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2991         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2992         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2993         emit_store_flag_1, emit_store_flag): Likewise.
2994         * builtins.c (expand_builtin_signbit): Likewise.
2995         * calls.c (load_register_parameters): Likewise.
2996         * function.c (assign_parm_setup_block): Likewise.
2997         * lower-subreg.c (resolve_shift_zext): Likewise.
2998         * optabs.c (widen_bswap, expand_abs_nojump,
2999         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3000         * spu/spu.c (spu_expand_extv): Likewise.
3001         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3003 2011-04-29  Richard Guenther  <rguenther@suse.de>
3005         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3006         for the remapped region number.
3007         * predict.c (build_predict_expr): Use integer_type_node for the
3008         predict kind.
3009         * fold-const.c (fold_binary_loc): Use integer_type_node for
3010         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3012 2011-04-29  Michael Matz  <matz@suse.de>
3014         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3015         other trees that just builtins.
3016         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3018 2011-04-29  Richard Guenther  <rguenther@suse.de>
3020         * tree-nested.c (get_trampoline_type): Use size_int.
3021         (get_nl_goto_field): Likewise.
3022         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3023         for all indexes.
3024         (lower_eh_constructs_2): Likewise.
3025         (lower_resx): Likewise.
3026         (lower_eh_dispatch): Likewise.
3027         * tree-mudflap.c (mf_build_string): Use size_int.
3028         (mudflap_register_call): Use integer_type_node for the flag.
3029         (mudflap_enqueue_constant): Use size_int.
3030         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3031         instead of rebuilding it.
3033 2011-04-29  Richard Guenther  <rguenther@suse.de>
3035         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3036         Handle OBJ_TYPE_REF.
3037         (find_func_aliases_for_call): Use it more consistently.
3039 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3041         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3042         (rank_for_schedule): Use it.
3043         (schedule_block): Set it.
3045 2011-04-28  David Li  <davidxl@google.com>
3047         * tree.c (crc32_string): Use crc32_byte.
3048         (crc32_byte): New function.
3049         * tree.h (crc32_byte): New function.
3050         * gcov.c (read_graph_file): Handle new cfg_cksum.
3051         (read_count_file): Ditto.
3052         * profile.c (instrument_values): Ditto.
3053         (get_exec_counts): Ditto.
3054         (read_profile_edge_counts): Ditto.
3055         (compute_branch_probabilities): Ditto.
3056         (compute_value_histograms): Ditto.
3057         (branch_prob): Ditto.
3058         (end_branch_prob): Ditto.
3059         * coverage.c (read_counts_file): Ditto.
3060         (get_coverage_counts): Ditto.
3061         (tree_coverage_counter_addr): Ditto.
3062         (coverage_checksum_string): Ditto.
3063         (coverage_begin_output): Ditto.
3064         (coverage_end_function): Ditto.
3065         (build_fn_info_type): Ditto.
3066         (build_fn_info_value): Ditto.
3067         * libgcov.c (gcov_exit): Ditto.
3068         * gcov-dump.c (tag_function): Ditto.
3069         (compute_checksum): Remove.
3071 2011-04-29  Alan Modra  <amodra@gmail.com>
3073         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3074         unspec plus offset.  Tidy macho code.
3076 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3078         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3079         node instead of a decl.  Update all callers.
3080         * cgraph.h: Update declaration.
3082 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3084         PR tree-optimization/48765
3085         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3086         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3087         to indicate if loop aware SLP is being used.  Scan the statements
3088         and update the vectorization factor according to the type of
3089         vectorization before statement analysis.
3090         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3091         pass it to vect_analyze_loop_operations.
3092         (vectorizable_reduction): Set number of copies to 1 in case of pure
3093         SLP statement.
3094         * tree-vect-stmts.c (vectorizable_conversion,
3095         vectorizable_assignment, vectorizable_shift,
3096         vectorizable_operation, vectorizable_type_demotion,
3097         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3098         Likewise.
3099         (vectorizable_condition): Move the check that it is not SLP
3100         vectorization before the number of copies check.
3101         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3102         to vectorize the loop using SLP.
3104 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3106         PR middle-end/48597
3107         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3108         inline asm.
3110 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3112         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3113         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3114         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3115         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3116         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3117         linux*.h headers.
3118         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3119         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3120         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3121         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3122         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3123         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3124         REG_NAME.
3125         * config/i386/linux.h (REG_NAME): Don't define.
3126         * config/i386/linux64.h (REG_NAME): Don't define.
3127         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3128         Undefine before defining.
3130 2011-04-28  Jan Hubicka  <jh@suse.cz>
3132         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3133         nonconstant_names array.
3134         (estimate_function_body_sizes): Build nonconstant_names array; handle
3135         BUILT_IN_CONSTANT_P.
3137 2011-04-28  Richard Guenther  <rguenther@suse.de>
3139         PR bootstrap/48804
3140         Revert
3141         2011-04-28  Richard Guenther  <rguenther@suse.de>
3143         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3144         as late as possible.
3146 2011-04-28  Richard Guenther  <rguenther@suse.de>
3148         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3149         (debug_constraint): Do it here.
3150         (dump_constraints): And here.
3151         (rewrite_constraints): And here.
3152         (dump_constraint_edge): Remove.
3153         (dump_constraint_graph): Rewrite to produce DOT output.
3154         (solve_constraints): Build succ graph as late as possible.
3155         Dump constraint graphs before and after solving.
3157 2011-04-28  Richard Guenther  <rguenther@suse.de>
3159         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3160         New function split out from ...
3161         (find_func_aliases): ... here.  Call it.
3162         (find_func_aliases_for_call): Likewise.
3164 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3166         * internal-fn.h (internal_fn_name_array): Declare.
3167         (internal_fn_flags_array): Likewise.
3169 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3171         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3172         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3173         Move from sse.md.
3174         (ssemodefsuffix): Remove.
3175         (ssevecmodesuffix): New mode attribute.
3176         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3177         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3178         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3179         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3180         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3181         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3182         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3183         ssemodesuffix mode attribute.
3184         (float splitters): Use ssevecmodesuffix mode attribute.
3185         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3186         (sseinsmode): Rename from avxvecmode.
3187         (avxsizesuffix): Rename from avxmodesuffix.
3188         (sseintvecmode): Rename from avxpermvecmode.
3189         (ssedoublevecmode): Rename from ssedoublesizemode.
3190         (ssehalfvecmode): Rename from avxhalfvecmode.
3191         (ssescalarmode): Rename from avxscalarmode.
3192         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3193         templates for ssemodesuffix mode attribute.
3194         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3195         mode attribute.
3197         Adjust RTX patterns globally for renamed mode attributes.
3199 2011-04-27  Jan Hubcika  <jh@suse.cz>
3201         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3202         * ipa-inline-analysis.c: Include alloc-pool.h.
3203         (edge_predicate_pool): New.
3204         (trye_predicate_p): New function
3205         (false_predicate_p): New function.
3206         (add_clause): Sanity check that false clauses are "optimized";
3207         never add clauses to predicate that is already known to be false.
3208         (and_predicate): Use flase_predicate_p.
3209         (evaulate_predicate): Rename to ...
3210         (evaluate_predicate): ... this one; update all callers; assert
3211         that false is not listed among possible truths.
3212         (dump_predicate): Use true_predicate_p.
3213         (account_size_time): Use false_predicate_p.
3214         (evaulate_conditions_for_edge): Rename to ...
3215         (evaluate_conditions_for_edge) ... this one.
3216         (edge_set_predicate): New function.
3217         (inline_edge_duplication_hook): Duplicate edge predicates.
3218         (inline_edge_removal_hook): Free edge predicates.
3219         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3220         (dump_inline_summary): Update.
3221         (estimate_function_body_sizes): Set edge predicates.
3222         (estimate_calls_size_and_time): Handle predicates.
3223         (estimate_callee_size_and_time): Update.
3224         (remap_predicate): Add toplev_predicate; update comment.
3225         (remap_edge_predicates): New function.
3226         (inline_merge_summary): Compute toplev predicate; update.
3227         (read_predicate): New function.
3228         (read_inline_edge_summary): Use it.
3229         (inline_read_section): Likewise.
3230         (write_predicate): New function.
3231         (write_inline_edge_summary): Use it.
3232         (inline_write_summary): Likewise.
3233         (inline_free_summary): Free alloc pool and edge summary vec.
3235 2011-04-27  Richard Guenther  <rguenther@suse.de>
3237         * tree-ssa-structalias.c (changed_count): Remove.
3238         (changed): Use a bitmap.
3239         (unify_nodes): Adjust.
3240         (do_sd_constraint): Likewise.
3241         (do_ds_constraint): Likewise.
3242         (do_complex_constraint): Likewise.
3243         (solve_graph): Likewise.
3245 2011-04-27  Jan Hubicka  <jh@suse.cz>
3247         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3249 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3251         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3252         (avx_vperm2f128_*_operand): Ditto.
3253         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3254         Use avx_vpermilp_parallel in insn condition.
3255         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3256         Use avx_vperm2f128_parallel in insn condition.
3258 2011-04-27  Richard Guenther  <rguenther@suse.de>
3260         * Makefile.in (tree-ssa-structalias.o): Remove
3261         gt-tree-ssa-structalias.h dependency.
3262         (GTFILES): Remove tree-ssa-structalias.c.
3263         * tree.c (allocate_decl_uid): New function.
3264         (make_node_stat): Use it.
3265         (copy_node_stat): Likewise.
3266         * tree.h (allocate_decl_uid): Declare.
3267         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3268         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3269         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3270         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3271         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3272         (struct heapvar_map): Likewise.
3273         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3274         heapvar_insert): Likewise.
3275         (make_heapvar_for): Rename to ...
3276         (make_heapvar): ... this.  Simplify.
3277         (fake_var_decl_obstack): New global var.
3278         (build_fake_var_decl): New function.
3279         (make_constraint_from_heapvar): Adjust.
3280         (handle_lhs_call): Likewise.
3281         (create_function_info_for): Likewise.
3282         (intra_create_variable_infos): Likewise.
3283         (init_alias_vars): Allocate fake_var_decl_obstack.
3284         (init_alias_heapvars, delete_alias_heapvars): Remove.
3285         (compute_points_to_sets): Do not call init_alias_heapvars.
3286         (ipa_pta_execute): Likewise.
3287         (delete_points_to_sets): Free fake_var_decl_obstack.
3289 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3291         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3292         (si_from_UTItype, si_to_UTItype): New functions.
3293         (__udivmodti4): Use them to implement type-punning.
3294         * config/spu/multi3.c (union qword_TItype): New data type.
3295         (si_from_TItype, si_to_TItype): New functions.
3296         (__multi3): Use them to implement type-punning.
3298 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3300         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3302 2011-04-27  Jan Hubicka  <jh@suse.cz>
3304         * ipa-prop.c (function_insertion_hook_holder): New holder.
3305         (ipa_add_new_function): New function.
3306         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3307         Register/deregister holder.
3309 2011-04-27  Richard Guenther  <rguenther@suse.de>
3311         PR tree-optimization/48772
3312         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3314 2011-04-27  Richard Guenther  <rguenther@suse.de>
3316         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3317         TARGET_MEM_REF handling.
3319 2011-04-27  Nick Clifton  <nickc@redhat.com>
3321         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3322         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3323         (REG_CLASS_NAMES): Likewise.
3324         (REG_CLASS_CONTENTS): Likewise.
3325         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3326         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3327         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3328         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3329         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3330         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3331         duplicate register classes.
3332         (frv_class_likely_spilled_p): Likewise.
3333         (frv_register_move_cost): Likewise.
3335         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3336         end of the regno_reg_class array.
3338 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3340         PR c/48742
3341         * c-typeck.c (build_binary_op): Don't wrap arguments if
3342         int_operands is true.
3344 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3346         PR target/48767
3347         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3348         targetm.calls.must_pass_in_stack for void type.
3350 2011-04-26  Jan Hubicka  <jh@suse.cz>
3352         * cgraphbuild.c (build_cgraph_edges): Update call
3353         of cgraph_create_edge and cgraph_create_indirect_edge.
3354         * cgraph.c (cgraph_create_edge_including_clones,
3355         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3356         cgraph_update_edges_for_call_stmt_node): Do not take nest
3357         argument; do not initialize call_stmt_size/time.
3358         (dump_cgraph_node): Do not dump nest.
3359         (cgraph_clone_edge): Do not take loop_nest argument;
3360         do not propagate it; do not clone call_stmt_size/time.
3361         (cgraph_clone_node): Likewise.
3362         (cgraph_create_virtual_clone): Update.
3363         * cgraph.h (struct cgraph_edge): Remove
3364         call_stmt_size/call_stmt_time/loop_nest.
3365         (cgraph_create_edge, cgraph_create_indirect_edge,
3366         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3367         prototype.
3368         * tree-emutls.c (gen_emutls_addr): Update.
3369         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3370         loop_nest; handle indirect calls, too.
3371         (clone_inlined_nodes): Do not care about updating inline summaries.
3372         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3373         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3374         stream call_stmt_size/call_stmt_time/loop_nest.
3375         * ipa-inline.c (edge_badness): Update.
3376         (ipa_inline): dump summaries after inlining.
3377         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3378         New.
3379         (inline_edge_summary): New function.
3380         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3381         (inline_edge_removal_hook): Handle edge summaries.
3382         (inline_edge_duplication_hook): New hook.
3383         (inline_summary_alloc): Alloc hooks.
3384         (initialize_growth_caches): Do not register removal hooks.
3385         (free_growth_caches); Do not free removal hook.
3386         (dump_inline_edge_summary): New function.
3387         (dump_inline_summary): Use it.
3388         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3389         (inline_update_callee_summaries): New function.
3390         (inline_merge_summary): Use it.
3391         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3392         (read_inline_edge_summary): New function.
3393         (inline_read_section): Use it.
3394         (write_inline_edge_summary): New function.
3395         (inline_write_summary): Use it.
3396         (inline_free_summary): Free edge new holders.
3397         * tree-inline.c (copy_bb): Update.
3399 2011-04-26  Jason Merrill  <jason@redhat.com>
3401         * tree-eh.c (lower_try_finally_switch): Create the label along with
3402         the CASE_LABEL_EXPR.
3404 2011-04-26  David S. Miller  <davem@davemloft.net>
3405             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3407         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3408         * configure: Regenerate.
3410 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3412         PR target/48258
3413         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3414         reduction.
3415         (VEC_reduc): New code iterator and splitters for vector reduction.
3416         (VEC_reduc_name): Ditto.
3417         (VEC_reduc_rtx): Ditto.
3418         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3419         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3421         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3422         support for extracting SF on VSX.
3424         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3425         generating xscvspdp.
3426         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3427         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3428         double add, minimum, maximum vector reduction.
3429         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3430         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3431         optimize double vector reduction.
3432         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3434 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3436         * config/fr30/fr30.h (inhibit_libc): Don't define.
3437         * config/m32r/m32r-protos.h: Correct comment.
3438         * config/v850/v850.h (GHS_default_section_names,
3439         GHS_current_section_names): Use tree, not union tree_node *.
3441 2011-04-26  Xinliang David Li  <davidxl@google.com>
3443         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3444         * c-family/c-opts.c (c_common_handle_option): Set
3445         warn_maybe_uninitialized.
3446         * opts.c (common_handle_option): Ditto.
3447         * common.opt:  New option.
3448         * tree-ssa.c (warn_uninit): Add one more parameter.
3449         (warn_uninitialized_var): Pass warning code.
3450         * tree-flow.h: Interface change.
3453 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3455         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3456         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3457         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3459 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3461         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3462         * config/mips/mips.opt (mmips-tfile): Remove.
3464         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3465         mips-tdump reference to ...
3466         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3467         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3468         reference by Tru64 UNIX.
3470 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3472         PR debug/48768
3473         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3474         is error_mark_node, set value to NULL.
3476         PR tree-optimization/48734
3477         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3478         if return value from maybe_fold_*_comparsions isn't something
3479         the code is prepared to handle.
3481 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3483         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3484         mode check.
3485         (ext_QIreg_nomode_operands): Remove.
3486         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3487         (*andsi_1): Ditto.
3488         (*andhi_1): Ditto.
3490 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3492         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3494 2011-04-26  Richard Guenther  <rguenther@suse.de>
3496         * c-typeck.c (build_unary_op): Do not expand array-refs via
3497         pointer arithmetic.  Only adjust qualifiers for function types.
3499 2011-04-26  Richard Guenther  <rguenther@suse.de>
3501         PR middle-end/48694
3502         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3503         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3504         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3505         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3507 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3509         * doc/extend.texi: Document __underlying_type.
3511 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3513         * config/rs6000/titan.md (automata_option "progress"): Remove.
3515 2011-04-25  Jeff Law  <law@redhat.com>
3517         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3519 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3521         * system.h (ENUM_BITFIELD): Remove.
3523 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3524             Eric Botcazou  <ebotcazou@adacore.com>
3526         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3527         for STORE_FLAG_VALUE==-1 case.
3529 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3531         PR target/43804
3532         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3533         LEGITIMATE_PIC_OPERAND_P.
3535 2011-04-24  Jan Hubicka  <jh@suse.cz>
3537         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3538         WPA hack.
3539         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3540         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3541         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3542         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3543         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3544         Sanity check predicate length.
3545         (remap_predicate): Likewise; sanity check jump functions.
3546         (inline_read_section, inline_write_summary): Sanity check
3547         predicate length.
3549 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3551         PR other/48748
3552         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3553         __is_literal_type, and __is_trivial; update throughout about
3554         possibly cv-qualified void types.
3556 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3558         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3559         testsuite and make it version agnostic.
3561 2011-04-22  Jan Hubicka  <jh@suse.cz>
3563         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3565 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
3567         PR c/48685
3568         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3569         to VOID_TYPE even around MODIFY_EXPR.
3571 2011-04-22  Mike Stump  <mikestump@comcast.net>
3573         * gensupport.c (read_md_rtx): Fix typo in comment.
3574         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3575         comment.
3577 2011-04-22  Jan Hubicka  <jh@suse.cz>
3579         * gengtype.c (open_base_files): Add ipa-inline.h include.
3580         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3581         ipa-prop.c; update all uses.
3582         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3583         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3584         merge summary of inlined function into former caller.
3585         * ipa-inline.c (max_benefit): Remove.
3586         (edge_badness): Compensate for removal of benefits.
3587         (update_caller_keys): Use
3588         reset_node_growth_cache/reset_edge_growth_cache.
3589         (update_callee_keys): Likewise.
3590         (update_all_callee_keys): Likewise.
3591         (inline_small_functions): Do not collect max_benefit; do not reset
3592         estimated_growth; call free_growth_caches and initialize_growth_caches.
3593         * ipa-inline.h (struct condition, type clause_t, struct predicate,
3594         struct size_time_entry): New structures.
3595         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3596         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3597         and estimated_growth.
3598         (edge_growth_cache_entry): New structure.
3599         (node_growth_cache, edge_growth_cache): New global vars.
3600         (estimate_growth): Turn into inline.
3601         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3602         initialize_growth_caches, free_growth_caches): Declare.
3603         (estimate_edge_growth): Rewrite.
3604         (estimate_edge_time): Implement as inline cache lookup.
3605         (reset_node_growth_cache, reset_edge_growth_cache): New inline
3606         functions.
3607         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3608         (NUM_CONDITIONS): New constant.
3609         (predicate_conditions): New enum.
3610         (IS_NOT_CONSTANT): New constant.
3611         (edge_removal_hook_holder): New var.
3612         (node_growth_cache, edge_growth_cache): New global vars.
3613         (true_predicate, single_cond_predicate, false_predicate,
3614         not_inlined_predicate, add_condition, add_clause, and_predicates,
3615         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3616         dump_clause, dump_predicate, account_size_time,
3617         evaulate_conditions_for_edge): New functions.
3618         (inline_summary_alloc): Move to heap.
3619         (inline_node_removal_hook): Clear condition and entry vectors.
3620         (inline_edge_removal_hook): New function.
3621         (initialize_growth_caches, free_growth_caches): New function.
3622         (dump_inline_summary): Update.
3623         (edge_execution_predicate): New function.
3624         (will_be_nonconstant_predicate): New function.
3625         (estimate_function_body_sizes): Compute BB and constantness predicates.
3626         (compute_inline_parameters): Do not clear estimated_growth.
3627         (estimate_edge_size_and_time): New function.
3628         (estimate_calls_size_and_time): New function.
3629         (estimate_callee_size_and_time): New function.
3630         (remap_predicate): New function.
3631         (inline_merge_summary): New function.
3632         (do_estimate_edge_time): New function based on...
3633         (estimate_edge_time): ... this one.
3634         (do_estimate_edge_growth): New function.
3635         (do_estimate_growth): New function based on....
3636         (estimate_growth): ... this one.
3637         (inline_analyze_function): Analyze after deciding on jump functions.
3638         (inline_read_section): New function.
3639         (inline_read_summary): Use it.
3640         (inline_write_summary): Write all the new data.
3641         * ipa-prop.c (ipa_get_param_decl_index): Export.
3642         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3643         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3644         Declare.
3645         (ipa_get_lattice): Move here from ipa-cp.c
3646         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3647         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3648         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3649         cgraph_edge_inlinable_p): Remove.
3650         * cgraphunit.c: Include ipainline.h
3651         (cgraph_process_new_functions): Update call of
3652         compute_inline_parameters.
3654 2011-04-22  Richard Guenther  <rguenther@suse.de>
3656         * tree.c (build_int_cst): Properly create canonicalized integer
3657         constants.
3658         (build_int_cst_type): Remove scary comments.
3660 2011-04-22  Xinliang David Li  <davidxl@google.com>
3662         * toplev.c (process_options): Enable -Werror=coverage-mismatch
3663         by default when -Wno-error is not specified.
3664         * opts-global.c (decode_options): Remove call to
3665         control_warning_options.
3667 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3669         PR tree-optimization/48717
3670         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3671         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3673 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
3675         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
3676         definition where used.
3678 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
3680         PR c/48716
3681         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3682         TREE_STATIC variables declared inside of some OpenMP construct.
3684 2011-04-22  Martin Jambor  <mjambor@suse.cz>
3686         PR middle-end/48585
3687         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3689 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
3691         PR c/36750
3692         * c-typeck.c (pop_init_level): Do not warn about initializing
3693         with ` = {0}'.
3695 2011-04-22  Alan Modra  <amodra@gmail.com>
3697         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3698         when returning call_cookie.
3699         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3700         pointers, to functions with no more vector args than the current
3701         function, and some non-local calls for ABI_V4.
3702         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3703         sibcall_nonlocal_aix64): Combine to ..
3704         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
3705         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3706         (sibcall_value_nonlocal_aix<mode>): ..likewise.
3707         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3708         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
3709         operand.
3710         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3711         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3712         sibcall_value_symbolic_64): Delete.
3714 2011-04-21  Xinliang David Li  <davidxl@google.com>
3716         * cgraph.h: Remove pid.
3717         * cgraph.c: Remove pid.
3718         * value-prof.c (init_node_map): New function.
3719         (del_node_map): New function.
3720         (find_func_by_funcdef_no): New function.
3721         (gimple_ic_transform): Call new function.
3722         * cgraphunit.c (cgraph_finalize_function): Remove pid.
3723         * function.c (get_last_funcdef_no): New function.
3724         * function.h (get_last_funcdef_no): New function.
3725         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3726         to libgcov function.
3727         (tree-profiling): Call node map init and delete function.
3729 2011-04-21  Ian Lance Taylor  <iant@google.com>
3731         * godump.c (go_format_type): Use exported Go name for anonymous
3732         field name.
3734 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3736         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3737         Call builtin_function_type_list instead of builtin_function_type.
3738         (UNARY, BINARY, TRINARY, QUAD): Likewise.
3740 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3742         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3743         build_function_type_list instead of build_function_type.
3744         Delete variable `endlink'.
3746 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3748         * config/s390/s390.c (s390_init_builtins): Call
3749         build_function_type_list instead of build_function_type.
3751 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
3753         * config/ia64/ia64.c (ia64_init_builtins): Call
3754         build_function_type_list instead of builtin_function_type.
3756 2011-04-21  Easwaran Raman  <eraman@google.com>
3758         * cfgexpand.c (stack_var): Remove OFFSET...
3759         (add_stack_var): ...and its reference here...
3760         (expand_stack_vars): ...and here.
3761         (stack_var_cmp): Sort by descending order of size.
3762         (partition_stack_vars): Change heuristic.
3763         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3764         (dump_stack_var_partition): Add newline after each partition.
3766 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
3767             Jeff Law  <law@redhat.com>
3769         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3770         * gengtype.c (matching_file_name_substitute): Likewise.
3772 2011-04-21  Richard Guenther  <rguenther@suse.de>
3774         PR lto/48703
3775         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3777 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3779         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3781 2011-04-21  Richard Guenther  <rguenther@suse.de>
3783         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3784         file name.
3786 2011-04-21  Richard Guenther  <rguenther@suse.de>
3788         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3789         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3790         Use DECL_P, not SSA_VAR_P.
3791         (ptr_derefs_may_alias_p): Likewise.
3792         (ptr_deref_may_alias_ref_p_1): Likewise.
3793         (decl_refs_may_alias_p): Likewise.
3794         (refs_may_alias_p_1): Likewise.
3795         (ref_maybe_used_by_call_p_1): Likewise.
3796         (call_may_clobber_ref_p_1): Likewise.
3797         (indirect_ref_may_alias_decl_p): Assume indirect refrences
3798         are either MEM_REF or TARGET_MEM_REF.
3799         (indirect_refs_may_alias_p): Likewise.
3800         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3801         for MEM_EXPR of indirect calls.
3803 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3805         * vmsdbgout.c (write_srccorr): Compute file length from the string.
3806         (dst_file_info_struct): Remove flen field.
3807         (lookup_filename): Remove code that set flen field.
3809 2011-04-21  Tristan Gingold  <gingold@adacore.com>
3811         * config/ia64/ia64.c (ia64_start_function): Add a guard.
3813 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
3815         PR target/48708
3816         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3817         vec_extract and vec_concat for non-SSE4_1 targets.
3819 2011-04-21  Richard Guenther  <rguenther@suse.de>
3821         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3822         return statements.
3824 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3826         * config/i386/cygming.h (union tree_node, TREE): Don't define or
3827         undefine.
3828         (FILE): Don't undefine.
3830 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
3832         * config/alpha/alpha.c (struct machine_function): Use rtx, not
3833         struct rtx_def *.
3834         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3835         struct rtx_def *.
3836         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3837         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3838         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3839         rtx_def *.
3840         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
3841         definitions where used.
3842         * config/microblaze/microblaze.h (struct microblaze_args): Use
3843         rtx, not struct rtx_def *.
3844         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3845         rtx_def *.
3846         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3847         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3848         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3849         not struct rtx_def *.
3850         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3851         struct rtx_def *.
3852         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3853         rtx_def *.
3854         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3856 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3858         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3859         operand_equal_p to compare DR_BASE_ADDRESSes.
3860         (vect_check_interleaving): Likewise.
3862 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3864         PR target/46329
3865         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3866         for all Neon struct constants.
3868 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
3870         * target.def (legitimate_constant_p): New hook.
3871         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3872         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3873         * doc/tm.texi: Regenerate.
3874         * hooks.h (hook_bool_mode_rtx_true): Declare.
3875         * hooks.c (hook_bool_mode_rtx_true): Define.
3876         * system.h (LEGITIMATE_CONSTANT_P): Poison.
3877         * calls.c (precompute_register_parameters): Replace uses of
3878         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3879         (emit_library_call_value_1): Likewise.
3880         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3881         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3882         * ira-costs.c (scan_one_insn): Likewise.
3883         * recog.c (general_operand, immediate_operand): Likewise.
3884         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3885         * reload1.c (init_eliminable_invariants): Likewise.
3887         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3888         mode argument.
3889         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3890         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3891         argument.
3892         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3893         * config/alpha/predicates.md (input_operand): Update call to
3894         alpha_legitimate_constant_p.
3896         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3897         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3898         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3899         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3900         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3901         (arm_legitimate_constant_p): New functions.
3902         (arm_cannot_force_const_mem): Make static.
3904         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3906         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3907         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3908         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3909         instead of bfin_legitimate_constant_p.
3910         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
3911         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3913         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3915         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3917         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3918         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3919         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3920         (frv_legitimate_constant_p): Make static.  Add a mode argument.
3922         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3923         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3924         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3926         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3927         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3928         * config/i386/i386.c (legitimate_constant_p): Rename to...
3929         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
3930         argument.
3931         (ix86_cannot_force_const_mem): Update accordingly.
3932         (ix86_legitimate_address_p): Likewise.
3933         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3934         * config/i386/i386.md: Update commentary.
3936         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3937         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3938         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3939         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
3941         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3943         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3944         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3945         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3946         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
3948         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3949         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3950         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3952         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3953         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3954         (m32r_legitimate_constant_p): New function.
3956         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3957         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3958         LEGITIMATE_CONSTANT_P.
3959         (LEGITIMATE_CONSTANT_P): Delete.
3960         * config/m68k/m68k.c (m68k_expand_prologue): Call
3961         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3962         (m68k_legitimate_constant_p): New function.
3963         * config/m68k/m68k.md: Update comments.
3965         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3966         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3967         (mcore_legitimate_constant_p): New function.
3969         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3970         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3971         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3972         Add a mode argument.
3973         (mep_legitimate_address): Update accordingly.
3974         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3976         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3977         Delete.
3978         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3979         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3980         static.  Check OP's mode for VOIDmode.
3981         (microblaze_legitimate_constant_p): New function.
3982         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3984         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3985         * config/mips/mips.c (mips_legitimate_constant_p): New function.
3986         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3987         (TARGET_LEGITIMATE_CONSTANT_P): Define.
3988         * config/mips/predicates.md: Update comments.
3990         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3991         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3992         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3993         (mmix_legitimate_constant_p): Make static, return a bool, and take
3994         a mode argument.
3995         (mmix_print_operand_address): Update accordingly.
3997         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3998         Delete.
3999         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4000         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4001         static.  Add a mode argument.
4002         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4004         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4006         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4007         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4008         (pa_legitimate_constant_p): New function.
4010         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4012         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4013         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4014         (pdp11_legitimate_constant_p): New function.
4016         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4017         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4018         (rs6000_legitimate_constant_p): New function.
4020         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4021         (rx_legitimate_constant_p): ...this.
4022         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4023         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4024         (rx_legitimate_constant_p): ...this.
4025         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4026         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4028         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4029         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4030         * config/s390/s390.c (legitimate_constant_p): Rename to...
4031         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4032         and add a mode argument.
4033         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4035         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4037         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4038         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4039         (sh_legitimate_constant_p): New function.
4041         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4042         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4043         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4044         (legitimate_constant_p): Rename to...
4045         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4046         argument.
4047         (constant_address_p): Update accordingly.
4049         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4050         argument and return a bool.
4051         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4052         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4053         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4054         (spu_rtx_costs): Update accordingly.
4055         * config/spu/predicates.md (vec_imm_operand): Likewise.
4057         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4059         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4060         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4061         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4063         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4064         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4065         * config/vax/vax.c (legitimate_constant_p): Likewise.
4067         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4068         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4069         (xtensa_legitimate_constant_p): New function.
4071 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4073         * target.def (cannot_force_const_mem): Add a mode argument.
4074         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4075         * doc/tm.texi: Regenerate.
4076         * hooks.h (hook_bool_mode_rtx_false): Declare.
4077         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4078         (hook_bool_mode_const_rtx_true): Likewise.
4079         (hook_bool_mode_rtx_false): New function.
4080         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4081         to be non-VOID.  Update call to cannot_force_const_mem.
4082         (find_reloads): Update accordingly.
4083         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4084         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4085         argument.
4086         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4087         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4088         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4089         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4090         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4091         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4092         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4093         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4094         (m68k_cannot_force_const_mem): ...this new function.
4095         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4096         argument.
4097         (mips_const_insns, mips_legitimize_const_move): Update calls.
4098         (mips_secondary_reload_class): Likewise.
4099         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4100         (pa_cannot_force_const_mem): ...this new function.
4101         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4102         (rs6000_cannot_force_const_mem): ...this new function.
4103         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4104         argument.
4105         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4106         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4107         to...
4108         (xtensa_cannot_force_const_mem): ...this new function.
4110 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4112         * config/mips/mips.c (mips16_build_function_stub): Call
4113         build_function_type_list instead of build_function_type.
4114         (mips16_build_call_stub): Likewise.
4116 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4118         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4119         instead of build_function_type.
4121 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4123         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4124         instead of build_function_type.
4126 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4128         PR target/48678
4129         * config/i386/i386.md (insv): Change operand 0 constraint to
4130         "register_operand".  Change operand 1 and 2 constraint to
4131         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4132         * config/i386/sse.md (sse4_1_pinsrb): Export.
4133         (sse2_pinsrw): Ditto.
4134         (sse4_1_pinsrd): Ditto.
4135         (sse4_1_pinsrq): Ditto.
4136         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4137         * config/i386/i386.c (ix86_expand_pinsr): New.
4139 2011-04-20  Easwaran Raman  <eraman@google.com>
4141         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4142         containing union type only with -fstrict-aliasing.
4144 2011-04-20  Jim Meyering  <meyering@redhat.com>
4146         Remove useless if-before-free tests.
4147         * calls.c (expand_call, save_area): Likewise.
4148         * cfgcleanup.c (try_forward_edges): Likewise.
4149         * collect2.c (collect_execute): Likewise.
4150         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4151         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4152         * coverage.c (coverage_checksum_string): Likewise.
4153         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4154         * cselib.c (cselib_init): Likewise.
4155         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4156         (df_set_clean_cfg): Likewise.
4157         * function.c (free_after_compilation): Likewise.
4158         * gcc.c (do_spec_1, main): Likewise.
4159         * gcov.c (create_file_names): Likewise.
4160         * gensupport.c (identify_predicable_attribute): Likewise.
4161         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4162         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4163         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4164         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4165         * ipa-pure-const.c (local_pure_const): Likewise.
4166         * ipa-reference.c (propagate): Likewise.
4167         * ira-costs.c (free_ira_costs): Likewise.
4168         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4169         * matrix-reorg.c (mat_free): Likewise.
4170         * prefix.c (get_key_value): Likewise.
4171         * profile.c (compute_value_histograms): Likewise.
4172         * reload1.c (free_reg_equiv): Likewise.
4173         * sched-deps.c (free_deps): Likewise.
4174         * sel-sched-ir.c (fence_clear): Likewise.
4175         * sese.c (set_rename, if_region_set_false_region): Likewise.
4176         * tree-data-ref.c (free_rdg): Likewise.
4177         * tree-eh.c (lower_try_finally): Likewise.
4178         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4179         * tree-ssa-live.c (delete_var_map): Likewise.
4180         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4181         * tree-ssa-pre.c (phi_trans_add): Likewise.
4183 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4185         PR tree-optimization/48611
4186         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4187         beyond ERT_MUST_NOT_THROW region.
4189 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4191         * config/mips/mips.opt (mfix-24k): New.
4192         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4193         * config/mips/mips.md (length): Increase by 4 for stores if
4194         fixing 24K errata.
4195         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4196         all noreorder if fixing 24K errata.
4197         * doc/invoke.texi: Document mfix-24k.
4199 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4201         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4202         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4204 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4206         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4207         (const_ok_for_op): ... to here.
4209 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4211         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4212         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4214 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4216         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4218 2011-04-20  Richard Guenther  <rguenther@suse.de>
4220         PR tree-optimization/47892
4221         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4222         are if-convertible.
4224 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4226         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4228 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4230         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4232 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4234         PR target/18145
4236         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4237         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4238         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4239         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4240         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4242         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4243         New prototype.
4245         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4246         (avr_asm_named_section, avr_asm_output_aligned_common,
4247         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4248         New functions to update...
4249         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4250         (avr_asm_init_sections): Overwrite section callbacks for
4251         data_section, bss_section.
4252         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4253         from here to...
4254         (avr_file_end): ...here.
4256 2011-04-20  Richard Guenther  <rguenther@suse.de>
4258         PR middle-end/48695
4259         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4260         objects and types here.  Adjust for their offset before comparing.
4262 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4264         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4265         statement per copy.
4267 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4269         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4270         (GIMPLE_H): Include $(INTERNAL_FN_H).
4271         (OBJS-common): Add internal-fn.o.
4272         (internal-fn.o): New rule.
4273         * internal-fn.def: New file.
4274         * internal-fn.h: Likewise.
4275         * internal-fn.c: Likewise.
4276         * gimple.h: Include internal-fn.h.
4277         (GF_CALL_INTERNAL): New gf_mask.
4278         (gimple_statement_call): Put fntype into a union with a new
4279         internal_fn field.
4280         (gimple_build_call_internal): Declare.
4281         (gimple_build_call_internal_vec): Likewise.
4282         (gimple_call_same_target_p): Likewise.
4283         (gimple_call_internal_p): New function.
4284         (gimple_call_internal_fn): Likewise.
4285         (gimple_call_fntype): Return null for internal calls.
4286         (gimple_call_set_fntype): Assert that the function is not internal.
4287         (gimple_call_set_fn): Likewise.
4288         (gimple_call_set_fndecl): Likewise.
4289         (gimple_call_set_internal_fn): New function.
4290         (gimple_call_addr_fndecl): Handle null functions.
4291         (gimple_call_return_type): Likewise null types.
4292         * gimple.c (gimple_build_call_internal_1): New function.
4293         (gimple_build_call_internal): Likewise.
4294         (gimple_build_call_internal_vec): Likewise.
4295         (gimple_call_same_target_p): Likewise.
4296         (gimple_call_flags): Handle calls to internal functions.
4297         (gimple_call_fnspec): New function.
4298         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4299         (gimple_has_side_effects): Handle null functions.
4300         (gimple_rhs_has_side_effects): Likewise.
4301         (gimple_call_copy_skip_args): Handle calls to internal functions.
4302         * cfgexpand.c (expand_call_stmt): Likewise.
4303         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4304         * gimple-fold.c (gimple_fold_call): Handle null functions.
4305         (gimple_fold_stmt_to_constant_1): Don't fold
4306         calls to internal functions.
4307         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4308         functions.
4309         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4310         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4311         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4312         (do_warn_unused_result): Likewise.
4313         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4314         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4315         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4316         the target of a call.
4317         (initialize_hash_element): Update accordingly.
4318         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4319         (iterative_hash_hashable_expr): Handle calls to internal functions.
4320         (print_expr_hash_elt): Likewise.
4321         * tree-ssa-pre.c (can_value_number_call): Likewise.
4322         (eliminate): Handle null functions.
4323         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4324         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4325         (find_func_aliases): Likewise.
4326         * value-prof.c (gimple_ic_transform): Likewise.
4327         (gimple_indirect_call_to_profile): Likewise.
4328         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4329         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4331 2011-04-19  Jan Hubicka  <jh@suse.cz>
4333         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4334         * ipa-inline.c (inline_small_functions): Compute summaries first,
4335         populate heap later.
4337 2011-04-19  Jan Hubicka  <jh@suse.cz>
4339         * cgraph.h (save_inline_function_body): Remove.
4340         * ipa-inline-transform.c: New file, broke out of...
4341         * ipa-inline.c: ... this one; Update toplevel comment.
4342         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4343         make global.
4344         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4345         (cgraph_mark_inline_edge): Rename to inline_call; move to
4346         ipa-inline-transform.c.
4347         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4348         move to ipa-inline-transform.c
4349         (recursive_inlining, inline_small_functions, flatten_function,
4350         ipa_inline, inline_always_inline_functions,
4351         early_inline_small_functions): Update.
4352         (inline_transform): Move to ipa-inline-transform.c.
4353         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4354         Declare.
4355         * Makefile.in (ipa-inline-transform.o): New file.
4356         * cgraphunit.c (save_inline_function_body): Move to
4357         ipa-inline-transform.c
4359 2011-04-19  DJ Delorie  <dj@redhat.com>
4361         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4362         registers if we already know there aren't any.
4363         (m32c_emit_epilogue): Don't emit a barrier here.
4364         (m32c_emit_eh_epilogue): Likewise.
4365         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4366         operands at expand time.
4367         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4368         int" wchar type.
4369         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4370         duplicates.  Provide aliases instead.
4371         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4372         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4373         the compiler.
4375 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4377         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4378         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4379         (general_or_i64_p, sparc_register_move_cost): New function.
4381 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4383         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4384         Add lynx, mipssde.  Sort table.
4386 2011-04-19  Xinliang David Li  <davidxl@google.com>
4388         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4389         not negative.
4391 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4393         PR target/48678
4394         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4395         is a SUBREG with non-MODE_INT mode inside of it.
4397 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4399         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4400         also according to actual contants.
4401         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4402         (gimple_fold_call): Use it.
4403         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4405 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4407         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4408         non-pointer assignments.
4410 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4412         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4413         account anc_offset and otr_type from the indirect edge info.
4414         * ipa-prop.c (get_ancestor_addr_info): New function.
4415         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4416         get_ancestor_addr_info, call it.
4417         (ipa_note_param_call): Do not initialize information about polymorphic
4418         calls, return the indirect call graph edge.  Remove the last
4419         parameter, adjust all callers.
4420         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4421         parameters.  Initialize polymorphic information in the indirect edge.
4423 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4425         PR lto/48148
4426         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4427         the types if they have different enumeration identifiers.
4429 2011-04-19  Jan Hubicka  <jh@suse.cz>
4431         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4432         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4433         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4434         (optimize_function_for_size_p) ... here.
4436 2011-04-19  Richard Guenther  <rguenther@suse.de>
4438         PR lto/48207
4439         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4440         langhook.
4442 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4444         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4445         if DECL_NO_INLINE_WARNING_P is set on the function.
4447 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4449         PR fortran/47976
4450         * reload1.c (inc_for_reload): Return void. All callers changed.
4451         (emit_input_reload_insns): Don't try to delete previous output
4452         reloads to a register, or record spill_reg_store for autoincs.
4454 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4456         * gengtype.h: Updated copyright year.
4457         (struct input_file_st): Add inpisplugin field.
4458         (type_fileloc): New function.
4459         * gengtype.c
4460         (write_typed_struct_alloc_def): Add gcc_assert.
4461         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4462         (write_typed_alloc_defns): Don't output for plugin files.
4463         (input_file_by_name): Clear inpisplugin field.
4464         (main): Set inpisplugin field for plugin files.
4466 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4468         * gengtype-state.c (string_eq): New.
4469         (read_state): Use string_eq instead of strcmp when creating the
4470         state_ident_tab.
4472 2011-04-19  Wei Guozhi  <carrot@google.com>
4474         PR target/47855
4475         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4476         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4477         linkage.
4478         * config/arm/constraints.md (Uu): New constraint.
4479         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4481 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4483         * config.gcc (-*-*-*vms): Added.
4484         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4485         definitions moved.
4486         * config/vms/vms-ld.c: New file.
4487         * config/vms/vms-ar.c: New file.
4488         * config/vms/t-vmsnative: New file.
4490 2011-04-18  Xinliang David Li  <davidxl@google.com>
4492         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4494 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4496         PR middle-end/48661
4497         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4498         if TREE_TYPE (v) is non-NULL.
4500         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4501         gimple_get_virt_mehtod_for_binfo.
4502         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4503         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4504         callers.
4505         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4507 2011-04-18  Michael Matz  <matz@suse.de>
4508             Steve Ellcey  <sje@cup.hp.com>
4510         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4511         use its mode as source mode if it isn't VOIDmode.
4513 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4515         * doc/passes.texi: Fill crossref nodes.
4517 2011-04-18  Jim Meyering  <meyering@redhat.com>
4519         Fix doubled-word typos in comments and strings
4520         * config/alpha/vms-unwind.h: s/for for/for/
4521         * config/arm/unwind-arm.h: Likewise.
4522         * config/microblaze/microblaze.c: Likewise.
4523         * config/sh/constraints.md: s/in in/in/
4524         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4526 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4528         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4529         (AVX_FLOAT_MODE_P): Ditto.
4530         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4531         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4532         (AVX_VEC_FLOAT_MODE_P): Ditto.
4533         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4534         (UNSPEC_MASKSTORE): Ditto.
4535         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4536         Merge from <sse>_movmsk<ssemodesuffix> and
4537         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4538         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4539         iterator.
4540         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4541         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4542         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4544 2011-04-18  Jan Hubicka  <jh@suse.cz>
4546         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4548         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4549         (want_inline_function_called_once_p): Break out the logic from
4550         ipa_inline.
4551         (edge_badness): Ensure that profile is not misupdated.
4552         (lookup_recursive_calls): Prioritize by call frequencies.
4553         (inline_small_functions): Move program size estimates here;
4554         actually process whole queue even when unit growth has been
4555         met. (to properly compute inline_failed reasons and for the
4556         case unit size decrease.) Revisit comments on recursive inlining.
4557         (ipa_inline): Remove unit summary code; first inline hot calls
4558         of functions called once, cold calls next.
4559         (order, nnodes): Remove unused variables.
4560         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4561         (GTFILES): Remove ipa-inline.c
4562         * sel-sched.c (fill_insns): Silence uninitialized var warning.
4564 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4566         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4568 2011-04-18  Jie Zhang  <jie@codesourcery.com>
4569             Richard Earnshaw  <rearnsha@arm.com>
4571         * arm.c (neon_builtin_type_bits): Remove.
4572         (typedef enum neon_builtin_mode): New.
4573         (T_MAX): Don't define.
4574         (typedef enum neon_builtin_datum): Remove bits, codes[],
4575         num_vars and base_fcode.  Add mode, code and fcode.
4576         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4577         VAR10): Change accordingly.
4578         (neon_builtin_data[]): Change accordingly
4579         (arm_init_neon_builtins): Change accordingly.
4580         (neon_builtin_compare): Remove.
4581         (locate_neon_builtin_icode): Remove.
4582         (arm_expand_neon_builtin): Change accordingly.
4584         * arm.h (enum arm_builtins): Move to ...
4585         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4587         * arm.c (arm_builtin_decl): Declare.
4588         (TARGET_BUILTIN_DECL): Define.
4589         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4590         (arm_builtin_decls[]): New.
4591         (arm_init_neon_builtins): Store builtin declarations in
4592         arm_builtin_decls[].
4593         (arm_init_tls_builtins): Likewise.
4594         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
4595         (arm_builtin_decl): New.
4597 2011-04-18  Richard Guenther  <rguenther@suse.de>
4599         * tree.c (upper_bound_in_type): Build properly canonicalized
4600         INTEGER_CSTs.
4601         (lower_bound_in_type): Likewise.
4603 2011-04-18  Richard Guenther  <rguenther@suse.de>
4605         * gimple.h (gimple_call_addr_fndecl): New function.
4606         (gimple_call_fndecl): Use it.
4607         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4608         for direct calls.
4609         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4610         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4612 2011-04-18  Richard Guenther  <rguenther@suse.de>
4614         PR middle-end/48650
4615         * tree.c (build_string): STRING_CST is now derived from tree_typed.
4617 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4619         PR lto/48492
4620         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4621         DECL_IN_CONSTANT_POOL without RTL.
4623 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
4624             Ira Rosen  <ira.rosen@linaro.org>
4626         PR target/48252
4627         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4628         to match neon_vzip/vuzp/vtrn_internal.
4629         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4630         outputs explicitly dependent on both inputs.
4631         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4633 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4635         PR tree-optimization/48616
4636         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4637         whether the shift is by scalar or vector based on whether all SLP
4638         scalar stmts have the same rhs.
4640 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
4642         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4643         memory operands.
4645 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
4647         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4648         registers.
4650 2011-04-17  Jan Hubicka  <jh@suse.cz>
4652         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4653         * cgrpahunit.c (cgraph_finalize_function): Do not set
4654         finalized_by_frontend.
4655         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4656         finalized_by_frontend.
4658 2011-04-17  Jan Hubicka  <jh@suse.cz>
4660         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4661         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4662         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4663         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4664         method.
4665         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4666         gimple-fold.c
4667         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4669 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4671         PR lto/48538
4672         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4673         is non-null before accessing it.
4674         (input_cgraph): Remove trailing spaces.
4676 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4678         * params.def (sms-min-sc): New param flag.
4679         * modulo-sched.c (sms_schedule): Use it.
4680         * doc/invoke.texi (sms-min-sc): Document it.
4682 2011-04-17  Jan Hubicka  <jh@suse.cz>
4684         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4685         present, also set gimple_call_set_cannot_inline.
4686         * ipa-inline.c: Update toplevel comment.
4687         (MAX_TIME): Remove.
4688         (cgraph_clone_inlined_nodes): Fix linebreaks.
4689         (cgraph_check_inline_limits): Restructure to ...
4690         (caller_growth_limits): ... this one; be more tolerant
4691         on growth in nested inline chains; add explanatory comment;
4692         fix stack accounting thinko introduced by previous patch.
4693         (cgraph_default_inline_p): Remove.
4694         (report_inline_failed_reason): New function.
4695         (can_inline_edge_p): New function.
4696         (can_early_inline_edge_p): New function.
4697         (leaf_node_p): Move upwards in file.
4698         (want_early_inline_function_p): New function.
4699         (want_inline_small_function_p): New function.
4700         (want_inline_self_recursive_call_p): New function.
4701         (cgraph_edge_badness): Rename to ...
4702         (edge_badness) ... this one; fix linebreaks.
4703         (update_edge_key): Update call of edge_baddness; add
4704         detailed dump about queue updates.
4705         (update_caller_keys): Use can_inline_edge_p and
4706         want_inline_small_function_p.
4707         (cgraph_decide_recursive_inlining): Rename to...
4708         (recursive_inlining): Use can_inline_edge_p and
4709         want_inline_self_recursive_call_p; simplify and remove no longer
4710         valid FIXME.
4711         (cgraph_set_inline_failed): Remove.
4712         (add_new_edges_to_heap): Use can_inline_edge_p and
4713         want_inline_small_function_p.
4714         (cgraph_decide_inlining_of_small_functions): Rename to ...
4715         (inline_small_functions): ... this one; cleanup; use
4716         can/want predicates; cleanup debug ouput; work edges till fibheap
4717         is exhausted and do not stop once unit growth is reached; remove
4718         later loop processing remaining edges.
4719         (cgraph_flatten): Rename to ...
4720         (flatten_function): ... this one; use can_inline_edge_p
4721         and can_early_inline_edge_p predicates.
4722         (cgraph_decide_inlining): Rename to ...
4723         (ipa_inline): ... this one; remove unreachable nodes before
4724         inlining functions called once; simplify the pass.
4725         (cgraph_perform_always_inlining): Rename to ...
4726         (inline_always_inline_functions): ... this one; use
4727         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4728         (cgraph_decide_inlining_incrementally): Rename to ...
4729         (early_inline_small_functions): ... this one; simplify
4730         using new predicates; cleanup; make dumps prettier.
4731         (cgraph_early_inlining): Rename to ...
4732         (early_inliner): newer inline regular functions into always-inlines;
4733         fix updating of call stmt summaries.
4734         (pass_early_inline): Update for new names.
4735         (inline_transform): Fix formating.
4736         (gate_cgraph_decide_inlining): Rename to ...
4737         (pass_ipa_inline): ... this one.
4738         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4739         * ipa-inline-analysis.c (dump_inline_summary): Update.
4740         (compute_inline_parameters): Do not compute disregard_inline_limits;
4741         look for mismatching arguments.
4742         (estimate_growth): Fix handlig of non-trivial self recursion.
4743         (inline_read_summary): Do not read info->disregard_inline_limits.
4744         (inline_write_summary): Do not write info->disregard_inline_limits.
4745         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4746         and move all checks into can_inline_edge_p predicate; re-enable code
4747         comparing optimization levels.
4748         (expand_call_inline): Do not test inline_forbidden_into_p.
4749         * Makefile.in (ipa-inline.o): Update arguments.
4751 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4753         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4755 2011-04-17  Revital Eres  <revital.eres@linaro.org>
4757         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4759 2011-04-17  Michael Matz  <matz@suse.de>
4761         PR tree-optimization/48622
4762         PR lto/48645
4763         * ipa-inline-analysis.c (inline_read_summary): Read size/time
4764         in same order as they're written.
4766 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4768         * config/pa/predicates.md: Reorganize and simplify predicates.
4769         Eliminate duplicate code checks.
4770         (arith_operand): Rename to arith14_operand
4771         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4772         * config/pa/pa.md: Use renamed operands.
4773         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4774         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4775         arith11_operand, adddi3_operand, indexed_memory_operand,
4776         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4777         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4778         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4779         move_dest_operand, move_src_operand, prefetch_cc_operand,
4780         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4781         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4782         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4783         div_operand, int5_operand, movb_comparison_operator,
4784         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4785         arith_double_operand, ireg_operand, lhs_lshift_operand,
4786         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4787         integer_store_memory_operand): Likewise.
4788         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4789         (integer_store_memory_operand, read_only_operand,
4790         function_label_operand, borx_reg_operand,
4791         non_hard_reg_operand): Likewise.
4792         (eq_neq_comparison_operator): Delete unused operator.
4793         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4794         function_label_operand.
4795         (emit_move_sequence): Likewise.
4797 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4799         * config/i386/sse.md (sseunpackmode): New mode attribute.
4800         (ssepackmode): Ditto.
4801         (vec_pack_trunc_<mode>): Macroize expander from
4802         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4803         (vec_unpacks_lo_<mode>): Macroize expander from
4804         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4805         (vec_unpacks_hi_<mode>): Macroize expander from
4806         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4807         (vec_unpacku_lo_<mode>): Macroize expander from
4808         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4809         (vec_unpacku_hi_<mode>): Macroize expander from
4810         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4811         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4812         ix86_expand_sse4_unpack.
4813         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4815 2011-04-16  Jan Hubicka  <jh@suse.cz>
4817         * cgraphbuild.c: Include ipa-inline.h.
4818         (reset_inline_failed): Use initialize_inline_failed.
4819         * cgraph.c: Include ipa-inline.h.
4820         (cgraph_create_node_1): Do not initialize estimated_growth.
4821         (initialize_inline_failed): More to ipa-inline-analysis.c
4822         (dump_cgraph_node): Do not dump inline flags.
4823         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4824         and disregard_inline_limits flags.
4825         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4826         time, size, estimated_growth.
4827         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4828         Update.
4829         * cgraphunit.c (cgraph_decide_is_function_needed): Use
4830         DECL_DISREGARD_INLINE_LIMITS.
4831         (cgraph_analyze_function): Do not initialize
4832         node->local.disregard_inline_limits.
4833         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4834         inlinable, versionable and disregard_inline_limits.
4835         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4836         cgraph_check_inline_limits, cgraph_default_inline_p,
4837         cgraph_edge_badness, update_caller_keys, update_callee_keys,
4838         add_new_edges_to_heap): Update.
4839         (cgraph_decide_inlining_of_small_function): Update; set
4840         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4841         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4842         cgraph_decide_inlining_incrementally): Update.
4843         * ipa-inline.h (inline_summary): Add inlinable, versionable,
4844         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4845         time, size and estimated_growth parameters.
4846         (estimate_edge_growth): Update.
4847         (initialize_inline_failed): Declare.
4848         * ipa-split.c: Include ipa-inline.h
4849         (execute_split_functions): Update.
4850         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4851         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4852         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4853         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4854         estimated_growth to INT_MIN.
4855         (inline_node_duplication_hook): Likewise.
4856         (dump_inline_summary): Dump new fields.
4857         (compute_inline_parameters): Update.
4858         (estimate_edge_time, estimate_time_after_inlining,
4859         estimate_size_after_inlining, estimate_growth, inline_read_summary,
4860         inline_write_summary):
4861         (initialize_inline_failed): Move here from cgraph.c.
4862         * tree-sra.c: Include ipa-inline.h.
4863         (ipa_sra_preliminary_function_checks): Update.
4864         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4865         ipa-inline.h.
4867 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
4869         * config/i386/sse.md (V16): New mode iterator.
4870         (VI1, VI8): Ditto.
4871         (AVXMODEQI, AVXMODEDI): Remove.
4872         (sse2, sse3): New mode attribute.
4873         (mov<mode>): Use V16 mode iterator.
4874         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4875         (push<mode>1): Use V16 mode iterator.
4876         (movmisalign<mode>): Ditto.
4877         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4878         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4879         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4880         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4881         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4882         avx_movdqu<avxmodesuffix>.
4883         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4884         *avx_movdqu<avxmodesuffix>.
4885         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4886         avx_lddqu<avxmodesuffix>.
4887         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4888         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4889         avx_movnt<AVXMODEDI:mode>.
4890         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4891         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4893 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
4895         PR target/48629
4896         * haifa-sched.c (prune_ready_list, schedule_block): Use
4897         sched_pressure_p rather than flag_sched_pressure.
4899 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
4901         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4902         cgraph_get_node instead of cgraph_get_create_node.
4904 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
4906         * cfgexpand.c (expand_debug_expr): Use
4907         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4909 2011-04-15  Michael Matz  <matz@suse.de>
4911         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4912         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4913         * function.c (gimplify_parameters): Ditto.
4914         * gimplify.c (gimplify_vla_decl): Ditto.
4916         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4917         (gimple_call_set_alloca_for_var): New inline function.
4918         (gimple_call_alloca_for_var_p): Ditto.
4919         * gimple.c (gimple_build_call_from_tree): Remember
4920         CALL_ALLOCA_FOR_VAR_P state.
4921         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4923         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4924         calls if they were for VLA objects.
4926 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4928         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4929         of ADR_EXPRs.
4931 2011-04-15  Martin Jambor  <mjambor@suse.cz>
4933         PR middle-end/48601
4934         * tree-emutls.c (lower_emutls_function_body): Call
4935         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
4936         result is non-NULL.
4938 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
4940         * c-decl.c (detect_field_duplicates): Call
4941         objc_detect_field_duplicates instead of objc_get_interface_ivars.
4943 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
4945         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4946         * gimple.c (gimple_asm_clobbers_memory_p): Define.
4947         * ipa-pure-const.c (check_stmt): Call it.
4948         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4950 2011-04-15  Richard Guenther  <rguenther@suse.de>
4952         PR tree-optimization/48290
4953         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4954         Properly decide inhibiting propagation based on the valueized
4955         operand.  Do loop-closed SSA form preserving here ...
4956         (init_copy_prop): ... not here.
4958 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
4960         PR target/48612
4961         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4962         (*ieee_smax<mode>3): Likewise.
4964 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4966         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4967         Replace match_operand with match_dup for the third operand in
4968         these expanders.
4970 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4972         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4973         to track processing of conditionals.  Update all callers.
4974         (try_combine, simplify_if_then_else): Update.
4976 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4978         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4979         -fsched-pressure.
4981 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
4983         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4984         instead of match_operand for operand 3.
4986 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
4988         * recog.h (insn_operand_data): Add an "allows_mem" field.
4989         * genoutput.c (output_operand_data): Initialize it.
4990         * optabs.c (maybe_legitimize_operand_same_code): New function.
4991         (maybe_legitimize_operand): Use it when matching the original
4992         op->value.
4994 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4996         * gimplify.c: Fix issues in comments throughout.
4997         (voidify_wrapper_expr): Fix long line.
4998         (build_stack_save_restore): Likewise.
4999         (gimplify_loop_expr): Likewise.
5000         (gimplify_compound_lval): Likewise.
5001         (gimplify_init_ctor_eval): Likewise.
5002         (gimplify_modify_expr_rhs): Likewise.
5003         (omp_notice_threadprivate_variable): Likewise.
5005 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5007         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5008         original one if this is not a builtin function.
5010 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5012         PR target/48605
5013         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5014         offset it as needed based on top 2 bits in operands[3], change
5015         MEM mode to SFmode and mask those 2 bits away from operands[3].
5017 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5019         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5020         change from objc_declare_protocols() to objc_declare_protocol().
5022 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5024         * config/i386/sse.md (sse4_1): New mode attribute.
5025         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5026         avx_blend<ssemodesuffix><avxmodesuffix> and
5027         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5028         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5029         avx_blendv<ssemodesuffix><avxmodesuffix> and
5030         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5031         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5032         avx_dp<ssemodesuffix><avxmodesuffix> and
5033         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5034         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5035         (sse4_1_packusdw): Merge with *avx_packusdw.
5036         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5037         (sse4_1_pblendw): Merge with *avx_pblendw.
5038         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5039         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5040         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5041         VF mode iterator.
5042         (sse4_1_round<ssescalarmodesuffix>): Merge with
5043         *avx_round<ssescalarmodesuffix>.
5044         (aesenc): Merge with *avx_aesenc.
5045         (aesenclast): Merge with *avx_aesenclast.
5046         (aesdec): Merge with *avx_aesdec.
5047         (aesdeclast): Merge with *avx_aesdeclast.
5048         (pclmulqdq): Merge with *pclmulqdq.
5049         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5050         New predicate.
5051         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5053 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5055         PR middle-end/48608
5056         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5057         (align_local_variable): This.  Update DECL_ALIGN.
5058         (add_stack_var): Updated.
5059         (expand_one_stack_var): Likewise.
5061 2011-04-14  Richard Guenther  <rguenther@suse.de>
5063         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5064         Remove.
5065         (dse_initialize_block_local_data, dse_leave_block,
5066         record_voperand_set, get_stmt_uid): Likewise.
5067         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5068         (dse_optimize_stmt): Remove voperand set handling code.
5069         Simplify and improve to handle any kind of killing stmt.
5070         (dse_record_phi): Remove.
5071         (dse_enter_block): Simplify.
5072         (tree_ssa_dse): Likewise.
5073         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5075 2011-04-14  Jan Hubicka  <jh@suse.cz>
5077         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5078         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5079         (cgraph_local_info): Remove inline_summary.
5080         * ipa-cp.c: Include ipa-inline.h.
5081         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5082         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5083         accesor.
5084         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5085         (input_overwrite_node): Do not set inline summary.
5086         (input_node): Do not stream inline summary.
5087         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5088         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5089         growth; we do not have inline parameters computed for that anyway.
5090         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5091         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5092         (inline_summary_t): New type and VECtor.
5093         (debug_inline_summary, dump_inline_summaries): Declare.
5094         (inline_summary): Use VOCtor.
5095         (estimate_edge_growth): Kill hack computing call stmt size directly.
5096         * lto-section-in.c (lto_section_name): Add inline section.
5097         * ipa-inline-analysis.c: Include lto-streamer.h
5098         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5099         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5100         (inline_summary_vec): Define.
5101         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5102         dump_inline_summaries): New functions.
5103         (estimate_function_body_sizes): Properly compute size/time of outgoing
5104         calls.
5105         (compute_inline_parameters): Alloc inline_summary; do not compute
5106         size/time of incomming calls.
5107         (estimate_edge_time): Avoid missing time summary hack.
5108         (inline_read_summary): Read inline summary info.
5109         (inline_write_summary): Write inline summary info.
5110         (inline_free_summary): Free all hooks and inline summary vector.
5111         * lto-streamer.h: Add LTO_section_inline_summary section.
5112         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5113         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5115 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5117         * tree-vectorizer.h (vect_strided_store_supported): Add a
5118         HOST_WIDE_INT argument.
5119         (vect_strided_load_supported): Likewise.
5120         (vect_permute_store_chain): Return void.
5121         (vect_transform_strided_load): Likewise.
5122         (vect_permute_load_chain): Delete.
5123         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5124         count argument.  Check that the count is a power of two.
5125         (vect_strided_load_supported): Likewise.
5126         (vect_permute_store_chain): Return void.  Update after above changes.
5127         Assert that the access is supported.
5128         (vect_permute_load_chain): Likewise.
5129         (vect_transform_strided_load): Return void.
5130         * tree-vect-stmts.c (vectorizable_store): Update calls after
5131         above interface changes.
5132         (vectorizable_load): Likewise.
5133         (vect_analyze_stmt): Don't check for strided powers of two here.
5135 2011-04-14  Richard Guenther  <rguenther@suse.de>
5137         PR tree-optimization/48590
5138         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5139         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5140         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5141         BUILT_IN_STACK_SAVE.
5142         * tree-ssa-dce.c (propagate_necessity): Handle
5143         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5145 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5147         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5148         objc_declare_class.
5150 2011-04-14  Richard Guenther  <rguenther@suse.de>
5152         * tree.h (get_object_alignment_1): Declare.
5153         * builtins.c (get_object_alignment_1): Split out worker from ...
5154         (get_object_alignment): ... here.
5155         * fold-const.c (get_pointer_modulus_and_residue): Use
5156         get_object_alignment_1.
5158 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5160         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5161         type parameter.
5162         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5163         parameter.  Generalise code to handle arrays as well as vectors.
5164         (vect_setup_realignment): Update accordingly.
5165         * tree-vect-stmts.c (vectorizable_store): Likewise.
5166         (vectorizable_load): Likewise.
5168 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5170         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5171         within the per-copy loop.
5173 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5175         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5176         in the dump file.
5178 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5180         * doc/options.texi (Negative): Explicitly mention that the
5181         Negative chain must be circular.
5183 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5185         * function.h (block_chainon): Declare.
5186         * function.c (block_chainon): Define.
5188 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5189             Eric Weddington  <eric.weddington@atmel.com>
5190             Georg-Johann Lay  <avr@gjlay.de>
5192         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5193         New Includes
5194         (avr_init_builtins, avr_expand_builtin,
5195         avr_expand_delay_cycles, avr_expand_unop_builtin,
5196         avr_expand_binop_builtin ): New functions.
5197         (avr_builtin_id): New enum
5198         (struct avr_builtin_description): New struct
5199         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5200         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5202         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5203         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5204         UNSPECV_DELAY_CYCLES): new enumeration values
5205         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5206         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5207         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5208         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5209         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5210         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5211         "fmulsu"): New insns
5213         * config/avr/avr-c.c: fix line endings
5214         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5215         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5216         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5217         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5218         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5220         * doc/extend.texi (AVR Built-in Functions): New node
5221         (Target Builtins): Add documentation of AVR
5222         built-in functions.
5224 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5226         PR target/44643
5227         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5228         alone. Error if non-const data has attribute progmem.
5230 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5232         * tree.h (struct tree_constructor): Include tree_typed instead of
5233         tree_common.
5234         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5235         TS_TYPED instead of TS_COMMON.
5237 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5239         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5240         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5241         (sse2_psadbw): Merge with *avx_psadbw.
5242         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5243         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5244         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5245         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5246         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5247         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5248         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5249         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5250         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5251         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5252         (ssse3_palignrti): Merge with *avx_palignrti.
5254 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5256         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5257         * tree-ssanames.c (fini_ssanames): VEC_free it.
5258         (make_ssa_name_fn): Update for VECness of free_ssanames.
5259         (release_ssa_name, release_dead_ssa_names): Likewise.
5260         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5261         tree_common.
5262         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5263         TS_TYPED instead of TS_COMMON.
5265 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5267         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5268         statistics_counter_event.
5269         * tree-ssa-copyrename.c (stats): Define.
5270         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5271         statistics_counter_event.
5272         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5273         (bswap_stats, widen_mul_stats): Define.
5274         (insert_reciprocals): Increment rdivs_inserted.
5275         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5276         rfuncs_inserted.  Add calls to statistics_counter_event.
5277         (execute_cse_sincos_1): Increment inserted.
5278         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5279         statistics_counter_event.
5280         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5281         of bswap_stats.  Add calls to statistics_counter_event.
5282         (convert_mult_to_widen): Increment widen_mults_inserted.
5283         (convert_plusminus_to_widen): Increment maccs_inserted.
5284         (convert_mult_to_fma): Increment fmas_inserted.
5285         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5286         calls to statistics_counter_event.
5288 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5290         PR rtl-optimization/48455
5291         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5292         `temp_costs->mem_cost'.
5294 2011-04-13  Jan Hubicka  <jh@suse.cz>
5296         * ipa-inline.h: New file.
5297         * ipa-inline-analysis.c: New file. Broken out of ...
5298         * ipa-inline.c: ... this file; update toplevel comment;
5299         include ipa-inline.h
5300         (inline_summary): Move to ipa-inline.h
5301         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5302         ipa-inline-analysis.c.
5303         (cgraph_estimate_time_after_inlining): Rename to
5304         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5305         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5306         to estimate_edge_growth.
5307         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5308         rename to estimate_size_after_inlining.
5309         (cgraph_mark_inline_edge): Update for new naming convention.
5310         (cgraph_check_inline_limits): Likewise.
5311         (cgraph_edge_badness): Likewise.
5312         (cgraph_decide_recursive_inlining): Likewise.
5313         (cgraph_decide_inlining_of_small_functions): Likewise.
5314         (cgraph_decide_inlining_incrementally): Likewise.
5315         (cgraph_estimate_growth): Rename to estimate_growth; move to
5316         ipa-inline-analysis.c.
5317         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5318         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5319         (compute_inline_parameters): Likewise.
5320         (compute_inline_parameters_for_current): Likewise.
5321         (pass_inline_parameters): Likewise.
5322         (inline_indirect_intraprocedural_analysis): Likewise.
5323         (analyze_function): Rename to inline_analyze_function; likewise.
5324         (add_new_function): Move to ipa-inline-analysis.c.
5325         (inline_generate_summary): Likewise.
5326         (inline_read_summary): Likewise.
5327         (inline_write_summary): Likewise.
5328         * Makefile.in (ipa-inline-analysis.c): New file.
5330 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5332         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5333         * configure: Regenerate.
5335 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5337         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5338         instead of tree_common.
5339         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5340         Likewise.
5341         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5342         TS_TYPED rather than TS_COMMON.
5343         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5345 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5347         PR target/45263
5348         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5349         r20 around calls of __tablejump_elpm__
5351 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5353         PR middle-end/48591
5354         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5355         NULL.
5356         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5358 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5360         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5361         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5362         (cfi_vec): New typedef.
5363         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5364         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5365         (cie_cfi_vec): New static variable.
5366         (cie_cfi_head): Delete.
5367         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5368         declaration changed. Use vector rather than list operations.
5369         (new_cfi): Don't initialize the dw_cfi_next field.
5370         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5371         rather than list operations.
5372         (lookup_cfa): Use vector rather than list operations.
5373         (output_cfis): New argument upto. Accept a cfi_vec rather than
5374         a dw_cfi_ref list head as argument. All callers changed.
5375         Iterate over the vector using upto as a maximum index.
5376         (output_all_cfis): New static function.
5377         (output_fde): Use vector rather than list operations. Use the
5378         new upto argument for output_cfis rather than manipulating a
5379         list.
5380         (dwarf2out_begin_prologue): Change initializations to match
5381         new struct members.
5382         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5383         from the vector length rather than searching for the end of a list.
5384         Use output_all_cfis.
5385         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5387 2011-04-13  Nick Clifton  <nickc@redhat.com>
5389         * config/rx/rx.md (movmemsi): Do not use this pattern when
5390         volatile pointers are involved.
5392 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5394         * config/i386/sse.md (pinsrbits): Remove.
5395         (sse2_packsswb): Merge with *avx_packsswb.
5396         (sse2_packssdw): Merge with *avx_packssdw.
5397         (sse2_packuswb): Merge with *avx_packuswb.
5398         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5399         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5400         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5401         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5402         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5403         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5404         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5405         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5406         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5407         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5408         (sse2_loadld): Merge with *avx_loadld.
5409         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5410         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5411         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5412         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5413         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5415 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5417         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5418         calling TREE_CHAIN.
5419         * print-tree.c (print_node): Likewise.
5420         * tree-inline.c (copy_tree_r): Likewise.
5421         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5422         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5423         instead of TS_COMMON.
5424         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5425         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5426         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5427         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5428         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5429         ...and these...
5430         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5431         * tree.h: ...here.
5432         (TREE_CHAIN): Check for a TS_COMMON structure.
5433         (TREE_TYPE): Check for a TS_TYPED structure.
5435 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5437         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5438         cgraph_get_create_node instead of cgraph_node.
5440 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5442         * c-parser.c (c_parser_initelt): Updated call to
5443         objc_build_message_expr.
5444         (c_parser_postfix_expression): Likewise.
5446 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5448         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5449         MASK_MS_BITFIELD_LAYOUT bit.
5451 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5453         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5454         assert it is always true.
5455         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5456         moves.
5458 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5460         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5461         compiling Objective-C to be more efficient.
5463 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5465         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5466         argv_copied.
5468 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5470         * recog.h, genoutput.c, optabs.c: Revert last patch.
5472 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5474         PR target/48090
5475         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5477 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5479         * recog.h (insn_operand_data): Add an "allows_mem" field.
5480         * genoutput.c (output_operand_data): Initialize it.
5481         * optabs.c (maybe_legitimize_operand_same_code): New function.
5482         (maybe_legitimize_operand): Use it when matching the original
5483         op->value.
5485 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5487         * genpreds.c (process_define_predicate): Move most processing
5488         to gensupport.c.  Continue to validate the expression.
5489         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5490         (process_define_predicate): Move processing to gensupport.c.
5491         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5492         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5493         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5494         argument.
5495         (valid_predicate_name_p): New function, split out from old
5496         genpreds.c:process_define_predicate.
5497         (process_define_predicate): New function, combining code from
5498         old genpreds.c and genrecog.c functions.
5499         (process_rtx): Call it for DEFINE_PREDICATE and
5500         DEFINE_SPECIAL_PREDICATE.
5502 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5504         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5505         size of a '%A' memory reference.
5506         (T_DREG, T_QREG): New neon_builtin_type_bits.
5507         (arm_init_neon_builtins): Assert that the load and store operands
5508         are neon_struct_operands.
5509         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5510         (NEON_ARG_MEMORY): New builtin_arg.
5511         (neon_dereference_pointer): New function.
5512         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5513         Handle NEON_ARG_MEMORY.
5514         (arm_expand_neon_builtin): Update after above interface changes.
5515         Use NEON_ARG_MEMORY for loads and stores.
5516         * config/arm/predicates.md (neon_struct_operand): New predicate.
5517         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5518         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5519         (V_four_elem): Tweak formatting.
5520         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5521         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5522         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5523         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5524         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5525         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5526         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5527         Use %A in the output template.
5528         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5529         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5530         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5531         the width of the memory access.  Remove post-increment.
5532         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5534 2011-04-12  Nick Clifton  <nickc@redhat.com>
5536         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5537         instruction for interrupt handlers if the target is the basic V850
5538         architecture.
5539         (expand_epilogue): Likewise.
5541 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5543         PR rtl-optimization/48549
5544         * combine.c (propagate_for_debug): Also stop after BB_END of
5545         this_basic_block.  Process LAST and just stop processing after it.
5546         (combine_instructions): If last_combined_insn has been deleted,
5547         set last_combined_insn to its PREV_INSN.
5549 2011-04-12  Richard Guenther  <rguenther@suse.de>
5551         PR tree-optimization/46076
5552         * gimple.h (struct gimple_statement_call): Add fntype field.
5553         (gimple_call_fntype): Adjust.
5554         (gimple_call_set_fntype): New function.
5555         * gimple.c (gimple_build_call_1): Set the call function type.
5556         * gimplify.c (gimplify_call_expr): Preserve the function
5557         type the frontend used for the call.
5558         (gimplify_modify_expr): Likewise.
5559         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5560         function type.
5561         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5562         function type.
5563         * tree-ssa.c (useless_type_conversion_p): Function pointer
5564         conversions are useless.
5566 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5568         * cgraph.h (cgraph_node): Remove function declaration.
5569         (cgraph_create_node): Declare.
5570         (cgraph_get_create_node): Likewise.
5571         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5572         Updated all callers.
5573         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5574         the decl does not already exist.  Call cgraph_get_create_node instead
5575         of cgraph_node.
5576         (cgraph_get_create_node): New function.
5577         (cgraph_same_body_alias): Update comment.
5578         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5579         assert it does not return NULL.
5580         (cgraph_update_edges_for_call_stmt): Likewise.
5581         (cgraph_clone_edge): Likewise.
5582         (cgraph_create_virtual_clone): Likewise.
5583         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5584         instead of cgraph_node.
5585         (cgraph_add_new_function): Call cgraph_create_node or
5586         cgraph_get_create_node instead of cgraph_node.
5587         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5588         instead of cgraph_node.
5589         (record_eh_tables): Likewise.
5590         (mark_address): Likewise.
5591         (mark_load): Likewise.
5592         (build_cgraph_edges): Call cgraph_get_create_node instead
5593         of cgraph_node.
5594         (rebuild_cgraph_edges): Likewise.
5595         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5596         instead of cgraph_node.
5597         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5598         cgraph_node.
5599         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5600         cgraph_create_node instead of cgraph_node.
5601         * c-decl.c (finish_function): Call cgraph_get_create_node instead
5602         of cgraph_node.
5603         * lto-cgraph.c (input_node): Likewise.
5604         * lto-streamer-in.c (input_function): Likewise.
5605         * varasm.c (mark_decl_referenced): Likewise.
5606         (assemble_alias): Likewise.
5608 2011-04-12  Martin Jambor  <mjambor@suse.cz>
5610         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5611         instead of cgraph_node and assert it does not return NULL.
5612         * lto-streamer-in.c (lto_read_body): Likewise.
5613         * omp-low.c (new_omp_context): Likewise.
5614         (create_task_copyfn): Likewise.
5615         * tree-emutls.c (lower_emutls_function_body): Likewise.
5616         * matrix-reorg.c (transform_allocation_sites): Likewise.
5618 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5620         PR c/48552
5621         * c-typeck.c (build_asm_expr): Error out on attempts to use
5622         void type outputs or inputs for constraints that allow reg or
5623         don't allow memory.
5625 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
5626             Richard Earnshaw  <rearnsha@arm.com>
5628         PR target/48250
5629         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5630         to use sign-magnitude offsets. Reject unsupported unaligned
5631         cases. Add detailed description in comments.
5632         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5633         condition from TARGET_32BIT to TARGET_ARM.
5635 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
5637         * tree.h (struct typed_tree): New.
5638         (struct tree_common): Include it instead of tree_base.
5639         (TREE_TYPE): Update for new location of type field.
5640         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5641         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5642         (union tree_node): Add typed field.
5643         * treestruct.def (TS_TYPED): New.
5644         * lto-streamer.c (check_handled_ts_structures): Handle it.
5645         * tree.c (MARK_TS_TYPED): New macro.
5646         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5648 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
5650         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5651         (force_nonfallthru): Do not alter the loop nest if no basic block
5652         was created.
5654 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5656         * config/i386/sse.md (VI): New mode iterator.
5657         (SSEMODEI): Remove.
5658         (AVX256MODEI): Ditto.
5659         (AVXMODEF4P): Ditto.
5660         (avxvecpsmode): Ditto.
5661         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
5662         (sse2_andnot<mode>3): New expander.
5663         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5664         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
5665         (<any_logic:code><mode>3): Use VI mode iterator.
5666         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5667         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
5668         (*andnottf3): Handle AVX three-operand constraints.
5669         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5671 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5672             Robert Millan  <rmh@gnu.org>
5674         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5675         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5676         GNU_USER_DYNAMIC_LINKER64): Define.
5677         (REG_NAME): Don't undefine.
5678         (MD_UNWIND_SUPPORT): Undefine.
5679         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5680         (REG_NAME): Don't undefine.
5681         (MD_UNWIND_SUPPORT): Undefine.
5682         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5684 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5686         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5687         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5689 2011-04-11  Xinliang David Li  <davidxl@google.com>
5691         * value-profile.c (check_ic_target): New function.
5692         (gimple_ic_transform): Sanity check indirect call target.
5693         * gimple-low.c (gimple_check_call_args): Interface change.
5694         (gimple_check_call_matching_types): New function.
5695         * tree-inline.c (tree_can_inline_p): Call new function.
5697 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
5699         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5700         tree-pretty-print.h & realmpfr.h.
5702 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
5704         PR middle-end/48464
5705         * ira.c (setup_pressure_classes): Fix typo in loop condition.
5706         (setup_allocno_and_important_classes): Ditto.
5708 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5710         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5711         GNU_USER_DYNAMIC_LINKER.
5712         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5713         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5714         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5715         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5716         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5717         GNU_USER_TARGET_OS_CPP_BUILTINS.
5718         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5719         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5720         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5721         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5722         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5723         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5724         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5725         GNU_USER_TARGET_OS_CPP_BUILTINS.
5726         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5727         GNU_USER_DYNAMIC_LINKER.
5728         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5729         GNU_USER_TARGET_OS_CPP_BUILTINS.
5730         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5731         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5732         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5733         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5734         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5735         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5736         GNU_USER_DYNAMIC_LINKER64): Remove.
5737         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5738         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5739         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5740         GNU_USER_DYNAMIC_LINKER.
5741         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5742         GNU_USER_TARGET_OS_CPP_BUILTINS.
5743         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5744         GNU_USER_TARGET_OS_CPP_BUILTINS.
5745         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5746         to GNU_USER_TARGET_OS_CPP_BUILTINS.
5747         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5748         GNU_USER_TARGET_OS_CPP_BUILTINS.
5749         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5750         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5751         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5752         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5753         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5754         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5755         GNU_USER_DYNAMIC_LINKER.
5756         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5757         GNU_USER_TARGET_OS_CPP_BUILTINS.
5758         * config/m68k/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
5761         GNU_USER_DYNAMIC_LINKER.
5762         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5763         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5764         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5765         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5766         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5767         GNU_USER_DYNAMIC_LINKER.
5768         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5769         GNU_USER_DYNAMIC_LINKERN32.
5770         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5771         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
5772         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
5773         GNU_USER_DYNAMIC_LINKER32.
5774         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5775         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5776         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5777         GNU_USER_DYNAMIC_LINKER.
5778         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5779         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5780         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5781         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5782         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5783         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5784         GNU_USER_DYNAMIC_LINKER32.
5785         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5786         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5787         GNU_USER_DYNAMIC_LINKER.
5788         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5789         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5790         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5791         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
5792         GNU_USER_DYNAMIC_LINKER64.
5793         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5794         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5795         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5796         GNU_USER_DYNAMIC_LINKER.
5797         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5798         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5799         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5800         GNU_USER_DYNAMIC_LINKER.
5801         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5802         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5803         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5804         GNU_USER_DYNAMIC_LINKER32.
5805         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5806         GNU_USER_DYNAMIC_LINKER64.
5807         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5808         GNU_USER_DYNAMIC_LINKER64.
5809         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5810         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5811         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5812         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5813         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5815 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5817         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
5818         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5819         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5820         GNU_USER_DYNAMIC_LINKER.
5821         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5822         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
5823         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5824         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5825         GNU_USER_DYNAMIC_LINKER64.
5826         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5827         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5828         GNU_USER_LINK_EMULATION.
5829         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5830         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5831         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5832         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5833         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5834         CPP_SPEC, CC1_SPEC): Remove.
5835         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5836         (GNU_USER_DYNAMIC_LINKER): Define.
5837         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5838         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5839         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5840         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5841         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5842         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5843         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5844         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5845         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5846         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5847         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5848         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5849         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5850         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5851         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5852         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5853         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5854         GNU_USER_DYNAMIC_LINKER.
5855         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5856         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5857         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5858         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5859         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5860         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
5861         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5862         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5863         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5864         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5866 2011-04-11  Kai Tietz  <ktietz@redhat.com>
5868         PR target/9601
5869         PR target/11772
5870         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5871         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5872         comment.
5873         (ix86_is_msabi_thiscall): Removed.
5874         (ix86_is_type_thiscall): Likewise.
5875         (ix86_get_callcvt): New function.
5876         (ix86_comp_type_attributes): Simplify check.
5877         (ix86_function_regparm): Use ix86_get_callcvt for calling
5878         convention attribute checks.
5879         (ix86_return_pops_args): Likewise.
5880         (ix86_static_chain): Likewise.
5881         (x86_this_parameter): Likewise.
5882         (x86_output_mi_thunk): Likewise.
5883         (ix86_function_type_abi): Optimize check for types without attributes.
5884         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5885         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5886         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5887         by flag-values.
5888         (IX86_BASE_CALLCVT): Helper macro.
5889         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5890         Use ix86_get_callcvt for calling convention attribute checks and avoid
5891         symbol-decoration for stdcall in TARGET_RTD case.
5892         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5893         Likewise.
5894         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5895         for declaration.
5897 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
5899         * config/i386/sse.md (VI_128): New mode iterator.
5900         (VI12_128): Rename from SSEMODE12.
5901         (VI14_128): Rename from SSEMODE14.
5902         (VI124_128): New mode iterator.
5903         (VI24_128): Rename from SSEMODE248.
5904         (VI248_128): Rename from SSEMODE248.
5905         (SSEMODE124C8): Remove.
5906         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5907         (*sse2_<plusminus_insn><mode>3): Merge with
5908         *avx_<plusminus_insn><mode>3.
5909         (*mulv8hi3): Merge with *avx_mulv8hi3.
5910         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5911         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5912         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5913         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5914         (ashr<mode>3): Merge with *avx_ashr<mode>3.
5915         (lshr<mode>3): Merge with *avx_lshr<mode>3.
5916         (ashl<mode>3): Merge with *avx_ashl<mode>3.
5917         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5918         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5919         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5920         (*<smaxmin:code>v8hi3): Ditto.
5921         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5922         (*<smaxmin:code>v16qi3): Ditto.
5923         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5924         (*sse2_eq<mode>3): Ditto.
5925         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5926         (*sse2_gt<mode>3): Ditto.
5927         (vcondv2di): Split out of vcond<mode>.
5928         (vconduv2di): Split out of vcondu<mode>.
5930 2011-04-11  Richard Guenther  <rguenther@suse.de>
5932         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5933         before calling tree_low_cst.
5935 2011-04-11  Richard Guenther  <rguenther@suse.de>
5937         * stor-layout.c (layout_type): Compute all array index size operations
5938         in the original type.
5939         (initialize_sizetypes): Add comment.
5940         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5942 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
5944         * common.opt (Tbss=, Tdata=, Ttext=): New options.
5946 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5948         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5949         of cgraph_node, handle NULL return value.
5950         (cgraph_global_info): Likewise.
5951         (cgraph_rtl_info): Likewise.
5952         * tree-inline.c (estimate_num_insns): Likewise.
5953         * gimplify.c (unshare_body): Likewise.
5954         (unvisit_body): Likewise.
5955         (gimplify_body): Likewise.
5956         * predict.c (optimize_function_for_size_p): Likewise.
5957         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5958         (call_may_clobber_ref_p_1): Likewise.
5959         * varasm.c (function_section_1): Likewise.
5960         (assemble_start_function): Likewise.
5962 2011-04-11  Martin Jambor  <mjambor@suse.cz>
5964         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5965         of cgraph_node.
5966         * final.c (rest_of_clean_state): Likewise.
5967         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5968         * passes.c (pass_init_dump_file): Likewise.
5969         (execute_all_ipa_transforms): Likewise.
5970         (function_called_by_processed_nodes_p): Likewise.
5971         * predict.c (maybe_hot_frequency_p): Likewise.
5972         (probably_never_executed_bb_p): Likewise.
5973         (compute_function_frequency): Likewise.
5974         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5975         (unnest_nesting_tree_1): Likewise.
5976         (lower_nested_functions): Likewise.
5977         * tree-optimize.c (execute_fixup_cfg): Likewise.
5978         (tree_rest_of_compilation): Likewise.
5979         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5980         * tree-sra.c (ipa_early_sra): Likewise.
5981         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5982         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5983         * ipa.c (record_cdtor_fn): Likewise.
5984         * ipa-inline.c (cgraph_early_inlining): Likewise.
5985         (compute_inline_parameters_for_current): Likewise.
5986         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5987         * ipa-pure-const.c (local_pure_const): Likewise.
5988         * ipa-split.c (split_function): Likewise.
5989         (execute_split_functions): Likewise.
5990         * cgraphbuild.c (build_cgraph_edges): Likewise.
5991         (rebuild_cgraph_edges): Likewise.
5992         (cgraph_rebuild_references): Likewise.
5993         (remove_cgraph_callee_edges): Likewise.
5994         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5995         (verify_cgraph_node): Likewise.
5996         (cgraph_analyze_functions): Likewise.
5997         (cgraph_preserve_function_body_p): Likewise.
5998         (save_inline_function_body): Likewise.
5999         (save_inline_function_body): Likewise.
6000         * tree-inline.c (copy_bb): Likewise.
6001         (optimize_inline_calls): Likewise.
6003 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6005         PR tree-optimization/48195
6006         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6007         ipa_check_create_edge_args.
6008         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6009         ipa_check_create_edge_args.
6010         * ipa-inline.c (inline_generate_summary): Do not call
6011         ipa_check_create_node_params and ipa_check_create_edge_args.
6012         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6013         ipa_check_create_edge_args.
6015 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6017         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6018         instead of loop.
6019         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6020         * function.c (record_hard_reg_sets): Likewise.
6021         * ira.c (compute_regs_asm_clobbered): Likewise.
6022         * sched-deps.c (sched_analyze_1): Likewise.
6023         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6025 2011-04-09  Xinliang David Li  <davidxl@google.com>
6027         PR tree-optimization/PR48484
6028         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6029         has_valid_pred lazily
6031 2011-04-09  Duncan Sands  <baldrick@free.fr>
6033         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6035 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6037         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6038         cost of I0 to zero at the end, if any.
6040 2011-04-08  Xinliang David Li  <davidxl@google.com>
6042         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6043         to insane profile data.
6045 2011-04-08  Xinliang David Li  <davidxl@google.com>
6047         * ipa-cp.c (ipcp_update_profiling): Correct
6048          negative scale factor due to insane profile data.
6050 2011-04-08  Xinliang David Li  <davidxl@google.com>
6052         * final.c (dump_basic_block_info): New function.
6053         (final): Dump basic block.
6054         (final_scan_insn): Remove old dump.
6056 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6058         PR target/47829
6059         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6060         crtbegin/crtend.
6062 2011-04-08  Michael Matz  <matz@suse.de>
6064         PR middle-end/48389
6065         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6066         functions.
6067         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6068         * rtl.h (rebuild_jump_labels_chain): Declare.
6069         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6070         insns inserted on edges.
6072 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6074         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6075         * config/arm/arm-arches.def: New.
6076         * config/arm/arm-opts.h: New.
6077         * config/arm/genopt.sh: New.
6078         * config/arm/arm-tables.opt: New (generated).
6079         * config/arm/arm.c (arm_handle_option, arm_target_help,
6080         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6081         (all_architectures): Get most table contents from arm-arches.def.
6082         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6083         arm_selected_tune here.
6084         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6085         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6086         (march=, mcpu=, mtune=): Use Enum and Var.
6087         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6088         (arm.o): Update dependencies.
6090 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6092         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6093         of header_file.
6094         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6095         (write_typed_alloc_defns): Likewise.
6096         (main): Calls write_typed_alloc_defns with output_header.
6098 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6100         PR inline-asm/48435
6101         * ira-color.c (setup_profitable_hard_regs): Add comments.
6102         Don't take prohibited hard regs into account.
6103         (setup_conflict_profitable_regs): Rename to
6104         get_conflict_profitable_regs.
6105         (check_hard_reg_p): Check prohibited hard regs.
6107 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6109         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6110         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6111         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6113 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6115         PR target/48366
6116         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6117         move from floating point to shift amount register.
6118         (emit_move_sequence): Remove secondary reload support for floating
6119         point to shift amount amount register copies.
6120         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6121         amount register copies.
6122         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6123         register, return false if mode isn't a scalar integer mode.
6124         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6126 2011-04-08  Richard Guenther  <rguenther@suse.de>
6128         * gimple.c (gimple_call_flags): Remove kludge.
6130 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6132         * sel-sched.c (sel_region_init): Move call to
6133         sel_setup_region_sched_flags after setup_current_loop_nest.
6135 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6137         PR rtl-optimization/48272
6138         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6139         init_insn_reg_pressure_info.  Adjust a caller.
6140         * sched-int.h (init_insn_reg_pressure_info): Declare.
6141         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6142         when sched-pressure is enabled.
6144 2011-04-08  Richard Guenther  <rguenther@suse.de>
6146         * gimple.c (gimple_set_modified): Do not queue calls to
6147         MODIFIED_NORETURN_CALLS here ...
6148         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6150 2011-04-08  Richard Guenther  <rguenther@suse.de>
6152         PR lto/48467
6153         * toplev.c (lang_dependent_init): Do not open asm_out_file
6154         in WPA mode, nor perform debug machinery initialization.
6155         (finalize): Do not unlink asm_out_file in WPA mode.
6157 2011-04-08  Richard Guenther  <rguenther@suse.de>
6159         * gimple.h (gimple_call_fntype): New function.
6160         (gimple_call_return_type): Use it.
6161         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6162         * gimple-low.c (gimple_check_call_args): Likewise.
6163         * gimple.c (gimple_call_flags): Likewise.
6164         (gimple_call_arg_flags): Likewise.
6165         (gimple_call_return_flags): Likewise.
6166         * tree-cfg.c (verify_gimple_call): Likewise.
6167         (do_warn_unused_result): Likewise.
6168         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6169         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6171 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6173         PR rtl-optimization/48235
6174         * sel-sched.c (code_motion_process_successors): Recompute the last
6175         insn in basic block if control flow changed.
6176         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6177         Update condition for ilist_remove.
6179 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6181         PR rtl-optimization/48302
6182         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6183         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6184         it to record added preheader blocks.
6185         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6186         on to sel_add_loop_preheaders.
6187         (sel_region_init): Move call to setup_current_loop_nest after
6188         sel_init_bbs.
6190 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6192         PR target/48273
6193         * cfgloop.h (loop_has_exit_edges): New helper.
6194         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6195         non-clonable.
6196         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6197         that have no exit edges.
6199 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6201         PR rtl-optimization/48442
6202         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6203         all callers.  Adjust assert.
6205 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6207         PR tree-optimization/48377
6208         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6209         is_packed to true even for types with smaller TYPE_ALIGN than
6210         TYPE_SIZE.
6212 2011-04-08  Richard Guenther  <rguenther@suse.de>
6214         PR bootstrap/48513
6215         * doc/tm.texi: Re-generate.
6217 2011-04-08  Wei Guozhi  <carrot@google.com>
6219         PR target/47855
6220         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6221         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6222         * config/arm/arm.md (*push_multi): Change the length computation to
6223         call a C function.
6225 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6227         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6228         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6229         * doc/tm.texi: Regenerate.
6230         * system.h (ASM_OUTPUT_BSS): Poison.
6231         * varasm.c (asm_output_bss): Remove function.
6232         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6234         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6235         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6236         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6237         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6238         Likewise.
6239         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6240         Likewise.
6241         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6242         Likewise.
6243         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6245 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6247         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6248         EnumValue lines.
6250 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6252         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6253         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6254         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6255         OPT_mcpu32.
6256         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6257         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6258         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6259         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6260         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6261         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6262         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6263         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6264         options.  Don't map other m68k options manually.  Don't handle
6265         old-style options as canonical.
6266         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6267         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6269 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6271         * basic-block.h (force_nonfallthru): Move to...
6272         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6273         (force_nonfallthru): ...here.
6274         * cfghooks.c (force_nonfallthru): New function.
6275         * cfgrtl.c (force_nonfallthru): Rename into...
6276         (rtl_force_nonfallthru): ...this.
6277         (commit_one_edge_insertion): Do not set AUX field.
6278         (commit_edge_insertions): Do not discover new basic blocks.
6279         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6280         (cfg_layout_rtl_cfg_hooks): Likewise.
6281         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6282         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6283         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6285 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6287         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6288         Remove macros.
6290 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6292         * config/i386/sse.md: Update copyright year.
6293         (avxcvtvecmode): Remove.
6294         (sse_movhlps): Merge with *avx_movhlps.
6295         (sse_movlhps): Merge with *avx_movlhps.
6296         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6297         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6298         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6299         (sse_loadhps): Merge with *avx_loadhps.
6300         (sse_storelps): Merge with *avx_storelps.
6301         (sse_loadlps): Merge with *avx_loadlps.
6302         (sse_movss): Merge with *avx_movss.
6303         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6304         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6305         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6306         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6307         (vec_set<mode>_0): Ditto.
6308         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6309         (sse4_1_insertps): Merge with *avx_insertps.
6310         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6311         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6312         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6313         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6314         (sse2_storehpd): Merge with *avx_storehpd.
6315         (sse2_loadhpd): Merge with *avx_loadhpd.
6316         (sse2_loadlpd): Merge with *avx_loadlpd.
6317         (sse2_movsd): Merge with *avx_movsd.
6318         (*vec_concatv2df): Merge with *vec_concatv2df.
6320 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6322         PR debug/48343
6323         * combine.c (combine_instructions): Add last_combined_insn,
6324         update it if insn is after it, pass it to all try_combine calls.
6325         (try_combine): Add last_combined_insn parameter, pass it instead of
6326         i3 to propagate_for_debug.
6328 2011-04-07  Nick Clifton  <nickc@redhat.com>
6330         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6331         to handle MDR <-> data register transfers.
6332         (movhi_internal): Likewise.
6334 2011-04-07  Alan Modra  <amodra@gmail.com>
6336         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6337         previous stack info.
6339 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6341         PR target/43920
6342         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6343         flow_find_cross_jump.  Swap variables to implement backward replacement.
6344         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6346 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6348         PR target/43920
6349         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6350         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6351         and bb2.
6352         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6353         src1 or src2.  Redirect edges to the last basic block.  Update
6354         frequency and count on multiple basic blocks in case of fallthru.
6356 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6358         PR target/43920
6359         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6360         function.
6361         (old_insns_match_p): Change return type.  Replace return false/true
6362         with return dir_none/dir_both.  Use can_replace_by.
6363         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6364         direction from dir_p.  Register replacement direction in dir, last_dir
6365         and afterlast_dir.  Handle new return type of old_insns_match_p using
6366         merge_dir.  Return replacement direction in dir_p.
6367         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6368         return type of old_insns_match_p.
6369         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6370         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6371         flow_find_cross_jump.
6372         * basic-block.h (enum replace_direction): New type.
6373         (flow_find_cross_jump): Add parameter to declaration.
6375 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6377         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6378         (AVXMODEDCVTPS2DQ): Ditto.
6379         (VEC_FLOAT_MODE): Ditto.
6380         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6381         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6382         (<any_logic:code><mode>3): Use VF mode iterator.
6383         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6384         Use VF mode iterator.
6385         (copysign<mode>3): Use VF mode iterator.
6386         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6387         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6388         (*<any_logic:code><MODEF:mode>3): Merge with
6389         *avx_<any_logic:code><MODEF:mode>3.
6390         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6391         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6392         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6393         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6394         (sse2_cvtdq2ps): Use %v modifier.
6395         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6396         (avx_cvtps2dq<avxmodesuffix>): Remove.
6397         (sse2_cvtps2dq): Use %v modifier.
6398         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6399         (avx_cvttps2dq<avxmodesuffix>): Remove.
6400         (sse2_cvttps2dq): Use %v modifier.
6401         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6402         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6403         (sse2_cvtsd2siq): Fix insn template.
6404         (sse2_cvtsd2siq_2): Ditto.
6405         (sse2_cvttsd2siq): Ditto.
6406         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6407         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6409 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6411         * gcov-io.c: Use GCC Runtime Library Exception.
6413 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6415         PR debug/48466
6416         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6417         as base_reg whatever register reg has been eliminated to, instead
6418         of hardcoding STACK_POINTER_REGNUM.
6420 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6422         * doc/tm.texi.in: Document C target hooks as separate from general
6423         target hooks.
6424         * doc/tm.texi: Regenerate.
6425         * genhooks.c (struct hook_desc): Add docname field.
6426         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6427         docname field.
6428         (hook_array): Include c-target.def.
6429         (emit_documentation): Use docname field in output.
6430         (emit_init_macros): Take docname argument.  Only emit definitions
6431         for hooks matching docname.
6432         (main): Expect additional arguments in all cases.  Pass argument
6433         to emit_init_macros.
6434         * target.def: Move initial macro definitions and comments to
6435         target-hooks-macros.h.
6436         (gcc_targetcm): Move to c-family/c-target.def.
6437         * target.h (targetcm): Move declaration to c-family/c-target.h.
6438         * targhooks.c (default_handle_c_option): Move to
6439         c-family/c-opts.c.
6440         * targhooks.h (default_handle_c_option): Move declaration to
6441         c-family/c-common.h.
6442         * target-hooks-macros.h: New file.
6443         * config.gcc (target_has_targetcm): Define and use to add to
6444         c_target_objs and cxx_target_objs.
6445         * config/default-c.c: New file.
6446         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6447         of target.h and target-def.h.
6448         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6449         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6450         darwin_check_cfstring_format_arg): Make static.
6451         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6452         TARGET_STRING_OBJECT_REF_TYPE_P,
6453         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6454         * config/darwin-protos.h (darwin_objc_construct_string,
6455         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6456         declare.
6457         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6458         TARGET_STRING_OBJECT_REF_TYPE_P,
6459         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6460         * config/t-darwin (darwin-c.o): Update dependencies.
6461         * system.h (TARGET_HAS_TARGETCM): Poison.
6462         * Makefile.in (TARGET_H): Update.
6463         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6464         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6465         (default-c.o): New target.
6466         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6467         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6468         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6469         c-target.def.
6470         (build/genhooks.o): Update dependencies.
6472 2011-04-06  Richard Guenther  <rguenther@suse.de>
6474         * ipa-inline.c (enum inlining_mode): Remove.
6475         (cgraph_flatten): Use some other token.
6476         (cgraph_edge_early_inlinable_p): New function, split out from ...
6477         (cgraph_perform_always_inlining): New function, split out from ...
6478         (cgraph_decide_inlining_incrementally): ... here.
6479         (cgraph_mark_inline_edge): Adjust.
6480         (cgraph_early_inlining): Re-structure.
6481         (pass_early_inline): Require SSA form.
6483 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6484             Julian Brown  <julian@codesourcery.com>
6485             Mark Shinwell  <shinwell@codesourcery.com>
6487         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6488         LO_REGS only for Thumb-1.
6489         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6490         be used in short instructions when optimising for size on Thumb-2.
6492 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6494         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6495         associated with user returns to be preserved.
6497 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6499         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6500         symbol_queue_size, DBXOUT_DECR_NESTING,
6501         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6502         if XCOFF_DEBUGGING_INFO.
6504 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6506         * config/i386/i386.md (attribute isa): New.
6507         (attribute enabled): New.
6508         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6509         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6510         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6511         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6512         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6513         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6514         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6515         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6517         * config/i386/sse.md (VF): New mode iterator.
6518         (VF1): Ditto.
6519         (VF2): Ditto.
6520         (VF_128): Ditto.
6521         (SSEMODEF4): Remove.
6522         (attribute sse): Handle V8SF and V4DF modes.
6523         (<absneg:code><mode>2): Use VF mode iterator.
6524         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6525         mode iterator.
6526         (<plusminus_insn><mode>3): Use VF mode iterator.
6527         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6528         Use VF mode iterator.
6529         (<sse>_vm<plusminus_insn><mode>3): Merge with
6530         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6531         (mul<mode>3): Use VF mode iterator.
6532         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6533         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6534         mode iterator.
6535         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6536         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6537         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6538         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6539         mode iterator.
6540         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6541         Use VF1 mode iterator.
6542         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6543         (sqrt<VF2:mode>2): New expander.
6544         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6545         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6546         and sqrtv2df2.  Use VF mode iterator.
6547         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6548         mode iterator.
6549         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6550         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6551         Use VF1 mode iterator.
6552         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6553         (<smaxmin:code><mode>3): Use VF mode iterator.
6554         (*<smaxmin:code><mode>3_finite): Merge with
6555         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6556         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6557         (<sse>_vm<smaxmin:code><mode>2): Merge with
6558         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6559         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6560         mode iterator.
6561         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
6562         mode iterator.
6563         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6564         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6565         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6566         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6567         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
6568         VF mode iterator.
6569         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6570         Use VF_128 mode iterator.
6571         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
6572         mode iterator.
6573         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
6574         VF_128 mode iterator.
6575         (vcond<mode>): Use VF mode iterator.
6576         * config/i386/predicates.md (sse_comparison_operator): Merge with
6577         avx_comparison_float_operator.  Do not declare as special_predicate.
6578         * config/i386/i386.c (struct builtin_description): Update for renamed
6579         compare patterns.
6580         (ix86_expand_args_builtin): Ditto.
6581         (ix86_expand_sse_compare_mask): Ditto.
6583 2011-04-06  Richard Guenther  <rguenther@suse.de>
6585         * tree-inline.c (estimate_num_insns): For calls simply account
6586         for all passed arguments and a used return value.
6588 2011-04-06  Richard Guenther  <rguenther@suse.de>
6590         PR tree-optimization/47663
6591         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6592         call_stmt_time fields.
6593         (cgraph_edge_inlinable_p): Declare.
6594         (cgraph_edge_recursive_p): New inline function.
6595         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6596         (cgraph_clone_edge): Copy it.
6597         * ipa-inline.c (cgraph_estimate_edge_time): New function.
6598         Account for call stmt time.
6599         (cgraph_estimate_time_after_inlining): Take edge argument.
6600         (cgraph_estimate_edge_growth): Account call stmt size.
6601         (cgraph_estimate_size_after_inlining): Take edge argument.
6602         (cgraph_mark_inline_edge): Adjust.
6603         (cgraph_check_inline_limits): Likewise.
6604         (cgraph_recursive_inlining_p): Remove.
6605         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6606         (cgraph_decide_recursive_inlining): Take edge argument and
6607         adjust.
6608         (cgraph_decide_inlining_of_small_functions): Do not avoid
6609         diags for recursive inlining here.
6610         (cgraph_flatten): Adjust.
6611         (cgraph_decide_inlining_incrementally): Likewise.
6612         (estimate_function_body_sizes): Remove call cost handling.
6613         (compute_inline_parameters): Initialize caller edge call costs.
6614         (cgraph_estimate_edge_growth): New function.
6615         (cgraph_estimate_growth): Use it.
6616         (cgraph_edge_badness): Likewise.
6617         (cgraph_check_inline_limits): Take an edge argument.
6618         (cgraph_decide_inlining_of_small_functions): Adjust.
6619         (cgraph_decide_inlining): Likewise.
6620         * tree-inline.c (estimate_num_insns): Only account for call
6621         return value if it is used.
6622         (expand_call_inline): Avoid diagnostics on recursive inline
6623         functions here.
6624         * lto-cgraph.c (lto_output_edge): Output edge call costs.
6625         (input_edge): Input edge call costs.
6627 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6629         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6631 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
6633         * doc/invoke.texi (Spec Files): Fix typo.
6635 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6637         * profile.c (branch_prob): Move declaration of local variable.  Remove
6638         obsolete ??? comment.  Expand the location explicitly instead of using
6639         the LOCATION_FILE and LOCATION_LINE macros.
6641 2011-04-06  Wei Guozhi  <carrot@google.com>
6643         PR target/47855
6644         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6645         (arm_cond_branch): Likewise.
6646         (arm_cond_branch_reversed): Likewise.
6647         (arm_jump): Likewise.
6648         (push_multi): Likewise.
6649         * config/arm/constraints.md (Py): New constraint.
6651 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6653         PR bootstrap/48471
6654         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6655         Move these...
6656         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6657         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6658         #ifdef DBX_DEBUGGING_INFO.
6660 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
6662         PR bootstrap/48403
6663         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6664         if old and new states differ.
6666 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6668         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6669         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6670         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6671         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6672         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6673         mcfv4e): Use Alias.
6674         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6675         ColdFire options to -mcpu= options.
6677 2011-04-05  Jeff Law  <law@redhat.com>
6679         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6680         check if BB is a successor of LOOP->header and return
6681         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6683 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6685         * cprop.c (struct reg_use): Remove.
6686         (reg_use_table): Make an array of RTX.
6687         (find_used_regs, constprop_register, local_cprop_pass,
6688         bypass_block): Simplify users of reg_use_table.
6689         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
6690         on one of the uses found by find_used_regs.
6692 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6694         PR bootstrap/48469
6695         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6696         declaration.
6698 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6700         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6701         as an rtx.
6702         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6704 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
6706         PR middle-end/48441
6707         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6709 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6711         * combine.c: Include obstack.h.
6712         (struct insn_link): Define.
6713         (uid_log_links): Adjust type.
6714         (FOR_EACH_LOG_LINK): New macro.
6715         (insn_link_obstack): Declare.
6716         (alloc_insn_link): Define.
6717         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
6718         type of link variables.
6719         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6720         (try_combine, record_promoted_values, distribute_notes): Likewise.
6721         (distribute_links): Likewise.  Tweak prototype.
6722         (clear_log_links): Delete.
6723         (adjust_for_new_dest): Call alloc_insn_link.
6724         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6726 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6728         * gcse.c (modify_mem_list): Convert to an array of VECs.
6729         (canon_modify_mem_list, compute_transp): Tweak formatting.
6730         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
6731         (load_killed_in_block_p): Likewise.
6732         (record_last_mem_set_info): Likewise.
6733         (clear_modify_mem_tables): Likewise.
6735 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6737         PR middle-end/48461
6738         * function.c (emit_use_return_register_into_block): Only define if
6739         HAVE_return.
6741 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
6743         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6745 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
6747         * config/rx/rx-opts.h: New.
6748         * config/rx/rx.c (rx_cpu_type): Remove.
6749         (rx_handle_option): Don't assert that global structures are in
6750         use.  Access variables via opts pointer.  Defer most handling of
6751         OPT_mint_register_.  Use error_at.
6752         (rx_option_override): Handle deferred OPT_mint_register_ here.
6753         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6754         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6755         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6756         (rx_cpu_types): New Enum and EnumValue entries.
6757         (mint-register=): Use Defer and use Var accordingly.
6759 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6761         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6762         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6763         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6764         Move these...
6765         (debug_free_queue, debug_nesting, symbol_queue_index):
6766         ...and these...
6767         * dbxout.c: ...to here.  Make static.
6769 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
6771         * gcse.c (modify_pair): Define.  Define a VEC of it.
6772         (canon_modify_mem_list): Convert to an array of VECs.
6773         (free_insn_expr_list_list): Delete.
6774         (clear_modify_mem_tables): Call VEC_free instead.
6775         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6776         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6777         (canon_list_insert, compute_transp): Likewise.
6779 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6781         PR target/43920
6782         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6783         for size.
6785 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6787         PR target/43920
6788         * function.c (emit_use_return_register_into_block): New function.
6789         (thread_prologue_and_epilogue_insns): Use
6790         emit_use_return_register_into_block.
6792 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6794         PR target/43920
6795         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6796         insn.
6798 2011-04-05  Tom de Vries  <tom@codesourcery.com>
6800         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6802 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
6804         * config/arm/arm.md (define_constants for unspec): Replace with
6805         define_c_enum.
6806         (define_constants for unspecv): Replace with define_c_enum.
6807         * config/arm/neon.md (define_constants for unspec): Replace with
6808         define_c_enum.
6810 2011-04-04  Richard Henderson  <rth@redhat.com>
6812         PR bootstrap/48400
6813         * dwarf2out.c (output_line_info): Always emit line info from
6814         at least one section.
6815         (dwarf2out_init): Create text_section_line_info here ...
6816         (set_cur_line_info_table): ... not here.
6818 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
6820         PR target/48380
6821         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6822         not called.
6824         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6826 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
6828         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6829         (expr_equiv_p): Remove.
6830         (insert_set_in_table): Look at <dest, src> pair instead of expr.
6831         (hash_scan_set): Update call to insert_set_in_table.
6832         (dump_hash_table): Dump <dest, src> pair.
6833         (lookup_set): Simplify.  Lookup <dest, src> pair.
6834         (compute_transp): Remove, fold heavily simplified code into...
6835         (compute_local_properties): ...here.  Expect COMP and TRANSP
6836         unconditionally.
6837         (find_avail_set): Take set directly from struct expr.
6838         (find_bypass-set): Likewise.
6839         (bypass_block): Likewise.
6840         (cprop_insn): Likewise.  Remove redundant INSN_P test.
6842         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6843         checks on form of COND from find_implicit_sets to here.
6844         (find_implicit_sets): Cleanup control flow. Split critical edges
6845         if it exposes implicit sets.  Allocate/resize implicit_sets as
6846         necessary.
6847         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6848         changed something.  Run df_analyze after find_implicit_sets if any
6849         edges were split.  Do not allocate implicit_sets here.
6851         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6852         (gcse_obstack): Renamed to cprop_obstack.
6853         (GNEW, GNEWVEC, GNEWVAR): Remove.
6854         (gmalloc): Remove.
6855         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6856         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6857         (gcse_alloc): Likewise, and rename to cprop_alloc.
6858         (alloc_gcse_men, free_gcse_mem): Remove.
6859         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6860         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6861         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6863         * cprop.c (oprs_not_set_p): Remove.
6864         (mark_set, mark_clobber): Remove.
6865         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6866         (reg_not_set_p): New function.
6867         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6868         (cprop_insn): Likewise.
6869         (cprop_jump): Use FOR_EACH_EDGE.
6871 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
6873         PR bootstrap/48403
6874         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6875         (rank_for_schedule): Use scheduled_insns vector instead of
6876         last_scheduled_insn.
6877         (ok_for_early_queue_removal): Likewise.
6878         (queue_to_ready): Search forward in nonscheduled_insns_begin if
6879         we have a dbg_cnt.
6880         (choose_ready): Likewise.
6881         (commit_schedule): Use VEC_iterate.
6882         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
6883         a dbg_cnt, use it and ensure the first insn is in the ready list.
6884         (haifa_sched_init): Allocate scheduled_insns.
6885         (sched_extend_ready_list): Don't allocate it; reserve space.
6886         (haifa_sched_finish): Free it.
6888 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6890         * optc-gen.awk: Always remove type from Variable entry before
6891         recording in var_seen.
6893 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
6895         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6896         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6897         call to tidy_fallthru_edges.
6899 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
6901         * doc/options.texi (ToLower): Document.
6902         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
6903         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6904         * opts.h (cl_option): Add cl_tolower field.
6905         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6906         arguments with lowercase strings.
6907         * config/rx/rx.opt (mcpu=): Add ToLower.
6908         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6909         argument.
6911 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6913         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6915 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
6917         * config/vax/vax.c: Include reload.h.
6919 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
6921         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6922         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6923         (sparc_preferred_reload_class): New function.
6925 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
6927         PR debug/48401
6928         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6929         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6931 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
6933         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6934         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6936 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
6938         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6939         (ASM_OUTPUT_ALIGNED_BSS): Define.
6941 2011-04-03  Michael Matz  <matz@suse.de>
6943         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6944         and next_slot members.
6945         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6946         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6947         (lto_streamer_cache_append): Declare.
6948         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6949         unsigned index, remove offset parameter, ensure that we append
6950         or update existing entries.
6951         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6952         parameter, update next_slot for append.
6953         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6954         parameter.
6955         (lto_streamer_cache_insert_at): Likewise.
6956         (lto_streamer_cache_append): New function.
6957         (lto_streamer_cache_lookup): Use unsigned index.
6958         (lto_streamer_cache_get): Likewise.
6959         (lto_record_common_node): Don't test tree_node_can_be_shared.
6960         (preload_common_node): Adjust call to lto_streamer_cache_insert.
6961         (lto_streamer_cache_delete): Don't free offsets member.
6962         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6963         (lto_output_string_with_length): Use lto_output_data_stream.
6964         (lto_output_tree_header): Remove ix parameter, don't write it.
6965         (lto_output_builtin_tree): Likewise.
6966         (lto_write_tree): Adjust callers to above, don't track and write
6967         offset, write unsigned index.
6968         (output_unreferenced_globals): Don't emit all global vars.
6969         (write_global_references): Use unsigned indices.
6970         (lto_output_decl_state_refs): Likewise.
6971         (write_symbol): Likewise.
6972         * lto-streamer-in.c (lto_input_chain): Move earlier.
6973         (input_function): Use unsigned index.
6974         (input_alias_pairs): Don't read and then ignore all global vars.
6975         (lto_materialize_tree): Remove ix_p parameter, don't read index,
6976         don't pass it back, use lto_streamer_cache_append.
6977         (lto_register_var_decl_in_symtab): Use unsigned index.
6978         (lto_register_function_decl_in_symtab): Likewise.
6979         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6980         index.
6981         (lto_get_builtin_tree): Don't read index, use
6982         lto_streamer_cache_append.
6983         (lto_read_tree): Adjust call to lto_materialize_tree.
6985         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6986         don't use function calls in arguments to MIN.
6988         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6989         twice.
6991         * gimple.c (gimple_type_leader_entry): Mark deletable.
6993 2011-04-03  Alan Modra  <amodra@gmail.com>
6995         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6997 2011-04-03  Michael Matz  <matz@suse.de>
6999         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7000         an integer.
7001         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7003 2011-04-03  Michael Matz  <matz@suse.de>
7005         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7006         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7007         without function context.
7008         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7009         current_function_decl and cfun.
7011 2011-04-03  Michael Matz  <matz@suse.de>
7013         * tree.c (decl_init_priority_insert): Don't create entry for
7014         default priority.
7015         (decl_fini_priority_insert): Ditto.
7016         (fields_compatible_p, find_compatible_field): Remove.
7017         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7018         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7020 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7022         * combine.c (try_combine): Remove useless local variable.
7024 2011-04-03  Richard Guenther  <rguenther@suse.de>
7025             Ira Rosen  <ira.rosen@linaro.org>
7027         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7028         non-variable offsets and compare the remaining bases of the two
7029         accesses instead of looking for exact same data-ref.
7031 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7033         PR target/48416
7034         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7036         * i386.c (ix86_is_msabi_thiscall): New helper function.
7037         (ix86_is_type_thiscall): New helper function.
7038         (ix86_comp_type_attributes): Handle thiscall for method-functions
7039         special.
7040         (init_cumulative_args): Likewise.
7041         (find_drap_reg): Likewise.
7042         (ix86_static_chain): Likewise.
7043         (x86_this_parameter): Likewise.
7044         (x86_output_mi_thunk): Likewise.
7046 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7047             Nicolas Setton  <setton@adacore.com>
7048             Eric Botcazou  <ebotcazou@adacore.com>
7050         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7051         (add_gnat_descriptive_type_attribute): New function.
7052         (gen_array_type_die): Call it.
7053         (gen_enumeration_type_die): Likewise.
7054         (gen_struct_or_union_type_die): Likewise.
7055         (modified_type_die): Likewise.
7056         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7057         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7058         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7060 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7062         PR bootstrap/48148
7063         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7064         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7066         Revert:
7067         2011-03-17  Richard Guenther  <rguenther@suse.de>
7069         PR bootstrap/48148
7070         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7071         origin for decls in other ltrans units.
7072         (input_varpool_node): Likewise.
7074 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7076         PR middle-end/48335
7077         * expr.c (expand_assignment): Handle all possibilities
7078         if TO_RTX is CONCAT.
7079         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7080         (store_split_bit_field): If SUBREG_REG (op0) or
7081         op0 itself has smaller mode than word, return it
7082         for offset 0 and const0_rtx for out-of-bounds stores.
7083         If word is const0_rtx, skip it.
7085 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7087         * config/h8300/h8300.c (print_operand_address): Rename to...
7088         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7089         Call h8300_print_operand and h8300_print_operand_address instead of
7090         print_operand and print_operand_address. Declare.
7091         (print_operand): Renake to...
7092         (h8300_print_operand): ...this. Make static. Adjust comments.
7093         Call h8300_print_operand instead of print_operand. Declare.
7094         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7095         (h8300_register_move_cost): Likewise.
7096         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7097         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7098         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7099         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7100         * config/h8300/h8300-protos.h (print_operand): Delete.
7101         (print_operand_address): Delete.
7103 2011-04-01  Richard Henderson  <rth@redhat.com>
7105         PR 48400
7106         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7107         in strict mode before dwarf4.  Re-order tests to early out
7108         before switching sections.
7110 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7112         * config/h8300/constraints.md: New file.
7113         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7114         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7115         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7116         * config/h8300/predicates.md (bit_operand): Likewise.
7117         (incdec_operand): Use satisfies_constraint_M and
7118         satisfies_constraint_O.  Don't use C code block.
7119         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7120         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7121         (compute_mov_length): Use satisfies_constraint_G.
7122         (fix_bit_operand): Use satisfies_constraint_U.
7123         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7124         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7125         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7126         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7127         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7128         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7129         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7130         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7131         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7132         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7133         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7134         (EXTRA_MEMORY_CONSTRAINT): Delete.
7136 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7137             Michael Meissner  <meissner@linux.vnet.ibm.com>
7139         PR target/48262
7140         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7141         operands, as per the specifications.
7143         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7144         (vec_extract_evenv4sf): Ditto.
7145         (vec_extract_evenv8hi): Ditto.
7146         (vec_extract_evenv16qi): Ditto.
7147         (vec_extract_oddv4si): Ditto.
7149 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7151         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7152         high_pc attribute if the CU has no associated code. Only output
7153         DW_AT_entry_pc for CU if not generating strict dwarf and
7154         dwarf_version < 4.
7156 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7158         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7159         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7160         out of ...
7161         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7162         * final.c (final_start_function): Call the new function rather
7163         than using a NULL argument for dwarf2out_frame_debug.
7165         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7166         that contains the prologue.
7168         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7169         changed.  Print it in debugging output.
7171         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7173         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7174         Split most of the code into...
7175         (begin_move_insn): ... here.  New function.
7176         (ebb_sched_info): Add a pointer to it.
7177         * haifa-sched.c (scheduled_insns): New static variable.
7178         (sched_extend_ready_list): Allocate it.
7179         (schedule_block): Use it to record the order of scheduled insns.
7180         Perform RTL changes to move insns only after all scheduling
7181         decisions have been made.
7182         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7183         begin_move_insn field.
7184         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7185         * sched-int.h (struct haifa_sched_info): Remove second argument
7186         from begin_schedule_ready hook.  Add new member begin_move_insn.
7187         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7188         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7190         * haifa-sched.c (prune_ready_list): New function, broken out of
7191         schedule_block.
7192         (schedule_block): Use it.
7194 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7196         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7198 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7200         * config.gcc (*-*-mingw*): Allow as option the
7201         posix threading model.
7202         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7203         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7204         definition.
7205         (CPP_SPEC): Add pthread/no-pthread handling.
7206         (LIB_SPEC): Likewise.
7207         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7208         (LIB_SPEC): Likewise.
7209         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7210         flag to pass -pthread option for shared libgcc build.
7211         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7212         for shared libgcc build.
7213         * config/i386/t-mingw-pthread: New file.
7214         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7215         New define to enable use of library pthread by default.
7216         * config/i386/mingw.opt (pthread): New driver option.
7217         (no-pthread): New driver option.
7218         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7219         * config/i386/mingw-w64.opt: Likewise.
7221 2011-04-01  Gary Funck  <gary@intrepid.com>
7223         * c-decl.c (grokdeclarator): Fix formatting.
7225 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7227         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7228         instead of n_operands.
7229         (set_storage_via_setmem): Likewise.
7230         * optabs.c (maybe_gen_insn): Likewise.
7231         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7232         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7233         (mips_expand_builtin_direct): Likewise.
7234         * config/spu/spu.c (expand_builtin_args): Likewise.
7236 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7238         * recog.h (insn_data_d): Add n_generator_args.
7239         * genoutput.c (data): Likewise.
7240         (output_insn_data): Print it.
7241         (max_opno, num_dups): Delete.
7242         (scan_operands): Just fill in "d->operand[...]".
7243         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7245 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7247         * gensupport.h (pattern_stats): New structure.
7248         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7249         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7250         (max_operand_1, max_operand_vec): Delete.
7251         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7253 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7255         * emit-rtl.c (emit_pattern_after_setloc): New function.
7256         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7257         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7258         (emit_pattern_after): New function.
7259         (emit_insn_after, emit_jump_insn_after): Call it.
7260         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7261         (emit_pattern_before_setloc): New function.
7262         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7263         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7264         Likewise.
7265         (emit_pattern_before): New function.
7266         (emit_insn_before, emit_jump_insn_before): Call it.
7267         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7269 2011-03-31  Richard Henderson  <rth@redhat.com>
7271         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7272         (dw_separate_line_info_entry): Remove.
7273         (enum dw_line_info_opcode): New.
7274         (dw_line_info_entry): Use it.
7275         (dw_line_info_table, dw_line_info_table_p): New.
7276         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7277         (line_info_table, line_info_label_num): Remove.
7278         (line_info_table_in_use): Remove.
7279         (separate_line_info_table): Remove.
7280         (separate_line_info_table_allocated): Remove.
7281         (separate_line_info_table_in_use): Remove.
7282         (LINE_INFO_TABLE_INCREMENT): Remove.
7283         (line_info_label_num): New.
7284         (cur_line_info_table): New.
7285         (text_section_line_info, cold_text_section_line_info): New.
7286         (separate_line_info): New.
7287         (SEPARATE_LINE_CODE_LABEL): Remove.
7288         (print_dwarf_line_table): Remove.
7289         (debug_dwarf): Don't dump it.
7290         (output_one_line_info_table): New.
7291         (output_line_info): Use it.
7292         (new_line_info_table): New.
7293         (set_cur_line_info_table): New.
7294         (dwarf2out_switch_text_section): Use it.
7295         (dwarf2out_begin_function): Likewise.
7296         (push_dw_line_info_entry): New.
7297         (dwarf2out_source_line): Rewrite for new line info tables.
7298         (dwarf2out_init): Remove dead initailizations.
7300 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7302         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7303         various flags.
7304         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7305         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7306         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7307         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7308         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7309         * opt-functions.awk (flag_init, switch_bit_fields): New.
7310         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7311         generate CL_MISSING_OK or CL_SAVE.
7312         * optc-gen.awk: Update to generate bit-field output as well as
7313         flags field.
7314         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7315         bit-field instead of CL_REJECT_DRIVER flag.
7316         * opts-common.c (generate_canonical_option,
7317         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7318         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7319         instead of CL_REJECT_NEGATIVE flag.
7320         * toplev.c (print_switch_values): Use cl_report bit-field instead
7321         of CL_REPORT flag.
7323 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7325         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7326         a zero minimum index only if it is redundant.
7328 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7330         PR rtl-optimization/48381
7331         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7332         instead of ira_class_hard_reg_index for calculating conflicting
7333         hard registers.
7335 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7337         * cprop.c: Clean up hash table building.
7338         (reg_avail_info): Remove.
7339         (oprs_available_p): Remove.
7340         (record_last_reg_set_info): Remove.
7341         (record_last_set_info): Remove.
7342         (reg_available_p): New function.
7343         (gcse_constant_p): Do not treat unfolded conditions as constants.
7344         (make_set_regs_unavailable): New function.
7345         (hash_scan_set): Simplify with new reg_available_p.
7346         (compute_hash_table_work): Traverse insns stream only once.
7347         Do not compute reg_avail_info. Traverse insns in reverse order.
7348         Record implicit sets after recording explicit sets from the block.
7350 2011-03-31  Michael Matz  <matz@suse.de>
7352         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7354 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7356         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7357         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7358         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7359         (h8300_mode_dependent_address_p): New function.
7360         (h8300_get_index): Make static.
7362 2011-03-31  Jeff Law  <law@redhat.com>
7364         * reload1.c (elimination_effects): Fix typo in recent change.
7366         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7367         typo potentially leading to null pointer dereference.
7369         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7370         (setup_save_areas): Corresponding changes to avoid useless
7371         assignments.
7373         * jump.c (reversed_comparison_code_parts): Avoid successive return
7374         statements when REVERSE_CONDITION is defined.
7376         * expr.c (expand_assignment): Avoid useless assignments.
7377         (expand_expr_real_1): Likewise.
7378         (expand_expr_real_2): Avoid useless statements.
7380         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7382         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7384         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7385         statements.
7387         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7389 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7391         PR target/47109
7392         * doc/tm.texi.in (TARGET_VERSION): Remove.
7393         * doc/tm.texi: Regenerate.
7394         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7395         * collect2.c (main): Don't use TARGET_VERSION.
7396         * mips-tdump.c (main): Don't use TARGET_VERSION.
7397         * mips-tfile.c (main): Don't use TARGET_VERSION.
7398         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7399         * config/rs6000/vxworksae.h: Remove.
7400         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7401         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7402         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7403         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7404         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7405         * config/arm/arm.h (TARGET_VERSION): Remove.
7406         * config/arm/coff.h (TARGET_VERSION): Remove.
7407         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7408         * config/arm/elf.h (TARGET_VERSION): Remove.
7409         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7410         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7411         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7412         * config/arm/pe.h (TARGET_VERSION): Remove.
7413         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7414         * config/arm/semi.h (TARGET_VERSION): Remove.
7415         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7416         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7417         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7418         * config/avr/avr.h (TARGET_VERSION): Remove.
7419         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7420         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7421         * config/frv/frv.h (TARGET_VERSION): Remove.
7422         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7423         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7424         * config/i386/darwin.h (TARGET_VERSION): Remove.
7425         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7426         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7427         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7428         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7429         * config/i386/gnu.h (TARGET_VERSION): Remove.
7430         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7431         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7432         * config/i386/linux.h (TARGET_VERSION): Remove.
7433         * config/i386/linux64.h (TARGET_VERSION): Remove.
7434         * config/i386/lynx.h (TARGET_VERSION): Remove.
7435         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7436         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7437         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7438         * config/i386/netware.h (TARGET_VERSION): Remove.
7439         * config/i386/nto.h (TARGET_VERSION): Remove.
7440         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7441         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7442         * config/ia64/elf.h (TARGET_VERSION): Remove.
7443         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7444         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7445         * config/ia64/linux.h (TARGET_VERSION): Remove.
7446         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7447         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7448         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7449         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7450         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7451         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7452         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7453         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7454         * config/m68k/linux.h (TARGET_VERSION): Remove.
7455         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7456         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7457         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7458         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7459         * config/mep/mep.h (TARGET_VERSION): Remove.
7460         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7461         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7462         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7463         * config/mips/linux.h (TARGET_VERSION): Remove.
7464         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7465         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7466         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7467         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7468         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7469         * config/pa/pa.h (TARGET_VERSION): Remove.
7470         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7471         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7472         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7473         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7474         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7475         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7476         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7477         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7478         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7479         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7480         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7481         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7482         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7483         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7484         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7485         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7486         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7487         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7488         * config/s390/linux.h (TARGET_VERSION): Remove.
7489         * config/s390/s390.h (TARGET_VERSION): Remove.
7490         * config/s390/tpf.h (TARGET_VERSION): Remove.
7491         * config/score/score.h (TARGET_VERSION): Remove.
7492         * config/sh/linux.h (TARGET_VERSION): Remove.
7493         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7494         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7495         * config/sh/sh.h (TARGET_VERSION): Remove.
7496         * config/sh/sh64.h (TARGET_VERSION): Remove.
7497         * config/sh/superh.h (TARGET_VERSION): Remove.
7498         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7499         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7500         * config/sparc/linux.h (TARGET_VERSION): Remove.
7501         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7502         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7503         TARGET_NAME32, TARGET_NAME): Remove.
7504         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7505         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7506         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7507         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7508         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7509         * config/spu/spu.h (TARGET_VERSION): Remove.
7510         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7511         * config/v850/v850.h (TARGET_VERSION): Remove.
7512         * config/vax/linux.h (TARGET_VERSION): Remove.
7513         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7514         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7515         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7517 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7519         PR target/48142
7520         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7521         frame-related from frame-unrelated adjustments to the stack pointer.
7523 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7525         * common.opt (fdebug-types-section): Move earlier.
7526         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7528 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7530         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7531         var.
7533 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7535         * tree.h (CASE_CHAIN): Define.
7536         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7537         (gimple_redirect_edge_and_branch): Likewise.
7539 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7541         PR middle-end/48367
7542         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7543         calculation.
7545 2011-03-30  Jeff Law  <law@redhat.com>
7547         * PR bootstrap/48371
7548         * reload1.c (reload): Fix botch in last change.
7550         * reload.h (struct reload): Fix typo introduced in last change.
7552 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7554         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7555         Undocumented.  Remove help text.
7556         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7557         -mhard-float.
7559 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7561         * doc/options.texi (NegativeAlias): Document.
7562         (Alias): Mention NegativeAlias.
7563         * opt-functions.awk: Handle NegativeAlias.
7564         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7565         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7566         * opts.h (CL_NEGATIVE_ALIAS): Define.
7567         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7568         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7569         OPT_mspe_.
7570         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7571         Alias entries.
7572         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7573         mno-spe and mno-isel instead of mspe=no and -misel=no.
7575 2011-03-29  Mark Wielaard  <mjw@redhat.com>
7577         * common.opt (fdebug-types-section): New flag.
7578         * doc/invoke.texi: Document new -fno-debug-types-section flag.
7579         * dwarf2out.c (use_debug_types): New define.
7580         (struct die_struct): Mark die_id with GTY desc use_debug_types.
7581         (print_die): Guard output of type unit signatures using
7582         use_debug_types.
7583         (build_abbrev_table): Replace assert of dwarf_version >= 4
7584         with assert on use_debug_types.
7585         (size_of_die): Likewise.
7586         (unmark_dies): Likewise.
7587         (value_format): Decide AT_ref_external form on use_debug_types.
7588         (output_die): Replace dwarf_version version check guard with
7589         use_debug_types where appropriate.
7590         (modified_type_die): Likewise.
7591         (gen_reference_type_die): Likewise.
7592         (dwarf2out_start_source_file): Likewise.
7593         (dwarf2out_end_source_file): Likewise.
7594         (prune_unused_types_walk_attribs): Likewise.
7595         (dwarf2out_finish): Likewise.
7597 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7599         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7601 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7603         PR rtl-optimization/48332
7604         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7605         mode of input operand N and modeN to its actual mode.
7607 2011-03-30  Jeff Law  <law@redhat.com>
7609         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7610         define accessor macro.
7611         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7612         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7613         (reg_equiv_init): Likewise.
7614         (reg_equivs_size): New variable.
7615         (reg_equiv_init_size): Remove.
7616         (allocate_initial_values): Move prototype to here from....
7617         * integrate.h (allocate_initial_values): Remove prototype.
7618         * integrate.c: Include reload.h.
7619         (allocate_initial_values): Corresponding changes.
7620         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7621         (fix_reg_equiv_init, no_equiv): Corresponding changes.
7622         (update_equiv_regs): Corresponding changes.
7623         (ira): Corresponding changes.
7624         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7625         (push_secondary_reload): Corresponding changes.
7626         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7627         (make_memloc, find_reloads_address): Corresponding changes.
7628         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7629         (find_reloads_address_1): Corresponding changes.
7630         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7631         (refers_to_regno_for_reload_p): Corresponding changes.
7632         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7633         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7634         * reload1.c: Include ggc.h.
7635         (grow_reg_equivs): New function.
7636         (replace_pseudos_in, reload): Corresponding changes.
7637         (calculate_needs_all_insns, alter_regs): Corresponding changes.
7638         (eliminate_regs_1, elimination_effects): Corresponding changes.
7639         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7640         (delete_output_reload): Likewise.
7641         * caller-save.c (mark_referenced_regs): Corresponding changes.
7642         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7643         * frv/predicates.md (frv_load_operand): Corresponding changes.
7644         * microblaze/microblaze.c (double_memory_operand): Corresponding
7645         changes.
7646         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7647         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7648         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7649         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7650         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7651         changes.
7652         * pa/pa.c (emit_move_sequence): Corresponding changes.
7653         * vax/vax.c (nonindexed_address_p): Corresponding changes.
7655 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7657         PR target/47551
7658         * config/arm/arm.c (coproc_secondary_reload_class): Handle
7659         structure modes.  Don't check neon_vector_mem_operand for
7660         vector or structure modes.
7662 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
7663             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7665         PR target/43590
7666         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7667         operand 1 and reshuffle the operands to match.
7668         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7670 2011-03-30  Christian Schüler  <cschueler@gmx.de>
7672         PR driver/48208
7673         * config/c.opt (F): Added 'Driver' to -F option.
7675         PR driver/48260
7676         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7677           handler function.
7678         * config/darwin.opt: Added '-arch' option.
7680 2011-03-30  Nick Clifton  <nickc@redhat.com>
7682         * config/rx/rx.md: Add peepholes and patterns to combine
7683         extending loads and simple arithmetic instructions.
7684         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7685         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7686         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7687         modes to use pre-decrement and post-increment addressing.
7688         (rx_is_restricted_memory_address): Add range checking of REG+INT
7689         addresses.
7690         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
7691         (rx_memory_move_cost): Adjust cost of stores.
7692         (rx_adjust_insn_length): New function.
7694 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
7696         PR c/48305
7697         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7698         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7699         matching arg00/arg01 types.
7701 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
7703         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7704         last_location to UNKNOWN_LOCATION.
7706 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7708         PR target/48349
7709         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7710         FLOAT_SSE_REGS.
7712 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7713             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7715         PR bootstrap/48337
7716         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7717         Init(PROCESSOR_V7).
7718         (sparc_cpu): Likewise.
7719         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7720         PROCESSOR_V7.
7722 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7724         PR target/48336
7725         PR middle-end/48342
7726         PR rtl-optimization/48345
7727         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7728         hard regs for given mode from profitable regs when doing secondary
7729         allocation.
7731 2011-03-29  Jeff Law  <law@redhat.com>
7733         PR bootstrap/48327
7734         * tree-ssa-threadupdate.c (struct redirection_data): Remove
7735         do_not_duplicate field.
7736         (lookup_redirection_data): Corresponding changes.
7737         (create_duplicates): Always create a template block.
7738         (redirect_edges): Remove code which reused the original block
7739         when it was going to become unreachable code.
7740         (thread_block): Don't set do_not_duplicate field.
7742 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
7744         * lto-opts.c (register_user_option_p, lto_register_user_option):
7745         Make type argument unsigned.
7746         * lto-streamer.h (lto_register_user_option): Make type argument
7747         unsigned.
7748         * opth-gen.awk: Make CL_* macros unsigned.
7749         * opts-common.c (find_opt): Make lang_mask argument unsigned.
7750         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7751         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7752         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7753         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7754         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7755         (find_opt): Make lang_mask argument unsigned.
7757 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7759         PR rtl-optimization/48331
7760         PR rtl-optimization/48334
7761         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7762         for any used algorithm.
7764 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
7766         * ira-conflicts.c (build_object_conflicts): Add unused attribute
7767         to parent_max.
7769 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
7771         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7772         (alpha_option_override): Don't set alpha_sr_alias_set.
7773         (emit_frame_store_1): Use gen_frame_mem rather than calling
7774         set_mem_alias_set.
7775         (alpha_expand_epilogue): Ditto.
7777 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
7779         PR tree-optimization/48290
7780         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7781         vectorization, check that relevant phis in the basic block after
7782         the inner loop are really inner loop's exit phis.
7784 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
7786         PR debug/48190
7787         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7788         (cached_dw_loc_list_def): New structure.
7789         (cached_dw_loc_list): New typedef.
7790         (cached_dw_loc_list_table): New variable.
7791         (cached_dw_loc_list_table_hash): New function.
7792         (cached_dw_loc_list_table_eq): Likewise.
7793         (add_location_or_const_value_attribute): Take a bool cache_p.
7794         Cache the list when the parameter is true.
7795         (gen_formal_parameter_die): Update caller.
7796         (gen_variable_die): Likewise.
7797         (dwarf2out_finish): Likewise.
7798         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7799         while generating debug info for the decl.
7800         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7801         (dwarf2out_init): Initialize cached_dw_loc_list_table.
7802         (resolve_addr): Cache the result of resolving a chain of
7803         location lists.
7805 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
7807         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7808         conflict object hard regset nodes have intersecting hard reg sets.
7810         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7811         after regstat_init_n_sets_and_refs.
7813         * ira.c: Add more comments at the top.
7814         (setup_stack_reg_pressure_class, setup_pressure_classes):
7815         Add comments how we compute the register pressure classes.
7816         (setup_allocno_and_important_classes): Add more comments.
7817         (setup_class_translate_array, reorder_important_classes)
7818         (setup_reg_class_relations): Add comments.
7820         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
7821         start of the file.
7823         * ira-color.c: Add 2011 to the Copyright line.
7824         (assign_hard_reg):  Add more comments.
7825         (improve_allocation): Ditto.
7827         * ira-costs.c: Add 2011 to the Copyright line.
7828         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7829         comments.
7830         (setup_regno_cost_classes_by_mode): Ditto.
7832         Initial patches from ira-improv branch:
7834         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7836         * ira-build.c (ira_create_object): Remove initialization of
7837         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
7838         (ira_create_allocno): Remove initialization of
7839         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7840         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7841         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7842         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7843         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7844         Initialize ALLOCNO_ADD_DATA.
7845         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7846         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7847         ALLOCNO_REG.
7848         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
7849         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7851         * ira.c (ira_reallocate): Remove.
7852         (setup_pressure_classes): Call
7853         ira_init_register_move_cost_if_necessary.  Use
7854         ira_register_move_cost instead of ira_get_register_move_cost.
7855         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7856         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7858         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7859         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7860         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7861         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7862         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7863         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7864         Fix formatting.
7865         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7866         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7867         (struct allocno_color_data): New.
7868         (allocno_color_data_t): New typedef.
7869         (allocno_color_data): New definition.
7870         (ALLOCNO_COLOR_DATA): New macro.
7871         (struct object_color_data): New.
7872         (object_color_data_t): New typedef.
7873         (object_color_data): New definition.
7874         (OBJECT_COLOR_DATA): New macro.
7875         (update_copy_costs, calculate_allocno_spill_cost): Call
7876         ira_init_register_move_cost_if_necessary.  Use
7877         ira_register_move_cost instead of ira_get_register_move_cost.
7878         (move_spill_restore, update_curr_costs): Ditto.
7879         (allocno_spill_priority): Make it inline.
7880         (color_pass): Allocate and free allocno_color_dat and object_color_data.
7881         (struct coalesce_data, coalesce_data_t): New.
7882         (allocno_coalesce_data): New definition.
7883         (ALLOCNO_COALESCE_DATA): New macro.
7884         (merge_allocnos, coalesced_allocno_conflict_p): Use
7885         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7886         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7887         (coalesce_allocnos): Ditto.
7888         (setup_coalesced_allocno_costs_and_nums): Ditto.
7889         (collect_spilled_coalesced_allocnos): Ditto.
7890         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7891         (setup_slot_coalesced_allocno_live_ranges): Ditto.
7892         (coalesce_spill_slots): Ditto.
7893         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
7894         free allocno_coalesce_data.
7896         * ira-conflicts.c: Fix formatting.
7897         (process_regs_for_copy): Call
7898         ira_init_register_move_cost_if_necessary.  Use
7899         ira_register_move_cost instead of ira_get_register_move_cost.
7900         (build_object_conflicts): Optimize.
7902         * ira-costs.c (record_reg_classes): Optimize.  Call
7903         ira_init_register_move_cost_if_necessary.  Use
7904         ira_register_move_cost, ira_may_move_in_cost, and
7905         ira_may_move_out_cost instead of ira_get_register_move_cost and
7906         ira_get_may_move_cost.
7907         (record_address_regs): Ditto.
7908         (scan_one_insn): Optimize.
7909         (find_costs_and_classes): Optimize.
7910         (process_bb_node_for_hard_reg_moves): Call
7911         ira_init_register_move_cost_if_necessary.  Use
7912         ira_register_move_cost instead of ira_get_register_move_cost.
7914         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7915         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7916         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7917         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7918         definitions.
7919         (ira_initiate_emit_data, ira_finish_emit_data)
7920         (create_new_allocno): New functions.
7921         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
7922         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7923         Use ira_register_move_cost instead of ira_get_register_move_cost.
7925         * ira-int.h: Fix some comments.
7926         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7927         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7928         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7929         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
7930         add_data.
7931         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
7932         bitfield after mode.  Make hard_regno a short int.  Make
7933         hard_regno short.  Remove first_coalesced_allocno and
7934         next_coalesced_allocno.  Move mem_optimized_dest_p,
7935         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7936         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
7937         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7938         temp, colorable_p.  Add new member add_data.
7939         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7940         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7941         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7942         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7943         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7944         (ALLOCNO_ADD_DATA): New macro.
7945         (ira_emit_data_t): New typedef.
7946         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
7947         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7948         from struct ira_allocno.
7949         (ALLOCNO_EMIT_DATA): New macro.
7950         (ira_allocno_emit_data, allocno_emit_reg): New.
7951         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7952         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
7953         (OBJECT_ADD_DATA): New macro.
7954         (ira_reallocate): Remove.
7955         (ira_initiate_emit_data, ira_finish_emit_data): New.
7956         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7957         (ira_init_register_move_cost_if_necessary): New.
7958         (ira_object_conflict_iter_next): Merge into
7959         ira_object_conflict_iter_cond.
7960         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
7962         * ira-live.c (process_single_reg_class_operands): Call
7963         ira_init_register_move_cost_if_necessary.  Use
7964         ira_register_move_cost instead of ira_get_register_move_cost.
7966         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
7968         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7970         * ira-costs.c: Fix formatting.
7971         (cost_classes, cost_classes_num): Remove.
7972         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7973         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7974         (cost_classes_del, cost_classes_htab): New.
7975         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7976         (initiate_regno_cost_classes, setup_cost_classes): New.
7977         (setup_regno_cost_classes_by_aclass): New.
7978         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
7979         (record_reg_classes): Use regno_cost_classes instead of
7980         cost_classes.  Move checking opposite operand up.
7981         (record_address_regs): Use regno_cost_classes
7982         instead of cost_classes.
7983         (scan_one_insn): Ditto.  Use always general register.
7984         (print_allocno_costs): Use regno_cost_classes instead of
7985         cost_classes.
7986         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
7987         (find_costs_and_classes): Set up cost classes for each registers.
7988         Use also their mode for this.  Use regno_cost_classes instead of
7989         cost_classes.
7990         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7991         cost_classes.
7992         (free_ira_costs, ira_init_costs): Don't use cost_classes.
7993         (ira_costs, ira_set_pseudo_classes): Call
7994         initiate_regno_cost_classes and finish_regno_cost_classes.
7996         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
7998         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8000         * target.def (ira_cover_classes): Remove.
8002         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8004         * doc/tm.texi.in: Ditto.
8006         * ira-conflicts.c: Remove mentioning cover classes from the file.
8007         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8008         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8010         * targhooks.c (default_ira_cover_classes): Remove.
8012         * targhooks.h (default_ira_cover_classes): Ditto.
8014         * haifa-sched.c: Remove mentioning cover classes from the file.
8015         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8016         ira_pressure_classes and ira_pressure_classes_num instead of
8017         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8018         sched_regno_pressure_class instead of sched_regno_cover_class.
8019         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8020         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8022         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8023         classes from the file.
8024         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8025         (struct object_hard_regs, struct object_hard_regs_node): New.
8026         (struct ira_object): New members profitable_hard_regs,
8027         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8028         (struct ira_allocno): Rename cover_class to aclass.  Rename
8029         cover_class_cost and updated_cover_class_cost to class_cost and
8030         updated_class_cost.  Remove splay_removed_p and
8031         left_conflict_size.  Add new members colorable_p.
8032         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8033         (ALLOCNO_COLORABLE_P): New macro.
8034         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8035         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8036         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8037         (OBJECT_...): Rename parameter C to O.
8038         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8039         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8040         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8041         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8042         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8043         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8044         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8045         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8046         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8047         x_ira_reg_class_subunion.
8048         (ira_max_memory_move_cost, ira_max_register_move_cost)
8049         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8050         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8051         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8052         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8053         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8054         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8055         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8056         (ira_tune_allocno_costs_and_cover_classes): Rename to
8057         ira_tune_allocno_costs.
8058         (ira_debug_hard_regs_forest): New.
8059         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8060         (ira_object_conflict_iter_next): Fix comments.
8061         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8062         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8063         cover_class to aclass.
8064         (ira_allocate_and_accumulate_costs): Ditto.
8065         (ira_allocate_and_set_or_copy_costs): Ditto.
8067         * opts.c (decode_options): Remove ira_cover_class check.
8069         * ira-color.c: Remove mentioning cover classes from the file.  Use
8070         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8071         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8072         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8073         (splay-tree.h): Remove include.
8074         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8075         before copy_freq_compare_func.
8076         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8077         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8078         New definitions.
8079         (hard_regs_roots, hard_regs_node_vec): Ditto.
8080         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8081         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8082         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8083         (create_new_object_hard_regs_node): Ditto.
8084         (add_new_object_hard_regs_node_to_forest): Ditto.
8085         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8086         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8087         Ditto.
8088         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8089         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8090         (remove_unused_object_hard_regs_nodes): Ditto.
8091         (enumerate_object_hard_regs_nodes): Ditto.
8092         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8093         (object_hard_regs_subnode_t): Ditto.
8094         (struct object_hard_regs_subnode): Ditto.
8095         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8096         (setup_object_hard_regs_subnode_index): Ditto.
8097         (get_object_hard_regs_subnodes_num): Ditto.
8098         (form_object_hard_regs_nodes_forest): Ditto.
8099         (finish_object_hard_regs_nodes_tree): Ditto.
8100         (finish_object_hard_regs_nodes_forest): Ditto.
8101         (allocnos_have_intersected_live_ranges_p): Rename to
8102         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8103         (pseudos_have_intersected_live_ranges_p): Rename to
8104         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8105         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8106         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8107         (update_copy_costs): Remove assert.  Skip cost update if the hard
8108         reg does not belong the class.
8109         (assign_hard_reg): Process only profitable hard regs.
8110         (uncolorable_allocnos_num): Make it scalar.
8111         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8112         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8113         and ira_reg_class_max_nregs.
8114         (bucket_allocno_compare_func): Check frequency first.
8115         (sort_bucket): Add compare function as a parameter.
8116         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8117         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8118         (push_allocno_to_stack): Rewrite for checking new allocno
8119         colorability.
8120         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8121         (push_only_colorable): Pass new parameter to sort_bucket.
8122         (push_allocno_to_spill): Remove.
8123         (allocno_spill_priority_compare): Make it inline and rewrite.
8124         (splay_tree_allocate, splay_tree_free): Remove.
8125         (allocno_spill_sort_compare): New function.
8126         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8127         build and use splay tree.  Choose first allocno in uncolorable
8128         allocno bucket to spill.  Remove setting spill cost.
8129         (all_conflicting_hard_regs): Remove.
8130         (setup_allocno_available_regs_num): Check only profitable hard
8131         regs.  Print info about hard regs nodes.
8132         (setup_allocno_left_conflicts_size): Remove.
8133         (put_allocno_into_bucket): Don't call
8134         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8135         (improve_allocation): New.
8136         (color_allocnos): Call setup_profitable_hard_regs,
8137         form_object_hard_regs_nodes_forest, improve_allocation,
8138         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8139         (print_loop_title): Use pressure classes.
8140         (color_allocnso): Ditto.
8141         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8142         and allocnos_for_spilling.
8143         (ira_sort_regnos_for_alter_reg): Don't setup members
8144         {first,next}_coalesced_allocno.
8145         (color): Remove allocating and freeing removed_splay_allocno_vec.
8146         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8147         prohibited_class_mode_regs.
8149         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8150         formatting.
8151         (update_allocno_pressure_excess_length): Use pressure classes.
8152         (inc_register_pressure, dec_register_pressure): Check for pressure
8153         class.
8154         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8155         pressure class.  Use ira_reg_class_nregs instead of
8156         ira_reg_class_max_nregs.
8157         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8158         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8159         (single_reg_class): Use ira_reg_class_nregs instead of
8160         ira_reg_class_max_nregs.
8161         (process_bb_node_lives): Use pressure classes.
8163         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8164         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8165         (change_loop): Use pressure classes.
8166         (modify_move_list): Call ira_set_allocno_class instead of
8167         ira_set_allocno_cover_class.
8169         * ira-build.c: Remove mentioning cover classes from the file.  Use
8170         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8171         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8172         ALLOCNO_UPDATED_CLASS_COST instead of
8173         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8174         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8175         (ira_create_allocno): Remove initialization of
8176         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8177         ALLOCNO_COLORABLE_P.
8178         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8179         Update conflict regs for the objects.
8180         (create_cap_allocno): Remove assert.  Don't propagate
8181         ALLOCNO_AVAILABLE_REGS_NUM.
8182         (ira_free_allocno_costs): New function.
8183         (finish_allocno): Change a part of code into call of
8184         ira_free_allocno_costs.
8185         (low_pressure_loop_node_p): Use pressure classes.
8186         (object_range_compare_func): Don't compare classes.
8187         (setup_min_max_conflict_allocno_ids): Ditto.
8189         * loop-invariant.c: Remove mentioning cover classes from the file.
8190         Use ira_pressure_classes and ira_pressure_classes_num instead of
8191         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8192         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8193         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8194         Use reg_allocno_class instead of reg_cover_class.
8195         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8196         STACK_REG_COVER_CLASS.
8197         (get_regno_cover_class): Rename to get_regno_pressure_class.
8198         (move_loop_invariants): Initialize and finalize regstat.
8200         * ira.c: Remove mentioning cover classes from the file.  Add
8201         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8202         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8203         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8204         setup_class_subset_and_memory_move_costs.
8205         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8206         (setup_cover_and_important_classes): Rename to
8207         setup_allocno_and_important_classes.
8208         (setup_class_translate_array): New.
8209         (setup_class_translate): Call it for allocno and pressure classes.
8210         (cover_class_order): Rename to allocno_class_order.
8211         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8212         of ira_class_translate.
8213         (reorder_important_classes): Set up ira_important_class_nums.
8214         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8215         (print_class_cover): Rename to print_classes.  Add parameter.
8216         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8217         Print pressure classes too.
8218         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8219         setup_reg_subclasses.
8220         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8221         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8222         (setup_prohibited_class_mode_regs): Use
8223         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8224         (clarify_prohibited_class_mode_regs): New function.
8225         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8226         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8227         (ira_init_once): Initialize them.
8228         (free_register_move_costs): Process them.
8229         (ira_init): Move calls of find_reg_classes and
8230         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8231         Call clarify_prohibited_class_mode_regs.
8232         (ira_no_alloc_reg): Remove.
8233         (too_high_register_pressure_p): Use pressure classes.
8235         * sched-deps.c: Remove mentioning cover classes from the file.
8236         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8237         ira_pressure_classes and ira_pressure_classes_num instead of
8238         ira_reg_class_cover_size and ira_reg_class_cover.
8239         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8240         sched_regno_pressure_class instead of sched_regno_cover_class.
8241         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8242         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8244         * ira.h: Add 2010 to Copyright.
8245         (ira_no_alloc_reg): Remove external.
8246         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8247         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8248         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8249         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8250         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8251         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8252         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8253         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8254         x_ira_no_alloc_regs.
8255         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8256         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8257         ira_allocno_classes_num and ira_allocno_classes.
8258         (ira_class_translate): Rename to ira_allocno_class_translate.
8259         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8260         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8261         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8262         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8263         (ira_no_alloc_regs): New.
8265         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8266         classes from the file.  Use ALLOCNO_CLASS instead of
8267         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8268         ALLOCNO_COVER_CLASS_COST.
8269         (regno_cover_class): Rename to regno_aclass.
8270         (record_reg_classes): Use ira_reg_class_subunion instead of
8271         ira_reg_class_union.
8272         (record_address_regs): Check overflow.
8273         (scan_one_insn): Ditto.
8274         (print_allocno_costs): Print total mem cost fore regional allocation.
8275         (print_pseudo_costs): Use REG_N_REFS.
8276         (find_costs_and_classes): Use classes intersected with them on the
8277         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8278         ira_reg_class_union.  Use ira_allocno_class_translate and
8279         regno_aclass instead of ira_class_translate and regno_cover_class.
8280         Modify code for finding regno_aclass.  Setup preferred classes for
8281         the next pass.
8282         (setup_allocno_cover_class_and_costs): Rename to
8283         setup_allocno_class_and_costs.  Use regno_aclass instead of
8284         regno_cover_class.  Use ira_set_allocno_class instead of
8285         ira_set_allocno_cover_class.
8286         (init_costs, finish_costs): Use regno_aclass instead of
8287         regno_cover_class.
8288         (ira_costs): Use setup_allocno_class_and_costs instead of
8289         setup_allocno_cover_class_and_costs.
8290         (ira_tune_allocno_costs_and_cover_classes): Rename to
8291         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8292         by processing objects.  Use ira_reg_class_max_nregs instead of
8293         ira_reg_class_nregs.
8295         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8297         * sched-int.h: Remove mentioning cover classes from the file.
8298         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8300         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8301         classes from the file.
8302         (struct reg_pref): Rename coverclass into allocnoclass.
8303         (reg_cover_class): Rename to reg_allocno_class.
8305         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8307         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8309         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8311         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8313         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8315         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8317         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8319         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8321         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8323         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8325         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8326         (i386_ira_cover_classes): Ditto.
8328         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8330         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8332         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8334         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8336         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8338         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8340         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8341         (mips_ira_cover_classes): Ditto.
8343         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8345         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8347         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8349         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8351         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8353         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8354         (IRA_COVER_CLASSES_VSX): Ditto.
8356         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8357         (rs6000_ira_cover_classes): Ditto.
8359         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8361         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8363         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8365         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8367         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8369         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8371         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8373         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8375         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8377         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8379 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8381         PR debug/48253
8382         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8383         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8384         dw_fde_unlikely_section_end_label, cold_in_std_section,
8385         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8386         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8387         fields.
8388         (output_fde): Use dw_fde_second_{begin,end} if second is
8389         true, otherwise dw_fde_{begin,end}.
8390         (output_call_frame_info): Test dw_fde_second_begin != NULL
8391         instead of dw_fde_switched_sections.
8392         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8393         fields, initialize new fields.  Initialize in_std_section
8394         unconditionally from the first partition.
8395         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8396         dw_fde_second_begin is non-NULL.
8397         (dwarf2out_switch_text_section): Stop initializing removed
8398         dw_fde_struct fields, initialize new fields, initialize
8399         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8400         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8401         (struct var_loc_list_def): Add last_before_switch field.
8402         (arange_table, arange_table_allocated, arange_table_in_use,
8403         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8404         (size_of_aranges): Count !in_std_section and !second_in_std_section
8405         hunks in fdes, instead of looking at arange_table_in_use.
8406         (output_aranges): Add aranges_length argument, don't call
8407         size_of_aranges here.  Instead of using aranges_table*
8408         emit ranges for fdes when !in_std_section resp.
8409         !second_in_std_section.
8410         (dw_loc_list): Break ranges crossing section switch.
8411         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8412         use dw_fde_second_end instead of dw_fde_end as end of last range.
8413         (gen_subprogram_die): Don't call add_arange.  Use
8414         dw_fde_{begin,end} for first partition and if switched
8415         section dw_fde_second_{begin,end} for the second.
8416         (var_location_switch_text_section_1,
8417         var_location_switch_text_section): New functions.
8418         (dwarf2out_begin_function): Initialize cold_text_section even
8419         when function_section () isn't text_section.
8420         (prune_unused_types): Don't walk arange_table.
8421         (dwarf2out_finish): Don't needlessly test
8422         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8423         If info_section_emitted, call size_of_aranges and if it indicates
8424         non-empty .debug_aranges, call output_aranges with the computed
8425         size.  Stop using removed dw_fde_struct fields, use
8426         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8427         for second.
8429         PR debug/48203
8430         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8431         create ENTRY_VALUE if incoming or address of incoming's MEM
8432         is a hard REG.
8433         * dwarf2out.c (mem_loc_descriptor): Don't emit
8434         DW_OP_GNU_entry_value of DW_OP_fbreg.
8435         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8436         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8437         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8438         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8439         ENTRY_VALUE_EXPs.
8440         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8441         is a REG_P or MEM_P with REG_P address, compute hash directly
8442         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8443         (preserve_only_constants): Don't clear VALUES forwaring
8444         ENTRY_VALUE to some other VALUE.
8446 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8448         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8449         instead of GEN_INT.
8451 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8453         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8454         block before expanding the statement.
8455         (expand_gimple_stmt_1): Likewise.  Set them here...
8456         (expand_gimple_stmt): ...and not here.  Tidy.
8457         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8458         unknown.
8460 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8462         * Makefile.in: New rule for cprop.o.
8463         * gcse.c: Move constant/copy propagation to cprop.c.
8464         (compute_local_properties): Only handle expression tables.
8465         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8466         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8467         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8468         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8469         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8470         compute_cprop_data, find_used_regs, try_replace_reg,
8471         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8472         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8473         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8474         find_bypass_set, reg_killed_on_edge, bypass_block,
8475         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8476         execute_rtl_cprop, pass_rtl_cprop): Move to...
8477         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8478         moved from gcse.c to here with minor cleanups in duplicated code.
8480 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8482         * config/i386/i386.c (flag_opts): Fix a typo in
8483         -mavx256-split-unaligned-store.
8485 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8487         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8488         LIBCALL_VALUE): Remove macros.
8489         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8490         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8491         (h8300_function_value, h8300_libcall_value,
8492         h8300_function_value_regno_p): New functions.
8494 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8496         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8498 2011-03-28  Jeff Law  <law@redhat.com>
8500         * tree-ssa-threadupdate.c (redirect_edges): Call
8501         create_edge_and_update_destination_phis as needed.
8502         (create_edge_and_update_destination_phis): Accept new BB argument.
8503         All callers updated.
8504         (thread_block): Do not update the profile when threading around
8505         intermediate blocks.
8506         (thread_single_edge): Likewise.
8507         (determine_bb_domination_status): If BB is not a successor of the
8508         loop header, return NONDOMINATING.
8509         (register_jump_thread): Note when we register a jump thread around
8510         an intermediate block.
8511         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8512         (thread_across_edge): Use it.
8514 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8516         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8517         when for_return is 2.
8519 2011-03-28  Jeff Law  <law@redhat.com>
8521         * var-tracking.c (canonicalize_values_mark): Delete unused
8522         lhs assignment.
8523         (canonicalize_values_star, set_variable_part): Likewise.
8524         (clobber_variable_part, delete_variable_part): Likewise.
8526 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8528         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8530 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8532         * tree-inline.c (expand_call_inline): Do not check that destination
8533         node is analyzed.
8534         (optimize_inline_calls): Assert that destination node is analyzed.
8535         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8536         not call tree_lowering_passes.
8537         * cgraph.h (cgraph_analyze_function): Declare.
8538         * cgraphunit.c (cgraph_analyze_function): Make public.
8540 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8542         * config/sparc/sparc-opts.h: New.
8543         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8544         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8545         (sparc_option_override): Store processor_type enumeration rather
8546         than string in cpu_default.  Remove name and enumeration from
8547         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8548         without using sparc_select.  Use target_flags_explicit instead of
8549         fpu_option_set.
8550         * config/sparc/sparc.h (enum processor_type): Move to
8551         sparc-opts.h.
8552         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8553         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8554         HeaderInclude entry.
8555         (mcpu=, mtune=): Use Var and Enum.
8556         (sparc_processor_type): New Enum and EnumValue entries.
8558 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8559             Iain Sandoe  <iains@gcc.gnu.org>
8561         PR target/48245
8562         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8564 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8566         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8567         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8568         Insert new statements at it in lieu of STMT.
8569         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8570         * tree-vect-stmts.c (vectorizable_store): Likewise.
8571         (vectorizable_load): Likewise.
8573 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
8575         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8576         (divtf3): Ditto.
8577         (multf3): Ditto.
8578         (subtf3): Ditto.
8580 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8582         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8583         unaligned 256bit load/store.
8584         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8585         (*avx_movdqu<avxmodesuffix>): Likewise.
8587 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8589         PR target/48288
8590         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8591         * config/pa/pa.md (iordi3): Use new predicate in expander.
8592         (iorsi3): Likewise.
8594 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
8596         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8597         FUNCTION_VALUE_REGNO_P): Remove macros.
8598         * config/mips/mips-protos.h (mips_function_value): Remove.
8599         * config/mips/mips.c (mips_function_value): Rename to...
8600         (mips_function_value_1): ... this. Make static.  Handle receiving
8601         the function type in 'fn_decl_or_type' argument.
8602         (mips_function_value, mips_libcall_value,
8603         mips_function_value_regno_p): New function.
8604         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8605         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8607 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8609         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8610         and -mavx256-split-unaligned-store.
8611         (ix86_option_override_internal): Split 32-byte AVX unaligned
8612         load/store by default.
8613         (ix86_avx256_split_vector_move_misalign): New.
8614         (ix86_expand_vector_move_misalign): Use it.
8616         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8617         -mavx256-split-unaligned-store.
8619         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8620         256bit load/store.  Generate unaligned store on misaligned memory
8621         operand.
8622         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8623         256bit load/store.
8624         (*avx_movdqu<avxmodesuffix>): Likewise.
8626         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8627         -mavx256-split-unaligned-store.
8629 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8631         PR target/38598
8632         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8633         Update commentary.
8635 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
8637         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8638         opno arguments with an expand_operand.  Use create_input_operand.
8639         (mips_prepare_builtin_target): Delete.
8640         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8641         functions.
8642         (mips_expand_builtin_direct): Use create_output_operand and
8643         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
8644         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
8645         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8647 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
8649         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8650         function.
8651         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8653 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
8655         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8656         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
8657         basic blocks and call commit_edge_insertions directly.
8658         (fixup_abnormal_edges): Move from here to...
8659         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
8660         on the edges and return whether some have actually been inserted.
8661         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8662         compensation code.
8664 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
8666         PR rtl-optimization/48144
8667         * sel-sched-ir.c (merge_history_vect): Factor out from ...
8668         (merge_expr_data): ... here.
8669         (av_set_intersect): Rename to av_set_code_motion_filter.
8670         Update all callers.  Call merge_history_vect when an expression
8671         is found in both sets.
8672         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8674 2011-03-26  Alan Modra  <amodra@gmail.com>
8676         * config/rs6000/predicates.md (word_offset_memref_op): Handle
8677         cmodel medium addresses.
8678         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8679         64-bit gpr loads and stores.
8680         (rs6000_secondary_reload_ppc64): New function.
8681         * config/rs6000/rs6000-protos.h: Declare it.
8682         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8684 2011-03-26  Alan Modra  <amodra@gmail.com>
8686         PR target/47487
8687         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8688         GNU Go in traceback table.
8690 2011-03-25  Richard Henderson  <rth@redhat.com>
8692         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8693         if there are exactly 6 operands.
8694         (set_storage_via_setmem): Similarly.
8696 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8698         * collect2.c (write_c_file_stat): Handle backslash
8699         as right-hand directory separator.
8700         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8701         checking just for slash.
8702         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8703         instead of checking for trailing slash.
8704         * gcc.c (record_temp_file): Use filename_cmp instead
8705         of strcmp.
8706         (do_spec_1): Likewise.
8707         (replace_outfile_spec_function): Likewise.
8708         (is_directory): Use filename_ncmp instead of strncmp.
8709         (print_multilib_info): Likewise.
8710         * gcov.c (find_source): Use filename_cmp instead
8711         instead of strcmp.
8712         (make_gcov_file_name): Fix order of slash/backslash
8713         checks.
8714         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8715         (add_standard_paths): Likewise.
8716         * mips-tfile.c (saber_stop): Handle backslash.
8717         * prefix.c (update_path): Use filename_ncmp instead of
8718         strncmp.
8719         * profile.c (output_location): Use filename_cmp instead
8720         of strcmp.
8721         * read-md.c (handle_toplevel_file): Handle backslash.
8722         * tlink.c (frob_extension):  Likewise.
8723         * tree-cfg.c (same_line_p): Use filename_cmp instead of
8724         strcmp.
8725         * tree-dump.c (dequeue_and_dump): Handle backslash.
8726         * tree.c (get_file_function_name): Likewise.
8727         * gengtype.c (read_input_list): Likewise.
8728         (get_file_realbasename): Likewise.
8729         (get_output_file_with_visibility): Use filename_cmp
8730         instead of strcmp.
8732 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
8734         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8735         case to VFPv1.
8737 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8739         * fold-const.c (expr_location_or): New function.
8740         (fold_truth_not_expr): Call it.
8742 2011-03-25  Jeff Law  <law@redhat.com>
8744         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8745         va_end.
8746         * c-family/c-common.c (def_fn_type): Likewise.
8747         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8748         * emit-rtl.c (gen_rtvec): Likewise.
8749         * lto/lto-lang.c (def_fn_type): Likewise.
8751 2011-03-25  Richard Guenther  <rguenther@suse.de>
8753         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8754         also generate copies.
8755         (fini_copy_prop): Handle constant values properly.
8757 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
8759         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8760         mode size instead of bitsize with DWARF2_ADDR_SIZE.
8761         (hash_loc_operands, compare_loc_operands): Handle
8762         DW_OP_GNU_entry_value.
8764 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8766         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8767         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8768         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8769         comment and use macro TARGET_64BIT_MS_ABI instead.
8770         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8771         and change default behavior for 32-bit MS_ABI.
8772         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8773         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8774         32-bit, too.
8775         (ix86_cfun_abi): Likewise.
8776         (ix86_maybe_switch_abi): Adjust comment.
8777         (init_cumulative_args): Check for bit-ness in MS_ABI case.
8778         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8779         instead of checking for SYSV_ABI.
8780         (ix86_nsaved_sseregs): Likewise.
8781         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8782         to 16 bytes.
8783         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8784         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8785         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8786         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8787         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8789 2011-03-25  Richard Guenther  <rguenther@suse.de>
8791         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8792         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8793         (verify_gimple): Remove.
8794         * tree-cfg.c (verify_gimple_call): Merge verification
8795         from verify_stmts.
8796         (verify_gimple_phi): Merge verification from verify_stmts.
8797         (verify_gimple_label): New function.
8798         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8799         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8800         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8801         (verify_stmts): Rename to verify_gimple_in_cfg.
8802         (verify_gimple_in_cfg): New function.
8803         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8804         * tree-ssa.c (verify_ssa): Likewise.
8805         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8807 2011-03-25  Richard Guenther  <rguenther@suse.de>
8809         * passes.c (init_optimization_passes): Add FRE pass after
8810         early SRA.
8812 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
8813             Andrew Stubbs  <ams@codesourcery.com>
8815         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8816         for Cortex-A8.
8817         (arm_movdi_vfp_cortexa8): New pattern.
8818         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8819         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8820         instructions when tuning for Cortex-A8.  Set attribute "arch".
8821         * config/arm/arm.md: Move include arm-tune.md up a bit.
8822         (define_attr "arch"): Add "onlya8" and "nota8" values.
8823         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8825 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
8827         PR bootstrap/48282
8828         Revert:
8829         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8831         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8832         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8833         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8834         * passes.c (init_optimization_passes): Move
8835         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8837 2011-03-25  Kai Tietz  <ktietz@redhat.com>
8839         * c-typeck.c (comptypes_internal): Replace target
8840         hook call of comp_type_attributes by version in tree.c file.
8841         * gimple.c (gimple_types_compatible_p_1): Likewise.
8842         * tree-ssa.c (useless_type_conversion_p): Likewise.
8843         * tree.c (build_type_attribute_qual_variant): Likewise.
8844         (attribute_value_equal): New static helper function.
8845         (comp_type_attributes): New function.
8846         (merge_attributes): Use attribute_value_equal for comparison.
8847         (attribute_list_contained): Likewise.
8848         * tree.h (comp_type_attributes): New prototype.
8850 2011-03-25  Richard Guenther  <rguenther@suse.de>
8852         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8853         of complex types at -O0.
8854         (verify_gimple_assign_binary): Likewise.
8855         (verify_gimple_assign_ternary): Likewise.
8857 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8859         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8860         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8862 2011-03-24  Mark Wielaard  <mjw@redhat.com>
8864         PR debug/48041
8865         * dwarf2out.c (output_abbrev_section): Only write table when
8866         abbrev_die_table_in_use > 1.
8868 2011-02-24  Richard Henderson  <rth@redhat.com>
8870         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8871         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8872         (alpha_expand_unaligned_load_words): Use extql.
8873         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8874         (emit_insxl): Handle all modes for consistency.
8876 2011-02-24  Richard Henderson  <rth@redhat.com>
8878         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8879         (alpha_expand_unaligned_load): Likewise.
8880         (alpha_expand_unaligned_store): Likewise.
8881         (alpha_expand_unaligned_load_words): Likewise.
8882         (alpha_expand_unaligned_store_words): Likewise.
8883         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8884         (alpha_split_lock_test_and_set_12): Likewise.
8885         (print_operand, alpha_fold_builtin_extxx): Likewise.
8886         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8887         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8888         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8889         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8890         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8891         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8892         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8893         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8894         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8895         (extwl, extll, extql): Similarly.
8896         (inswh, inslh, insqh): Similarly.
8897         (mskbl, mskwl, mskll, mskql): Similarly.
8898         (mskwh, msklh, mskqh): Similarly.
8900 2011-02-24  Richard Henderson  <rth@redhat.com>
8902         * config/alpha/alpha.md (attribute isa): Add er, ner.
8903         (attribute enabled): Handle them.
8904         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8906 2011-02-24  Richard Henderson  <rth@redhat.com>
8908         * config/alpha/alpha.md (attribute isa): Add vms.
8909         (attribute enabled): Handle it.
8910         (*movsf): Merge *movsf_{nofix,fix,nofp}.
8911         (*movdf): Merge *movdf_{nofix,fix,nofp}.
8912         (*movtf): Rename from *movtf_internal for consistency.
8913         (*movsi): Merge with *movsi_nt_vms.
8914         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8915         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8916         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8917         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8919 2011-02-24  Richard Henderson  <rth@redhat.com>
8921         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8922         (extendqisi2, extendhisi2): Likewise.
8923         (extendqidi2): Simplify BWX/non-BWX expansions.
8924         (extendhidi2): Similarly.
8926 2011-02-24  Richard Henderson  <rth@redhat.com>
8928         * config/alpha/alpha.md (attribute isa): New.
8929         (attribute enabled): New.
8930         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8931         (zero_extendqisi2, zero_extendqidi2): Similarly.
8932         (zero_extendhisi2, zero_extendhidi2): Similarly.
8933         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8935 2011-02-24  Richard Henderson  <rth@redhat.com>
8937         * config/alpha/predicates.md (input_operand): Revert last change;
8938         update comment to mention 32-bit VMS rather than Windows.
8940 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
8942         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8943         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
8944         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8945         * passes.c (init_optimization_passes): Move
8946         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8948 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
8950         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8952 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
8954         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8955         correctly.
8957 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
8959         PR debug/48204
8960         * simplify-rtx.c (simplify_const_unary_operation): Call
8961         real_convert when changing mode class with FLOAT_EXTEND.
8963 2011-03-24  Nick Clifton  <nickc@redhat.com>
8965         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8966         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8967         * config/rx/rx.c (rx_option_override): Set align_jumps,
8968         align_loops and align_labels if not set by the user.
8969         (rx_align_for_label): New function.
8970         (rx_max_skip_for_label): New function.
8971         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8972         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8973         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8974         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8975         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8977 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
8979         PR rtl-optimization/48263
8980         * optabs.c (expand_binop_directly): Reinstate convert_modes code
8981         and original commutative_p handling.  Use maybe_gen_insn.
8983 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8985         * reload.c (find_reloads_subreg_address): Add address_reloaded
8986         parameter and return true there if the full address has been
8987         reloaded.
8988         (find_reloads_toplev): Pass address_reloaded flag.
8989         (find_reloads_address_1): Don't use address_reloaded parameter.
8991 2011-03-24  Jeff Law  <law@redhat.com>
8993         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8994         unused variable "ann".
8995         (remove_unused_locals): Likewise.
8997         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8998         statement.
9000         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9001         after it is freed.
9003 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9005         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9006         for invalid symbolic addresses.
9007         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9008         larl operands.
9010 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9012         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9013         the argument in calls to fold_truth_not_expr.
9015 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9017         * tree.c (record_node_allocation_statistics): New function.
9018         (make_node_stat, copy_node_stat, build_string): Call it.
9019         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9020         (build1_stat, build_omp_clause): Likewise.
9022 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9024         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9025         last commit.
9027 2011-03-24  Richard Guenther  <rguenther@suse.de>
9029         PR tree-optimization/48271
9030         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9031         blocks that still exist.
9033 2011-03-24  Richard Guenther  <rguenther@suse.de>
9035         PR tree-optimization/48270
9036         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9037         not free datarefs before ddrs.
9039 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9041         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9042         from the address built for a reference with variable offset.
9044 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9046         PR target/48237
9047         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9048         alternatives that can be handled with movq or movabsq insn.
9049         (*movdf_internal): Disable for !TARGET_64BIT.
9050         (*movdf_internal_nointeger): Ditto.
9051         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9053 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9055         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9056         (FUNCTION_ARG_ADVANCE): Likewise.
9057         * tm.texi.in: Change references to them to hook references.
9058         * tm.texi: Regenerate.
9059         * targhooks.c (default_function_arg): Eliminate check for target macro.
9060         (default_function_incoming_arg): Likewise.
9061         (default_function_arg_advance): Likewise.
9062         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9063         (function_arg_advance): Likewise.
9064         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9066 2011-03-24  Richard Guenther  <rguenther@suse.de>
9068         PR middle-end/48269
9069         * tree-object-size.c (addr_object_size): Do not double-account
9070         for MEM_REF offsets.
9072 2011-03-24  Diego Novillo  <dnovillo@google.com>
9074         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9075         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9076         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9077         Update all users.
9078         (lto_input_string): Rename from input_string.  Make extern.
9079         Update all users.
9080         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9081         output_string_with_length.
9082         Output 0 to indicate a non-NULL string.  Update all callers to
9083         not emit 0.
9084         (lto_output_string): Rename from output_string.  Make extern.
9085         Update all users.
9086         (lto_output_decl_state_streams): Make extern.
9087         (lto_output_decl_state_refs): Make extern.
9088         * lto-streamer.h (lto_input_string): Declare.
9089         (lto_input_data_block): Declare.
9090         (lto_output_string): Declare.
9091         (lto_output_string_with_length): Declare.
9092         (lto_output_decl_state_streams): Declare.
9093         (lto_output_decl_state_refs): Declare.
9095 2011-03-24  Richard Guenther  <rguenther@suse.de>
9097         PR tree-optimization/46562
9098         * tree.c (build_invariant_address): New function.
9099         * tree.h (build_invariant_address): Declare.
9100         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9101         a renamed function moved ...
9102         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9103         Take valueization callback parameter.
9104         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9105         * gimple-fold.h: New file.
9106         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9107         (ccp_fold, fold_const_aggregate_ref,
9108         fold_ctor_reference, fold_nonarray_ctor_reference,
9109         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9110         get_base_constructor): Move ...
9111         * gimple-fold.c: ... here.
9112         (gimple_fold_stmt_to_constant_1): New function
9113         split out from ccp_fold.  Take a valueization callback parameter.
9114         Valueize all operands.
9115         (gimple_fold_stmt_to_constant): New wrapper function.
9116         (fold_const_aggregate_ref_1): New function split out from
9117         fold_const_aggregate_ref.  Take a valueization callback parameter.
9118         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9119         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9120         invariant POINTER_PLUS_EXPRs to invariant form.
9121         (vn_valueize): New function.
9122         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9123         * tree-vrp.c (vrp_valueize): New function.
9124         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9125         to fold statements to constants.
9126         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9127         function declarations.
9128         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9129         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9131 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9133         * config/h8300/predicates.md (jump_address_operand): Fix register
9134         mode check.
9136 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9138         * doc/invoke.texi (max-stores-to-sink): Document.
9139         * params.h (MAX_STORES_TO_SINK): Define.
9140         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9141         if either vectorization or if-conversion is disabled.
9142         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9143         tree-vect-data-refs.c vect_equal_offsets.
9144         (dr_equal_offsets_p): New function.
9145         (find_data_references_in_bb): Remove static.
9146         * tree-data-ref.h (find_data_references_in_bb): Declare.
9147         (dr_equal_offsets_p): Likewise.
9148         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9149         (vect_drs_dependent_in_basic_block): Update calls to
9150         vect_equal_offsets.
9151         (vect_check_interleaving): Likewise.
9152         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9153         (cond_if_else_store_replacement): Rename to...
9154         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9155         documentation.
9156         (cond_if_else_store_replacement): New function.
9157         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9158         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9160 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9162         PR target/46934
9163         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9164         to subtract lower bound instead of GEN_INT().
9166 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9168         PR other/48179
9169         PR other/48221
9170         PR other/48234
9171         * doc/extend.texi (Alignment): Move section to match order in TOC.
9172         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9173         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9175 2011-03-23  Jeff Law  <law@redhat.com>
9177         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9178         before removing the edge.
9180         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9181         it may have been freed by redirect_branch_edge or
9182         redirect_edge_succ_nodup.
9184 2011-03-23  Richard Guenther  <rguenther@suse.de>
9186         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9187         (check_va_list_escapes): Likewise.
9188         (check_all_va_list_escapes): Likewise.
9190 2011-03-23  Richard Guenther  <rguenther@suse.de>
9192         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9193         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9194         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9195         (alias.o): Likewise.
9196         (ipa-type-escape.o): Remove.
9197         (ipa-struct-reorg.o): Likewise.
9198         (GTFILES): Remove ipa-struct-reorg.c.
9199         * alias.c: Do not include ipa-type-escape.h.
9200         * tree-ssa-alias.c: Likewise.
9201         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9202         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9203         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9204         and ipa-type-escape passes.
9205         * tree-pass.h (pass_ipa_type_escape): Remove.
9206         (pass_ipa_struct_reorg): Likewise.
9207         * ipa-struct-reorg.h: Remove.
9208         * ipa-struct-reorg.c: Likewise.
9209         * ipa-type-escape.h: Likewise.
9210         * ipa-type-escape.c: Likewise.
9211         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9212         (--param struct-reorg-cold-struct-ratio): Likewise.
9213         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9214         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9215         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9217 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9219         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9220         cpu attribute value.
9221         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9222         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9223         * config/s390/s390.c (processor_flags_table): New constant array.
9224         (s390_handle_arch_option): Remove.
9225         (s390_handle_option): Remove s390_handle_arch_option invocations
9226         and OPT_mwarn_framesize_ handling.
9227         (s390_option_override): Remove s390_handle_arch_option invocation.
9228         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9229         warnings.
9230         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9231         * config/s390/s390.opt (s390_tune, s390_arch)
9232         (march=): Replace s390_arch_option enum and values with
9233         processor_type.  Set variable name to s390_arch.  Set
9234         initialization value.
9235         (mtune=): Replace s390_arch_option with processor_type.  Set
9236         variable name to s390_tune.  Set initialization value.
9238 2011-03-23  Julian Brown  <julian@codesourcery.com>
9240         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9241         accesses which are not naturally aligned.
9243 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9245         PR target/47553
9246         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9248 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9250         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9251         parameter from "int" to "enum insn_code".
9252         (expand_operand_type): New enum.
9253         (expand_operand): New structure.
9254         (create_expand_operand): New function.
9255         (create_fixed_operand, create_output_operand): Likewise
9256         (create_input_operand, create_convert_operand_to): Likewise.
9257         (create_convert_operand_from, create_address_operand): Likewise.
9258         (create_integer_operand): Likewise.
9259         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9260         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9261         (expand_insn, expand_jump_insn): Likewise.
9262         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9263         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9264         (expand_movstr, expand_builtin___clear_cache): Likewise.
9265         (expand_builtin_lock_release): Likewise.
9266         * explow.c (allocate_dynamic_stack_space): Likewise.
9267         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9268         and use the default handling in that case.
9269         * expmed.c (check_predicate_volatile_ok): Delete.
9270         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9271         (emit_cstore): Likewise.
9272         * expr.c (emit_block_move_via_movmem): Likewise.
9273         (set_storage_via_setmem, expand_assignment): Likewise.
9274         (emit_storent_insn, try_casesi): Likewise.
9275         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9276         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9277         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9278         (expand_twoval_unop, expand_twoval_binop): Likewise.
9279         (expand_unop_direct, emit_indirect_jump): Likewise.
9280         (emit_conditional_move, vector_compare_rtx): Likewise.
9281         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9282         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9283         (expand_sync_lock_test_and_set): Likewise.
9284         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9285         (emit_unop_insn): Likewise.
9286         (expand_copysign_absneg): Change icode to an insn_code.
9287         (create_convert_operand_from_type): New function.
9288         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9289         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9290         (expand_insn, expand_jump_insn): Likewise.
9291         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9292         than const_int_operand for operand 2.
9294 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9296         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9297         if possible.
9299 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9301         * emit-rtl.c (emit_pattern_before_noloc): New function.
9302         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9303         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9304         (emit_pattern_after_noloc): New function.
9305         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9306         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9308 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9310         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9311         (__ffsDI2): Likewise.
9313 2011-03-22  Richard Henderson  <rth@redhat.com>
9315         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9316         of !TARGET_ABI_OPEN_VMS.
9317         (alpha_trampoline_init, alpha_start_function): Likewise.
9318         (alpha_expand_epilogue, alpha_file_start): Likewise.
9319         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9320         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9321         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9322         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9323         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9325 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9327         * config/s390/s390-opts.h: New.
9328         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9329         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9330         s390_stack_guard): Remove.
9331         (s390_handle_arch_option): Return void.  Take enum
9332         s390_arch_option value instead of string and searching array.
9333         (s390_handle_option): Don't assert that global structures are in
9334         use.  Access variables via opts pointer.  Use error_at.  Don't use
9335         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9336         s390_handle_arch_option.
9337         (s390_option_override): Update call to s390_handle_arch_option.
9338         (s390_emit_prologue): Use %d format for s390_stack_size in
9339         diagnostic.  Use %wd for HOST_WIDE_INT.
9340         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9341         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9342         * config/s390/s390.opt (config/s390/s390-opts.h): New
9343         HeaderInclude entry.
9344         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9345         s390_arch_flags, s390_warn_framesize): New Variable entries.
9346         (s390_arch_option): New Enum and EnumValue entries.
9347         (march=): Use Enum instead of Var.
9348         (mstack-guard=, mstack-size=): Use UInteger and Var.
9349         (mtune=): Use Enum.
9351 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9353         * config/score/score.c (score_handle_option): Don't assert that
9354         global structures are in use.  Access target_flags via opts
9355         pointer.  Use value of -march= option to determine target_flags
9356         settings.
9357         * config/score/score.opt (march=): Use Enum.
9358         (score_arch): New Enum and EnumValue entries.
9360 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9362         * config/mep/mep.c (option_mtiny_specified): Remove.
9363         (mep_option_override): Move register handling for -mivc2 from
9364         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9365         instead of option_mtiny_specified.
9366         (mep_handle_option): Access target_flags via opts pointer.  Don't
9367         assert that global structures are in use.  Defer part of -mivc2
9368         handling and move it to mep_option_override.
9369         * config/mep/mep.opt (IVC2): New Mask entry.
9370         (mivc2): Use Var and Defer instead of Mask.
9372 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9374         * config/v850/v850-opts.h: New.
9375         * config/v850/v850.c (small_memory): Replace with
9376         small_memory_physical_max array.  Make that array static const.
9377         (v850_handle_memory_option): Take integer value of argument.  Take
9378         gcc_options pointer, option text and location.  Return void.
9379         Update for changes to small memory structures.
9380         (v850_handle_option): Access target_flags via opts pointer.  Don't
9381         assert that global structures are in use.  Update calls to
9382         v850_handle_memory_option.
9383         (v850_encode_data_area): Update references to small memory settings.
9384         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9385         (enum small_memory_type): Move to v850-opts.h.
9386         * config/v850/v850.opt (config/v850/v850-opts.h): New
9387         HeaderInclude entry.
9388         (small_memory_max): New Variable entry.
9389         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9390         (mtda, mzda): Likewise.
9392 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9394         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9395         pointer.  Don't assert that global structures are in use.
9397 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9399         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9400         via opts pointer.  Don't assert that global structures are in use.
9402 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9404         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9405         (munix=93): Use Var.
9406         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9407         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9408         * config/pa/pa-opts.h: New.
9409         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9410         (pa_handle_option): Don't assert that global structures are in
9411         use.  Access target_flags via opts pointer.  Don't handle
9412         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9413         OPT_munix_98 here.
9414         (pa_option_override): Handle deferred OPT_mfixed_range_.
9416 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9418         * config/mn10300/mn10300-opts.h: New.
9419         * config/mn10300/mn10300.c (mn10300_processor,
9420         mn10300_tune_string): Remove.
9421         (mn10300_handle_option): Don't assert that global structures are
9422         in use.  Access mn10300_processor via opts pointer.  Don't handle
9423         OPT_mtune_ here.
9424         * config/mn10300/mn10300.h (enum processor_type): Move to
9425         mn10300-opts.h.
9426         (mn10300_processor): Remove.
9427         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9428         HeaderInclude entry.
9429         (mn10300_processor): New Variable entry.
9430         (mtune=): Use Var.
9432 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9434         * config/microblaze/microblaze.c: Don't include opts.h.
9435         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9436         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9437         (mno-clearbss): Use Var and Warn.
9439 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9441         * config/m32r/m32r-opts.h: New.
9442         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9443         (m32r_handle_option): Don't assert that global structures are in
9444         use.  Access target_flags and m32r_cache_flush_func via opts
9445         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9446         OPT_mno_flush_trap here.
9447         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9448         include of m32r-opts.h.
9449         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9450         HeaderInclude entry.
9451         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9452         (mmodel=): Use Enum and Var.
9453         (m32r_model): New Enum and EnumValue entries.
9454         (mno-flush-trap): Use Var.
9455         (msdata=): Use Enum and Var.
9456         (m32r_sdata): New Enum and EnumValue entries.
9458 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9460         * config/m32c/m32c.c: Don't include opts.h.
9461         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9462         m32c_handle_option): Remove.
9463         (m32c_option_override): Check global_options_set.x_target_memregs
9464         instead of target_memregs_set.
9465         * config/m32c/m32c.h (target_memregs): Remove.
9466         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9467         variable.
9469 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9471         * config/iq2000/iq2000-opts.h: New.
9472         * config/iq2000/iq2000.c: Don't include opts.h.
9473         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9474         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9475         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9476         HeaderInclude entry.
9477         (iq2000_tune): New Variable entry.
9478         (march=): Add comment.  Use Enum.
9479         (iq2000_arch): New Enum and EnumValue entries.
9480         (mcpu=): Use Enum and Var.
9481         (iq2000_tune): New Enum and EnumValue entries.
9483 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9485         * config/ia64/ia64-opts.h: New.
9486         * config/ia64/ia64.c (ia64_tune): Remove.
9487         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9488         here.  Use error_at.
9489         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9490         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9491         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9492         HeaderInclude entry.
9493         (ia64_tune): New Variable entry.
9494         (mfixed-range=): Use Defer and Var.
9495         (mtune=): Use Enum and Var.
9496         (ia64_tune): New Enum and EnumValue entries.
9498 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9500         * config/frv/frv-opts.h: New.
9501         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9502         frv-opts.h.
9503         (frv_cpu_type): Remove.
9504         * config/frv/frv.c: Don't include opts.h.
9505         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9506         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9507         (frv_cpu_type): New Variable entry.
9508         (frv_cpu): New Enum and EnumValue entries.
9510 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9512         * config/cris/cris.c (cris_handle_option): Access target_flags via
9513         opts pointer.  Don't assert that global structures are in use.
9514         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9515         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9517 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9519         * config/bfin/bfin-opts.h: New.
9520         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9521         bfin_si_revision, bfin_workarounds): Remove.
9522         (bfin_cpus): Make static const.
9523         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9524         not bfin_lib_id_given.
9525         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9526         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9527         pointer. Use error_at.  Don't assert that global structures are in use.
9528         * config/bfin/bfin.h: Include bfin-opts.h.
9529         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9530         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9531         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9532         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9533         entries.
9535 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9537         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9538         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9539         or -msoft-float here.
9540         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9541         -msoft-float and -mhard-float.
9542         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9543         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9544         msoft-float.
9545         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9546         -msoft-float.
9547         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9548         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9549         not mhard-float.
9550         (LIBGCC_SPEC): Don't handle -msoft-float.
9551         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9552         -mhard-float.
9553         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9554         msoft-float.
9555         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9556         -mfloat-abi=*, not -msoft-float and -mhard-float.
9557         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9558         -msoft-float.
9559         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9560         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9561         mhard-float and msoft-float.
9562         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9563         mfloat-abi=soft in comments, not mhard-float and msoft-float.
9564         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9565         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9566         mhard-float.
9567         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9568         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9569         msoft-float.
9570         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9571         not mhard-float.
9572         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9573         not msoft-float.
9575 2011-03-22  Richard Henderson  <rth@redhat.com>
9577         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9578         TARGET_ABI_WINDOWS_NT.
9579         (alpha_output_function_end_prologue): Likewise.
9580         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9581         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9582         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9583         (trap, *movsi_nt_vms): Likewise.
9584         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9585         (*tablejump_osf_nt_internal): Remove.
9586         * config/alpha/predicates.md (input_operand): Only test Pmode.
9588 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9590         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9591         via opts pointer.  Use error_at.  Don't assert that global
9592         structures are in use.
9594 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9596         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9597         (ix86_handle_option): Access ix86_isa_flags and
9598         ix86_isa_flags_explicit via opts pointer.  Don't assert that
9599         global structures are in use.
9600         (ix86_function_specific_save, ix86_function_specific_restore):
9601         Update ix86_isa_flags_explicit field name.
9602         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9603         (ix86_isa_flags_explicit): Rename TargetSave entry to
9604         x_ix86_isa_flags_explicit.
9606 2011-03-22  Richard Henderson  <rth@redhat.com>
9608         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9609         (alpha_option_override, direct_return): Likewise.
9610         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9611         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9612         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9613         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9614         (alpha_expand_epilogue, alpha_end_function): Likewise.
9615         (alpha_init_libfuncs): Likewise.
9616         (struct machine_function): Remove unicosmk members.
9617         (print_operand) ['t']: Remove.
9618         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9619         unicosmk_output_module_name, unicosmk_output_common,
9620         current_section_align, unicosmk_output_text_section_asm_op,
9621         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9622         unicosmk_section_type_flags, unicosmk_unique_section,
9623         unicosmk_asm_named_section, unicosmk_insert_attributes,
9624         unicosmk_output_align, unicosmk_defer_case_vector,
9625         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9626         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9627         unicosmk_output_ssib, unicosmk_add_call_info_word,
9628         unicosmk_extern_head, unicosmk_output_default_externs,
9629         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9630         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9631         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9632         * config/alpha/alpha-protos.h: Update.
9633         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9634         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9635         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9636         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9637         (*mulsi_se, mulvsi3): Likewise.
9638         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9639         (*divmodsi_internal, call, call_value, realign): Likewise.
9640         (moddi3, umoddi3): Likewise; remove duplicate expander.
9641         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9642         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9643         (*movdi_nofix): Remove r/U alternative.
9644         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9645         * config/alpha/constraints.md ("U"): Remove.
9646         * config/alpha/predicates.md (call_operand"): Don't test
9647         TARGET_ABI_UNICOSMK.
9649 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9651         * target.def (handle_option): Take gcc_options and
9652         cl_decoded_option pointers and location_t.
9653         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9654         * doc/tm.texi: Regenerate.
9655         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9656         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9657         * lto-opts.c (lto_reissue_options): Generate option structure for
9658         targetm.handle_option call.
9659         * opts.c (target_handle_option): Update call to
9660         targetm.handle_option.  Remove assertions about values now passed
9661         down to hook.
9662         * targhooks.c (default_target_handle_option): New.
9663         * targhooks.h (default_target_handle_option): Declare.
9664         * config/alpha/alpha.c: Include opts.h.
9665         (alpha_handle_option): Update to new hook interface.
9666         * config/arm/arm.c: Include opts.h.
9667         (arm_handle_option): Update to new hook interface.
9668         * config/arm/t-arm (arm.o): Update dependencies.
9669         * config/bfin/bfin.c: Include opts.h.
9670         (bfin_handle_option): Update to new hook interface.
9671         * config/cris/cris.c: Include opts.h.
9672         (cris_handle_option): Update to new hook interface.
9673         * config/frv/frv.c: Include opts.h.
9674         (frv_handle_option): Update to new hook interface.
9675         * config/i386/i386.c: Include opts.h.
9676         (ix86_handle_option): Update to new hook interface.
9677         (ix86_valid_target_attribute_inner_p): Generate option structure
9678         for call to ix86_handle_option.
9679         * config/i386/t-i386 (i386.o): Update dependencies.
9680         * config/ia64/ia64.c: Include opts.h.
9681         (ia64_handle_option): Update to new hook interface.
9682         * config/ia64/t-ia64 (ia64.o): Update dependencies.
9683         * config/iq2000/iq2000.c: Include opts.h.
9684         (iq2000_handle_option): Update to new hook interface.
9685         * config/m32c/m32c.c: Include opts.h.
9686         (m32c_handle_option): Update to new hook interface.
9687         * config/m32r/m32r.c: Include opts.h.
9688         (m32r_handle_option): Update to new hook interface.
9689         * config/m68k/m68k.c: Include opts.h.
9690         (m68k_handle_option): Update to new hook interface.
9691         * config/mep/mep.c: Include opts.h.
9692         (mep_handle_option): Update to new hook interface.
9693         * config/microblaze/microblaze.c: Include opts.h.
9694         (microblaze_handle_option): Update to new hook interface.
9695         * config/mips/mips.c: Include opts.h.
9696         (mips_handle_option): Update to new hook interface.
9697         * config/mn10300/mn10300.c: Include opts.h.
9698         (mn10300_handle_option): Update to new hook interface.
9699         * config/pa/pa.c: Include opts.h.
9700         (pa_handle_option): Update to new hook interface.
9701         * config/pdp11/pdp11.c: Include opts.h.
9702         (pdp11_handle_option): Update to new hook interface.
9703         * config/rs6000/rs6000.c: Include opts.h.
9704         (rs6000_handle_option): Update to new hook interface.
9705         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9706         * config/rx/rx.c: Include opts.h.
9707         (rx_handle_option): Update to new hook interface.
9708         * config/s390/s390.c: Include opts.h.
9709         (s390_handle_option): Update to new hook interface.
9710         * config/score/score.c: Include opts.h.
9711         (score_handle_option): Update to new hook interface.
9712         * config/sh/sh.c: Include opts.h.
9713         (sh_handle_option): Update to new hook interface.
9714         * config/sparc/sparc.c: Include opts.h.
9715         (sparc_handle_option): Update to new hook interface.
9716         * config/v850/v850.c: Include opts.h.
9717         (v850_handle_option): Update to new hook interface.
9719 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9721         * gcc.c (driver_unknown_option_callback): Only permit and save
9722         unknown -Wno- options.
9723         (driver_wrong_lang_callback): Save options directly instead of via
9724         driver_unknown_option_callback.
9726 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9728         * combine.c (simplify_set): Try harder to find the best CC mode when
9729         simplifying a nested COMPARE on the RHS.
9731 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9733         * config/alpha/gnu.h: Remove.
9734         * config/arc: Remove directory.
9735         * config/arm/netbsd.h: Remove.
9736         * config/arm/t-pe: Remove.
9737         * config/crx: Remove directory.
9738         * config/i386/netbsd.h: Remove.
9739         * config/m68hc11: Remove directory.
9740         * config/m68k/uclinux-oldabi.h: Remove.
9741         * config/mcore/mcore-pe.h: Remove.
9742         * config/mcore/t-mcore-pe: Remove.
9743         * config/netbsd-aout.h: Remove.
9744         * config/rs6000/gnu.h: Remove.
9745         * config/sh/sh-symbian.h: Remove.
9746         * config/sh/symbian-base.c: Remove.
9747         * config/sh/symbian-c.c: Remove.
9748         * config/sh/symbian-cxx.c: Remove.
9749         * config/sh/symbian-post.h: Remove.
9750         * config/sh/symbian-pre.h: Remove.
9751         * config/sh/t-symbian: Remove.
9752         * config/svr3.h: Remove.
9753         * config/vax/netbsd.h: Remove.
9754         * config.build: Don't handle i[34567]86-*-pe.
9755         * config.gcc: Remove handling of deprecations for most deprecated
9756         targets.
9757         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9758         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9759         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9760         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9761         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9762         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9763         Remove cases.
9764         * config.host: Don't handle i[34567]86-*-pe.
9765         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9766         (ASM_SPEC32): Don't handle -mcall-gnu.
9767         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9768         -mcall-gnu.
9769         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9770         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9771         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9772         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9773         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9774         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9775         conditional on SYMBIAN.
9776         * configure.ac: Don't handle powerpc*-*-gnu*.
9777         * configure: Regenerate.
9778         * doc/extend.texi (interrupt attribute): Don't mention CRX.
9779         * doc/install-old.texi (m6811, m6812): Don't mention.
9780         * doc/install.texi (arc-*-elf*): Don't document multilib option.
9781         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9782         (m68k-uclinuxoldabi): Don't mention.
9783         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9784         Remove.
9785         (-mcall-gnu): Remove.
9786         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9787         families): Remove constraint documentation.
9789 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
9791         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9792         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9793         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9795 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9797         PR target/48226
9798         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9799         vector when peeking at the next token for vector, don't expand the
9800         keywords.
9802 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
9804         * config/avr/avr-protos.h (expand_epilogue): Change prototype
9805         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9806         * config/avr/avr.c (init_cumulative_args)
9807         (avr_function_arg_advance): Use it.
9808         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9809         sibcall epilogues.
9810         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9811         (avr_function_ok_for_sibcall): ...this new function.
9812         (avr_lookup_function_attribute1): New static Function.
9813         (avr_naked_function_p, interrupt_function_p)
9814         (signal_function_p, avr_OS_task_function_p)
9815         (avr_OS_main_function_p): Use it.
9816         * config/avr/avr.md ("sibcall", "sibcall_value")
9817         ("sibcall_epilogue"): New expander.
9818         ("*call_insn", "*call_value_insn"): New insn.
9819         ("call_insn", "call_value_insn"): Remove
9820         ("call", "call_value", "epilogue"): Change expander to handle
9821         sibling calls.
9823 2011-03-21  Nick Clifton  <nickc@redhat.com>
9825         * doc/invoke.texi (Overall Options): Move closing brace to end of
9826         options list.
9827         (Optimization Options): Add missing @gol.
9828         (Directory Options): Likewise.
9829         (i386 and x86-64 Options): Likewise.
9830         (RS6000 and PowerPC Options): Likewise.
9831         (i386 and x86-64 Windows Options): Likewise.
9832         (V850 Options): Add text missing from descriptions.
9834 2011-03-22  Richard Henderson  <rth@redhat.com>
9836         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9837         (avr_incoming_return_addr_rtx): New.
9838         (emit_push_byte): New.
9839         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
9840         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
9841         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
9842         (emit_pop_byte): New.
9843         (expand_epilogue): Use it.  Pop frame pointer by bytes.
9844         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9845         (INCOMING_RETURN_ADDR_RTX): New.
9846         (INCOMING_FRAME_SP_OFFSET): New.
9847         (ARG_POINTER_CFA_OFFSET): New.
9848         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9849         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9850         (pophi): Remove.
9852         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9854 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9856         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9857         (FUNCTION_ARG_ADVANCE): Likewise.
9858         * tm.texi.in: Change references to them to hook references.
9859         * tm.texi: Regenerate.
9860         * targhooks.c (default_function_arg): Eliminate check for target
9861         macro.
9862         (default_function_incoming_arg): Likewise.
9863         (default_function_arg_advance): Likewise.
9864         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9865         (function_arg_advance): Likewise.
9866         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9868 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9870         * tree.c (build_call_1): New function.
9871         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9873 2011-03-22  Richard Guenther  <rguenther@suse.de>
9875         PR tree-optimization/48228
9876         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9877         for single-arg PHIs.
9879 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
9881         PR rtl-optimization/48143
9882         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9883         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9884         sse2_cvtps2pd): Likewise.
9886 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9888         * recog.c (canonicalize_change_group): Use validate_unshare_change.
9890 2011-03-22  Richard Guenther  <rguenther@suse.de>
9892         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9893         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9894         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9895         and REALIGN_LOAD_EXPR.
9896         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9897         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9898         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9899         DOT_PROD_EXPR case ...
9900         (expand_expr_real_2): ... here.
9901         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9902         and REALIGN_LOAD_EXPR.
9903         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9904         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9905         (vect_create_epilog_for_reduction): Likewise.
9906         (vectorizable_reduction): Likewise.
9907         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9908         * tree-vect-stmts.c (vectorizable_load): Likewise.
9910 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
9912         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9914 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9916         * config/s390/s390.c (s390_delegitimize_address): Fix offset
9917         handling for PLTOFF/GOTOFF.
9919 2011-03-22  Nick Clifton  <nickc@redhat.com>
9921         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9922         trailing backslash from the end of the macro definition.
9924 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9926         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9927         and PLT unspecs.
9929 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
9931         * expr.h (prepare_operand): Move to...
9932         * optabs.h (prepare_operand): ...here and change the insn code
9933         parameter from "int" to "enum insn_code".
9934         (insn_operand_matches): Declare.
9935         * expr.c (init_expr_target): Use insn_operand_matches.
9936         (compress_float_constant): Likewise.
9937         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9938         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9939         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
9940         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9941         Likewise.
9942         (gen_cond_trap): Likewise.
9943         (prepare_operand): Likewise.  Change icode to an insn_code.
9944         (insn_operand_matches): New function.
9945         * reload.c (find_reloads_address_1): Use insn_operand_matches.
9946         * reload1.c (gen_reload): Likewise.
9947         * targhooks.c (default_secondary_reload): Likewise.
9949 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9951         * config/alpha/alpha.md (unspec): New define_c_enum.
9952         (unspecv): Ditto.
9954 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
9956         PR debug/48214
9957         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9958         between a call and its CALL_ARG_LOCATION note.
9960 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
9962         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9964 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
9966         PR c/42544
9967         PR c/48197
9968         * c-common.c (shorten_compare): If primopN is first sign-extended
9969         to opN and then zero-extended to result type, set primopN to opN.
9971 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
9973         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9974         for barrier handlers.
9976 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9978         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9979         UNSPEC constants to be in the unspec enumeration, and redefine
9980         all UNSPECV constants to be in the unspecv enumeration, so that
9981         dumps print which unspec/unspec_volatile this is.
9982         * config/rs6000/vector.md (UNSPEC_*): Ditto.
9983         * config/rs6000/paired.md (UNSPEC_*): Ditto.
9984         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9985         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9986         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9988         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9989         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9990         UNSPECV_LWSYNC, since these are used as unspec_volatile.
9991         * config/rs6000/sync.md (isync, lwsync): Ditto.
9993 2011-03-21  Richard Guenther  <rguenther@suse.de>
9995         * params.def (lto-min-partition): Fix typo.
9997 2011-03-21  Richard Guenther  <rguenther@suse.de>
9999         PR c/47939
10000         * c-decl.c (grokdeclarator): Drop to the main variant only
10001         for array types.  Drop flag_gen_aux_info check.
10003 2011-03-21  Richard Guenther  <rguenther@suse.de>
10005         PR translation/47911
10006         * params.def (lto-partitions): Fix typo.
10007         (lto-min-partition): Fix wording.
10009 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10011         * config/rs6000/t-freebsd: Remove duplication from file.
10013 2011-03-21  Richard Guenther  <rguenther@suse.de>
10015         PR middle-end/47661
10016         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10018 2011-03-21  Richard Guenther  <rguenther@suse.de>
10020         PR lto/48210
10021         * params.def (lto-partitions): Require at least 1 partition.
10023 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10025         * gthr-solaris.h: Remove.
10026         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10027         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10028         (LIB_SPEC): Likewise.
10029         * config/sol2.opt (threads): Remove.
10030         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10031         (sparc*-*-solaris2*): Likewise.
10032         * configure.ac (enable_threads): Enable solaris support.
10033         * configure: Regenerate.
10034         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10035         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10036         solaris.
10038 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10040         * config.gcc: Obsolete *-*-solaris2.8*.
10041         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10043 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10045         PR bootstrap/48135
10046         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10047         reference.  Solaris 8 perl works.
10049 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10051         PR bootstrap/48135
10052         * doc/install.texi (Prerequisites): Move jar etc. up.
10053         Explain support library version requirements.
10055 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10057         PR bootstrap/48135
10058         * doc/install.texi (Prerequisites): Move Perl to build
10059         requirements.  Always necessary on Solaris 2 with Sun ld.
10061 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10063         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10064         binutils 2.21.
10065         (Specific, i?86-*-solaris2.[89]): Likewise.
10066         (Specific, i?86-*-solaris2.10): Likewise.
10067         (Specific, mips-sgi-irix6): Likewise.
10068         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10069         Update for binutils 2.21.
10071 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10073         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10074         Allow -fuse-linker-plugin for non-default plugin linker.
10075         * configure: Regenerate.
10077 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10079         PR bootstrap/48167
10080         * gengtype.c (files_rules): Added rule for cp/parser.h.
10082 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10084         PR target/48213
10085         * config/s390/s390.c (s390_delegitimize_address): Don't call
10086         lowpart_subreg if orig_x has BLKmode.
10088 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10090         PR target/12171
10091         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10092         * tree.h (attribute_spec): Add new member affects_type_identity.
10093         * attribs.c (empty_attribute_table): Adjust attribute_spec
10094         initializers.
10095         * config/alpha/alpha.c: Likewise.
10096         * config/arc/arc.c: Likewise.
10097         * config/arm/arm.c: Likewise.
10098         * config/avr/avr.c: Likewise.
10099         * config/bfin/bfin.c: Likewise.
10100         * config/crx/crx.c: Likewise.
10101         * config/darwin.h: Likewise.
10102         * config/h8300/h8300.c: Likewise.
10103         * config/i386/cygming.h: Likewise.
10104         * config/i386/i386.c: Likewise.
10105         * config/ia64/ia64.c: Likewise.
10106         * config/m32c/m32c.c: Likewise.
10107         * config/m32r/m32r.c: Likewise.
10108         * config/m68hc11/m68hc11.c: Likewise.
10109         * config/m68k/m68k.c: Likewise.
10110         * config/mcore/mcore.c: Likewise.
10111         * config/mep/mep.c: Likewise.
10112         * config/microblaze/microblaze.c: Likewise.
10113         * config/mips/mips.c: Likewise.
10114         * config/rs6000/rs6000.c: Likewise.
10115         * config/rx/rx.c: Likewise.
10116         * config/sh/sh.c: Likewise.
10117         * config/sol2.h: Likewise.
10118         * config/sparc/sparc.c: Likewise.
10119         * config/spu/spu.c: Likewise.
10120         * config/stormy16/stormy16.c: Likewise.
10121         * config/v850/v850.c: Likewise.
10123 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10125         * simplify-rtx.c (simplify_binary_operation_1): Handle
10126         (xor (and A B) C) case when B and C are both constants.
10128 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10130         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10132 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10134         PR bootstrap/48168
10135         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10137 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10139         PR rtl-optimization/48156
10140         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10141         assume df and df_lr are not NULL.
10143 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10145         PR debug/48023
10146         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10147         between a call and its CALL_ARG_LOCATION note.
10149 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10151         PR debug/48178
10152         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10153         between a call and its corresponding CALL_ARG_LOCATION note.
10155 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10157         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10158         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10159         * haifa-sched.c (setup_ref_regs): Ditto.
10160         * caller-save.c (add_used_regs_1): Ditto.
10161         * dse.c (look_for_hardregs): Ditto.
10162         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10163         * sched-rgn.c (check_live_1): Ditto.
10165 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10167         * c-decl.c (diagnose_mismatched_decls): Give an error for
10168         redefining a typedef with variably modified type.
10170 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10172         * c-decl.c (grokfield): Don't allow typedefs for structures or
10173         unions with no tag by default.
10174         * doc/extend.texi (Unnamed Fields): Update.
10176 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10178         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10179         Rewrite using indirect functions.
10180         (lwp_slwpcb): Ditto.
10181         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10182         (avx_vinsertf128<mode>): Ditto.
10184 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10186         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10187         unspecs.
10189 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10191         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10192         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10194 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10196         PR rtl-optimization/48170
10197         * gcse.c (hoist_code): Remove bogus asserts.
10199 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10201         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10202         computation for prologue/epilogue.
10204 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10206         * Makefile.in (check-consistency): Remove.
10208 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10210         PR debug/48176
10211         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10212         arange_table_in_use is 0, but either text_section_used or
10213         cold_text_section_used is true.  Don't call it if
10214         !info_section_emitted.
10216 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10218         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10219         FUNCTION_VALUE_REGNO_P): Remove.
10220         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10221         Remove.
10222         * config/avr/avr.c (avr_ret_register): Make static inline.
10223         (avr_function_value_regno_p): New function.
10224         (avr_libcall_value): Make static. Add 'func' argument.
10225         (avr_function_value): Make static. Rename 'func' argument to
10226         'fn_decl_or_type', forward it to avr_libcall_value. Call
10227         avr_ret_register function instead of RET_REGISTER macro.
10228         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10230 2011-03-18  Jason Merrill  <jason@redhat.com>
10232         PR c++/23372
10233         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10235 2011-03-18  Richard Guenther  <rguenther@suse.de>
10237         * doc/install.texi (--enable-gold): Remove.
10238         (--with-plugin-ld): Document.
10239         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10241 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10243         PR middle-end/47790
10244         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10245         again after expansion changes.
10247 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10249         * combine.c (try_combine): Do simplification only call of
10250         subst() on i2 even when i1 is present. Update comments.
10252 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10254         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10255         and UNSPEC_PCREL_SYMOFF.
10257 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10259         * config/s390/s390.md: Use define_c_enum for the unspec constant
10260         definitions.
10262 2011-03-18  Richard Henderson  <rth@redhat.com>
10263             Jakub Jelinek  <jakub@redhat.com>
10265         PR bootstrap/48161
10266         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10267         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10269 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10271         PR middle-end/47725
10272         * combine.c (cant_combine_insn_p): Don't check zero/sign
10273         extended hard registers.
10275 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10277         PR middle-end/47725
10278         * combine.c (cant_combine_insn_p): Check zero/sign extended
10279         hard registers.
10281 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10283         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10284         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10285         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10286         Change return type to bool.
10287         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10289 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10291         PR debug/48163
10292         * var-tracking.c (prepare_call_arguments): If CALL target
10293         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10294         pc instead of looking it up using cselib_lookup and use
10295         Pmode for it if x has VOIDmode.
10296         * dwarf2out.c (gen_subprogram_die): If also both first and
10297         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10299         PR debug/48163
10300         * function.c (assign_parms): For data.passed_pointer parms
10301         use MEM of data.entry_parm instead of data.entry_parm itself
10302         as DECL_INCOMING_RTL.
10303         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10304         also when passed and declared mode is the same, DECL_RTL
10305         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10306         a MEM too.
10308 2011-03-16  Jeff Law  <law@redhat.com>
10310         PR rtl-optimization/37273
10311         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10312         handle them like argument loads from stack slots.  Do not double
10313         count memory for memory constants and argument loads from stack slots.
10315 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10317         PR debug/48160
10318         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10320 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10322         PR target/48171
10323         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10325 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10327         PR bootstrap/48153
10328         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10329         if dwarf_strict.
10330         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10331         Clear call_arg_locations and call_arg_loc_last always.
10333         PR middle-end/48152
10334         * var-tracking.c (prepare_call_arguments): If argument needs to be
10335         passed by reference, adjust argtype and mode.
10337 2011-03-17  Richard Guenther  <rguenther@suse.de>
10339         PR middle-end/48134
10340         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10341         a value make sure to fold the statement.
10343 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10345         PR target/43872
10346         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10347         return condition with !cfun->calls_alloca.
10349 2011-03-17  Richard Guenther  <rguenther@suse.de>
10351         PR bootstrap/48148
10352         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10353         origin for decls in other ltrans units.
10354         (input_varpool_node): Likewise.
10356 2011-03-17  Richard Guenther  <rguenther@suse.de>
10358         PR middle-end/48165
10359         * tree-object-size.c (compute_object_offset): Properly return
10360         the offset operand of MEM_REFs as sizetype.
10362 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10364         PR rtl-optimization/48141
10365         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10366         * dse.c: Include params.h.
10367         (active_local_stores_len): New variable.
10368         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10369         to NULL.
10370         (record_store, check_mem_read_rtx): Decrease it when removing
10371         from the chain.
10372         (scan_insn): Likewise.  Increase it when adding to chain, if it
10373         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10374         set active_local_stores to NULL before the addition.
10375         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10377         PR rtl-optimization/48141
10378         * dse.c (record_store): If no positions are needed in an insn
10379         that cannot be deleted, at least unchain it from active_local_stores.
10381 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10383         PR debug/47510
10384         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10385         (lookup_type_die_strip_naming_typedef): ... here.
10386         (get_context_die): Use it.
10387         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10388         the anonymous struct named by the naming typedef.
10390 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10392         PR target/48154
10393         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10394         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10396 2011-03-16  Jeff Law  <law@redhat.com>
10398         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10399         check for operands of conditional.  Allow type to be a pointer.
10401 2011-03-16  Richard Guenther  <rguenther@suse.de>
10403         PR tree-optimization/48149
10404         * fold-const.c (fold_binary_loc): Fold
10405         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10407 2011-03-16  Richard Guenther  <rguenther@suse.de>
10409         PR tree-optimization/26134
10410         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10411         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10412         (non_rewritable_mem_ref_base): Handle complex type component
10413         accesses, constrain offsets for vector and complex extracts
10414         more properly.
10416 2011-03-16  Richard Guenther  <rguenther@suse.de>
10418         PR tree-optimization/48146
10419         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10420         operands avoiding the need for renaming.
10422 2011-03-16  Richard Guenther  <rguenther@suse.de>
10424         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10425         constant folding.  Move MEM_REF canonicalization first.
10426         Rely on fold_const_aggregate_ref for initializer folding.
10427         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10429 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10431         PR middle-end/48136
10432         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10433         arg0/arg1 or their arguments are always fold converted to matching
10434         types.
10436         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10437         to nargs.
10439 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10441         PR lto/46944
10442         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10443         Handle in-tree gold.
10444         (ld_vers): Extract binutils version for gold.
10445         (gcc_cv_ld_hidden): Handle gold here.
10446         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10447         * configure: Regenerate.
10448         * config.in: Regenerate.
10449         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10450         -fuse-linker-plugin otherwise.
10451         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10452         (LINK_COMMAND_SPEC): Use it.
10453         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10455 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10457         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10458         * calls.c: Remove debug.h include.
10459         (emit_call_1): Don't call virtual_call_token debug hook.
10460         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10461         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10462         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10463         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10464         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10465         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10466         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10467         dwarf2out_virtual_call): Remove.
10468         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10469         copy_call_info and virtual_call hooks.
10470         (dwarf2out_init): Don't initialize vcall_insn_table,
10471         debug_dcall_section and debug_vcall_section.
10472         (prune_unused_types): Don't mark nodes from dcall_table.
10473         (dwarf2out_finish): Don't output dcall or vcall tables.
10474         * final.c (final_scan_insn): Don't call direct_call or
10475         virtual_call debug hooks.
10476         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10477         virtual_call_token, copy_call_info and virtual_call hooks.
10478         (debug_nothing_uid): Remove prototype.
10479         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10480         copy_call_info and virtual_call hooks.
10481         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10482         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10483         * debug.c (do_nothing_debug_hooks): Likewise.
10484         (debug_nothing_uid): Remove.
10485         * doc/invoke.texi (-fenable-icf-debug): Remove.
10486         * common.opt (-fenable-icf-debug): Likewise.
10488         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10489         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10490         call's MEM.  Handle functions returning aggregate through a hidden
10491         first pointer.  For virtual calls add clobbered pc to call arguments
10492         chain.
10493         * dwarf2out.c (gen_subprogram_die): Emit
10494         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10495         can't be emitted.
10497         PR debug/45882
10498         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10499         * rtl.h (ENTRY_VALUE_EXP): Define.
10500         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10501         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10502         * print-rtl.c (print_rtx): Likewise.
10503         * gengtype.c (adjust_field_rtx_def): Likewise.
10504         * var-tracking.c (vt_add_function_parameter): Adjust
10505         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10506         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10507         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10508         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10509         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10511         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10512         Call var_location debug hook even on CALL_INSNs.
10513         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10514         * rtl.def (ENTRY_VALUE): New.
10515         * dwarf2out.c: Include cfglayout.h.
10516         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10517         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10518         (struct call_arg_loc_node): New type.
10519         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10520         tail_call_site_count): New variables.
10521         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10522         DW_TAG_GNU_call_site_parameter.
10523         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10524         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10525         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10526         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10527         and DW_AT_GNU_all_source_call_sites.
10528         (mem_loc_descriptor): Handle ENTRY_VALUE.
10529         (add_src_coords_attributes): Don't add enything if
10530         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10531         (dwarf2out_abstract_function): Save and clear call_arg_location,
10532         call_site_count and tail_call_site_count around dwarf2out_decl call.
10533         (gen_call_site_die): New function.
10534         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10535         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10536         (dwarf2out_function_decl): Clear call_arg_locations,
10537         call_arg_loc_last, set call_site_count and tail_call_site_count
10538         to -1 and free block_map.
10539         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10540         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10541         followed by any real instructions.
10542         (dwarf2out_begin_function): Set call_site_count and
10543         tail_call_site_count to 0.
10544         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10545         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10546         attempt to force a DIE for it and worst case remove the attribute.
10547         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10548         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10549         the decl itself.
10550         * var-tracking.c: Include tm_p.h.
10551         (vt_stack_adjustments): For calls call note_register_arguments.
10552         (argument_reg_set): New variable.
10553         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10554         ensure the VALUE is resolved.
10555         (call_arguments): New variable.
10556         (prepare_call_arguments): New function.
10557         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10558         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10559         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10560         always use the best expression.
10561         (vt_expand_loc): Add ignore_cur_loc argument.
10562         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10563         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10564         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10565         note for all calls.
10566         (vt_add_function_parameter): Use cselib_lookup_from_insn.
10567         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10568         argument.  Don't call cselib_preserve_only_values and
10569         cselib_reset_table.
10570         (note_register_arguments): New function.
10571         (vt_initialize): Compute argument_reg_set.  Call
10572         vt_add_function_parameters before processing basic blocks instead of
10573         afterwards.  For calls call prepare_call_arguments before calling
10574         cselib_process_insn.
10575         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10576         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10577         (var-tracking.o): Depend on $(TM_P_H).
10578         * cfglayout.h (insn_scope): New prototype.
10579         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10580         * cfglayout.c (insn_scope): No longer static.
10581         * insn-notes.def (CALL_ARG_LOCATION): New.
10582         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10583         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10584         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10585         nothing for DECL_EXTERNAL BLOCK_VARS.
10587 2011-03-16  Alan Modra  <amodra@gmail.com>
10589         PR target/45844
10590         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10591         create invalid offset address for vsx splat insn.
10592         * config/rs6000/predicates.md (splat_input_operand): New.
10593         * config/rs6000/vsx.md (vsx_splat_*): Use it.
10595 2011-03-15  Xinliang David Li  <davidxl@google.com>
10597         PR c/47837
10598         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10599         (normalize_preds): New function.
10600         (is_use_properly_guarded): Normalize def predicates.
10602 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10604         PR target/46788
10605         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10606         in the output template.
10608 2011-03-15  Richard Guenther  <rguenther@suse.de>
10610         PR middle-end/47650
10611         * tree-pretty-print.c (dump_function_declaration): Properly
10612         dump unprototyped and varargs function types.
10614 2011-03-15  Richard Guenther  <rguenther@suse.de>
10616         PR tree-optimization/13954
10617         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10618         and friends.
10620 2011-03-15  Richard Guenther  <rguenther@suse.de>
10622         PR tree-optimization/48037
10623         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10624         selects into BIT_FIELD_REFs.
10625         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10626         vector select.
10628 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
10630         PR tree-optimization/48129
10631         * builtins.c (fold_builtin_snprintf): Convert to type of
10632         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10633         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10635 2011-03-15  Richard Guenther  <rguenther@suse.de>
10637         PR tree-optimization/41490
10638         * tree-ssa-dce.c (propagate_necessity): Handle returns without
10639         value but with VUSE.
10640         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10641         return statements.
10642         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10643         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10644         * tree-tailcall.c (find_tail_calls): Ignore returns.
10646 2011-03-15  Richard Guenther  <rguenther@suse.de>
10648         PR middle-end/48031
10649         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10650         or variable-indexed array accesses when in gimple form.
10652 2011-03-15  Richard Guenther  <rguenther@suse.de>
10654         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10656 2011-03-15  Alan Modra  <amodra@gmail.com>
10658         PR target/48032
10659         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10660         presume symbol_refs without a symbol_ref_decl are suitably
10661         aligned, nor other trees we may see here.  Handle anchor symbols.
10662         (legitimate_constant_pool_address_p): Comment.  Add mode param.
10663         Check cmodel=medium addresses.  Adjust all calls.
10664         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10665         creating cmodel=medium optimized access to locals.
10666         * config/rs6000/constraints.md (R): Pass QImode to
10667         legitimate_constant_pool_address_p.
10668         * config/rs6000/predicates.md (input_operand): Pass mode to
10669         legitimate_constant_pool_address_p.
10670         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10671         Update prototype.
10673 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10675         PR target/48053
10676         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10677         64-bit constants being loaded into registers other than GPRs such
10678         as loading 0 into a VSX register.
10680 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10682         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10684 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10686         PR middle-end/47917
10687         * builtins.c (fold_builtin_snprintf): New function.
10688         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10689         (fold_builtin_4): Likewise.
10691         PR middle-end/38878
10692         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10693         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
10694         and C - X == X also strip nops from +/-/p+ operand.
10695         When optimizing -X == C, fold C to arg0's type.
10697         PR debug/47946
10698         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10699         emit it as add_AT_int instead of add_AT_unsigned.
10701 2011-03-14  Tom Tromey  <tromey@redhat.com>
10703         * unwind-dw2.c: Include sys/sdt.h if it exists.
10704         (_Unwind_DebugHook): Use STAP_PROBE2.
10705         * config.in, configure: Rebuild.
10706         * configure.ac: Check for sys/sdt.h.
10708 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
10710         * config/i386/i386.md (ROUND_FLOOR): New constant.
10711         (ROUND_CEIL): Ditto.
10712         (ROUND_TRUNC): Ditto.
10713         (ROUND_MXCSR): Ditto.
10714         (ROUND_NO_EXC): Ditto.
10715         (rint<mode>2): Use new defines instead of numerical constants.
10716         (floor<mode>2): Ditto.
10717         (ceil<mode>2): Ditto.
10718         (btrunc<mode>2): Ditto.
10719         * config/i386/i386-builtin-types.def: Define ROUND function type
10720         aliases.
10721         * config/i386/i386.c (enum ix86_builtins): Add
10722         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10723         (struct builtin_description): Add
10724         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10725         (ix86_expand_sse_round): New static function.
10726         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10727         function types.
10728         (ix86_builtin_vectorized_function): Handle
10729         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10731 2011-03-14  Tom Tromey  <tromey@redhat.com>
10733         * c-parser.c (c_parser_asm_string_literal): Clear
10734         warn_overlength_strings.
10736 2011-03-14  Tom Tromey  <tromey@redhat.com>
10738         * c-parser.c (disable_extension_diagnostics): Save
10739         warn_overlength_strings.
10740         (restore_extension_diagnostics): Restore warn_overlength_strings.
10742 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10744         * BASE-VER: Change to 4.7.0.
10746 2011-03-14  Richard Guenther  <rguenther@suse.de>
10748         PR middle-end/48098
10749         * tree.c (build_vector_from_val): Adjust assert to requirements
10750         and reality.
10752 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
10754         PR bootstrap/48102
10755         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10757 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
10759         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10760         terms of target_flags_explicit. Adjust copyright year.
10762         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10763         * config/rs6000/t-freebsd: New file. Add override for
10764         LIB2FUNCS_EXTRA.
10766 2011-03-13  Chris Demetriou  <cgd@google.com>
10768         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10769         (-fno-diagnostics-show-option): this, to reflect current default.
10770         (-Werror=): Update text about -fno-diagnostics-show-option.
10772 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
10774         PR target/48053
10775         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10776         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10777         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10778         mode is not V2DImode or V2DFmode.
10779         (vspltis_constant): Do not handle V2DImode and V2DFmode.
10780         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10781         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10782         registers to 0.
10783         (movdi_internal64): Likewise.
10785 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
10787         PR tree-optimization/47127
10788         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10789         parameter.
10790         (set_cloog_options): Same.
10791         (scop_to_clast): Same.
10792         (print_clast_stmt): Do not call cloog_state_malloc and
10793         cloog_state_free.
10794         (print_generated_program): Same.
10795         (gloog): Same.
10796         * graphite-clast-to-gimple.h (cloog_state): Declared.
10797         (scop_to_clast): Adjust declaration.
10798         * graphite.c (cloog_state): Defined here.
10799         (graphite_initialize): Call cloog_state_malloc.
10800         (graphite_finalize): Call cloog_state_free.
10802 2011-03-11  Jason Merrill  <jason@redhat.com>
10804         * attribs.c (lookup_attribute_spec): Take const_tree.
10805         * tree.h: Adjust.
10807 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
10809         * config/sparc/sparc.c (sparc_option_override): Use
10810         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10812 2011-03-11  Richard Guenther  <rguenther@suse.de>
10814         PR tree-optimization/48067
10815         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10816         multiplication result will be only used once on the target
10817         stmt.
10819 2011-03-11  Richard Guenther  <rguenther@suse.de>
10821         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10823 2011-03-11  Richard Guenther  <rguenther@suse.de>
10825         PR lto/48073
10826         * tree.c (find_decls_types_r): Do not walk types only reachable
10827         from IDENTIFIER_NODEs.
10829 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10831         PR middle-end/48044
10832         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10833         all vnode->force_output nodes as needed.
10835 2011-03-11  Jason Merrill  <jason@redhat.com>
10837         PR c++/48069
10838         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10839         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10841 2011-03-11  Martin Jambor  <mjambor@suse.cz>
10843         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10844         cgraph_node.
10846 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
10848         PR tree-optimization/48063
10849         * ipa-inline.c (cgraph_decide_inlining): Don't try to
10850         inline functions called once if !tree_can_inline_p (node->callers).
10852 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
10854         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10855         extra_objs.
10856         * config/score/score3.c: Delete.
10857         * config/score/score3.h: Delete.
10858         * config/score/mul-div.S: Delete.
10859         * config/score/sfp-machine.h: Add new file.
10860         * config/score/constraints.md: Add new file.
10861         * config/score/t-score-softfp: Add new file.
10862         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10863         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10864         (score7_extra_constraint): Delete.
10865         (score7_option_override): Remove unused code.
10866         * config/score/score.c: Remove score3 and score5 define and code.
10867         * config/score/score.h: Remove score3 and score5 define and code.
10868         * config/score/score.md: Remove score3 template and unusual insn.
10869         * config/score/score.opt: Remove score3 and score5 options.
10871 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10873         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10874         when _HPUX_SOURCE is defined.
10875         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10877 2011-03-10  Jason Merrill  <jason@redhat.com>
10879         PR c++/48029
10880         * stor-layout.c (layout_type): Don't set structural equality
10881         on arrays of incomplete type.
10882         * tree.c (type_hash_eq): Handle comparing them properly.
10884 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10886         PR debug/48043
10887         * config/s390/s390.c (s390_delegitimize_address): Make sure the
10888         result mode matches original rtl mode.
10890 2011-03-10  Nick Clifton  <nickc@redhat.com>
10892         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
10893         (andsi3, andsi3_flags): Fix timings for three operand alternative.
10895 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
10897         PR rtl-optimization/47866
10898         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10899         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10900         if target wasn't scalar.
10901         * function.c (assign_stack_temp_for_type): Assert that neither
10902         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10903         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10904         macro.
10905         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10907 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10909         * config/s390/s390-protos.h (s390_label_align): New prototype.
10910         * config/s390/s390.c (s390_label_align): New function.
10911         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10913 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10915         PR target/47755
10916         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10917         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
10918         (output_vec_const_move): Ditto.
10920 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
10922         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10923         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10924         * config/mips/mips.c (mips_preferred_reload_class): Make static.
10925         Change 'rclass' argument and result type to reg_class_t.
10926         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10928 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
10930         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10931         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10932         (TARGET_MEMORY_MOVE_COST): Define.
10933         (avr_register_move_cost, avr_memory_move_cost): New Functions.
10935 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
10937         PR debug/47881
10938         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10939         removed anything.
10941         PR tree-optimization/48022
10942         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10943         for EQ/NE_EXPR.
10945 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
10947         PR debug/47991
10948         * var-tracking.c (find_use_val): Return NULL for
10949         cui->sets && cui->store_p BLKmode MEMs.
10951 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
10953         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10954         Remove.
10955         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10956         xstormy16_print_operand_address): Remove.
10957         * config/stormy16/stormy16.c (xstormy16_print_operand,
10958         xstormy16_print_operand_address): Make static.
10959         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10961 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
10963         PR target/47862
10964         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10965         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10966         before definition.
10968 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
10970         PR bootstrap/48000
10971         * cfgloopmanip.c (fix_bb_placements): Return immediately
10972         if FROM is BASE_LOOP's header.
10974 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
10976         * gimplify.c (gimplify_function_tree): Fix building calls
10977         to __builtin_return_address.
10979 2011-03-07  Alan Modra  <amodra@gmail.com>
10981         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10982         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10983         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10984         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10985         return_mode args.
10986         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10987         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10988         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10989         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10990         * config/rs6000/rs6000.c
10991         (rs6000_elf_end_indicate_exec_stack): Rename to..
10992         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
10993         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
10994         (rs6000_file_start): ..here.
10995         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10996         file scope variables.
10997         (call_ABI_of_interest): New function.
10998         (init_cumulative_args): Set above vars when function return value
10999         is a float, vector, or small struct.
11000         (rs6000_function_arg_advance_1): Likewise for function args.
11001         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11002         references float args.
11004 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11006         * doc/cfg.texi: Remove "See" before @ref.
11007         * doc/invoke.texi: Likewise.
11009 2011-03-05  Jason Merrill  <jason@redhat.com>
11011         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11013 2011-03-05  Anthony Green  <green@moxielogic.com>
11015         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11017 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11019         PR rtl-optimization/47899
11020         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11021         to flow_loop_nested_p when moving the loop upward.
11023 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11025         PR target/47719
11026         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11028 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11030         PR tree-optimization/47967
11031         * ipa-cp.c (build_const_val): Return NULL instead of creating
11032         VIEW_CONVERT_EXPR for mismatching sizes.
11033         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11034         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11035         give up on versioning.
11037 2011-03-05  Alan Modra  <amodra@gmail.com>
11039         PR target/47986
11040         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11041         full cmodel medium/large lo_sum + high addresses.
11043 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11045         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11046         pool references in UNSPEC_LTREL_OFFSET.
11048 2011-03-04  Jan Hubicka  <jh@suse.cz>
11050         PR lto/47497
11051         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11052         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11053         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11054         Add node pointers.
11055         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11056         cgraph_add_thunk): Add node pointers.
11057         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11058         associated to right node.
11059         (input_node): Update use of cgraph_same_body_alias
11060         and cgraph_add_thunk.
11062 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11064         * config/i386/i386.opt (mprefer-avx128): New flag.
11065         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11066         modes when the flag -mprefer-avx128 is on.
11068 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11070         * dwarf2out.c (compare_loc_operands): Fix address handling.
11072 2011-03-04  Alan Modra  <amodra@gmail.com>
11074         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11076 2011-03-04  Richard Guenther  <rguenther@suse.de>
11078         PR middle-end/47968
11079         * expmed.c (extract_bit_field_1): Prefer vector modes that
11080         vec_extract patterns can handle.
11082 2011-03-04  Richard Guenther  <rguenther@suse.de>
11084         PR middle-end/47975
11085         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11087 2011-03-04  Richard Henderson  <rth@redhat.com>
11089         * explow.c (emit_stack_save): Remove 'after' parameter.
11090         (emit_stack_restore): Likewise.
11091         * expr.h: Update to match.
11092         * builtins.c, calls.c, stmt.c: Likewise.
11093         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11094         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11095         * function.c (expand_function_end): Insert the emit_stack_save
11096         sequence before parm_birth_insn instead of after.
11098 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11100         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11101         (ssse3_pmaddubsw128): Ditto.
11102         (ssse3_pmaddubsw): Ditto.
11104 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11106         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11108 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11110         PR c/47963
11111         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11112         on TYPE_SIZE_UNIT if it is a DECL.
11114         PR debug/47283
11115         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11116         first operand is not is_gimple_mem_ref_addr, try to fold it.
11117         If the operand still isn't is_gimple_mem_ref_addr, clear
11118         MEM_EXPR on op0.
11120 2011-03-03  Richard Guenther  <rguenther@suse.de>
11122         PR middle-end/47283
11123         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11124         match comment.
11125         (refs_may_alias_p_1): For release branches return true if
11126         we are confused by our input.
11128 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11130         * config/s390/s390.c (s390_function_value): Rename to ...
11131         (s390_function_and_libcall_value): ... this.
11132         (s390_function_value): New function.
11133         (s390_libcall_value): New function.
11134         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11135         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11136         target macro definitions.
11137         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11139 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11141         * config/i386/freebsd64.h (CC1_SPEC): Define.
11142         * config/i386/linux64.h (CC1_SPEC): Define.
11143         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11145 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11147         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11148         Remove.
11149         * config/stormy16/stormy16.c: Include reload.h.
11150         (xstormy16_memory_move_cost): New function.
11151         (TARGET_MEMORY_MOVE_COST): Define.
11153 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11155         PR rtl-optimization/47925
11156         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11157         with side effects.  Remove the more-specific check for volatile asms.
11159 2011-03-02  Alan Modra  <amodra@gmail.com>
11161         PR target/47935
11162         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11163         toc relative addresses for valid offsets.
11165 2011-03-01  Richard Guenther  <rguenther@suse.de>
11167         PR tree-optimization/47890
11168         * tree-vect-loop.c (get_initial_def_for_induction): Set
11169         related stmt properly.
11171 2011-03-01  Richard Guenther  <rguenther@suse.de>
11173         PR lto/47924
11174         * lto-streamer.c (lto_record_common_node): Also register
11175         the canonical type.
11177 2011-03-01  Richard Guenther  <rguenther@suse.de>
11179         PR lto/46911
11180         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11181         Do not stream DECL_ABSTRACT_ORIGIN.
11182         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11183         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11184         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11185         Do not stream DECL_ABSTRACT_ORIGIN.
11186         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11187         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11189 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11191         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11192         FUNCTION_VALUE_REGNO_P): Remove.
11193         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11194         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11195         Add 'outgoing' argument.
11196         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11197         function.
11198         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11199         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11201 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11203         PR debug/28047
11204         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11205         (lookup_filename): Likewise.
11206         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11208 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11209             Jakub Jelinek  <jakub@redhat.com>
11211         PR middle-end/47893
11212         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11213         (assign_stack_local_1): Change last argument type to int.
11214         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11215         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11216         don't record padding space into frame_space_list nor use those areas.
11217         (assign_stack_local): Adjust caller.
11218         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11219         of assign_stack_local, pass 0 as last argument.
11220         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11221         callers.
11223 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11225         PR debug/47283
11226         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11227         Use target address_mode and pointer_mode hooks instead of hardcoded
11228         Pmode and ptr_mode.  Handle some simple cases of extending if
11229         POINTERS_EXTEND_UNSIGNED < 0.
11230         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11231         Call convert_debug_memory_address.
11232         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11233         convert_debug_memory_address.
11235         PR middle-end/46790
11236         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11237         * configure: Regenerated.
11238         * config.in: Regenerated.
11239         * varasm.c (default_function_section): Return NULL
11240         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11242 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11244         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11245         the description to match the printed values.
11247 2011-02-28  Richard Guenther  <rguenther@suse.de>
11249         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11250         of the copied scope tree.
11252 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11254         * doc/extend.texi (Function Attributes): Avoid deeply (and
11255         wrongly) nested tables.
11257 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11259         PR middle-end/47903
11260         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11261         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11262         r isn't op0 nor op1.
11264 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11266         * config/avr/avr.md: Remove magic comment for emacs.
11268 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11270         PR target/45261
11271         * config/avr/avr.c (avr_option_override): Use error on bad options.
11272         (avr_help): New function.
11273         (TARGET_HELP): Define.
11275 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11277         PR target/42240
11278         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11279         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11281 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11283         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11284         (ARM Options): Ditto.
11285         (i386 and x86-64 Options): Ditto.
11286         (RX Options): Ditto.
11287         (SPARC Options): Ditto.
11289 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11291         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11292         FreeBSD 6 and later.  Generally use cpu generic.
11294 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11296         * doc/cpp.texi: Update copyright years.
11298 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11300         PR target/46898
11301         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11303 2011-02-25  Jon Beniston  <jon@beniston.com>
11305         PR target/46898
11306         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11307         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11308         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11309         (lm32_block_move_inline): Add type cast to remove warning.
11310         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11311         (gen_int_relational): Move declarations to start of function.
11313 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11315         PR tree-optimization/45470
11316         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11317         can throw internally only.
11318         * tree-vect-stmts.c (vectorizable_call): Likewise.
11320 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11322         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11323         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11324         * config/stormy16/stormy16-protos.h
11325         (xstormy16_preferred_reload_class): Remove.
11326         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11327         static. Change 'rclass' argument and return type to reg_class_t.
11328         (TARGET_PREFERRED_RELOAD_CLASS,
11329         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11331 2011-02-24  Richard Guenther  <rguenther@suse.de>
11333         * lto-streamer-in.c (input_bb): Do not find referenced vars
11334         in debug statements.
11336 2011-02-23  Jason Merrill  <jason@redhat.com>
11338         * common.opt (fabi-version): Document v5 and v6.
11340 2011-02-23  Richard Guenther  <rguenther@suse.de>
11342         PR tree-optimization/47849
11343         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11345 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11347         * opts-common.c (decode_cmdline_option): Print empty string
11348         argument as "" in decoded->orig_option_with_args_text.
11349         * gcc.c (execute): Print empty string argument as ""
11350         in the verbose output.
11351         (do_spec_1): Keep empty string argument.
11353 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11355         * config.gcc: Declare score-* and crx-* obsolete.
11357 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11359         PR rtl-optimization/47763
11360         * web.c (web_main): Ignore naked clobber when replacing register.
11362 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11364         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11365         Remove.
11367 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11369         PR doc/47848
11370         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11372 2011-02-22  Mike Stump  <mikestump@comcast.net>
11374         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11375         assembler.
11376         * configure: Regenerate.
11378 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11380         PR rtl-optimization/46002
11381         * ira-color.c (update_copy_costs): Change class intersection
11382         test to reg_class_contents[] test of 'hard_regno'.
11384 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11386         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11387         than Driver option.
11388         * config/hpux11.opt (mt): Likewise.
11389         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11390         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11391         * config/vax/elf.opt (mno-asm-pic): Likewise.
11392         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11394 2011-02-21  Mike Stump  <mikestump@comcast.net>
11396         PR target/47822
11397         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11398         tree so we can get save the type.
11399         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11400         for CFString instead of trying to use past the end of the builtins.
11401         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11402         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11403         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11404         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11405         Rename to darwin_builtin_cfstring.
11406         (darwin_init_cfstring_builtins): Return the built type.
11408 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11410         PR target/47840
11411         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11412         (_mm256_insert_epi64): Use _mm_insert_epi64.
11414 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11416         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11417         * config/stormy16/stormy16-protos.h
11418         (xstormy16_mode_dependent_address_p): Remove.
11419         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11420         Make static. Change return type to bool. Change argument type to
11421         const_rtx. Remove dead code.
11422         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11424 2011-02-21  Richard Guenther  <rguenther@suse.de>
11426         PR lto/47820
11427         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11428         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11429         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11430         TUs context.
11431         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11432         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11434 2011-02-20  Richard Guenther  <rguenther@suse.de>
11436         PR lto/47822
11437         * tree.c (free_lang_data_in_decl): Clean builtins from
11438         the TU decl BLOCK_VARS.
11440 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11442         PR debug/47620
11443         PR debug/47630
11444         * haifa-sched.c (fix_tick_ready): Skip tick computation
11445         for debug insns.
11447 2011-02-19  Richard Guenther  <rguenther@suse.de>
11449         PR lto/47647
11450         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11451         Remove lazy BLOCK_VARS streaming.
11452         (lto_input_ts_block_tree_pointers): Likewise.
11453         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11455 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11457         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11459 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11461         * config/i386/biarch32.h, config/i386/mach.h,
11462         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11464 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11466         PR target/47800
11467         * config/i386/i386.md (peephole2 for shift and plus): Use
11468         operands[1] original mode in the first insn.
11470 2011-02-18  Mike Stump  <mikestump@comcast.net>
11472         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11474 2011-02-18  Jan Hubicka  <jh@suse.cz>
11476         PR middle-end/47788
11477         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11478         to zero when the function is not inlinable at all.
11480 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11482         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11483         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11484         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11485         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11486         * config/pa/t-pa64: Likewise.
11487         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11489 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11491         PR driver/47787
11492         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11494 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11496         PR target/47792
11497         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11499 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11501         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11502         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11503         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11504         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11505         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11506         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11507         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11508         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11509         m32r_legitimate_address_p): New functions.
11510         * config/m32r/constraints.md (constraint "S"): Don't use
11511         STORE_PREINC_PREDEC_P.
11512         (constraint "U"): Don't use LOAD_POSTINC_P.
11514 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11516         PR rtl-optimization/46178
11517         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11518         compute ira_hard_regno_cover_class[].
11520 2011-02-18  Richard Guenther  <rguenther@suse.de>
11522         PR lto/47798
11523         * lto-streamer.h (lto_global_var_decls): Declare.
11524         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11525         statics for global var processing.
11527 2011-02-18  Richard Guenther  <rguenther@suse.de>
11529         PR tree-optimization/47737
11530         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11531         edge dominance check.
11533 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11535         PR debug/47780
11536         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11537         avoid invalid rtx sharing.
11539 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11541         * doc/cpp.texi (Obsolete Features): Add background on the
11542         origin of assertions.
11544 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11546         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11547         objc_abi == 2.
11548         * config/darwin.c (output_objc_section_asm_op): Added support for
11549         ABI v1 and v2.
11550         (is_objc_metadata): New.
11551         (darwin_objc2_section): New.
11552         (darwin_objc1_section): New.
11553         (machopic_select_section): Added support for ABI v1 and v2.
11554         (darwin_emit_objc_zeroed): New.
11555         (darwin_output_aligned_bss): Detect objc metadata and treat it
11556         appropriately.
11557         (darwin_asm_output_aligned_decl_common): Same.
11558         (darwin_asm_output_aligned_decl_local): Same.
11559         * config/darwin-sections.def: Updated for ABI v1 and v2.
11560         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11561         compiling Objective-C code for the NeXT runtime, default to using
11562         ABI version 0 for 32-bit, and version 2 for 64-bit.
11564 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11566         * common.opt (optimize_fast): New Variable.
11567         * opts.c (default_options_optimization): Use opts->x_optimize_fast
11568         instead of local variable ofast.
11570 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
11572         * doc/invoke.texi (fobjc-abi-version): Documented.
11573         (fobjc-nilcheck): Documented.
11574         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11575         version.
11577 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11579         PR driver/47390
11580         * common.opt (export-dynamic): New Driver option.
11581         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11583 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11585         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11587 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
11588             Jan Hubicka  <jh@suse.cz>
11590         PR debug/47106
11591         PR debug/47402
11592         * cfgexpand.c (account_used_vars_for_block): Remove.
11593         (estimated_stack_frame_size): Use referenced vars.
11594         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11595         that were referenced in the original function.  Test src_fn
11596         rather than cfun.  Drop redundant get_var_ann.
11597         (setup_one_parameter): Drop redundant get_var_ann.
11598         (declare_return_variable): Likewise.
11599         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11600         (copy_arguments_for_versioning): Drop redundant get_var_ann.
11601         * ipa-inline.c (compute_inline_parameters): Do not compute
11602         disregard_inline_limits here.
11603         (compute_inlinable_for_current, pass_inlinable): New.
11604         (pass_inline_parameters): Require PROP_referenced_vars.
11605         * cgraphunit.c (cgraph_process_new_functions): Don't run
11606         compute_inline_parameters explicitly unless function is in SSA form.
11607         (cgraph_analyze_function): Set .disregard_inline_limits.
11608         * tree-sra.c (convert_callers): Compute inliner parameters
11609         only for functions already in SSA form.
11611 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11613         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11614         -mlittle-endian-data.
11616 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
11618         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11619         -mno-fpu, not -fpu and -no-fpu.
11620         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11621         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11623 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
11625         PR target/43653
11626         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11627         input reload with PLUS RTX.
11629 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11631         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11632         of InverseVar(MDMX).
11634 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11636         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11637         --m4-340.
11639 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11641         * config/mn10300/mn10300.opt (mno-crt0): New.
11643 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11645         * config/m68k/uclinux.opt (static-libc): New Driver option.
11647 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11649         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11651 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
11653         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11654         %{muser-extend-enabled}.
11656 2011-02-16  Richard Guenther  <rguenther@suse.de>
11658         PR tree-optimization/47738
11659         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11660         the TODO from tree_predictive_commoning.
11662 2011-02-15  Jeff Law  <law@redhat.com>
11664         Revert
11665         2011-01-25  Jeff Law  <law@redhat.com>
11667         PR rtl-optimization/37273
11668         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11669         handle them like argument loads from stack slots.  Do not double
11670         count memory for memory constants and argument loads from stack slots.
11672 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11674         PR middle-end/47725
11675         * combine.c (cant_combine_insn_p): Revert the last change.
11677 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
11679         PR target/47755
11680         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11681         mode for vector constants.  Remove code that checks for TImode.
11683 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11685         PR debug/47106
11686         PR debug/47402
11687         * cgraph.h (compute_inline_parameters): Return void.
11688         * ipa-inline.c (compute_inline_parameters): Adjust.
11690 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11692         PR debug/47106
11693         PR debug/47402
11694         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11695         rather than decl.
11696         * cfgexpand.c (estimated_stack_frame_size): Likewise.
11697         * ipa-inline.c (compute_inline_parameters): Adjust.
11699 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11701         PR debug/47106
11702         PR debug/47402
11703         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11704         Adjust all users.  Pass FN to...
11705         * tree-flow-inline.h (first_referenced_var): ... this.  Add
11706         fn argument.
11707         * ipa-struct-reorg.c: Adjust.
11708         * tree-dfa.c: Adjust.
11709         * tree-into-ssa.c: Adjust.
11710         * tree-sra.c: Adjust.
11711         * tree-ssa-alias.c: Adjust.
11712         * tree-ssa-live.c: Adjust.
11713         * tree-ssa.c: Adjust.
11714         * tree-ssanames.c: Adjust.
11715         * tree-tailcall.c: Adjust.
11717 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
11719         PR debug/47106
11720         PR debug/47402
11721         * tree-flow.h (referenced_var_lookup): Add fn parameter.
11722         Adjust all callers.
11723         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11724         * tree-flow-inline.h: Adjust.
11725         * gimple-pretty-print.c: Adjust.
11726         * tree-into-ssa.c: Adjust.
11727         * tree-ssa.c: Adjust.
11728         * cfgexpand.c: Adjust.
11730 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11732         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11733         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11734         (EXTRA_CONSTRAINT): Delete.
11735         * config/iq2000/constraints.md: New file.
11736         * config/iq2000/iq2000.md: Include it.
11737         (define_insn ""): Delete.
11738         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11739         unsupported constraint letters from patterns.
11740         (call_value, call_value_internal1): Likewise.
11741         (call_value_multiple_internal1): Likewise.
11743 2011-02-15  Nick Clifton  <nickc@redhat.com>
11745         * config/mn10300/mn10300.c: Include tm-constrs.h.
11746         (struct liw_data): New data structure describing an LIW candidate
11747         instruction.
11748         (extract_bundle): Use struct liw_data.  Allow small integer
11749         operands for some instructions.
11750         (check_liw_constraints): Use struct liw_data.  Remove swapped
11751         parameter.  Add comments describing the checks.  Fix bug when
11752         assigning the source of liw1 to the source of liw2.
11753         (liw_candidate): Delete.  Code moved into extract_bundle.
11754         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
11755         before swapping.
11756         * config/mn10300/predicates.md (liw_operand): New predicate.
11757         Allows registers and small integer constants.
11758         * config/mn10300/constraints.md (O): New constraint.  Accetps
11759         integers in the range -8 to +7 inclusive.
11760         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11761         for moving a small integer into a register.  Give this alternative
11762         LIW attributes.
11763         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11764         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11765         using the J,K,L and M constraints,
11766         (liw): Remove SI mode on second operands to allow for HI and QI
11767         mode values.
11768         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
11769         instruction.
11771 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
11773         PR middle-end/47725
11774         * combine.c (cant_combine_insn_p): Check zero/sign extended
11775         hard registers.
11777 2011-02-15  Richard Guenther  <rguenther@suse.de>
11779         PR tree-optimization/47743
11780         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11781         for a non-type-compatible VN lookup bail out.
11783 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11785         * config/fr30/constraints.md: New file.
11786         * config/fr30/fr30.md: Include it.
11787         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11788         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11789         (EXTRA_CONSTRAINT): Delete.
11791 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
11793         * config/frv/constraints.md: New file.
11794         * config/frv/predicates.md: Include it.
11795         * config/frv/frv.c (reg_class_from_letter): Delete.
11796         (frv_option_override): Don't initialize it.
11797         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11798         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11799         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11800         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11801         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11802         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11803         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11804         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11805         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11806         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11807         (REG_CLASS_FROM_CONSTRAINT): Delete.
11809 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
11811         PR middle-end/47581
11812         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11813         if frame size is 0 in a leaf function.
11815 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11817         PR pch/14940
11818         * config/alpha/host-osf.c: New file.
11819         * config/alpha/x-osf: New file.
11820         * config.host (alpha*-dec-osf*): Use it.
11822 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11824         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11825         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11826         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11827         (rx_mode_dependent_address_p): ...this. Make static. Change argument
11828         type to const_rtx.
11829         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11831 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11833         * config/stormy16/constraints.md: New file.
11834         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11835         Use satisfies_constraint_Q and satisfies_constraint_R.
11836         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11837         Delete.
11838         (xstormy16_legitiamte_address_p): Declare.
11839         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11840         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11841         (EXTRA_CONSTRAINT): Delete.
11842         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11843         Un-staticize.
11844         (xstormy16_extra_constraint_p): Delete.
11846 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
11848         PR tree-optimization/46494
11849         * loop-unroll.c (split_edge_and_insert): Adjust comment.
11850         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11851         (pass_rtl_loop_done): Add TODO_verify_flow.
11852         * fwprop.c (pass_rtl_fwprop): Likewise.
11853         * modulo-sched.c (pass_sms): Likewise.
11854         * tree-ssa-dom.c (pass_dominator): Likewise.
11855         * tree-ssa-loop-ch.c (pass_ch): Likewise.
11856         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11857         (pass_tree_loop_done): Likewise.
11858         * tree-ssa-pre.c (execute_pre): Likewise.
11859         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11860         * tree-ssa-sink.c (pass_sink_code): Likewise.
11861         * tree-vrp.c (pass_vrp): Likewise.
11863 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11865         * config/v850/constraints.md: New file.
11866         * config/v850/v850.md: Include it.
11867         * config/v850/predicates.md (reg_or_0_operand): Use
11868         satisfies_constraint_G.
11869         (special_symbolref_operand): Use satisfies_constraint_K.
11870         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11871         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11872         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11873         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11874         (EXTRA_CONSTRAINT): Delete.
11875         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11876         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11877         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
11879 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
11881         PR target/47696
11882         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11883         description.
11885 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
11887         * config/mcore/constraints.md: New file.
11888         * config/mcore/mcore.md: Include it.
11889         * config/mcore/mcore.c (reg_class_from_letter): Delete.
11890         * config/mcore/mcore.h (reg_class_from_letter): Delete.
11891         (REG_CLASS_FROM_LETTER): Delete.
11892         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11893         insn_const_int_ok_for_constraint.
11894         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11895         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11896         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11897         (EXTRA_CONSTRAINT): Delete.
11899 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11901         PR ada/41929
11902         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11903         (IS_SIGHANDLER): Define.
11904         (sparc64_is_sighandler): New function, split off from
11905         sparc64_fallback_frame_state.
11906         (sparc_is_sighandler): New function, split off from
11907         sparc_fallback_frame_state.
11908         (sparc64_fallback_frame_state): Merge with ...
11909         (sparc_fallback_frame_state): ... this into ...
11910         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
11911         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
11912         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
11913         stack instead of hardcoded offsets.
11915 2011-02-14  Andriy Gapon  <avg@freebsd.org>
11917         PR target/45808
11918         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11920 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11922         * configure: Regenerate.
11924 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
11926         PR driver/45731
11927         * gcc.c (asm_options): Correct spec matching --target-help.
11929 2011-02-12  Martin Jambor  <mjambor@suse.cz>
11931         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11932         to gimple call error.
11934 2011-02-12  Mike Stump  <mikestump@comcast.net>
11936         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11937         comments in backslash regions.
11939 2011-02-12  Mike Stump  <mikestump@comcast.net>
11940             Jakub Jelinek  <jakub@redhat.com>
11941             Iain Sandoe  <iains@gcc.gnu.org>
11943         PR target/47324
11944         * dwarf2out.c (output_cfa_loc): When required, apply the
11945         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11946         (output_loc_sequence): Likewise.
11947         (output_loc_operands_raw): Likewise.
11948         (output_loc_sequence_raw): Likewise.
11949         (output_cfa_loc): Likewise.
11950         (output_loc_list): Suppress register number adjustment when
11951         calling output_loc_sequence()
11952         (output_die): Likewise.
11954 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
11956         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11957         Remove macros.
11958         * config/xtensa/xtensa.c (xtensa_register_move_cost,
11959         xtensa_memory_move_cost): New functions.
11960         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11962 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
11964         PR lto/47225
11965         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11966         in the current directory.
11967         * configure: Rebuilt.
11969 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11971         * config/darwin.c (darwin_override_options): Add a hunk missed
11972         from the commit of r168571.  Trim comment line lengths and
11973         correct indents of the preceding block.
11975 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
11977         * gcc.c (driver_handle_option): Concatenate the argument to -F with
11978         the switch.
11980 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
11982         * common.opt (nostartfiles): New Driver option.
11984 2011-02-11  Xinliang David Li  <davidxl@google.com>
11986         PR tree-optimization/47707
11987         * tree-chrec.c (convert_affine_scev): Keep type precision.
11989 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
11991         PR tree-optimization/47420
11992         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11994 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
11996         PR rtl-optimization/47614
11997         * rtl.h (check_for_inc_dec): Declare.
11998         * dse.c (check_for_inc_dec): Externalize...
11999         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12000         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12002 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12004         PR driver/47678
12005         * gcc.c (main): Do not compile inputs if there were errors in
12006         option handling.
12007         * opts-common.c (read_cmdline_option): Check for wrong language
12008         after other error checks.
12010 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12012         * cgraph.c: Fix comment typos.
12013         * cgraph.h: Likewise.
12014         * cgraphunit.c: Likewise.
12015         * ipa-cp.c: Likewise.
12016         * ipa-inline.c: Likewise.
12017         * ipa-prop.c: Likewise.
12018         * ipa-pure-const.c: Likewise.
12019         * ipa-ref.c: Likewise.
12020         * ipa-reference.c: Likewise.
12022 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12024         PR debug/47684
12025         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12027 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12029         PR testsuite/47400
12030         * doc/sourcebuild.texi (Require Support): Document
12031         dg-require-ascii-locale.
12033 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12035         * doc/lto.texi (Write summary): Fix missing parentheses.
12037 2011-02-10  DJ Delorie  <dj@redhat.com>
12039         * config/m32c/m32c.c (m32c_option_override): Disable
12040         -fcombine-stack-adjustments until flag value tracking and compare
12041         optimization can be rewritten.
12043 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12045         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12046         PROCESSOR_POWER7.
12047         (PROCESSOR_DEFAULT64): Likewise.
12049 2011-02-10  Richard Henderson  <rth@redhat.com>
12051         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12052         change from 2011-02-03.
12053         * config/rx/rx.c (flags_from_code): Likewise.
12054         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12055         is valid, n/pz otherwise.
12056         (rx_select_cc_mode): Return CCmode if Y is not zero.
12058 2011-02-10  Richard Guenther  <rguenther@suse.de>
12060         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12062 2011-02-10  Richard Guenther  <rguenther@suse.de>
12064         PR tree-optimization/47677
12065         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12067 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12069         PR target/47665
12070         * combine.c (make_compound_operation): Only change shifts into
12071         multiplication for SCALAR_INT_MODE_P.
12073 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12075         PR testsuite/47622
12076         Revert
12077         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12078         PR debug/42631
12079         * web.c (entry_register): Don't clobber the number of the
12080         first uninitialized reference in used[].
12082 2011-02-09  Richard Guenther  <rguenther@suse.de>
12084         PR tree-optimization/47664
12085         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12086         all edges again.
12088 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12090         PR target/46481
12091         PR target/47032
12092         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12093         PROCESSOR_POWER7.
12094         (PROCESSOR_DEFAULT64): Same.
12095         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12097 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12099         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12101 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12103         PR middle-end/45505
12104         * tree-sra.c (struct access): New flags grp_scalar_read and
12105         grp_scalar_write.  Changed description of assignment read and write
12106         flags.
12107         (dump_access): Dump new flags, reorder all of them.
12108         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12109         to detect multiple scalar reads.
12110         (analyze_access_subtree): Use the new scalar read write flags instead
12111         of the old flags.  Adjusted comments.
12113 2011-02-08  DJ Delorie  <dj@redhat.com>
12115         PR target/47548
12116         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12117         patterns.
12119 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12121         * config/m68k/uclinux.opt: New.
12122         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12124 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12126         * config/cris/elf.opt (sim): New Driver option.
12128 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12130         * config/xtensa/elf.opt: New.
12131         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12133 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12135         * config/vax/elf.opt: New.
12136         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12138 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12140         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12142 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12144         * config/gnu-user.opt: New.
12145         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12146         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12147         *-*-uclinux*): Use gnu-user.opt.
12149 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12151         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12152         * config/i386/gnu.h (CPP_SPEC): Likewise.
12154 2011-02-08  Ian Lance Taylor  <iant@google.com>
12156         * common.opt (fcx-limited-range): Add SetByCombined flag.
12157         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12158         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12159         (fassociative-math, freciprocal-math): Likewise.
12160         (funsafe-math-optimizations): Likewise.
12161         * opth-gen.awk: Handle SetByCombined.
12162         * optc-gen.awk: Likewise.
12163         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12164         (set_unsafe_math_optimizations_flags): Likewise.
12165         * doc/options.texi (Option properties): Document SetByCombined.
12167 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12169         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12170         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12171         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12172         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12173         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12175 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12177         PR tree-optimization/46834
12178         PR tree-optimization/46994
12179         PR tree-optimization/46995
12180         * graphite-sese-to-poly.c (used_outside_reduction): New.
12181         (detect_commutative_reduction): Call used_outside_reduction.
12182         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12183         translate_scalar_reduction_to_array only when at least one
12184         loop-phi/close-phi tuple has been detected.
12186 2011-02-08  Richard Guenther  <rguenther@suse.de>
12188         PR middle-end/47639
12189         * tree-vect-generic.c (expand_vector_operations_1): Update
12190         stmts here ...
12191         (expand_vector_operations): ... not here.  Cleanup EH info
12192         and the CFG if required.
12194 2011-02-08  Richard Guenther  <rguenther@suse.de>
12196         PR tree-optimization/47641
12197         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12198         require type compatibility.
12200 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12202         * gimple-low.c (lower_function_body): Don't remove the location of
12203         the return statement here.
12204         (lower_gimple_return): Do it here instead but only if the return
12205         statement is actually used twice.
12207 2011-02-08  Richard Guenther  <rguenther@suse.de>
12209         PR tree-optimization/47632
12210         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12211         unused up_to_stmt parameter, return whether cfg-cleanup is
12212         necessary, remove EH info properly.
12213         (forward_propagate_into_gimple_cond): Adjust caller.
12214         (forward_propagate_into_cond): Likewise.
12215         (forward_propagate_comparison): Likewise.
12216         (tree_ssa_forward_propagate_single_use_vars): Make
12217         forward_propagate_comparison case similar to the two others.
12219 2011-02-08  Nick Clifton  <nickc@redhat.com>
12221         * config/mn10300/mn10300.opt (mliw): New command line option.
12222         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12223         (liw_bundling): New automaton.
12224         (liw): New attribute.
12225         (liw_op): New attribute.
12226         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12227         (movsi_internal): Add LIW attributes.
12228         (andsi3): Likewise.
12229         (iorsi3): Likewise.
12230         (xorsi3): Likewise.
12231         (addsi3): Separate register and immediate alternatives.
12232         Add LIW attributes.
12233         (subsi3): Likewise.
12234         (cmpsi): Likewise.
12235         (aslsi3): Likewise.
12236         (lshrsi3): Likewise.
12237         (ashrsi3): Likewise.
12238         (liw): New pattern.
12239         * config/mn10300/mn10300.c (liw_op_names): New
12240         (mn10300_print_operand): Handle 'W' operand descriptor.
12241         (extract_bundle): New function.
12242         (check_liw_constraints): New function.
12243         (liw_candidate): New function.
12244         (mn10300_bundle_liw): New function.
12245         (mn10300_reorg): New function.
12246         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12247         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12248         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12249         __LIW__ or __NO_LIW__.
12250         * doc/invoke.texi: Describe the -mliw command line option.
12252 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12254         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12255         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12256         pthread_mutex_unlock): Remove.
12257         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12258         * config/pa/t-pa64: Likewise.
12259         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12260         shared libc if not linking against libpthread.
12261         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12263 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12265         PR target/47558
12266         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12267         on 10.6 and later to ensure that we always use the unwinder from
12268         the system.  Only add -no_compact_unwind when tarteting darwin
12269         10.6 or later.
12271 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12273         PR target/46997
12274         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12275         (vec_interleave_lowv2sf): Ditto.
12276         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12277         (vec_extract_oddv2sf): Ditto.
12279 2011-02-07  Mike Stump  <mikestump@comcast.net>
12281         PR target/42333
12282         Add __ieee_divdc3 entry point.
12283         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12284         entry point.
12285         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12286         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12287         * config/darwin.c (darwin_rename_builtins): Add.
12288         * config/darwin-protos.h (darwin_rename_builtins): Add.
12290 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12292         PR target/47636
12293         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12294         for the condition.
12296 2011-02-07  Mike Stump  <mikestump@comcast.net>
12298         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12300 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12302         PR target/47534
12303         * config/avr/libgcc.S (exit): Move .endfunc
12305 2011-02-07  Richard Guenther  <rguenther@suse.de>
12307         PR tree-optimization/47615
12308         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12309         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12310         (run_scc_vn): Initialize it.
12311         (visit_reference_op_load): Use it.
12312         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12314 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12316         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12317         DImode trapping arithmetic libfuncs.
12319 2011-02-07  Richard Guenther  <rguenther@suse.de>
12321         PR tree-optimization/47621
12322         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12323         two duplicates ...
12324         (execute_update_addresses_taken): ... here.  Make it more
12325         conservative in what we accept.
12327 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12329         * config/sparc/freebsd.h (ASM_SPEC): Define.
12330         * config/sparc/vxworks.h (ASM_SPEC): Define.
12332 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12334         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12336 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12338         * doc/invoke.texi: Remove reference to compiler internals from
12339         user documentation.
12341         * reg-notes.def: Remove REG_VALUE_PROFILE.
12342         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12344 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12346         PR middle-end/47610
12347         * varasm.c (default_section_type_flags): If decl is NULL,
12348         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12350 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12352         PR debug/42631
12353         * web.c (entry_register): Don't clobber the number of the
12354         first uninitialized reference in used[].
12356 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12358         PR tree-optimization/46194
12359         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12360         (build_classic_dist_vector_1): Do not represent classic distance
12361         vectors when the access functions are variating in different loops.
12363 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12365         * config/mips/iris6.opt: New.
12366         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12368 2011-02-04  Richard Henderson  <rth@redhat.com>
12369             Steve Ellcey  <sje@cup.hp.com>
12371         PR target/46997
12372         * config/ia64/predicates.md (mux1_brcst_element): New.
12373         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12374         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12375         (ia64_unpack_sign): New.
12376         (ia64_expand_unpack): Rewrite using new routines.
12377         (ia64_expand_widen_sum): Ditto.
12378         (ia64_expand_dot_prod_v8qi): Ditto.
12379         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12380         routines, add endian check.
12381         (pmpy2_even): Rename from pmpy2_r, add endian check.
12382         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12383         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12384         (vec_widen_smult_hi_v4hi): Ditto.
12385         (vec_widen_umult_lo_v4hi): Ditto.
12386         (vec_widen_umult_hi_v4hi): Ditto.
12387         (mulv2si3): Change endian checks.
12388         (sdot_prodv4hi): Rewrite with new calls.
12389         (udot_prodv4hi): New.
12390         (vec_pack_ssat_v4hi): Add endian check.
12391         (vec_pack_usat_v4hi): Ditto.
12392         (vec_pack_ssat_v2si): Ditto.
12393         (max1_even): Rename from max1_r, add endian check.
12394         (max1_odd): Rename from max1_l, add endian check.
12395         (*mux1_rev): Format change.
12396         (*mux1_mix): Ditto.
12397         (*mux1_shuf): Ditto.
12398         (*mux1_alt): Ditto.
12399         (*mux1_brcst_v8qi): Use new predicate.
12400         (vec_extract_evenv8qi): Remove endian check.
12401         (vec_extract_oddv8qi): Ditto.
12402         (vec_interleave_lowv4hi): Format change.
12403         (vec_interleave_highv4hi): Ditto.
12404         (mix2_even): Rename from mix2_r, add endian check.
12405         (mix2_odd): Rename from mux2_l, add endian check.
12406         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12407         (vec_extract_evenodd_helper): Format change.
12408         (vec_extract_evenv4hi): Remove endian check.
12409         (vec_extract_oddv4hi): Remove endian check.
12410         (vec_interleave_lowv2si): Format change.
12411         (vec_interleave_highv2si): Format change.
12412         (vec_initv2si): Remove endian check.
12413         (vecinit_v2si): Add endian check.
12414         (reduc_splus_v2sf): Add endian check.
12415         (reduc_smax_v2sf): Ditto.
12416         (reduc_smin_v2sf): Ditto.
12417         (vec_initv2sf): Remove endian check.
12418         (fpack): Add endian check.
12419         (fswap): Add endian check.
12420         (vec_interleave_highv2sf): Add endian check.
12421         (vec_interleave_lowv2sf): Add endian check.
12422         (fmix_lr): Add endian check.
12423         (vec_setv2sf): Format change.
12424         (*vec_extractv2sf_0_be): Use shift to extract operand.
12425         (*vec_extractv2sf_1_be): New.
12426         (vec_pack_trunc_v4hi): Add endian check.
12427         (vec_pack_trunc_v2si): Format change.
12429 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12431         PR inline-asm/23200
12432         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12433         do bb, locus and block comparison and disallow loads if it is not set.
12434         (stmt_is_replaceable_p): New function.
12435         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12436         callers.
12437         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12438         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12439         SSA_NAME_DEF_STMT.
12440         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12442 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12444         * config/rs6000/xilinx.opt: New.
12445         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12447 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12449         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12451 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12453         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12454         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12455         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12456         secondary_reload_info, xtensa_secondary_reload): Remove.
12457         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12458         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12459         (xtensa_preferred_reload_class): Make static. Change return and
12460         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12461         Use CONST_DOUBLE_P predicate.
12462         (xtensa_preferred_output_reload_class): New function.
12463         (xtensa_secondary_reload): Make static.
12465 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12467         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12468         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12469         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12471 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12473         PR middle-end/31490
12474         * output.h (SECTION_RELRO): Define.
12475         (SECTION_MACH_DEP): Adjust.
12476         (get_variable_section): New prototype.
12477         * varpool.c (varpool_finalize_named_section_flags): New function.
12478         (varpool_assemble_pending_decls): Call it.
12479         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12480         * cgraphunit.c (cgraph_output_in_order): Call
12481         varpool_finalize_named_section_flags.
12482         * varasm.c (get_section): Allow section flags conflicts between
12483         relro and read-only sections if the section hasn't been declared yet.
12484         Set SECTION_OVERRIDE after diagnosing section type conflict.
12485         (get_variable_section): No longer static.
12486         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12487         readonly sections that need relocations.
12488         (decl_readonly_section_1): New function.
12489         (decl_readonly_section): Use it.
12491         Revert:
12492         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12493                     Steve Ellcey  <sje@cup.hp.com>
12495         PR middle-end/31490
12496         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12497         if section attribute used.
12499 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12501         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12502         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12503         (darwin_init_sections): Remove assertion.
12505 2011-02-03  Nick Clifton  <nickc@redhat.com>
12507         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12508         lt and ge.
12509         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12510         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12511         instead of "n" and "pz".
12512         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12513         CC_FLAG_S.
12515 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12517         PR target/47312
12518         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12519         fma, expand FMA_EXPR as fma{,f,l} call.
12521         PR lto/47274
12522         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12523         copy them into a unsigned char variable and pass address of it to
12524         lto_output_data_stream.
12526         PR target/47564
12527         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12528         around backend_init_target and lang_dependent_init_target calls.
12529         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12530         (verify_cgraph_node): Don't call set_cfun here.  Use
12531         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12532         Set error_found for incorrectly represented calls to thunks.
12534 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12536         PR debug/43092
12537         PR rtl-optimization/43494
12538         * rtl.h (for_each_inc_dec_fn): New type.
12539         (for_each_inc_dec): Declare.
12540         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12541         (for_each_inc_dec_find_inc_dec): New fn.
12542         (for_each_inc_dec_find_mem): New fn.
12543         (for_each_inc_dec): New fn.
12544         * dse.c (struct insn_size): Remove.
12545         (replace_inc_dec, replace_inc_dec_mem): Remove.
12546         (emit_inc_dec_insn_before): New fn.
12547         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12548         (canon_address): Pass mem modes to cselib_lookup.
12549         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12550         (cselib_lookup_from_insn): Likewise.
12551         (cselib_subst_to_values): Likewise.
12552         * cselib.c (find_slot_memmode): New var.
12553         (cselib_find_slot): New fn.  Use it instead of
12554         htab_find_slot_with_hash everywhere.
12555         (entry_and_rtx_equal_p): Use find_slot_memmode.
12556         (autoinc_split): New fn.
12557         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12558         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12559         Deal with autoinc.  Special-case recursion into MEMs.
12560         (cselib_hash_rtx): Likewise.
12561         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
12562         address and MEM modes.
12563         (cselib_subst_to_values): Add memmode, pass it on.
12564         Deal with autoinc.
12565         (cselib_lookup): Add memmode argument, pass it on.
12566         (cselib_lookup_from_insn): Add memmode.
12567         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12568         (struct cselib_record_autoinc_data): New.
12569         (cselib_record_autoinc_cb): New fn.
12570         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
12571         mode to cselib_lookup.  Reset autoinced REGs here instead of...
12572         (cselib_process_insn): ... here.
12573         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12574         to cselib_lookup.
12575         (add_uses): Likewise, also to cselib_subst_to_values.
12576         (add_stores): Likewise.
12577         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
12578         cselib_subst_to_values.
12579         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
12580         * gcse.c (do_local_cprop): Adjusted.
12581         * postreload.c (reload_cse_simplify_set): Adjusted.
12582         (reload_cse_simplify_operands): Adjusted.
12583         * sel-sched-dump (debug_mem_addr_value): Pass mode.
12585 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12587         PR tree-optimization/45122
12588         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12589         unsafe assumptions when there's more than one loop exit.
12591 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12593         PR target/47272
12594         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12595         Document using vector double with the load/store builtins, and
12596         that the load/store builtins always use Altivec instructions.
12598         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12599         to use altivec memory instructions, even on VSX.
12600         (vector_altivec_store_<mode>): Ditto.
12602         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12603         function.
12605         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12606         V2DF, V2DI support to load/store overloaded builtins.
12608         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12609         altivec load/store builtins for V2DF/V2DI types.
12611         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12612         set avoid indexed addresses on power6 if -maltivec.
12613         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12614         vector_altivec_load/vector_altivec_store builtins.
12615         (altivec_expand_st_builtin): Ditto.
12616         (altivec_expand_builtin): Add VSX memory builtins.
12617         (rs6000_init_builtins): Add V2DI types to internal types.
12618         (altivec_init_builtins): Add support for V2DF/V2DI altivec
12619         load/store builtins.
12620         (rs6000_address_for_altivec): Insure memory address is appropriate
12621         for Altivec.
12623         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12624         vec_vsx_ld and vec_vsx_st.
12625         (vsx_store_<mode>): Ditto.
12627         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12628         variables to hold long long types for VSX vector memory builtins.
12629         (RS6000_BTI_unsigned_long_long): Ditto.
12630         (long_long_integer_type_internal_node): Ditti.
12631         (long_long_unsigned_type_internal_node): Ditti.
12633         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12634         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12635         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12637         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12638         short cuts.
12639         (vec_vsx_st): Ditto.
12641 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12643         * config/pa/pa-hpux10.opt: New.
12644         * config/hpux11.opt (pthread): New Driver option.
12645         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12646         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12648 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12650         * config/ia64/vms.opt: New.
12651         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12653 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
12655         PR target/47580
12656         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12657         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12658         generator functions.
12659         (vsx_floatuns<VSi><mode>2): Ditto.
12660         (vsx_fix_trunc<mode><VSi>2): Ditto.
12661         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12663 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
12665         * config/i386/djgpp.opt (posix): New Driver option.
12667 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12669         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12670         Move to the unsupported targets list.
12672 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
12674         PR rtl-optimization/47525
12675         * df-scan.c: Update copyright years.
12676         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12677         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12679 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12681         * config/i386/sysv4.h (TARGET_VERSION): Remove.
12682         (SUBTARGET_RETURN_IN_MEMORY): Remove.
12683         (ASM_OUTPUT_ASCII): Remove.
12684         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12686 2011-02-02  Jeff Law  <law@redhat.com>
12688         PR middle-end/47543
12689         * reload.c (find_reloads_address): Handle reg+d address where both
12690         components are invalid by reloading the entire address.
12692 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12693             Richard Guenther  <rguenther@suse.de>
12695         PR tree-optimization/40979
12696         PR bootstrap/47044
12697         * passes.c (init_optimization_passes): After LIM call copy_prop
12698         and DCE to clean up.
12699         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12701 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
12703         PR tree-optimization/47576
12704         PR tree-optimization/47555
12705         * doc/invoke.texi (scev-max-expr-complexity): Documented.
12706         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12707         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12708         * tree-scalar-evolution.c (follow_ssa_edge): Use
12709         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12711 2011-02-02  Richard Guenther  <rguenther@suse.de>
12713         PR tree-optimization/47566
12714         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12716 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12718         PR debug/47106
12719         PR debug/47402
12720         * tree-inline.c (declare_return_variable): Remove unused caller
12721         variable.
12723         PR debug/47106
12724         PR debug/47402
12725         * tree-flow-inline.h (clear_is_used, is_used_p): New.
12726         * cfgexpand.c (account_used_vars_for_block): Use them.
12727         * tree-nrv.c (tree_nrv): Likewise.
12728         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12729         (dump_scope_block): Likewise.
12730         (remove_unused_locals): Likewise.
12732         PR debug/47106
12733         PR debug/47402
12734         * tree-inline.c (declare_return_variable): Add result decl to
12735         local decls only once.
12736         * gimple-low.c (record_vars_into): Mark newly-created variables
12737         as referenced.
12739 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
12741         PR debug/47498
12742         PR debug/47501
12743         PR debug/45136
12744         PR debug/45130
12745         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12746         debug insns.
12747         (no_real_insns_p, schedule_block, set_priorities): Drop special
12748         treatment of boundary debug insns.
12749         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12750         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12751         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12752         (BOUNDARY_DEBUG_INSN_P): Likewise.
12753         (SCHEDULE_DEBUG_INSN_P): Likewise.
12754         * sched-rgn.c (init_ready_list): Drop special treatment of
12755         boundary debug insns.
12756         * final.c (rest_of_clean_state): Clear notes' BB.
12758 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12760         * config/openbsd.opt (assert=): New Driver option.
12762 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12764         * config/i386/nto.opt: New.
12765         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12767 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12769         * config/i386/netware.opt: New.
12770         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12772 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12774         * config/interix.opt (posix): New Driver option.
12776 2011-02-01  DJ Delorie  <dj@redhat.com>
12778         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12780         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12781         class for A0/A1.
12783 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
12785         PR tree-optimization/47561
12786         * toplev.c (process_options): Print the Graphite flags.  Add
12787         flag_loop_flatten to the list of options requiring Graphite.
12789 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12791         * config/i386/cygming.opt (posix): New Driver option.
12793 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12795         * config/arm/vxworks.opt: New.
12796         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12798 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
12800         * config/alpha/elf.opt: New.
12801         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12802         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12804 2011-02-01  Richard Guenther  <rguenther@suse.de>
12806         PR tree-optimization/47559
12807         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12808         store-motion on references that can throw.
12810 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
12812         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12813         * tree-pass.h (TDF_CSELIB): New macro.
12814         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12815         cselib_lookup): Check for it rather than for TDF_DETAILS.
12817 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
12819         PR driver/47547
12820         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12821         is HOST_BIT_BUCKET.
12823         * opts.c (finish_options): Don't add x_aux_base_name if it is
12824         HOST_BIT_BUCKET.
12826 2011-02-01  Richard Guenther  <rguenther@suse.de>
12828         PR tree-optimization/47555
12829         Revert
12830         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
12832         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12834 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
12836         PR gcc/46692
12837         * config/lm32/t-lm32: Add multilib for all CPU options.
12839 2011-02-01  Richard Guenther  <rguenther@suse.de>
12841         PR tree-optimization/47541
12842         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12843         sure to have a field at offset zero.
12845 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12847         * config/arc/arc.opt (EB, EL): New Driver options.
12849 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12851         * config/alpha/osf5.opt: New.
12852         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12854 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
12856         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12858 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
12860         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12861         -floop-interchange.
12862         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12863         is an alias of -floop-interchange and that it requires the
12864         Graphite infrastructure.
12865         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12866         flag_loop_interchange based on the value of flag_tree_loop_linear.
12868 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
12869             Richard Guenther  <rguenther@suse.de>
12871         PR tree-optimization/47538
12872         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12873         type instead of r1type, except for comparisons.  For right
12874         shifts and comparisons punt if there are mismatches in
12875         sizetype vs. non-sizetype types.
12877 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12879         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12880         avx_runtime.
12882 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12884         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12885         version number.
12886         * configure: Regenerate.
12888 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12890         * configure.ac (gcc_cv_ld_static_option): Define.
12891         (gcc_cv_ld_dynamic_option): Define.
12892         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12893         instead.
12894         (HAVE_LD_STATIC_DYNAMIC): Update message.
12895         (LD_STATIC_OPTION): Define.
12896         (LD_DYNAMIC_OPTION): Define.
12897         * configure: Regenerate.
12898         * config.in: Regenerate.
12899         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12900         HAVE_LD_STATIC_DYNAMIC]: Use them.
12902 2011-01-31  Nick Clifton  <nickc@redhat.com>
12904         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12905         registers inside interrupt handlers if the handler is not a leaf
12906         function.
12908 2011-01-31  Nick Clifton  <nickc@redhat.com>
12910         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12911         reg_renumber returning an INVALID_REGNUM.
12913 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12915         PR libgcj/44341
12916         * doc/install.texi: Document host options discarded when cross
12917         configuring target libraries.
12919 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
12921         Reverted:
12922         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
12923         PR debug/45136
12924         PR debug/45130
12925         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12926         debug insns.
12927         (no_real_insns_p, schedule_block, set_priorities): Drop special
12928         treatment of boundary debug insns.
12929         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12930         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12931         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12932         (BOUNDARY_DEBUG_INSN_P): Likewise.
12933         (SCHEDULE_DEBUG_INSN_P): Likewise.
12934         * sched-rgn.c (init_ready_list): Drop special treatment of
12935         boundary debug insns.
12936         * final.c (rest_of_clean-state): Clear notes' BB.
12938 2011-01-31  Alan Modra  <amodra@gmail.com>
12940         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12941         toc relative expressions as we do in print_operand_address.
12943 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
12945         * doc/extend.texi: Follow spelling conventions.
12946         * doc/invoke.texi: Fix a typo.
12948 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
12950         * config/hpux11.opt: New.
12951         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12952         ia64*-*-hpux*): Use hpux11.opt.
12954 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
12956         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12957         to tmake_file.
12959 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12961         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12962         support sites.
12964 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12966         * doc/install.texi (Binaries): Remove outdated reference for
12967         Motorola 68HC11/68HC12 downloads.
12969 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
12971         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12972         Drepper's paper.
12974 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
12976         PR bootstrap/47147
12977         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12978         used by NetBSD.
12980 2011-01-28  Ahmad Sharif  <asharif@google.com>
12982         * value-prof.c (check_counter): Corrected error message.
12984 2011-01-29  Jie Zhang  <jie@codesourcery.com>
12986         * config/arm/arm.c (arm_legitimize_reload_address): New.
12987         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12988         arm_legitimize_reload_address.
12989         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
12991 2011-01-28  Ian Lance Taylor  <iant@google.com>
12993         * godump.c (go_define): Ignore macros whose definitions include
12994         two adjacent operands.
12996 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
12998         PR target/42894
12999         * varasm.c (force_const_mem): Store copy of x in desc->constant
13000         instead of x itself.
13001         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13002         itself into REG_EQUAL note.
13004 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13006         * config/freebsd.opt (posix, rdynamic): New Driver options.
13008 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13010         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13011         -Bstatic/-Bdynamic.
13012         * configure: Regenerate.
13014 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13016         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13017         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13019 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13021         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13022         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13023         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13024         (s390_preferred_reload_class): Make static. Change return and
13025         'rclass' argument type to reg_class_t.
13027 2011-01-27  Jan Hubicka  <jh@suse.cz>
13029         PR middle-end/46949
13030         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13031         (process_function_and_variable_attributes): Check defined weakrefs.
13033 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13035         PR tree-optimization/47228
13036         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13037         build_ref_for_offset.
13039 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13041         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13043 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13045         PR rtl-optimization/46856
13046         * postreload.c (reload_combine_recognize_const_pattern): Do not
13047         separate cc0 setter and user on cc0 targets.
13049 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13051         PR c/43082
13052         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13053         passed a VOID_TYPE expression, immediately emit an error and
13054         return error_mark_node.
13056 2011-01-26  Jeff Law  <law@redhat.com>
13058         PR rtl-optimization/47464
13059         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13060         rather than may_trap_p as needed.
13062 2011-01-26  DJ Delorie  <dj@redhat.com>
13064         PR rtl-optimization/46878
13065         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13066         setter/user dependency as well.
13068 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13070         PR rtl-optimization/44469
13071         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13072         after removing trivially dead basic blocks.
13074 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13076         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13077         * config/frv/frv.h (LINK_SPEC): Likewise.
13078         * config/i386/netware.h (LINK_SPEC): Likewise.
13079         * config/m68k/linux.h (ASM_SPEC): Likewise.
13080         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13081         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13082         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13083         * config/sparc/linux.h (ASM_SPEC): Likewise.
13084         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13085         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13087 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13089         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13090         * config/frv/frv.h (ASM_SPEC): Likewise.
13091         * config/m68k/linux.h (ASM_SPEC): Likewise.
13092         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13093         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13094         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13095         * config/sparc/linux.h (ASM_SPEC): Likewise.
13096         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13097         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13099 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13101         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13102         * config/frv/frv.h (LINK_SPEC): Likewise.
13103         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13105 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13107         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13108         * config/frv/frv.h (ASM_SPEC): Likewise.
13109         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13110         * config/m68k/linux.h (ASM_SPEC): Likewise.
13111         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13112         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13113         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13114         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13115         * config/sparc/linux.h (ASM_SPEC): Likewise.
13116         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13117         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13118         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13120 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13122         PR target/46997
13123         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13124         (*mux2): Ditto.
13125         (vec_extract_evenodd_help): Ditto.
13126         (vec_extract_evenv4hi): Ditto.
13127         (vec_extract_oddv4hi): Ditto.
13128         (vec_interleave_lowv2si): Ditto.
13129         (vec_interleave_highv2si): Ditto.
13130         (vec_extract_evenv2si): Ditto.
13131         (vec_extract_oddv2si: Ditto.
13132         (vec_pack_trunc_v2si): Ditto.
13134 2011-01-22  Jan Hubicka  <jh@suse.cz>
13136         PR target/47237
13137         * cgraph.h (cgraph_local_info): New field can_change_signature.
13138         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13139         signature can change.
13140         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13141         can change.
13142         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13143         (cgraph_function_versioning): We can not change signature of functions
13144         that don't allow that.
13145         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13146         (lto_input_node): Likewise.
13147         * ipa-inline.c (compute_inline_parameters): Compute
13148         local.can_change_signature.
13149         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13150         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13151         functions that can not change signature.
13152         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13153         init_cumulative_args): Do not use local calling conventions
13154         for functions that can not change signature.
13156 2011-01-22  Jan Hubicka  <jh@suse.cz>
13158         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13160 2011-01-26  Richard Guenther  <rguenther@suse.de>
13162         PR tree-optimization/47190
13163         * cgraphunit.c (process_common_attributes): New function.
13164         (process_function_and_variable_attributes): Use it.
13166 2011-01-26  Richard Guenther  <rguenther@suse.de>
13168         PR lto/47423
13169         * cgraphbuild.c (record_eh_tables): Record reference to personality
13170         function.
13172 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13174         PR debug/45454
13175         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13176         non-debug insns from moving up.
13178 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13180         PR target/40125
13181         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13182         t-dlldir{,-x} fragment for build and add it to tmake_file.
13183         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13184         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13185         * config/i386/t-dlldir: New file.
13186         (SHLIB_DLLDIR): Define.
13187         * config/i386/t-dlldir-x: New file.
13188         (SHLIB_DLLDIR): Define.
13189         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13190         (SHLIB_INSTALL): Use it.
13192 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13194         PR target/47246
13195         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13196         lower bound of the allowed Thumb-2 coprocessor load/store
13197         index range to -256. Add explaining comment.
13199 2011-01-25  Ian Lance Taylor  <iant@google.com>
13201         * godump.c (go_define): Improve lexing of macro expansion to only
13202         accept expressions which match Go spec.
13204 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13206         PR c++/43601
13207         * tree.c (handle_dll_attribute): Handle it.
13208         * doc/extend.texi (@item dllexport): Mention it.
13209         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13211 2011-01-25  Ian Lance Taylor  <iant@google.com>
13213         PR tree-optimization/26854
13214         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13215         (decl_jump_unsafe): Move higher in file, with no other change.
13216         (bind): Set has_jump_unsafe_decl if appropriate.
13217         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13218         (check_earlier_gotos): Likewise.
13219         (c_check_switch_jump_warnings): Likewise.
13221 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13223         * doc/invoke.texi (Warning Options): Add missing hyphen.
13224         (-fprofile-dir): Minor grammatical fixes.
13225         (-fbranch-probabilities): Likewise.
13227 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13229         PR debug/45136
13230         PR debug/45130
13231         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13232         debug insns.
13233         (no_real_insns_p, schedule_block, set_priorities): Drop special
13234         treatment of boundary debug insns.
13235         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13236         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13237         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13238         (BOUNDARY_DEBUG_INSN_P): Likewise.
13239         (SCHEDULE_DEBUG_INSN_P): Likewise.
13240         * sched-rgn.c (init_ready_list): Drop special treatment of
13241         boundary debug insns.
13242         * final.c (rest_of_clean-state): Clear notes' BB.
13244 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13246         * Makefile.in (LAMBDA_H): Removed.
13247         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13248         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13249         lambda-trans.o, and tree-loop-linear.o.
13250         (lto-symtab.o): Remove dependence on LAMBDA_H.
13251         (tree-loop-linear.o): Remove rule.
13252         (lambda-mat.o): Same.
13253         (lambda-trans.o): Same.
13254         (lambda-code.o): Same.
13255         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13256         (tree-vect-slp.o): Same.
13257         * hwint.h (gcd): Moved here.
13258         (least_common_multiple): Same.
13259         * lambda-code.c: Removed.
13260         * lambda-mat.c: Removed.
13261         * lambda-trans.c: Removed.
13262         * lambda.h: Removed.
13263         * tree-loop-linear.c: Removed.
13264         * lto-symtab.c: Do not include lambda.h.
13265         * omega.c (gcd): Removed.
13266         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13267         * tree-data-ref.c (print_lambda_vector): Moved here.
13268         (lambda_vector_copy): Same.
13269         (lambda_matrix_copy): Same.
13270         (lambda_matrix_id): Same.
13271         (lambda_vector_first_nz): Same.
13272         (lambda_matrix_row_add): Same.
13273         (lambda_matrix_row_exchange): Same.
13274         (lambda_vector_mult_const): Same.
13275         (lambda_vector_negate): Same.
13276         (lambda_matrix_row_negate): Same.
13277         (lambda_vector_equal): Same.
13278         (lambda_matrix_right_hermite): Same.
13279         * tree-data-ref.h: Do not include lambda.h.
13280         (lambda_vector): Moved here.
13281         (lambda_matrix): Same.
13282         (dependence_level): Same.
13283         (lambda_transform_legal_p): Removed declaration.
13284         (lambda_collect_parameters): Same.
13285         (lambda_compute_access_matrices): Same.
13286         (lambda_vector_gcd): Same.
13287         (lambda_vector_new): Same.
13288         (lambda_vector_clear): Same.
13289         (lambda_vector_lexico_pos): Same.
13290         (lambda_vector_zerop): Same.
13291         (lambda_matrix_new): Same.
13292         * tree-flow.h (least_common_multiple): Removed declaration.
13293         * tree-parloops.c (lambda_trans_matrix): Moved here.
13294         (LTM_MATRIX): Same.
13295         (LTM_ROWSIZE): Same.
13296         (LTM_COLSIZE): Same.
13297         (LTM_DENOMINATOR): Same.
13298         (lambda_trans_matrix_new): Same.
13299         (lambda_matrix_vector_mult): Same.
13300         (lambda_transform_legal_p): Same.
13301         * tree-pass.h (pass_linear_transform): Removed declaration.
13302         * tree-ssa-loop.c (tree_linear_transform): Removed.
13303         (gate_tree_linear_transform): Removed.
13304         (pass_linear_transform): Removed.
13305         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13306         flag_loop_interchange.
13308 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13310         PR tree-optimization/47265
13311         PR tree-optimization/47443
13312         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13313         if name still has some uses.
13315 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13317         PR tree-optimization/47382
13318         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13319         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13321 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13323         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13324         sjlj_except_unwind_info.
13326 2011-01-25  Richard Guenther  <rguenther@suse.de>
13328         PR tree-optimization/47426
13329         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13330         visible functions results escape.
13332 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13334         PR target/45701
13335         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13336         (arm_get_frame_offsets): Use it.
13338 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13339             Jakub Jelinek  <jakub@redhat.com>
13341         PR tree-optimization/47271
13342         * tree-if-conv.c (bb_postdominates_preds): New.
13343         (if_convertible_bb_p): Call bb_postdominates_preds.
13344         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13345         (predicate_scalar_phi): Call bb_postdominates_preds.
13347 2011-01-25  Nick Clifton  <nickc@redhat.com>
13349         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13350         * config/rx/rx.c (rx_function_value): Likewise.
13351         (rx_promote_function_mode): Likewise.
13352         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13353         in order to make it legitimate.
13354         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13355         make sure that the first operand is the same as the result register.
13356         (addsi3_unspec): Delete.
13357         (subdi3): Do not accept immediate operands.
13358         (subdi3_internal): Likewise.
13360 2011-01-25  Jeff Law  <law@redhat.com>
13362         PR rtl-optimization/37273
13363         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13364         handle them like argument loads from stack slots.  Do not double
13365         count memory for memory constants and argument loads from stack slots.
13367 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13369         PR tree-optimization/47427
13370         PR tree-optimization/47428
13371         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13372         coalesce if the new root var would be TREE_READONLY.
13374 2011-01-25  Richard Guenther  <rguenther@suse.de>
13376         PR middle-end/47414
13377         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13378         correct type for TBAA.
13380 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13382         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13383         (close_phi_written_to_memory): Call for_each_index with
13384         dr_indices_valid_in_loop.
13386 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13388         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13389         when it is initialized.
13391 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13393         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13394         call to graphite_find_data_references_in_stmt.
13395         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13396         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13397         call to graphite_find_data_references_in_stmt.
13398         (analyze_drs_in_stmts): Same.
13399         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13400         in which the scalar analysis of indices is performed.
13401         (create_data_ref): Same.  Update call to dr_analyze_indices.
13402         (find_data_references_in_stmt): Update call to create_data_ref.
13403         (graphite_find_data_references_in_stmt): Same.
13404         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13405         declaration.
13406         (create_data_ref): Same.
13407         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13408         call to create_data_ref.
13410 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13412         * graphite-sese-to-poly.c (build_poly_scop): Move
13413         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13415 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13417         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13418         VAR_DECL, PARM_DECL, and RESULT_DECL.
13420 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13422         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13423         in a reduction PBB.
13424         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13425         that have already been marked as PBB_IS_REDUCTION.
13427 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13429         * graphite-scop-detection.c (same_close_phi_node): New.
13430         (remove_duplicate_close_phi): New.
13431         (make_close_phi_nodes_unique): New.
13432         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13434 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13436         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13437         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13438         of both data references to be the same.
13440 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13442         * graphite-dependences.c (build_lexicographical_constraint): Remove
13443         the gdim parameter.
13444         (build_lexicographical_constraint): Adjust call to
13445         ppl_powerset_is_empty.
13446         (dependence_polyhedron): Same.
13447         (graphite_legal_transform_dr): Same.
13448         (graphite_carried_dependence_level_k): Same.
13449         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13450         parameter.
13451         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13453 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13455         * graphite-sese-to-poly.c
13456         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13457         (close_phi_written_to_memory): New.
13458         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13459         and unshare_expr.
13461 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13463         * doc/install.texi: Update the expected version number of PPL to 0.11.
13464         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13465         #if PPL_VERSION_MINOR < 11.
13467 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13469         * graphite-dependences.c: Include graphite-cloog-util.h.
13470         (new_poly_ddr): Inlined into dependence_polyhedron.
13471         (free_poly_ddr): Moved close by new_poly_ddr.
13472         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13473         Early return NULL when ppl_powerset_is_empty returns true.
13474         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13475         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13476         (graphite_legal_transform_dr): Call new_poly_ddr.
13477         (graphite_carried_dependence_level_k): Same.
13478         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13479         (dot_transformed_deps_stmt_1): Removed.
13480         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13481         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13482         (dot_deps_1): Call dot_deps_2.
13483         * Makefile.in (graphite-dependences.o): Add missing dependence on
13484         graphite-cloog-util.h.
13486 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13488         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13489         (build_lexicographical_constraint): Same.
13490         (dependence_polyhedron_1): Same.
13491         (graphite_legal_transform_dr): Same.
13492         (graphite_carried_dependence_level_k): Same.
13493         * graphite-ppl.c (ppl_powerset_is_empty): New.
13494         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13495         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13497 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13499         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13500         the "a followed by b" relation and document it.
13502 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13504         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13505         iteration when the bag of constraints is empty.
13507 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13509         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13511 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13513         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13514         nest and two loop depths as parameters.
13515         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13516         lst_perfect_nestify.
13518 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13520         * graphite-dependences.c (print_pddr): Call
13521         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13523 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13525         * graphite-ppl.c (debug_gmp_value): New.
13526         * graphite-ppl.h (debug_gmp_value): Declared.
13528 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13530         * doc/install.texi: Document availability of cloog-0.16.
13532 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13534         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13535         invalid postdominance info.
13537 2011-01-24  Jan Hubicka  <jh@suse.cz>
13539         PR c/21659
13540         * doc/extend.texi (weak pragma): Drop claim that it must
13541         appear before definition.
13542         * varasm.c (merge_weak, declare_weak): Only sanity check
13543         that DECL is not output at a time it is declared weak.
13545 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13547         * machmode.def: Fixed comments.
13549 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13551         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13553 2011-01-24  Paul Koning  <ni1d@arrl.net>
13555         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13556         WORDS_BIG_ENDIAN.
13558 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13560         PR target/46519
13561         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13562         (block_info): Add scanned and prev.
13563         (move_or_delete_vzeroupper_2): Return if the basic block
13564         has been scanned and the upper 128bit state is unchanged
13565         from the last scan.
13566         (move_or_delete_vzeroupper_1): Return true if the exit
13567         state is changed.
13568         (move_or_delete_vzeroupper): Visit basic blocks using the
13569         work-list based algorithm based on vt_find_locations in
13570         var-tracking.c.
13572         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13574 2011-01-24  Nick Clifton  <nickc@redhat.com>
13576         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13577         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13578         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
13579         then define __v850e1__.
13580         * doc/invoke.texi: Document -mv850es.
13582 2011-01-24  Richard Henderson  <rth@redhat.com>
13584         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13585         compound unordered comparisons.
13586         * config/rx/rx.c (rx_split_fp_compare): Remove.
13587         * config/rx/rx-protos.h: Update.
13588         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13589         (cbranchsf4): Don't call rx_split_fp_compare.
13590         (*cbranchsf4): Use rx_split_cbranch.
13591         (*cmpsf): Don't accept "i" constraint.
13592         (*conditional_branch): Only valid after reload.
13593         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
13595 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13597         PR target/47385
13598         * config/rs6000/altivec.md (vector constant splitters): Add
13599         support for creating vector single precision constants if -mvsx is
13600         used and we would create the constant using Altivec primitives.
13602 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
13603             Richard Sandiford  <rdsandiford@googlemail.com>
13605         PR rtl-optimization/47166
13606         * reload1.c (emit_reload_insns): Disable the spill_reg_store
13607         mechanism for PRE_MODIFY and POST_MODIFY.
13608         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13609         reloadreg.
13611 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
13613         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13615 2011-01-22  Jan Hubicka  <jh@suse.cz>
13617         PR lto/47333
13618         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13620 2011-01-22  Jan Hubicka  <jh@suse.cz>
13622         PR tree-optimization/43884
13623         PR lto/44334
13624         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13625         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13627 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
13629         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13630         * config/s390/s390.c (s390_register_move_cost,
13631         s390_memory_move_cost): New.
13632         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13634 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13636         PR middle-end/47401
13637         * except.c (sjlj_assign_call_site_values): Move setting the
13638         crtl->uses_eh_lsda flag to ...
13639         (sjlj_mark_call_sites): ... here.
13640         (sjlj_emit_function_enter): Support NULL dispatch label.
13641         (sjlj_build_landing_pads): In a function with no landing pads
13642         that still has must-not-throw regions, generate code to register
13643         a personality function with empty LSDA.
13645 2011-01-21  Richard Henderson  <rth@redhat.com>
13647         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13649         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13651         * compare-elim.c: New file.
13652         * Makefile.in (OBJS-common): Add it.
13653         (compare-elim.o): New.
13654         * common.opt (fcompare-elim): New.
13655         * opts.c (default_options_table): Add OPT_fcompare_elim.
13656         * tree-pass.h (pass_compare_elim_after_reload): New.
13657         * passes.c (init_optimization_passes): Add it.
13658         * recog.h: Protect against re-inclusion.
13659         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13660         * doc/invoke.texi (-fcompare-elim): Document it.
13661         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13662         * doc/tm.texi: Rebuild.
13664 2011-01-22  Nick Clifton  <nickc@redhat.com>
13666         * config/rx/rx.md (cstoresf4): Pass comparison operator to
13667         rx_split_fp_compare.
13669 2011-01-22  Nick Clifton  <nickc@redhat.com>
13671         * config/rx/rx.md (UNSPEC_CONST): New.
13672         (deallocate_and_return): Wrap the amount popped off the stack in
13673         an UNSPEC_CONST in order to stop it being rejected by
13674         -mmax-constant-size.
13675         (pop_and_return): Add a "(return)" rtx.
13676         (call): Drop the immediate operand.
13677         (call_internal): Likewise.
13678         (call_value): Likewise.
13679         (call_value_internal): Likewise.
13680         (sibcall_internal): Likewise.
13681         (sibcall_value_internal): Likewise.
13682         (sibcall): Likewise.  Generate an explicit call using
13683         sibcall_internal.
13684         (sibcall_value): Likewise.
13685         (mov<>): FAIL if a constant operand is not legitimate.
13686         (addsi3_unpsec): New pattern.
13688         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13689         (ok_for_max_constant): New function.
13690         (gen_safe_add): New function.
13691         (rx_expand_prologue): Use gen_safe_add.
13692         (rx_expand_epilogue): Likewise.
13693         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
13694         UNSPEC CONSTs.
13696 2011-01-21  Jeff Law  <law@redhat.com>
13698         PR tree-optimization/47053
13699         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13700         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13701         statements are deleted.
13702         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
13703         is nonempty, then purge dead edges and cleanup the CFG.
13705 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13707         PR debug/47402
13708         Temporarily revert:
13709         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13710         PR debug/47106
13711         * tree-dfa.c (create_var_ann): Mark variable as used.
13713 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13715         PR middle-end/45566
13716         * except.c (convert_to_eh_region_ranges): Emit queued no-region
13717         notes from other section in hot/cold partitioning even if
13718         last_action is -3.  Increment call_site_base.
13720         PR rtl-optimization/47366
13721         * fwprop.c (forward_propagate_into): Return bool.  If
13722         any changes are made, -fnon-call-exceptions is used and
13723         REG_EH_REGION note is present, call purge_dead_edges
13724         and return true if it purged anything.
13725         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13726         any EH edges were purged.
13728 2011-01-21  Jeff Law  <law@redhat.com>
13730         PR rtl-optimization/41619
13731         * caller-save.c (setup_save_areas): Break out code to determine
13732         which hard regs are live across calls by examining the reload chains
13733         so that it is always used.
13734         Eliminate code which checked REG_N_CALLS_CROSSED.
13736 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13738         PR tree-optimization/47355
13739         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13740         NOP has non-debug uses beyond PHIs in new_bb.
13742 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
13744         PR debug/47106
13745         * cfgexpand.c (account_used_vars_for_block): Only account vars
13746         that are annotated as used.
13747         (estimated_stack_frame_size): Don't set TREE_USED.
13748         * tree-dfa.c (create_var_ann): Mark variable as used.
13750 2011-01-21  Richard Guenther  <rguenther@suse.de>
13752         PR middle-end/47395
13753         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13755 2011-01-21  Richard Guenther  <rguenther@suse.de>
13757         PR tree-optimization/47365
13758         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13759         (vn_reference_lookup_pieces): Adjust.
13760         (vn_reference_lookup): Likewise.
13761         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13762         (vn_reference_lookup_3): Only look through kills if in
13763         VN_WALKREWRITE mode.
13764         (vn_reference_lookup_pieces): Adjust.
13765         (vn_reference_lookup): Likewise.
13766         (visit_reference_op_load): Likewise.
13767         (visit_reference_op_store): Likewise.
13768         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13769         (compute_avail): Likewise.
13770         (eliminate): Likewise.
13772 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
13774         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13775         DECL_IGNORED_P non-reg vars if they are used.
13777         PR tree-optimization/47391
13778         * varpool.c (const_value_known_p): Return false if
13779         decl is volatile.
13781 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
13783         PR bootstrap/47215
13784         * config/i386/i386.c (ix86_local_alignment): Handle
13785         case for va_list_type_node is nil.
13786         (ix86_canonical_va_list_type): Likewise.
13788 2011-01-21  Alan Modra  <amodra@gmail.com>
13790         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13791         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13793 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13795         * config/arm/arm.md (define_attr type): Rename f_load
13796         and f_store to f_fpa_load and f_fpa_store. Update.
13797         (write_conflict): Deal with rename fallout.
13798         (*push_fp_multi): Likewise.
13799         * config/arm/fpa.md (f_load): Use f_fpa_load.
13800         (f_store): Use f_fpa_store.
13801         (*movsf_fpa): Likewise.
13802         (*movdf_fpa): Likewise.
13803         (*movxf_fpa): Likewise.
13804         (*thumb2_movsf_fpa): Likewise.
13805         (*thumb2_movdf_fpa): Likewise.
13806         (*thumb2_movxf_fpa): Likewise.
13807         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13808         f_loadd and f_stored.
13809         (*thumb2_movdi_vfp): Likewise.
13810         (*thumb2_movsf_vfp): Fix attribute to f_loads.
13811         (*thumb2_movsi_vfp): Likewise.
13812         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13813         Use f_loads instead of f_load.
13814         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13816 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
13818         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13819         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13820         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13821         (xtensa_mode_dependent_address_p): New function.
13822         (constantpool_address_p): Make static. Change return type to bool.
13823         Change argument type to const_rtx. Use CONST_INT_P predicate.
13825 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
13827         PR debug/46583
13828         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13830 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13832         PR debug/47283
13833         * cfgexpand.c (expand_debug_expr): Instead of generating
13834         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13835         etc. handling.
13837 2011-01-20  Richard Guenther  <rguenther@suse.de>
13839         PR middle-end/47370
13840         * tree-inline.c (remap_gimple_op_r): Recurse manually for
13841         the pointer operand of MEM_REFs.
13843 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
13845         PR tree-optimization/46130
13846         * ipa-split.c (consider_split): If return_bb contains non-virtual
13847         PHIs other than for retval or if split_function would not adjust it,
13848         refuse to split.
13850 2011-01-20  Richard Guenther  <rguenther@suse.de>
13852         PR tree-optimization/47167
13853         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13854         Revert previous change, only avoid enumeral type changes.
13856 2011-01-19  Mike Stump  <mikestump@comcast.net>
13858         * doc/tm.texi.in (BRANCH_COST): Englishify.
13859         * doc/tm.texi (BRANCH_COST): Likewise.
13861 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
13863         PR c++/47291
13864         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13865         (gen_scheduled_generic_parms_dies): New functions.
13866         (gen_struct_or_union_type_die): Schedule template parameters DIEs
13867         generation for the end of CU compilation.
13868         (dwarf2out_finish): Generate template parameters DIEs here.
13870 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13872         PR debug/46240
13873         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13874         debug bind stmt on merge edges.
13876 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13878         PR debug/47079
13879         PR debug/46724
13880         * function.c (instantiate_expr): Instantiate incoming rtl of
13881         implicit arguments, and recurse on VALUE_EXPRs.
13882         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13883         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13885 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
13887         * c-parser.c (c_parser_for_statement): Initialize
13888         collection_expression.
13890 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13892         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13894 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13896         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13897         (LINK_SHLIB_SPEC): Don't use %(link_path).
13898         (SUBTARGET_EXTRA_SPECS): Remove link_path.
13900 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13902         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13903         (NO_SHARED_LIB_SUPPORT): Remove.
13904         (LINK_SHLIB_SPEC): Remove one conditional definition.
13906 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
13908         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13909         %{call_shared}.
13910         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13911         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13912         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13913         %{call_shared} and conditionals on these options not being passed.
13914         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13915         %{call_shared}.
13917 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
13919         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13920         simplify.
13922         * ipa-split.c: Spelling fixes.
13924 2011-01-19  Richard Henderson  <rth@redhat.com>
13926         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13927         (*mulsi3): Likewise.
13929         * longlong.h [__mn10300__] (count_leading_zeros): New.
13930         [__mn10300__] (umul_ppmm, smul_ppmm): New.
13931         [__mn10300__] (add_ssaaaa, subddmmss): New.
13932         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13933         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13935 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13937         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13939 2011-01-19  Richard Henderson  <rth@redhat.com>
13941         * config/mn10300/mn10300.md (addsi3_flags): New.
13942         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13943         (subsi3_flags, subc_internal, subdi3): New.
13944         (subdi3_internal, *subdi3_degenerate): New.
13945         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13947         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13948         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13949         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
13950         * config/mn10300/mn10300-protos.h: Update.
13951         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13952         (return_ret): Likewise.  Rename from return_internal_regs.
13953         (return_internal): Remove.
13955         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13956         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13957         (mn10300_legitimate_constant_p): Likewise.
13958         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13959         (mn10300_frame_size): New.
13960         (mn10300_expand_prologue): Use it.
13961         (mn10300_expand_epilogue): Likewise.
13962         (mn10300_initial_offset): Likewise.
13963         * config/mn10300/mn10300-protos.h: Update.
13964         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13965         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13966         (prologue, epilogue, return_internal): Tidy output code.
13967         (mn10300_store_multiple_operation, return): Likewise.
13968         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13969         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13970         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13971         (load_pic, am33_load_pic): New.
13972         (mn10300_load_pic0, mn10300_load_pic1): New.
13974         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13975         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13976         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13977         (cc_flags_for_mode, cc_flags_for_code): New.
13978         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13979         overflow flag is not valid.  Validate that the flags we need
13980         for the comparison are valid.
13981         (mn10300_output_cmp): Remove.
13982         (mn10300_output_add): New.
13983         (mn10300_select_cc_mode): Use cc_flags_for_code.
13984         (mn10300_split_cbranch): New.
13985         (mn10300_match_ccmode): New.
13986         (mn10300_split_and_operand_count): New.
13987         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13988         to the function.
13989         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13990         (addsi3): ... here.  Use mn10300_output_add.
13991         (*addsi3_flags): New.
13992         (*am33_subsi3, *mn10300_subsi3): Merge...
13993         (subsi3): ... here.  Use attribute isa.
13994         (*subsi3_flags): New.
13995         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
13996         when possible.
13997         (*am33_andsi3, *mn10300_andsi3): Merge...
13998         (andsi3): ... here.
13999         (*andsi3_flags): New.
14000         (andsi3 splitters): New.
14001         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14002         (iorsi3): ... here.
14003         (*iorsi3_flags): New.
14004         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14005         (xorsi3): ... here.
14006         (*xorsi3_flags): New.
14007         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14008         (one_cmplsi2): ... here.
14009         (*one_cmplsi2_flags): New.
14010         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14011         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14012         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14013         use matching constraints to eliminate a self-comparison.
14014         (*integer_conditional_branch): Rename from integer_conditional_branch.
14015         Use int_mode_flags to match CC_REG.
14016         (*cbranchsi4_btst, *btstsi): New.
14017         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14018         mn10300_split_cbranch.
14019         (*am33_cmpsf): Rename from am33_cmpsf.
14020         (*float_conditional_branch): Rename from float_conditional_branch.
14021         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14022         (zero_extendqisi2): ... here.
14023         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14024         (zero_extendhisi2): ... here.
14025         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14026         (extendqisi2): ... here.
14027         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14028         (extendhisi2): ... here.
14029         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14030         (ashlsi3): ... here.
14031         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14032         (lshrsi3): ... here.
14033         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14034         (ashrsi3): ... here.
14035         (consecutive add peephole): Remove.
14036         * config/mn10300/predicates.md (label_ref_operand): New.
14037         (int_mode_flags): New.
14038         (CCZN_comparison_operator): New.
14040         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14041         (throughput_42_latency_43): New reservation.
14042         (mulsidi3, umulsidi3): New expanders.
14043         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14044         the MDR register to allocation; separately allocate the low and
14045         high parts of the DImode result.
14046         (umulsidi3_internal): Similarly.
14047         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14048         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14049         (udivsi3, umodsi3): Remove.
14050         (udivmodsi4, divmodsi4): New expanders.
14051         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14052         (*divmodsi4): Simiarly.
14053         (ext_internal): New.
14055         * config/mn10300/constraints.md ("z"): New constraint.
14056         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14057         (FIXED_REGISTERS): Don't fix MDR.
14058         (CALL_USED_REGSITERS): Reformat nicely.
14059         (REG_ALLOC_ORDER): Add MDR.
14060         (enum regclass): Add MDR_REGS.
14061         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14062         (IRA_COVER_CLASSES): Add MDR_REGS.
14063         (REGNO_REG_CLASS): Handle MDR_REG.
14064         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14065         (mn10300_register_move_cost): Likewise.
14066         * config/mn10300/mn10300.md (MDR_REG): New.
14067         (*movsi_internal): Handle moves to/from MDR_REGS.
14069         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14070         POST_MODIFY.
14071         (mn10300_secondary_reload): Tidy combination reload classes.
14072         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14073         addresses for AM33.  Allow symbolic offsets for reg+imm.
14074         (mn10300_regno_in_class_p): New.
14075         (mn10300_legitimize_reload_address): New.
14076         * config/mn10300/mn10300.h (enum reg_class): Remove
14077         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14078         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14079         SP_OR_GENERAL_REGS.
14080         (REG_CLASS_NAMES): Update to match.
14081         (REG_CLASS_CONTENTS): Likewise.
14082         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14083         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14084         (REGNO_IN_RANGE_P): Remove.
14085         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14086         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14087         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14088         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14089         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14090         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14091         (REGNO_GENERAL_P): New.
14092         (HAVE_POST_MODIFY_DISP): New.
14093         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14094         (LEGITIMIZE_RELOAD_ADDRESS): New.
14095         * config/mn10300/mn10300-protos.h: Update.
14097         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14098         DATA_REGS for AM33 stack-pointer destination.
14099         (mn10300_preferred_output_reload_class): Likewise.
14100         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14101         into a form appropriate for ...
14102         (TARGET_SECONDARY_RELOAD): New.
14103         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14104         * config/mn10300/mn10300-protos.h: Update.
14105         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14106         reload_insi; use the "A" constraint for the scratch; handle AM33
14107         moves of sp to non-address registers.
14109         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14110         (*movqi_internal): ... here.
14111         (*am33_movhi, *mn10300_movhi): Merge into...
14112         (*movhi_internal): ... here.
14113         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14114         as the source/destination of moves from/to SP.
14115         (movsf): Only allow for AM33-2.
14116         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14117         any integer constant constraint.  Only allow for AM33-2.  Tidy
14118         all of the alternative outputs.
14119         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14120         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14121         for MN103.
14122         (udivsi3, umodsi3): New patterns for MN103 only.
14124 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14126         * doc/tm.texi.in: Spell out that a lack of register class unions
14127         can lead to ICEs.
14128         * doc/tm.texi: Regenerate.
14130 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14132         PR rtl-optimization/47337
14133         * dce.c (check_argument_store): New function.
14134         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14136         PR tree-optimization/47290
14137         * tree-eh.c (infinite_empty_loop_p): New function.
14138         (cleanup_empty_eh): Use it.
14140 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14142         PR target/46997
14143         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14144         (a64_expand_widen_sum): Ditto.
14145         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14146         (vec_extract_evenodd_help): Ditto.
14147         (vec_extract_evenv4hi): Ditto.
14148         (vec_extract_oddv4hi): Ditto.
14149         (vec_extract_evenv2si): Ditto.
14150         (vec_extract_oddv2si): Ditto.
14151         (vec_extract_evenv2sf): Ditto.
14152         (vec_extract_oddv2sf): Ditto.
14153         (vec_pack_trunc_v4hi: Ditto.
14154         (vec_pack_trunc_v2si): Ditto.
14155         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14156         (vec_interleave_highv8qi): Ditto.
14157         (mix1_r): Ditto.
14158         (vec_extract_oddv8qi): Ditto.
14159         (vec_interleave_lowv4hi): Ditto.
14160         (vec_interleave_highv4hi): Ditto.
14161         (vec_interleave_lowv2si): Ditto.
14162         (vec_interleave_highv2si): Ditto.
14164 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14166         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14167         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14168         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14169         (pa_c_mode_for_suffix): New.
14170         (TARGET_EXPAND_BUILTIN): Define.
14171         (TARGET_C_MODE_FOR_SUFFIX): Define.
14172         (pa_builtins): Define.
14173         (pa_init_builtins): Register __float128 type and init new support
14174         builtins.
14175         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14176         * config/pa/quadlib.c (_U_Qfcopysign): New.
14178 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14180         PR middle-end/46894
14181         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14182         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14183         are defined.
14185 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14187         PR tree-optimization/47179
14188         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14189         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14191 2011-01-18  Richard Guenther  <rguenther@suse.de>
14193         PR rtl-optimization/47216
14194         * emit-rtl.c: Include tree-flow.h.
14195         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14196         of replicating it with different semantics.
14197         * Makefile.in (emit-rtl.o): Adjust.
14199 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14201         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14202         (cortex_a9_dp): Handle neon types correctly.
14204 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14206         PR rtl-optimization/47299
14207         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14208         subtarget.  Use normal multiplication if both operands are constants.
14209         * expmed.c (expand_widening_mult): Don't try to optimize constant
14210         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14211         before using it.
14213 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14215         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14216         spacing after 'e.g.', typos, comma, hyphenation.
14218 2011-01-17  Richard Henderson  <rth@redhat.com>
14220         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14221         (rx_restricted_mem_operand): New.
14222         (rx_shift_operand): Use register_operand.
14223         (rx_source_operand, rx_compare_operand): Likewise.
14224         * config/rx/rx.md (addsi3_flags): New expander.
14225         (adddi3): Rewrite as expander.
14226         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14227         (subsi3_flags): New expander.
14228         (subdi3): Rewrite as expander.
14229         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14231         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14232         (rx_init_builtins): Remove sat builtin.
14233         (rx_expand_builtin): Likewise.
14234         * config/rx/rx.md (ssaddsi3): New.
14235         (*sat): Rename from sat.  Represent the CC_REG input.
14237         * config/rx/predicates.md (rshift_operator): New.
14238         * config/rx/rx.c (rx_expand_insv): Remove.
14239         * config/rx/rx-protos.h: Update.
14240         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14241         operand to the canonical position.
14242         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14243         (*bitclr, *bitclr_in_memory): Similarly.
14244         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14245         (insv): Retain the zero_extract in the expansion.
14247         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14248         (bswaphi2, bitinvert, revw): Likewise.
14250         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14251         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14252         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14253         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14254         (bitset, bitset_in_memory): Likewise.
14255         (bitinvert, bitinvert_in_memory): Likewise.
14256         (bitclr, bitclr_in_memory): Likewise.
14257         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14258         (rx_strend, rx_cmpstrn): Likewise.
14259         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14260         (bitop peep2 patterns): Remove.
14262         * config/rx/rx.c (rx_match_ccmode): New.
14263         * config/rx/rx-protos.h: Update.
14264         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14265         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14266         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14267         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14268         (fix_truncsfsi2, floatsisf2): Likewise.
14269         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14270         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14271         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14272         (*subsi3_flags, *xorsi3_flags): New.
14274         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14276         * config/rx/rx.c (rx_print_operand): Remove workaround for
14277         unsplit comparison operations.
14279         * config/rx/rx.md (movsicc): Split after reload.
14280         (*movsicc): Merge *movsieq and *movsine via match_operator.
14281         (*stcc): New pattern.
14283         * config/rx/rx.c (rx_float_compare_mode): Remove.
14284         * config/rx/rx.h (rx_float_compare_mode): Remove.
14285         * config/rx/rx.md (cstoresi4): Split after reload.
14286         (*sccc): New pattern.
14288         * config/rx/predicates.md (label_ref_operand): New.
14289         (rx_z_comparison_operator): New.
14290         (rx_zs_comparison_operator): New.
14291         (rx_fp_comparison_operator): New.
14292         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14293         Validate that the flags are set properly for the comparison.
14294         (rx_gen_cond_branch_template): Remove.
14295         (rx_cc_modes_compatible): Remove.
14296         (mode_from_flags): New.
14297         (flags_from_code): Rename from flags_needed_for_conditional.
14298         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14299         (rx_select_cc_mode): Likewise.
14300         (rx_split_fp_compare): New.
14301         (rx_split_cbranch): New.
14302         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14303         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14304         (*cbranchsf4): Similarly.
14305         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14306         match_operator and rx_split_cbranch.
14307         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14308         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14309         (*cmpsi): Rename from cmpsi.
14310         (*tstsi): Rename from tstsi.
14311         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14312         (*conditional_branch): Rename from conditional_branch.
14313         (*reveresed_conditional_branch): Remove.
14314         (b<code>): Remove expander.
14315         * config/rx/rx-protos.h: Update.
14317         * config/rx/rx.c (rx_compare_redundant): Remove.
14318         * config/rx/rx.md (cmpsi): Don't use it.
14319         * config/rx/rx-protos.h: Update.
14321         * config/rx/rx-modes.def (CC_F): New mode.
14322         * config/rx/rx.c (rx_select_cc_mode): New.
14323         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14324         * config/rx/rx-protos.h: Update.
14326 2011-01-17  Richard Henderson  <rth@redhat.com>
14328         * except.c (dump_eh_tree): Fix stray ; after for statement.
14330 2011-01-17  Richard Guenther  <rguenther@suse.de>
14332         PR tree-optimization/47313
14333         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14334         handling before copying the body.  Properly deal with
14335         by-reference result in SSA form.
14337 2011-01-17  Ian Lance Taylor  <iant@google.com>
14339         PR target/47219
14340         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14341         (struct_value_alias_set): Don't define.
14342         (sparc_option_override): Don't set sparc_sr_alias_set and
14343         struct_value_alias_set.
14344         (save_or_restore_regs): Use gen_frame_mem rather than calling
14345         set_mem_alias_set.
14346         (sparc_struct_value_rtx): Likewise.
14348 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14350         PR target/47318
14351         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14352         (_mm_maskstore_pd): Likewise.
14353         (_mm_maskload_ps): Likewise.
14354         (_mm_maskstore_ps): Likewise.
14355         (_mm256_maskload_pd): Change mask to __m256i.
14356         (_mm256_maskstore_pd): Likewise.
14357         (_mm256_maskload_ps): Likewise.
14358         (_mm256_maskstore_ps): Likewise.
14360         * config/i386/i386-builtin-types.def: Updated.
14361         (ix86_expand_special_args_builtin): Likewise.
14363         * config/i386/i386.c (bdesc_special_args): Update
14364         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14365         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14366         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14367         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14369         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14370         Use <avxpermvecmode> on mask register.
14371         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14373 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14374             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14375             Eric Botcazou  <ebotcazou@adacore.com>
14377         PR target/46655
14378         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14379         if <= USHRT_MAX in 32-bit mode.
14381 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14383         * doc/install.texi (Configuration, Specific): Wrap long
14384         lines in examples.  Allow line wrapping in long options
14385         and URLs where beneficial for PDF output.
14387 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14389         * config/mips/mips.c (mips_classify_symbol): Don't return
14390         SYMBOL_PC_RELATIVE for nonlocal labels.
14392 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14394         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14396 2011-01-15  Jan Hubicka  <jh@suse.cz>
14398         PR tree-optimization/47276
14399         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14400         declarations as needed.
14402 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14404         * common.opt (fdevirtualize): New flag.
14405         * doc/invoke.texi (Option Summary): Document it.
14406         * opts.c (default_options_table): Add devirtualize flag.
14407         * ipa-prop.c (detect_type_change): Return immediately if
14408         devirtualize flag is not set.
14409         (detect_type_change_ssa): Likewise.
14410         (compute_known_type_jump_func): Likewise.
14411         (ipa_analyze_virtual_call_uses): Likewise.
14413 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14415         PR tree-optimization/45934
14416         PR tree-optimization/46302
14417         * ipa-prop.c (type_change_info): New type.
14418         (stmt_may_be_vtbl_ptr_store): New function.
14419         (check_stmt_for_type_change): Likewise.
14420         (detect_type_change): Likewise.
14421         (detect_type_change_ssa): Likewise.
14422         (compute_complex_assign_jump_func): Check for dynamic type change.
14423         (compute_complex_ancestor_jump_func): Likewise.
14424         (compute_known_type_jump_func): Likewise.
14425         (compute_scalar_jump_functions): Likewise.
14426         (ipa_analyze_virtual_call_uses): Likewise.
14427         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14429 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14431         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14432         * config/i386/i386.opt (msse5): New Alias.
14434 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14436         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14437         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14438         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14439         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14441 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14443         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14444         -mcpu options.
14445         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14446         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14447         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14448         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14449         Likewise.
14450         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14452 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14454         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14456 2011-01-14  Mike Stump  <mikestump@comcast.net>
14458         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14459         * config/fr30/fr30.md: Likweise
14460         (movsi_push): Likewise.
14461         (movsi_pop): Likewise.
14462         (enter_func): Likewise.
14463         * config/moxie/moxie.md (movsi_push): Likewise.
14464         (movsi_pop): Likewise.
14466 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14468         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14469         %{no_archive} %{exact_version}.
14470         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14471         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14472         %{no_archive} %{exact_version}.
14473         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14474         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14475         * config/mips/vxworks.h: Likewise.
14477 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14479         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14481 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14483         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14484         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14486 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14488         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14489         -nodefaultlib.
14491 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14493         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14494         for mcpu not cpu.
14495         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14496         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14497         not cpu.
14498         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14499         Don't handle -shlib.
14501 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14503         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14504         (CC1_SPEC): Don't handle -profile.
14506 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14508         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14509         * config/mips/mips.h (CC1_SPEC): Likewise.
14511 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14513         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14514         * config/mips/mips.h (CC1_SPEC): Likewise.
14516 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14518         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14519         * config/m32r/linux.h (LINK_SPEC): Likewise.
14520         * config/mips/linux.h (LINK_SPEC): Likewise.
14521         * config/mips/linux64.h (LINK_SPEC): Likewise.
14522         * config/sparc/linux.h (LINK_SPEC): Likewise.
14523         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14524         LINK_SPEC): Likewise.
14525         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14527 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14529         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14530         %{version:-v}.
14531         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14533 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14535         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14536         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14538 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14540         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14542 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14544         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14545         supports -Bstatic/-Bdynamic.
14546         * configure: Regenerate.
14548 2011-01-14  Jan Hubicka  <jh@suse.cz>
14549             Jack Howarth  <howarth@bromo.med.uc.edu>
14551         PR target/46037
14552         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14553         when checking debug_info_level. Test write_symbols instead of
14554         debug_hooks->var_location when setting flag_var_tracking_uninit.
14556 2011-01-14  Richard Guenther  <rguenther@suse.de>
14558         PR tree-optimization/47179
14559         * target.def (ref_may_alias_errno): New target hook.
14560         * targhooks.h (default_ref_may_alias_errno): Declare.
14561         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14562         (default_ref_may_alias_errno): New function.
14563         * target.h (struct ao_ref_s): Declare.
14564         * tree-ssa-alias.c: Include target.h.
14565         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14566         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14567         (targhooks.o): Likewise.
14568         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14569         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14571 2011-01-14  Richard Guenther  <rguenther@suse.de>
14573         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
14575 2011-01-14  Richard Guenther  <rguenther@suse.de>
14577         PR tree-optimization/47280
14578         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14579         return CFG changes.
14580         (tree_ssa_forward_propagate_single_use_vars): Deal with
14581         CFG changes from associate_plusminus.
14583 2011-01-14  Richard Guenther  <rguenther@suse.de>
14585         PR middle-end/47281
14586         Revert
14587         2011-01-11  Richard Guenther  <rguenther@suse.de>
14589         PR tree-optimization/46076
14590         * tree-ssa.c (useless_type_conversion_p): Conversions from
14591         unprototyped to empty argument list function types are useless.
14593 2011-01-14  Richard Guenther  <rguenther@suse.de>
14595         PR tree-optimization/47286
14596         * tree-ssa-structalias.c (new_var_info): Register variables are global.
14598 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14600         PR middle-end/46823
14601         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14603 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
14605         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14606         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14607         * config/xtensa/xtensa.c (xtensa_libcall_value,
14608         xtensa_function_value_regno_p): New functions.
14609         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14611 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
14613         PR c++/47213
14614         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14615         PE specific hook.
14616         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14617         New function prototype.
14618         * config/i386/winnt.c (i386_pe_assemble_visibility):
14619         Warn only if attribute was specified by user.
14621 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
14623         PR target/47251
14624         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14625         floating point.
14626         (floatunsdidf2_fcfidu): Ditto.
14628 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14630         * config/s390/s390.c (print_operand_address): Replace 'error' with
14631         'output_operand_lossage'.
14632         (print_operand): Likewise.
14634 2011-01-13  Jeff Law  <law@redhat.com>
14636         PR rtl-optimization/39077
14637         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14638         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14639         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14640         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14641         * gcse.c (prune_insertions_deletions): New function.
14642         (compute_pre_data): Use it.
14644 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
14646         PR debug/PR46973
14647         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14648         static function.
14649         (prune_unused_types_mark): Use it.
14651 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
14653         PR rtl-optimization/45352
14654         * sel-sched.c: Update copyright years.
14655         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14656         in the advancing loop when we have issued issue_rate insns.
14658 2011-01-12  Richard Henderson  <rth@redhat.com>
14660         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14661         (TARGET_MD_ASM_CLOBBERS): New.
14663         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14664         (TARGET_DELEGITIMIZE_ADDRESS): New.
14666         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14667         (clzsi2, *bsch): New patterns.
14669         * config/mn10300/mn10300.md (INT): New mode iterator.
14670         (*mov<INT>_clr): New pattern, and peep2 to generate it.
14672         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14673         flag_split_wide_types.
14675         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14676         (mn10300_trampoline_init): Rewrite without a template, an immediate
14677         load and a direct branch.
14678         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14680 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
14682         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14683         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14684         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14685         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14687 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
14689         PR debug/47209
14690         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14691         of type.
14693 2011-01-12  Jan Hubicka  <jh@suse.cz>
14695         PR driver/47244
14696         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14697         (PLUGIN_COND_CLOSE): New macro.
14698         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14700 2011-01-12  Richard Guenther  <rguenther@suse.de>
14702         PR lto/47259
14703         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14704         register variables in a MEM_REF.
14706 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
14708         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14709         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14710         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14711         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14712         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14713         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14714         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14715         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14716         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14717         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14718         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14719         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14720         * config/gnu-user.h: New.  Copied from linux.h.
14721         (LINUX_TARGET_STARTFILE_SPEC): Rename to
14722         GNU_USER_TARGET_STARTFILE_SPEC.
14723         (LINUX_TARGET_ENDFILE_SPEC): Rename to
14724         GNU_USER_TARGET_ENDFILE_SPEC.
14725         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14726         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14727         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14728         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14729         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14730         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14731         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14732         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14733         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14734         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14735         * config/arm/linux-eabi.h (CC1_SPEC): Use
14736         GNU_USER_TARGET_CC1_SPEC.
14737         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14738         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14739         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14740         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14741         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14742         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14743         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14744         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14746 2011-01-12  Richard Guenther  <rguenther@suse.de>
14748         PR other/46946
14749         * doc/invoke.texi (ffast-math): Document it is turned on
14750         with -Ofast.
14752 2011-01-12  Jan Hubicka  <jh@suse.cz>
14754         PR tree-optimization/47233
14755         * opts.c (common_handle_option): Disable ipa-reference with profile
14756         feedback.
14758 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14760         * c-parser.c (c_parser_objc_at_property_declaration): Improved
14761         error message.
14763 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
14765         * c-parser.c (c_lex_one_token): Updated and reindented some
14766         comments.  No changes in code.
14768 2011-01-11  Ian Lance Taylor  <iant@google.com>
14770         * godump.c (go_output_var): Don't output the variable if there is
14771         already a type with the same name.
14773 2011-01-11  Ian Lance Taylor  <iant@google.com>
14775         * godump.c (go_format_type): Don't generate float80.
14777 2011-01-11  Richard Henderson  <rth@redhat.com>
14779         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14780         declaration.  Rewrite for both speed and size.
14781         (mn10300_address_cost_1): Remove.
14782         (mn10300_register_move_cost): New.
14783         (mn10300_memory_move_cost): New.
14784         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
14785         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
14786         extensions, shifts, BSWAP, CLZ.
14787         (mn10300_wide_const_load_uses_clr): Remove.
14788         (TARGET_REGISTER_MOVE_COST): New.
14789         (TARGET_MEMORY_MOVE_COST): New.
14790         * config/mn10300/mn10300-protos.h: Update.
14791         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14793         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14794         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14795         * config/mn10300/mn10300-protos.h: Update.
14796         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14797         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14798         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14799         (*test_int_bitfield, *test_byte_bitfield): Remove.
14800         (*bit_test, *subreg_bit_test): Remove.
14801         * config/mn10300/predicates.md (const_8bit_operand): Remove.
14803         * config/mn10300/constraints.md ("c"): Rename from "A".
14804         ("A", "D"): New constraint letters.
14805         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14806         (fmssf4, fnmasf4, fnmssf4): Likewise.
14808         * config/mn10300/mn10300.md (isa): New attribute.
14809         (enabled): New attribute.
14811         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14812         (abssf2, negsf2): Define only for hardware fp.
14813         (sqrtsf2): Reformat.
14814         (addsf3, subsf3, mulsf3): Merge expander and insn.
14816         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14817         (DEBUGGER_AUTO_OFFSET): Remove.
14818         (DEBUGGER_ARG_OFFSET): Remove.
14820         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14821         Emit register stores with the same offsets as the hardware.
14822         (mn10300_store_multiple_operation): Don't check that the register
14823         save offsets are monotonic.
14824         * config/mn10300/mn10300-protos.h: Update.
14826         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14828         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14829         in terms of the value on the stack, not the MDR register.
14831 2011-01-11  Jan Hubicka  <jh@suse.cz>
14833         PR lto/45721
14834         PR lto/45375
14835         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14836         (symbol_alias_set_destroy, symbol_alias_set_contains,
14837         propagate_aliases_backward): Declare.
14838         * lto-streamer-out.c (struct sets): New sturcture.
14839         (trivally_defined_alias): New function.
14840         (output_alias_pair_p): Rewrite.
14841         (output_unreferenced_globals): Fix output of alias pairs.
14842         (produce_symtab): Likewise.
14843         * ipa.c (function_and_variable_visibility): Set weak alias destination
14844         as needed in lto.
14845         * varasm.c (symbol_alias_set_t): Remove.
14846         (symbol_alias_set_destroy): Export.
14847         (propagate_aliases_forward, propagate_aliases_backward): New functions
14848         based on ...
14849         (compute_visible_aliases): ... this one; remove.
14850         (trivially_visible_alias): New
14851         (trivially_defined_alias): New.
14852         (remove_unreachable_alias_pairs): Rewrite.
14853         (finish_aliases_1): Reorganize code checking if alias is defined.
14854         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14855         in LTO mode.
14857 2011-01-11  Richard Guenther  <rguenther@suse.de>
14859         PR tree-optimization/46076
14860         * tree-ssa.c (useless_type_conversion_p): Conversions from
14861         unprototyped to empty argument list function types are useless.
14863 2011-01-11  Richard Guenther  <rguenther@suse.de>
14865         PR middle-end/45235
14866         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14867         volatile MEMs as MEM_READONLY_P.
14869 2011-01-11  Richard Guenther  <rguenther@suse.de>
14871         PR tree-optimization/47239
14872         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14874 2011-01-11  Jeff Law  <law@redhat.com>
14876         PR tree-optimization/47086
14877         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14878         IVs from statements that might throw.
14880 2011-01-10  Jan Hubicka  <jh@suse.cz>
14882         PR lto/45375
14883         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14885 2011-01-10  Jan Hubicka  <jh@suse.cz>
14887         PR lto/45375
14888         * profile.c (read_profile_edge_counts): Ignore profile inconistency
14889         when correcting profile.
14891 2011-01-10  Jan Hubicka  <jh@suse.cz>
14893         PR lto/46083
14894         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14895         DECL_FINI_PRIORITY.
14896         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14897         Restore DECL_FINI_PRIORITY.
14899 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14901         * doc/gimple.texi: Fix quoting of multi-word return values in
14902         @deftypefn statements.  Ensure presence of return value.  Wrap
14903         overlong @deftypefn lines.
14904         (is_gimple_operand, is_gimple_min_invariant_address): Remove
14905         descriptions of removed functions.
14906         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14907         of multi-word return value in @deftypefn statement.
14909 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14911         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14912         (Conditional Expressions, Logical Operators)
14913         (Statement and operand traversals): Do not indent smallexample
14914         code.  Fix duplicate function argument in example.
14916 2011-01-10  Jeff Law  <law@redhat.com>
14918         PR tree-optimization/47141
14919         * ipa-split.c (split_function): Handle case where we are
14920         returning a value and the return block has a virtual operand phi.
14922 2011-01-10  Jan Hubicka  <jh@suse.cz>
14924         PR tree-optimization/47234
14925         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14926         (pass_feedback_split_functions): Declare.
14927         * passes.c (init_optimization_passes): Add ipa-split as subpass of
14928         tree-profile.
14929         * ipa-split.c (gate_split_functions): Update comments; disable
14930         split-functions for profile_arc_flag and branch_probabilities.
14931         (gate_feedback_split_functions): New function.
14932         (execute_feedback_split_functions): New function.
14933         (pass_feedback_split_functions): New global var.
14935 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
14937         PR lto/46760
14938         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14939         calling gimple_call_set_cannot_inline.
14941 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
14943         * config/darwin-sections.def: Remove unused section.
14945 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
14947         PR c++/47218
14948         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14950 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
14952         PR objc/47232
14953         * c-parser.c (c_parser_declaration_or_fndef): Improved
14954         error message.
14956 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
14958         * config/i386/winnt.c (i386_pe_start_function): Make sure
14959         to switch back to function's section.
14961 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
14963         PR gcc/46902
14964         PR testsuite/46912
14965         * plugin.c: Move include of dlfcn.h from here...
14966         * system.h: ... to here.
14968 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14970         * doc/cpp.texi (C++ Named Operators): Fix markup for header
14971         file name.
14972         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14973         two extra empty pages in PDF output.
14975 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
14977         PR objc/47078
14978         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14979         for error recovery purposes behave as if it was not specified so
14980         that the default type is usd.
14982 2011-01-07  Jan Hubicka  <jh@suse.cz>
14984         PR tree-optmization/46469
14985         * ipa.c (function_and_variable_visibility): Clear needed flags on
14986         nodes with external decls; handle weakrefs merging correctly.
14988 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
14990         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14991         not false.
14993 2011-01-07  Jan Hubicka  <jh@suse.cz>
14995         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
14996         and no longer claim that gold is required for linker plugin.
14997         * configure: Regenerate.
14998         * gcc.c (PLUGIN_COND): New macro.
14999         (LINK_COMMAND_SPEC): Use it.
15000         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15001         * config.in (HAVE_LTO_PLUGIN): New.
15002         * configure.ac (--with-lto-plugin): New parameter; autodetect
15003         HAVE_LTO_PLUGIN.
15005 2011-01-07  Jan Hubicka  <jh@suse.cz>
15007         PR tree-optimization/46367
15008         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15009         when we can update original.
15010         (cgraph_mark_inline_edge): Sanity check.
15011         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15013 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15015         * config/spu/spu.h (ASM_COMMENT_START): Define.
15017 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15019         PR driver/42445
15020         * gcc.c (%>S): New.
15021         (SWITCH_KEEP_FOR_GCC): Likewise.
15022         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15023         (do_spec_1): Handle "%>".
15025         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15027 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15029         PR target/47201
15030         * config/i386/i386.c (ix86_delegitimize_address): If
15031         simplify_gen_subreg fails, return orig_x.
15033         PR bootstrap/47187
15034         * value-prof.c (gimple_stringop_fixed_value): Handle
15035         lhs of the call properly.
15037 2011-01-07  Jan Hubicka  <jh@suse.cz>
15039         PR lto/45375
15040         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15042 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15044         * target.def (function_switched_text_sections): New hook.
15045         * doc/tm.texi: Regenerated.
15046         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15047         * final.c (default_function_switched_text_sections): New.
15048         (final_scan_insn): Call function_switched_text_sections when a
15049         mid-function section change occurs.
15050         * output.h (default_function_switched_text_sections): Declare.
15051         * config/darwin-protos.h (darwin_function_switched_text_sections):
15052         Likewise.
15053         * config/darwin.c (darwin_function_switched_text_sections): New.
15054         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15056 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15058         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15059         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15060         the secondary code fragment when outputting for DWARF == 2.
15062 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15064         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15065         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15066         Remove.
15067         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15068         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15070 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15072         PR debug/46704
15073         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15074         when it is not empty.
15076 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15078         Bobcat Enablement
15079         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15080         (case ${target}): Add btver1.
15081         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15082         -march=native recognize btver1 processors.
15083         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15084         btver1 def_and_undef
15085         * config/i386/i386.c (struct processor_costs btver1_cost): New
15086         btver1 cost table.
15087         (m_BTVER1): New definition.
15088         (m_AMD_MULTIPLE): Includes m_BTVER1.
15089         (initial_ix86_tune_features): Add btver1 tune.
15090         (processor_target_table): Add btver1 entry.
15091         (static const char *const cpu_names): Add btver1 entry.
15092         (software_prefetching_beneficial_p): Add btver1.
15093         (ix86_option_override_internal): Add btver1 instruction sets.
15094         (ix86_issue_rate): Add btver1.
15095         (ix86_adjust_cost): Add btver1.
15096         * config/i386/i386.h (TARGET_BTVER1): New definition.
15097         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15098         (enum processor_type): Add PROCESSOR_BTVER1.
15099         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15101 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15103         PR target/43309
15104         * config/i386/i386.c (legitimize_tls_address)
15105         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15106         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15107         (tls_initial_exec_64_sun): New pattern.
15109 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15111         * doc/invoke.texi (Overall Options): Improve wording and markup
15112         of the description of -wrapper.
15114 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15116         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15117         rdynamic, threads): New Driver options.
15119 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15121         PR target/38118
15122         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15123         if coming from .tdata.
15124         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15126 2011-01-06  Jan Hubicka  <jh@suse.cz>
15128         PR lto/47188
15129         * collect2.c (main): Do not enable LTOmode when plugin is active.
15131 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15133         PR other/45915
15134         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15135         --version output if supported.
15136         * configure: Regenerate.
15138 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15140         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15141         Driver options.
15143 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15145         PR c/47150
15146         * c-convert.c (convert): When converting a complex expression
15147         other than COMPLEX_EXPR to a different complex type, ensure
15148         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15149         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15150         when converting COMPLEX_TYPE.
15152 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15154         PR tree-optimization/47139
15155         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15156         only the last reduction value is used outside the loop.  Update
15157         documentation.
15159 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15161         * config/rtems.opt: New.
15162         * config.gcc (*-*-rtems*): Use rtems.opt.
15164 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15166         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15167         processors do not support 3DNow instructions.
15169 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15171         * config/spu/spu.c (spu_option_override): Set parameter
15172         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15174 2011-01-05  Jan Hubicka  <jh@suse.cz>
15176         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15177         at the command line.
15179 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15181         PR lto/47162
15182         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15183         deltas on streamed outgoing edges.
15184         (output_node_opt_summary): Output info for outgoing edges only when
15185         the node is in new parameter set.
15186         (output_cgraph_opt_summary): New parameter set, passed to the two
15187         aforementioned functions.  Update its forward declaration and its
15188         callee too.
15190 2011-01-05  Tom Tromey  <tromey@redhat.com>
15192         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15193         operator to c_finish_omp_atomic.
15194         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15195         (build_unary_op): Update.
15196         (build_modify_expr): Update.
15197         (build_asm_expr): Update.
15199 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15201         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15202         newly inserted insns.
15203         (pad_bb): Likewise.
15204         (spu_emit_branch_hint): Likewise.
15205         (insert_hbrp_for_ilb_runout): Likewise.
15206         (spu_machine_dependent_reorg): Call df_finish_pass after
15207         schedule_insns returns.
15209 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15211         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15213 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15215         PR tree-optimization/47005
15216         * tree-sra.c (struct access): Add 'non_addressable' bit.
15217         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15218         (decide_one_param_reduction): Return 0 if the parameter is passed by
15219         reference and one of the accesses in the group is non_addressable.
15221 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15223         PR tree-optimization/47056
15224         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15225         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15226         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15228 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15230         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15231         initializer.  Skip view conversions from aggregate types.
15233 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15235         PR bootstrap/47055
15236         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15238 2011-01-04  Philipp Thomas  <pth@suse.de>
15240         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15241         obvious typo.
15243 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15245         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15246         on empty epilogue sequences.
15248 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15250         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15251         non-static): New Driver options.
15253 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15255         PR driver/47137
15256         * gcc.c (default_compilers[]): Set combinable field to 0
15257         for all assembly languages.
15259 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15261         * config/mips/loongson3a.md: New file.
15262         * config/mips/mips.md: Include loongson3a.md.
15263         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15264         TUNE_LOONGSON_3A.
15266 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15268         PR middle-end/47017
15269         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15270         instead of convert_memory_address_addr_space on the base expression.
15272 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15274         * config/spu/spu.c (spu_option_override): Update error text
15275         for bad -march= / -mtune= values.
15277 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15279         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15280         if branch-hint optimization will be performed.
15282 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15284         PR tree-optimization/47148
15285         * ipa-split.c (split_function): Convert arguments to
15286         DECL_ARG_TYPE if possible.
15288         PR tree-optimization/47155
15289         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15290         when computing uns.
15292         PR rtl-optimization/47157
15293         * combine.c (try_combine): If undobuf.other_insn becomes
15294         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15295         and set *new_direct_jump_p too.
15297 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15299         PR tree-optimization/47021
15300         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15302 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15304         * gcc.c (process_command): Update copyright notice dates.
15305         * gcov.c (print_version): Likewise.
15306         * gcov-dump.c (print_version): Likewise.
15307         * mips-tfile.c (main): Likewise.
15308         * mips-tdump.c (main): Likewise.
15310 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15312         PR tree-optimization/46801
15313         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15314         aggregate fields start at byte boundary instead of the bit-field flag.
15316 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15318         PR driver/47137
15319         * gcc.c (main): Revert revision 168407.
15321 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15323         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15325 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15327         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15328         vector optab to expand vector/scalar shift, update gimple to vector.
15330 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15332         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15333         a thunk.
15335 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15337         PR tree-optimization/46984
15338         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15339         HOST_WIDE_INT.
15340         (cgraph_create_indirect_edge): Fixed line length.
15341         (cgraph_indirect_call_info): Declare.
15342         (cgraph_make_edge_direct) Update declaration.
15343         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15344         (cgraph_create_indirect_edge): Use it.
15345         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15346         callees.
15347         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15348         the new thunk_delta representation.
15349         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15350         HOST_WIDE_INT.
15351         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15352         (ipa_read_indirect_edge_info): Likewise.
15353         * lto-cgraph.c (output_edge_opt_summary): New function.
15354         (output_node_opt_summary): Call it on all outgoing edges.
15355         (input_edge_opt_summary): New function.
15356         (input_node_opt_summary): Call it on all outgoing edges.
15358 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15360         PR driver/47137
15361         * gcc.c (main): Don't check have_o when settting combine_inputs.
15363 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15365         * regrename.c: Add general comment describing the pass.
15366         (struct du_head): Remove 'length' field.
15367         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15368         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15369         Force renaming to the preferred class (if any) in the first pass and do
15370         not consider registers that belong to it in the second pass.
15371         (create_new_chain): Do not set 'length' field.
15372         (scan_rtx_reg): Likewise.
15374 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15376         PR tree-optimization/47140
15377         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15378         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15379         to bit_value_binop.
15381         PR rtl-optimization/47028
15382         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15383         parm_birth_insn instead of at the beginning of first bb.
15385 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15387         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15388         Remove the word "see" before "@pxref".
15389         * doc/rtl.texi: Remove the word "see" before "@pxref".
15391 2011-01-01  Jan Hubicka  <jh@suse.cz>
15393         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15394         memory.
15396 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15398         PR target/38662
15399         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15402 Copyright (C) 2011 Free Software Foundation, Inc.
15404 Copying and distribution of this file, with or without modification,
15405 are permitted in any medium without royalty provided the copyright
15406 notice and this notice are preserved.