1 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
3 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
4 (bdesc_special_args): Add pause intrinsic.
6 * config/i386/i386.md (UNSPEC_PAUSE): New.
9 * config/i386/ia32intrin.h (__pause): Likewise.
11 * doc/extend.texi (X86 Built-in Functions): Add documentation for
14 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16 PR tree-optimization/46728
17 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
18 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
20 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
22 * tree.h (struct tree_exp): Inherit from struct tree_typed.
23 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
26 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
28 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
29 LIBGCC2_GNU_PREFIX is defined.
31 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
32 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
33 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
34 __clz_tab): Define using __N.
35 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
36 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
37 * target.def (libfunc_gnu_prefix): New hook.
38 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
39 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
40 * doc/tm.texi: Regenerate.
41 * system.h (LIBGCC2_GNU_PREFIX): Poison.
42 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
44 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
45 (init_optabs): Likewise for the bswap libfuncs.
46 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
48 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
49 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
50 * libgcc-std.ver: Remove.
51 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
52 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
54 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
55 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
56 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
57 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
58 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
59 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
60 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
61 * config/fixed-bit.h (FIXED_OP): Define differently depending on
62 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
63 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
65 2011-05-25 Jan Hubicka <jh@suse.cz>
67 * lto-streamer-out.c (output_record_start): Use lto_output_enum
68 (lto_output_tree): Use output_record_start.
69 * lto-streamer-in.c (input_record_start): Use lto_input_enum
70 (lto_get_pickled_tree): Use input_record_start.
71 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
72 (lto_value_range_error): New function.
73 * lto-streamer.h (lto_value_range_error): Declare.
74 (lto_output_int_in_range, lto_input_int_in_range): New functions.
75 (lto_output_enum, lto_input_enum): New macros.
77 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
79 * common.opt (flag_stack_usage_info): New variable.
80 (-Wstack-usage): New option.
81 * doc/invoke.texi (Warning options): Document -Wstack-usage.
82 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
83 <OPT_fstack_usage>: Likewise.
84 * toplev.c (output_stack_usage): Handle -Wstack-usage.
85 * calls.c (expand_call): Test flag_stack_usage_info variable instead
87 (emit_library_call_value_1): Likewise.
88 * explow.c (allocate_dynamic_stack_space): Likewise.
89 * function.c (instantiate_virtual_regs ): Likewise.
90 (prepare_function_start): Likewise.
91 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
92 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
93 * config/arm/arm.c (arm_expand_prologue): Likewise.
94 (thumb1_expand_prologue): Likewise.
95 * config/avr/avr.c (expand_prologue): Likewise.
96 * config/i386/i386.c (ix86_expand_prologue): Likewise.
97 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
98 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
99 * config/mips/mips.c (mips_expand_prologue): Likewise.
100 * config/pa/pa.c (hppa_expand_prologue): Likewise.
101 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
102 * config/s390/s390.c (s390_emit_prologue): Likewise.
103 * config/sh/sh.c (sh_expand_prologue): Likewise.
104 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
105 * config/spu/spu.c (spu_expand_prologue): Likewise.
107 2011-05-25 Richard Guenther <rguenther@suse.de>
109 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
110 (gimple_canonical_types_compatible_p): Likewise.
112 2011-05-25 Jan Hubicka <jh@suse.cz>
115 * ipa.c (function_and_variable_visibility): Only add to same
116 comdat group list if DECL_ONE_ONLY.
118 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
120 PR rtl-optimization/49014
121 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
123 2011-05-25 Jakub Jelinek <jakub@redhat.com>
126 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
128 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
130 PR rtl-optimization/48757
131 * ira-build.c (loop_with_eh_edge_p): Rename to
132 loop_with_complex_edge_p, check edges on complexity, make function
134 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
137 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
139 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
140 force flag_ira_share_save_slots to 0.
142 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
144 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
145 (vt_initialize): Set PROLOGUE_BB unconditionally.
146 Add block comment about CFA_BASE_RTX machinery.
147 Reset FP_CFA_OFFSET to -1 on all invalid paths.
148 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
150 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
153 * c-parser.c (c_parser_objc_class_instance_variables): More robust
154 parsing of syntax error in ObjC instance variable lists. In
155 particular, avoid an infinite loop if there is a stray ']'.
156 Updated error message.
158 2011-05-24 Ian Lance Taylor <iant@google.com>
160 * godump.c (go_define): Don't accept a string immediately after
163 2011-05-24 Ian Lance Taylor <iant@google.com>
165 * godump.c (struct godump_container): Add invalid_hash field.
166 (go_format_type): Return false if type is found in invalid_hash.
167 (go_output_typedef): Add invalid type to invalid_hash.
168 (go_finish): Create and delete invalid_hash.
170 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
172 PR tree-optimization/46728
173 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
174 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
176 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
178 PR tree-optimization/46728
179 * tree-ssa-math-opts.c (powi_table): New.
180 (powi_lookup_cost): New.
182 (powi_as_mults_1): New.
183 (powi_as_mults): New.
184 (gimple_expand_builtin_powi): New.
185 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
186 (gate_cse_sincos): Remove sincos/cexp restriction.
188 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
191 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
193 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
194 * mips-tdump.c: Likewise.
196 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
199 * config/i386/driver-i386.c (host_detect_local_cpu): Always
200 add -mno-XXX. Handle FMA.
202 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
204 PR rtl-optimization/48633
205 * ira-build.c (loop_with_eh_edge_p): New function.
206 (mark_loops_for_removal): Use it.
208 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
210 PR rtl-optimization/48971
211 * ira.c (setup_pressure_classes): Don't check register move cost
212 for classes with one registers. Don't add pressure class if there
213 is a pressure class with the same available hard registers.
214 Check contains_reg_of_mode. Fix a typo in collecting
215 temp_hard_regset. Ignore hard registers not belonging to a class.
217 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
220 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
222 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
223 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
225 PR gcov-profile/48845
226 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
228 2011-05-24 Richard Guenther <rguenther@suse.de>
230 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
231 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
232 (gimple_types_compatible_p_1): Adjust.
233 (iterative_hash_canonical_type): Do not bother about complete vs.
235 (gimple_canonical_types_compatible_p): Likewise.
237 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
239 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
241 2011-05-24 Richard Guenther <rguenther@suse.de>
244 * gimple.c (gimple_register_canonical_type): Revert
246 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
247 does not for a tree for the case where it matters. Cache
248 pointer-type alias-sets.
250 2011-05-24 Joseph Myers <joseph@codesourcery.com>
252 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
253 (OBJS): Remove options.o, opts-common.o and prefix.o.
254 (OBJS-libcommon-target): New.
255 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
256 (BACKEND): Include libcommon-target.a.
257 (MOSTLYCLEANFILES): Include libcommon-target.a.
258 (libcommon-target.a): New.
259 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
262 2011-05-23 Joseph Myers <joseph@codesourcery.com>
264 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
265 parts of output shared with the driver.
266 * optc-gen.awk: Don't generate parts of output not shared with the
268 * opth-gen.awk: Remove GCC_DRIVER conditionals.
269 * doc/options.texi (SourcerInclude): Mention options-save.c.
270 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
271 (OBJS): Add options-save.o.
272 (options-save.c, options-save.o): New.
273 (options.o): Update dependencies.
274 (gcc-options.o): Remove.
275 (mostlyclean): Remove options-save.c.
277 2011-05-23 Jakub Jelinek <jakub@redhat.com>
280 * dbxout.c: Include cgraph.h.
281 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
282 and without value expr, return NULL if no varpool node exists for
283 it or if it is not needed.
284 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
287 * c-decl.c (start_decl): Convert expr to void_type_node.
289 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
291 PR rtl-optimization/48826
292 * emit-rtl.c (try_split): When splitting a call that is followed
293 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
295 2011-05-23 Jakub Jelinek <jakub@redhat.com>
297 * cfgexpand.c (expand_debug_expr): For unused non-addressable
298 parameters passed in memory prefer using DECL_INCOMING_RTL over
299 the pseudos it will be copied into.
301 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
304 * config/i386/i386.c (ix86_option_override_internal): Save the
305 initial options after checking vzeroupper.
307 2011-05-23 David Li <davidxl@google.com>
309 PR tree-optimization/48988
310 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
311 Initialize has_valid_pred for each pred chain.
313 2011-05-23 Richard Guenther <rguenther@suse.de>
315 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
316 (iterative_hash_gimple_type): Always hash type names.
318 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
320 * c-typeck.c (build_function_call_vec): Tweak call to
321 check_function_arguments.
323 2011-05-23 Richard Guenther <rguenther@suse.de>
325 PR tree-optimization/49115
326 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
327 is not necessarily carried out, do not claim it kills the ref.
328 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
330 2011-05-23 Richard Guenther <rguenther@suse.de>
333 * builtins.c (fold_builtin_memory_op): Be less restrictive about
334 what pointer types we accept for folding.
336 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
338 * gthr-gnat.c: Remove.
339 * gthr-gnat.h: Remove.
340 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
341 * config/t-freebsd (LIB2ADDEH): Likewise.
342 * config/t-linux (LIB2ADDEH): Likewise.
343 * config/t-sol2 (LIB2ADDEH): Likewise.
344 * config/ia64/t-vms (LIB2ADDEH): Likewise.
345 * configure.ac (target_thread_file): Remove gnat handling.
346 * configure: Regenerate.
347 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
349 2011-05-23 Tristan Gingold <gingold@adacore.com>
350 Eric Botcazou <ebotcazou@adacore.com>
352 * gcov.c (create_file_names): If no object directory is specified,
353 keep the directory of the file.
355 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
357 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
358 * configure: Regenerate.
360 2011-05-23 Jakub Jelinek <jakub@redhat.com>
363 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
364 failed and the comparison has a single bit signed type, use
365 constm1_rtx instead of const1_rtx for true value.
366 (do_store_flag): If ops->type is single bit signed type, disable
367 signel bit test optimization and pass -1 instead of 1 as last
368 parameter to emit_store_flag_force.
370 2011-05-23 Tom de Vries <tom@codesourcery.com>
373 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
375 (infer_loop_bounds_from_undefined): Use new function.
377 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
379 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
380 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
381 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
383 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
385 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
387 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
388 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
391 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
393 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
395 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
397 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
398 UNSPEC_MOVE_PIC pattern.
400 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
402 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
403 (sparc-*-rtems*): Likewise.
404 (sparc64-*-elf*): Likewise.
405 (sparc64-*-rtems*): Likewise.
406 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
407 * config/sparc/t-crtin: New file.
408 * config/sparc/t-sol2 (crti.o): Delete rule.
410 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
411 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
412 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
413 (ENDFILE_SPEC): Add crtn.o.
415 2011-05-22 Tom de Vries <tom@codesourcery.com>
418 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
419 CODE_CONTAINS_STRUCT (TS_COMMON).
421 2011-05-22 Jakub Jelinek <jakub@redhat.com>
424 * expmed.c (extract_fixed_bit_field): Test whether target can be used
425 only after deciding which mode to use.
427 2011-05-22 Tom de Vries <tom@codesourcery.com>
430 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
431 for call to get_shiftadd_cost.
433 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
436 * config/i386/cpuid.h (bit_MMXEXT): New define.
438 2011-05-22 Nick Clifton <nickc@redhat.com>
440 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
441 initialisation of non-existant args[2] element. Use args[] array
442 not arg[] array to pass arguments to build_function_type_list.
444 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
446 PR tree-optimization/49087
447 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
449 2011-05-21 Jason Merrill <jason@redhat.com>
452 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
453 static storage duration.
455 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
457 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
460 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
462 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
463 false if there are call-saved registers here...
464 (sparc_can_use_return_insn_p): ...but here instead.
465 (save_or_restore_regs): Fix thinko.
466 (sparc_expand_prologue): Use current_function_is_leaf.
467 (sparc_frame_pointer_required): Likewise.
469 2011-05-21 Nick Clifton <nickc@redhat.com>
472 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
474 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
476 * gengtype.c (walk_type): Implemented "atomic" GTY option.
477 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
479 2011-05-21 Joseph Myers <joseph@codesourcery.com>
481 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
482 * optc-gen.awk: Move common code to opt-read.awk.
483 * opth-gen.awk: Likewise.
484 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
486 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
488 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
490 2011-05-20 Tom de Vries <tom@codesourcery.com>
493 * tree-ssa-loop-ivopts.c: Include expmed.h.
494 (get_shiftadd_cost): New function.
495 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
497 2011-05-20 Jakub Jelinek <jakub@redhat.com>
500 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
501 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
503 2011-05-20 Joseph Myers <joseph@codesourcery.com>
505 * Makefile.in: Update comment referring to $(OBJS-common).
507 2011-05-20 Ian Lance Taylor <iant@google.com>
509 * godump.c (go_output_typedef): Put enum constants in the macro
510 hash table to avoid duplicate Go const definitions.
512 2011-05-20 Joseph Myers <joseph@codesourcery.com>
514 * Makefile.in (LIBDEPS): Add libcommon.a.
516 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
517 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
518 pretty-print.o and version.o.
519 (OBJS-libcommon): New.
520 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
521 (BACKEND): Add libcommon.a.
522 (MOSTLYCLEANFILES): Likewise.
524 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
525 (cpp$(exeext)): Likewise.
526 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
527 pretty-print.o and input.o.
528 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
529 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
531 (mips-tfile): Don't explicitly use version.o.
532 (mips-tdump): Likewise.
533 (gcov.o): Depend on $(DIAGNOSTIC_H).
534 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
535 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
536 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
537 * gcov-dump.c: Include intl.h and diagnostic.h.
538 (main): Initialize diagnostics.
539 * gcov.c: Include diagnostic.h.
541 (main): Initialize diagnostics.
542 * lto-wrapper.c: Include diagnostic.h.
543 (main): Initialize diagnostics.
545 2011-05-20 Michael Matz <matz@suse.de>
547 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
549 2011-05-20 Michael Matz <matz@suse.de>
550 Richard Guenther <rguenther@suse.de>
552 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
553 use lto_streamer_cache_append directly instead of returning a VEC.
554 (preload_common_node): Remove.
555 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
557 (lto_streamer_cache_create): Call lto_preload_common_nodes.
559 2011-05-20 Richard Guenther <rguenther@suse.de>
561 PR tree-optimization/49079
562 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
563 MEM_REFs correctly for the trailing array access detection.
564 Special case constants the same way as decls for overall size
567 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
569 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
572 2011-05-20 Jakub Jelinek <jakub@redhat.com>
574 PR tree-optimization/49073
575 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
576 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
577 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
579 2011-05-20 Richard Guenther <rguenther@suse.de>
582 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
583 of pointer types the same way the middle-end does.
585 2011-05-20 Richard Guenther <rguenther@suse.de>
587 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
588 or pointer-to chains. Delay all fixup to uniquify_nodes.
590 2011-05-19 Quentin Neill <quentin.neill@amd.com>
592 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
593 (fma4_fmaddsub): Likewise
595 2011-05-19 Jan Hubicka <jh@suse.cz>
597 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
598 (GIMPLE_TYPE_PAIR_SIZE): New macro.
599 (type_pair_cache): New static var.
600 (lookup_type_pair): Use fixed sized custom hash; make inline.
601 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
602 calls of lookup_type_pair.
603 (print_gimple_types_stats): Remove cache stats.
604 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
607 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
609 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
610 when TARGET_RDRND is active.
611 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
612 Generate dummy SImode target register when target is NULL.
614 2011-05-19 Joseph Myers <joseph@codesourcery.com>
616 * config/arm/arm-fpus.def: New.
617 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
619 * config/arm/arm-tables.opt: Regenerate.
620 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
621 (arm_option_override): Don't decode FPU name to string here.
622 * config/arm/arm.opt (mfpu=): Use Enum.
623 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
626 2011-05-19 Joseph Myers <joseph@codesourcery.com>
628 * collect2.c: Include diagnostic.h.
629 (fatal_perror, fatal, error, fancy_abort): Remove.
630 (main): Set progname. Call xmalloc_set_program_name and
631 diagnostic_initialize.
632 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
633 scan_libraries, resolve_lib_name): Call fatal_error instead of
634 fatal and fatal_perror.
635 * collect2.h (error, fatal, fatal_perror): Don't declare.
636 * tlink.c: Include diagnostic-core.h.
637 (recompile_files): Call fatal_error instead of fatal_perror.
638 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
639 pretty-print.o and input.o.
640 (collect2.o, tlink.o): Update dependencies.
642 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
644 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
646 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
649 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
650 COMDAT group syntax, both SPARC and x86 variants.
651 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
652 * configure: Regenerate.
653 * config/sol2.h (TARGET_SOLARIS): Define.
654 (PUSHSECTION_FORMAT): Remove.
655 (SECTION_NAME_FORMAT): Define.
656 * config/sol2.c: Include hashtab.h.
657 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
658 expansion, using SECTION_NAME_FORMAT.
659 (solaris_comdat_htab): New variable.
660 (struct comdat_entry): Define.
661 (comdat_hash): New function.
662 (comdat_eq): New function.
663 (solaris_elf_asm_comdat_section): New function.
664 (solaris_define_comdat_signature): New function.
665 (solaris_code_end): New function.
666 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
667 (solaris_code_end): Declare.
668 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
669 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
671 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
672 Remove ATTRIBUTE_UNUSED.
673 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
674 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
675 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
676 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
677 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
678 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
679 (PUSHSECTION_FORMAT): Remove.
680 (SECTION_NAME_FORMAT): Redefine.
682 2011-05-19 Kai Tietz <ktietz@redhat.com>
684 * tree-cfg.c (verify_gimple_assign_binary): Barf on
685 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
686 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
688 2011-05-19 Anatoly Sokolov <aesok@post.ru>
689 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
691 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
693 2011-05-19 Richard Guenther <rguenther@suse.de>
696 * tree-object-size.c (addr_object_size): If the pointed-to
697 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
699 2011-05-19 Richard Guenther <rguenther@suse.de>
701 * gimple.c (gimple_types_compatible_p_1): Compare names of
702 the types themselves.
703 (iterative_hash_gimple_type): And hash them that way.
704 (gimple_register_type_1): If we register a main variant properly
705 initialize the leader to ourselves.
707 2011-05-19 Tom de Vries <tom@codesourcery.com>
710 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
711 get_loop_invariant_expr_id.
712 (get_loop_invariant_expr_id): Use get_expr_id.
713 (parm_decl_cost): New function.
714 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
715 Improve bound cost estimation. Use different inv_expr_id for elim and
718 2011-05-19 Tom de Vries <tom@codesourcery.com>
721 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
724 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
727 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
728 Properly handle load cast.
730 2011-05-18 Jakub Jelinek <jakub@redhat.com>
732 PR tree-optimization/49039
733 * tree-vrp.c (extract_range_from_binary_expr): For
734 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
735 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
737 2011-05-18 Tom de Vries <tom@codesourcery.com>
740 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
742 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
744 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
745 (*tls_global_dynamic_64): Ditto.
746 (*tls_local_dynamic_base_32_gnu): Ditto.
747 (*tls_local_dynamic_base_64): Ditto.
748 (tls_initial_exec_64_sun): Ditto.
750 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
752 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
753 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
755 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
756 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
757 * config/bfin/bfin.c (bfin_cpus): Add bf592.
758 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
759 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
760 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
761 * config/bfin/elf.h (LIB_SPEC): Add bf592.
763 2011-05-18 Joseph Myers <joseph@codesourcery.com>
765 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
766 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
767 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
768 target_thread_pointer, arm_structure_size_boundary, struct
769 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
770 struct abi_name, arm_all_abis): Remove.
771 (arm_option_override) Don't process most enumerated option values here.
772 Don't process target_fpe_name here. Work with integer not string for
773 structure size boundary; use separate diagnostics for each case.
774 * config/arm/arm.h (enum float_abi_type, enum
775 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
777 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
778 arm_structure_size_boundary): Remove.
779 * config/arm/arm.opt (mabi=): Use Enum and Init.
780 (arm_abi_type): New Enum and EnumValue entries.
781 (mfloat-abi=): Use Enum and Init.
782 (float_abi_type): New Enum and EnumValue entries.
783 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
784 (mfp16-format=): Use Enum and Init.
785 (arm_fp16_format_type): New Enum and EnumValue entries.
786 (mstructure-size-boundary=): Use UInteger and Init.
787 (mtp=): Use Enum and Init.
788 (arm_tp_type): New Enum and EnumValue entries.
790 2011-05-18 Richard Guenther <rguenther@suse.de>
792 PR tree-optimization/49018
793 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
794 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
795 gimple_has_side_effects.
797 2011-05-18 Richard Guenther <rguenther@suse.de>
799 * gimple.c (gimple_register_type_1): New function, split out from ...
800 (gimple_register_type): ... here. Avoid infinite recursion.
802 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
804 PR tree-optimization/41881
805 * tree-vectorizer.h (struct _loop_vec_info): Add new field
806 reduction_chains along with a macro for its access.
807 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
808 (destroy_loop_vec_info): Free reduction chains.
809 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
810 (vect_is_slp_reduction): New function.
811 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
812 (vect_create_epilog_for_reduction): Support SLP reduction chains.
813 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
814 definition types for reduction chains.
815 (vect_supported_load_permutation_p): Don't allow permutations for
817 (vect_analyze_slp_instance): Support reduction chains.
818 (vect_analyze_slp): Try to build SLP instance from reduction chains.
819 (vect_get_constant_vectors): Handle reduction chains.
820 (vect_schedule_slp_instance): Mark the first statement of the
821 reduction chain as reduction.
823 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
825 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
826 names for group elements access.
827 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
828 reduction chains as well. Remove data reference and interleaving
829 related words from the fields names.
830 * tree-vect-loop.c (vect_transform_loop): Use new names for group
832 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
833 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
834 vect_update_interleaving_chain, vect_same_range_drs,
835 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
836 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
837 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
838 vect_analyze_group_access, vect_analyze_data_ref_access,
839 vect_create_data_ref_ptr, vect_transform_strided_load,
840 vect_record_strided_load_vectors): Likewise.
841 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
842 vect_model_load_cost, vectorizable_store, vectorizable_load,
843 vect_remove_stores, new_stmt_vec_info): Likewise.
844 * tree-vect-slp.c (vect_build_slp_tree,
845 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
847 2011-05-18 Richard Guenther <rguenther@suse.de>
850 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
851 operand verification.
852 (verify_gimple_assign_binary): Likewise.
853 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
854 to non-1-precision BOOLEAN_TYPEs.
856 2011-05-18 Tom de Vries <tom@codesourcery.com>
859 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
861 2011-05-18 Jakub Jelinek <jakub@redhat.com>
863 PR tree-optimization/49000
864 * tree-ssa.c (execute_update_addresses_taken): Call
865 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
866 be rewritten and decl has been marked for renaming, reset
869 2011-05-17 Joseph Myers <joseph@codesourcery.com>
871 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
872 enum_opts_set when testing if attributes have set -mfpmath=.
874 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
876 * config/mips/mips.c (mips_handle_option): Remove unused variable.
878 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
880 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
882 * tree-inline.c (maybe_inline_call_in_expr): Initialize
883 id.transform_lang_insert_block with NULL.
885 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
887 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
888 (output_fp_compare): Change args 3 and 4 to bool.
889 (ix86_expand_call): Change arg 6 to bool.
890 (ix86_attr_length_immediate_default): Change arg 2 to bool.
891 (ix86_attr_length_vex_default): Change arg 3 to bool.
892 * config/i386/i386.md: Update all uses.
893 * config/i386/i386.c: Ditto.
894 (ix86_flags_dependent): Change return type to bool.
896 2011-05-17 Richard Guenther <rguenther@suse.de>
898 * gimple.c (type_hash_pair_compare): Fix comparison.
900 2011-05-17 Richard Guenther <rguenther@suse.de>
902 * gimple.c (iterative_hash_gimple_type): Simplify singleton
903 case some more, fix final hash value of the non-singleton case.
905 2011-05-17 Richard Guenther <rguenther@suse.de>
909 2011-05-16 Richard Guenther <rguenther@suse.de>
911 * gimple.c (gimple_types_compatible_p_1): Use names of the
912 type itself, not its main variant.
913 (iterative_hash_gimple_type): Likewise.
915 2011-05-17 Richard Guenther <rguenther@suse.de>
917 * gimple.c (gimple_register_canonical_type): Use the main-variant
918 leader for computing the canonical type.
920 2011-05-17 Nick Clifton <nickc@redhat.com>
922 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
925 * config/rx/rx.md: Add peephole to remove redundant extensions
927 (bitset_in_memory): Use rx_restricted_mem_operand.
928 (bitinvert_in_memory): Likewise.
929 (bitclr_in_memory): Likewise.
931 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
932 Nick Clifton <nickc@redhat.com>
934 * config/rx/rx.md: Add peepholes to match a register move followed
935 by a comparison of the moved register. Replace these with an
936 addition of zero that does both actions in one instruction.
938 2011-05-17 Jakub Jelinek <jakub@redhat.com>
941 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
942 predicate to allow CONST_INT.
943 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
945 2011-05-16 Joseph Myers <joseph@codesourcery.com>
947 * opts-common.c (opt_enum_arg_to_value): New.
948 * opts.h (opt_enum_arg_to_value): Declare.
949 * config/i386/i386.opt (fpmath): Remove.
950 (mfpmath=): Use Enum, Init and Save.
951 (fpmath_unit): New Enum and EnumValue entries.
952 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
953 name for function fpmath state.
954 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
955 * config/i386/i386.c: Include diagnostic.h.
956 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
957 (ix86_target_string): Take enum fpmath_unit value instead of string.
958 (ix86_debug_options): Update call to ix86_target_string.
959 (ix86_option_override_internal): Don't process fpmath strings here.
960 (x86_function_specific_save, ix86_function_specific_restore):
961 Don't handle fpmath state specially.
962 (ix86_function_specific_print): Pass fpmath state to
963 ix86_target_string instead of printing in this function.
964 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
965 Handle enum attributes.
966 (IX86_ATTR_ENUM, ix86_opt_enum): New.
967 (ix86_valid_target_attribute_tree): Update option_strings
968 handling. Handle fpmath as enum option.
969 (ix86_can_inline_p): Update field names for function fpmath state.
970 (ix86_expand_builtin): Update call to ix86_target_string.
971 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
972 (ix86_fpmath): Remove.
973 * config/i386/t-i386 (i386.o): Update dependencies.
975 2011-05-16 Joseph Myers <joseph@codesourcery.com>
977 PR preprocessor/48677
978 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
979 from decoded_options[0], not from itself.
981 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
983 * config/i386/constraints.md (z): New constraint.
984 * config/i386/i386.c (c): New mode attribute.
985 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
986 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
987 constraint for operand 0.
988 (*call_vzeroupper): Ditto.
989 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
990 (*call_rex64_ms_sysv_vzeroupper): Ditto.
991 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
992 Use "lzm" constraint for operand 0.
993 (*call_pop_vzeroupper): Ditto.
994 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
995 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
996 constraint for operand 0.
997 (*sibcall_vzeroupper): Ditto.
998 (*sibcall_rex64_ms_sysv): Ditto.
999 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1000 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1001 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1002 (*sibcall_pop_vzeroupper): Ditto.
1003 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1004 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1005 mode iterator. Use "<c>zm" constraint for operand 1.
1006 (*call_value_vzeroupper): Ditto.
1007 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1009 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1010 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1011 *call_value_pop_1. Use "lzm" constraint for operand 1.
1012 (*call_value_pop_vzeroupper): Ditto.
1013 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1014 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1015 mode iterator. Use "Uz" constraint for operand 1.
1016 (*sibcall_value_vzeroupper): Ditto.
1017 (*sibcall_value_rex64_ms_sysv): Ditto.
1018 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1019 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1020 constraint for operand 1.
1021 (*sibcall_value_pop_vzeroupper): Ditto.
1022 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1023 and "z" constraint for operand 2.
1024 (*tls_global_dynamic_32_gnu): Ditto.
1025 (*tls_local_dynamic_base_32_gnu): Ditto.
1026 (*tls_local_dynamic_base_64): Ditto.
1027 (*tls_local_dynamic_32_once): Ditto.
1028 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1030 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1032 2011-05-16 Richard Guenther <rguenther@suse.de>
1034 * gimple.c (gimple_types_compatible_p_1): Use names of the
1035 type itself, not its main variant.
1036 (iterative_hash_gimple_type): Likewise.
1038 2011-05-16 Richard Guenther <rguenther@suse.de>
1040 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1041 always visit pointer target and function result and argument types.
1043 2011-05-16 Jason Merrill <jason@redhat.com>
1046 * tree-inline.c (copy_statement_list): Put back recursion.
1048 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1052 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1053 * config/avr/avr.md ("*ior<mode>qi.byte0",
1054 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1056 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1059 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1060 register is needed for a function argument.
1062 2011-05-16 Richard Guenther <rguenther@suse.de>
1064 * gimple.c (struct type_hash_pair): New type.
1065 (type_hash_pair_compare): New function.
1066 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1068 2011-05-16 Revital Eres <revital.eres@linaro.org>
1070 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1072 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1074 * config/i386/i386.md (floating point move splitters): Fix
1075 usage of standard_80387_constant_p.
1076 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1078 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1080 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1082 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1084 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1085 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1086 (tree_ssa_lim_finalize): Likewise.
1088 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1090 * config/i386/constraint.md (Yd, Yx): New register constraints.
1091 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1092 Yd conditional register constraint.
1093 (*movtf_internal): Use standard_sse_constant_opcode.
1094 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1095 Yx conditional register constraint.
1096 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1097 Yd conditional register constraint. Use standard_sse_constant_p to
1098 check for valid SSE constants and call standard_sse_constant_opcode to
1100 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1101 constants and call standard_sse_constant_opcode to output SSE insn.
1102 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1103 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1104 optimize_size is set.
1105 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1107 2011-05-14 Tobias Burnus <burnus@net-b.de>
1109 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1111 2011-05-13 Martin Jambor <mjambor@suse.cz>
1113 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1114 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1115 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1116 (evaluate_conditions_for_ipcp_clone): Removed.
1117 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1118 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1119 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1121 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1123 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1124 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1125 lieu of MAY_HAVE_DEBUG_STMTS.
1126 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1127 debug statements if !MAY_HAVE_DEBUG_STMTS.
1129 2011-05-13 Martin Thuresson <martint@google.com>
1131 PR gcov-profile/47793
1132 * libgcov.c (gcov_exit): Support relative profile paths.
1133 * doc/invoke.texi (-fprofile-dir): Update for above change.
1135 2011-05-13 Richard Guenther <rguenther@suse.de>
1137 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1138 type-pair caching, do not compare hashes.
1140 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1143 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1144 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1146 2011-05-13 Kai Tietz <ktietz@redhat.com>
1148 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1149 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1150 compatible type for TRUTH_NOT_EXPR.
1152 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1154 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1155 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1156 can_create_pseudo_p ().
1158 2011-05-13 Richard Guenther <rguenther@suse.de>
1161 * gimple.c (iterative_hash_gimple_type): Revert change in
1162 pointer target and function result and argument hashing.
1164 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1166 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1167 (*movxf_internal_nointeger): Ditto.
1168 (*movdf_internal_rex64): Ditto.
1169 (*movdf_internal): Ditto.
1170 (*movdf_internal_nointeger): Ditto.
1171 (*movsf_internal): Ditto.
1172 (sincos splitters): Use can_create_pseudo ().
1174 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1176 * config/i386/i386-opts.h: New.
1177 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1178 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1179 ix86_section_threshold): Remove.
1180 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1181 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1183 (ix86_option_override_internal): Don't decode strings for options
1184 other than -march=, -mtune= and -mfpmath=. Don't allow for
1185 __attribute__ uses in remaining diagnostics for options with
1186 string arguments. Don't check for integer arguments being negative.
1187 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1188 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1189 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1190 ix86_branch_cost, ix86_section_threshold): Remove.
1191 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1193 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1195 (masm=): Use Enum and Init.
1196 (asm_dialect): New Enum and EnumValue entries.
1197 (mbranch-cost=): Use UInteger.
1198 (mlarge-data-threshold=): Use UInteger and Init.
1199 (mcmodel=): Use Enum and Init.
1200 (cmodel): New Enum and EnumValue entries.
1201 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1202 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1203 mregparm=): Use UInteger.
1204 (mstringop-strategy=): Use Enum and Init.
1205 (stringop_alg): New Enum and EnumValue entries.
1206 (mtls-dialect=): Use Enum and Init.
1207 (tls_dialect): New Enum and EnumValue entries.
1208 (mabi=): Use Enum and Init.
1209 (calling_abi): New Enum and EnumValue entries.
1210 (mveclibabi=): Use Enum and Init.
1211 (ix86_veclibabi): New Enum and EnumValue entries.
1213 2011-05-13 Nick Clifton <nickc@redhat.com>
1215 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1216 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1218 2011-05-13 Kai Tietz <ktietz@redhat.com>
1221 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1222 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1223 (gimple_boolify): Check for cast for boolean_type_node instead for
1226 2011-05-13 Richard Guenther <rguenther@suse.de>
1228 PR tree-optimization/48172
1229 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1230 multiplying by number of iterations for equal step.
1231 (vect_create_cond_for_alias_checks): Likewise.
1233 2011-05-13 Andreas Schwab <schwab@redhat.com>
1235 * configure.ac: Use AS_HELP_STRING throughout.
1236 * configure: Regenerate.
1238 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1240 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1241 (ix86_emit_restore_regs_using_mov): Likewise.
1242 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1244 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1246 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1247 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1248 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1249 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1250 RTX_OK_FOR_OLO10_P): ...here.
1251 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1254 2011-05-12 Kai Tietz <ktietz@redhat.com>
1256 * gimplify.c (gimple_boolify): Re-boolify expression
1257 arguments even if expression type is of kind BOOLEAN_TYPE.
1258 (gimplify_boolean_expr): Removed.
1259 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1260 and XOR. Additional take care that we keep expression's type.
1261 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1262 of TRUTH_AND|OR|XOR_EXPR.
1264 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1266 PR tree-optimization/48975
1267 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1268 on all bbs here and free and clear ifc_bbs at the end.
1270 2011-05-12 Richard Guenther <rguenther@suse.de>
1272 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1273 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1274 until after simple checks.
1275 (gimple_types_compatible_p): Likewise.
1276 (iterative_hash_gimple_type): Always hash pointer targets
1277 and function return and argument types.
1278 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1279 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1280 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1281 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1282 completely in the simple compare section.
1283 (gimple_register_canonical_type): Query the cache again after
1286 2011-05-12 Richard Guenther <rguenther@suse.de>
1288 PR tree-optimization/48172
1289 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1290 the number of iterations from the segment size calculation.
1291 (vect_create_cond_for_alias_checks): Adjust.
1293 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1296 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1297 if validate_subreg fails.
1299 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1301 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1302 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1305 2011-05-12 DJ Delorie <dj@redhat.com>
1307 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1308 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1309 created builtin into rx_builtins array.
1310 (rx_builtin_decl): New function.
1311 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1313 2011-05-12 DJ Delorie <dj@redhat.com>
1314 Nick Clifton <nickc@redhat.com>
1316 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1317 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1318 (rx_is_legitimate_address): Add pre-decrement and post-increment
1319 addressing in HImode and QImode. Fix test for out of range
1321 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1322 (rx_align_for_label): Test label before extracting its usage count.
1323 (rx_adjust_insn_lengths): Fix selection of insn codes.
1324 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1326 2011-05-11 Jason Merrill <jason@redhat.com>
1328 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1330 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1332 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1333 reindent the subsequent block.
1335 2011-05-11 Satoru Takabayashi <satorux@google.com>
1336 Paul Pluzhnikov <ppluzhnikov@google.com>
1338 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1339 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1340 * config.in: Add LINKER_HASH_STYLE.
1341 * configure.ac: Add --with-linker-hash-style.
1342 * configure: Regenerate.
1344 2011-05-11 Richard Guenther <rguenther@suse.de>
1347 * gimple.c (iterative_hash_canonical_type): Fix typo.
1349 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1351 * config/i386/i386.c (legitimize_tls_address)
1352 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1353 expanders directly for TARGET_GNU2_TLS. Determine pic and
1354 __tls_get_addr symbol reference here. Update call to
1355 gen_tls_global_dynamic_{32,64} for added arguments.
1356 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1357 expanders directly for TARGET_GNU2_TLS. Determine
1358 __tls_get_addr symbol reference here. Update call to
1359 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1360 unique UNSPEC REG_EQUIV to libcall block.
1361 (ix86_tls_get_addr): Declare static.
1362 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1363 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1364 Do not determine pic and __tls_get_addr symbol reference here. Do not
1365 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1366 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1367 (tls_global_dynamic_64): Add operand 2. Do not determine
1368 __tls_get_addr symbol reference here. Do not call
1369 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1370 (tls_local_dynamic_base64): Ditto for operand 1.
1372 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1374 * function.c (expand_function_start): Initialize stack_check_probe_note
1375 only if the generic stack checking mechanism is used.
1377 2011-05-11 Richard Guenther <rguenther@suse.de>
1379 PR tree-optimization/15256
1380 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1381 (A & B) | C, combine (A op CST1) op CST2.
1382 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1383 visit assigns that have uses.
1385 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1387 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1388 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1389 (unpack_ts_type_common_value_fields): ...this. Update comment.
1390 (unpack_value_fields): Adjust for renaming.
1391 (lto_input_ts_type_tree_pointers): Split into...
1392 (lto_input_ts_type_common_tree_pointer): ...this and...
1393 (lto_input_ts_type_non_common_tree_pointers): ...this.
1394 (lto_input_tree_pointers): Adjust for above split.
1395 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1396 (pack_ts_type_common_value_fields): ...this. Update comment.
1397 (lto_output_ts_type_tree_pointers): Split into...
1398 (lto_output_ts_type_common_tree_pointers): ...this and...
1399 (lto_output_ts_type_non_common_tree_pointers): ...this.
1400 (lto_output_tree_pointers): Adjust for above split.
1401 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1402 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1403 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1404 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1406 (struct tree_type): Split into...
1407 (struct tree_type_common: ...this and...
1408 (struct tree_type_with_lang_specific): ...this and...
1409 (struct tree_type_non_common): ...this. Adjust accessor macros
1411 (TYPE_VALUES_RAW): Define.
1412 (union tree_node): Update for above changes.
1413 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1415 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1416 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1417 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1418 * treestructu.def (TS_TYPE): Remove.
1419 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1422 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1425 * tree-ssa.c (reset_debug_uses): New function.
1426 * tree-flow.h (reset_debug_uses): New prototype.
1427 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1428 * tree-loop-distribution.c (generate_loops_for_partition): Call
1429 reset_debug_uses on the stmts that will be removed. Keep around
1430 all debug stmts, don't count them as bits in partition bitmap.
1431 (generate_builtin): Don't count debug stmts or labels as bits in
1434 2011-05-11 Richard Guenther <rguenther@suse.de>
1436 * gimple.c (gimple_type_hash_1): Merge with ...
1437 (gimple_type_hash): ... this.
1438 (gtc_visit): Remove mode parameter and simplify accordingly.
1439 (gimple_types_compatible_p_1): Likewise.
1440 (gimple_types_compatible_p): Likewise.
1441 (iterative_hash_gimple_type): Likewise.
1443 (gimple_type_eq): Adjust.
1445 2011-05-11 Revital Eres <revital.eres@linaro.org>
1447 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1448 enters the branch create an anti edge in the opposite direction
1449 to prevent the creation of reg-moves.
1450 * modulo-sched.c: Adjust comment to reflect the fact we are
1451 scheduling closing branch.
1452 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1453 (stage_count): New field in struct partial_schedule.
1454 (calculate_stage_count): New function.
1455 (normalize_sched_times): Rename to reset_sched_times and handle
1456 incrementing the sched time of the nodes by a constant value
1457 passed as parameter.
1458 (duplicate_insns_of_cycles): Skip closing branch.
1459 (sms_schedule_by_order): Schedule closing branch.
1460 (ps_insn_find_column): Handle closing branch.
1461 (sms_schedule): Call reset_sched_times and adjust the code to
1462 support scheduling of the closing branch.
1463 (ps_insert_empty_row): Update calls to normalize_sched_times
1464 and rotate_partial_schedule functions.
1466 2011-05-11 Richard Guenther <rguenther@suse.de>
1469 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1471 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1473 * opts.c (finish_options): Move warning settings from process_options.
1474 * toplev.c (process_options): Move warning settings to finish_options.
1476 2011-05-11 Richard Guenther <rguenther@suse.de>
1478 PR tree-optimization/18041
1479 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1480 (simplify_bitwise_binary): ... this. Handle operand conversions
1481 by applying them to the result instead.
1482 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1484 2011-05-11 Richard Guenther <rguenther@suse.de>
1486 * gimple.c (gimple_canonical_types_compatible_p): Split out
1487 from gimple_types_compatible_p and friends. Do not recurse
1488 to pointed-to types.
1489 (gimple_canonical_type_eq): Use it.
1490 (iterative_hash_canonical_type): Split out from
1491 iterative_hash_gimple_type and friends. Do not recurse
1492 to pointed-to types.
1493 (gimple_canonical_type_hash): Use it, allocate the hash here.
1495 2011-05-11 Revital Eres <revital.eres@linaro.org>
1497 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1500 2011-05-11 Revital Eres <revital.eres@linaro.org>
1502 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1503 instead of PREV_INSN.
1505 2011-05-11 Revital Eres <revital.eres@linaro.org>
1507 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1508 * loop-doloop.c (doloop_condition_get): Likewise.
1509 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1511 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1513 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1515 * tree.def (CASE_LABEL_EXPR): Add an operand.
1516 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1518 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1520 * c-decl.c (c_override_global_bindings_to_false): Remove.
1521 (global_bindings_p): Don't check
1522 c_override_global_bindings_to_false.
1523 * c-tree.h (c_override_global_bindings_to_false): Remove.
1524 * c-typeck.c (composite_type): Don't set
1525 c_override_global_bindings_to_false.
1527 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1529 PR target/48857, 48495
1530 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1532 (VSX_MOVE_MODE): Ditto.
1533 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1534 VSX vector types. Add V2DImode.
1535 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1536 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1537 (MODES_TIEABLE_P): Ditto.
1539 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1540 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1542 (init_cumulative_args): Ditto.
1543 (rs6000_function_arg_boundary): Ditto.
1544 (rs6000_function_arg_advance_1): Ditto.
1545 (rs6000_function_arg): Ditto.
1546 (rs6000_function_ok_for_sibcall): Ditto.
1547 (emit_frame_save): Ditto.
1548 (rs6000_function_value): Ditto.
1549 (rs6000_libcall_value): Ditto.
1551 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1553 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1554 i386/darwin-lib.h to $libgcc_tm_file.
1555 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1557 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1559 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1561 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1563 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1564 * config/rs6000/rs6000-tables.opt: New file (generated).
1565 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1566 rs6000/rs6000-tables.opt to extra_options.
1567 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1568 * config/rs6000/rs6000.c (rs6000_select): Remove.
1569 (processor_target_table): Move contents to rs6000-cpus.def.
1570 (darwin_rs6000_override_options): Check
1571 global_options_set.x_rs6000_cpu_index instead of
1572 rs6000_select[1].string.
1573 (rs6000_option_override_internal): Likewise.
1574 (rs6000_handle_option): Don't assert that global structures are in
1575 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1576 (rs6000_default_cpu): New variable.
1577 (rs6000_file_start): Set it instead of local default_cpu. Check
1578 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1579 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1580 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1581 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1582 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1583 rs6000_select): Remove.
1584 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1586 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1587 * config/rs6000/t-rs6000
1588 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1589 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1590 global_options_set.x_rs6000_cpu_index instead of
1591 rs6000_select[1].string.
1592 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1593 global_options_set.x_rs6000_cpu_index instead of
1594 rs6000_select[1].string.
1596 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1598 * config.gcc (libgcc_tm_file): Define instead of including files
1599 from ../../libgcc/config/ in tm_file.
1600 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1601 * configure: Regenerate.
1602 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1603 libgcc_tm.h, cs-libgcc_tm.h): New.
1604 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1605 (clean): Remove libgcc_tm.h.
1606 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1607 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1608 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1610 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1613 * config/avr/avr.c (avr_ret_register): Return unsigned int
1615 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1616 it to avr_libcall_value.
1617 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1619 (avr_expand_binop_builtin): Ditto.
1620 (avr_expand_unop_builtin): Ditto.
1622 2011-05-10 DJ Delorie <dj@redhat.com>
1624 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1625 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1626 * config/rx/rx.c (rx_align_for_label): Add label and
1627 uses_threshold parameters. Do not align when the label is not
1629 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1631 2011-05-10 Richard Guenther <rguenther@suse.de>
1633 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1634 a series of conversions and apply foldings similar to what
1636 (tree_ssa_forward_propagate_single_use_vars): Call it.
1638 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1640 PR tree-optimization/48611
1641 PR tree-optimization/48794
1642 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1643 referenced from RESX or EH_DISPATCH arguments.
1646 * dfp.c (decimal_to_decnumber): Handle conversion from
1647 dconst{1,2,m1,half}.
1649 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1651 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1652 for !flag_prefer_avx128.
1653 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1655 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1657 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1658 (fold_ternary_loc): Use expr_location_or.
1660 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1663 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1664 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1665 Pmode and mem_mode is not VOIDmode.
1667 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1669 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1670 TYPE_QUAL_RESTRICT): Convert to enum.
1672 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1674 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1675 (const_pow2_1_to_8_operand): Ditto.
1676 (const_pow2_1_to_128_operand): Ditto.
1677 (const_pow2_1_to_32768_operand): Ditto.
1678 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1679 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1680 in insn constraint to check integer value of operand 3.
1681 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1683 (PINSR_MODE): New mode iterator.
1684 (sse2p4_1): New mode attribute.
1685 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1686 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1687 iterator. Use const_int_operand instead of
1688 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1689 exact_log2 in insn constraint to check integer value of operand 3.
1691 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1693 * config/i386/sse.md (blendbits): Remove mode attribute.
1694 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1695 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1696 Check integer value of operand 3 in insn constraint.
1698 2011-05-09 Richard Guenther <rguenther@suse.de>
1700 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1702 (lto_symtab_merge): Likewise. Do not register types here.
1703 (lto_symtab_merge_decls_2): Likewise.
1704 (lto_symtab_merge_decls_1): Likewise.
1705 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1706 * gimple.c (enum gtc_mode): Declare.
1707 (gimple_types_compatible_p): Make static.
1709 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1711 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1712 temporary register to match Pmode.
1714 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1716 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1717 and *vec_concatv4si_1_avx.
1719 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1721 PR rtl-optimization/48927
1722 * ira-conflicts.c (commutative_constraint_p): Use
1723 recog_data.alternative_enabled_p to disable alternatives where
1724 "enabled" attribute is false.
1725 (get_dup_num): Ditto.
1726 * ira-lives.c (single_reg_class): Ditto.
1727 (ira_implicitly_set_insn_hard_regs): Ditto.
1729 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1731 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1732 (dataflow_set_preserve_mem_locs): Likewise.
1734 2011-05-09 Philipp Thomas <pth@suse.de>
1736 * config/mep/mep.c (mep_validate_vliw): Syntax description
1737 should not be translated.
1739 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1741 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1742 * config/mips/mips-tables.opt: New file (generated).
1743 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1744 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1745 MIPS_ARCH_OPTION_NATIVE): Define.
1746 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1748 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1749 mips_parse_cpu): Remove.
1750 (mips_cpu_info_from_opt, mips_default_arch): New.
1751 (mips_handle_option): Don't assert that global structures are in
1752 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1753 (mips_option_override): Use new variables and functions to set
1754 state of these options. Use strcmp to check for individual CPU names.
1755 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1757 * config/mips/mips.opt (march=): Use ToLower and Enum.
1758 (mips): Use ToLower, Enum and Var.
1759 (mtune=): Use ToLower and Enum.
1760 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1762 2011-05-08 Jan Hubicka <jh@suse.cz>
1764 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1765 Arrange type pairs to be UID ordered.
1766 (gimple_lookup_type_leader): Make inline.
1768 2011-05-09 Nick Clifton <nickc@redhat.com>
1771 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1775 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1778 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1780 * combine.c (simplify_comparison): Abstract out parts into...
1781 (simplify_compare_const): ... new function.
1782 (try_combine): Generalize parallel arithmetic/compare combining
1783 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1785 2011-05-08 Jan Hubicka <jh@suse.cz>
1787 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1788 (cgraph_create_virtual_clone): Call hooks once virtual clone
1790 * cgraph.h (cgraph_clone_node): Update prototype.
1791 * ipa-cp.c (ipcp_estimate_growth): Use
1792 estimate_ipcp_clone_size_and_time.
1793 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1794 * lto-cgraph.c (input_node): Update.
1795 * ipa-inline.c (recursive_inlining): Update.
1796 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1797 (evaluate_conditions_for_known_args): Break out from ...
1798 (evaluate_conditions_for_edge): ... here.
1799 (evaluate_conditions_for_ipcp_clone): New function.
1800 (inline_node_duplication_hook): Update clone summary based
1802 (estimate_callee_size_and_time): Rename to ...
1803 (estimate_node_size_and_time): take NODE instead of EDGE;
1804 take POSSIBLE_TRUTHS as argument.
1805 (estimate_callee_size_and_time): Update.
1806 (estimate_ipcp_clone_size_and_time): New function.
1807 (do_estimate_edge_time): Update.
1809 2011-05-08 Richard Guenther <rguenther@suse.de>
1813 * expmed.c (expand_shift_1): Compute adjusted constant shift
1816 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1818 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1820 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1822 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1824 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1826 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1828 2011-05-07 Jan Hubicka <jh@suse.cz>
1830 * ipa-inline-transform.c (inline_call): Account when program size
1832 * ipa-inline.c (relative_time_benefit): New function.
1833 (edge_badness): Reorganize to be power 2 based; fix thinko when
1834 computing badness for negative growth; update comments to match
1835 reality; better dumps.
1837 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1839 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1840 type to bool and adjust comment.
1841 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1842 (fold_mathfn_compare): Remove calls to global_bindings_p.
1843 (fold_inf_compare): Likewise.
1844 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1845 * c-tree.h (global_bindings_p): Adjust prototype.
1846 * c-decl.c (global_bindings_p): Return bool and simplify.
1848 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1850 PR tree-optimization/48837
1851 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1852 when accumulator transformation is performed.
1854 2011-05-06 Jan Hubicka <jh@suse.cz>
1856 * i386.h (ix86_tune_indices): Add
1857 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1858 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1859 * i386.c (initial_ix86_tune_features): Add
1860 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1861 (software_prefetching_beneficial_p): Remove predicate.
1862 (ix86_option_override_internal): Use new macro.
1864 2011-05-06 Jan Hubicka <jh@suse.cz>
1866 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1868 2011-05-06 Jan Hubicka <jh@suse.cz>
1870 * cgraph.c (cgraph_add_thunk): Create real function node instead
1871 of alias node; finalize it and mark needed/reachale; arrange visibility
1872 to be right and add it into the corresponding same comdat group list.
1873 (dump_cgraph_node): Dump thunks.
1874 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1875 cgraph_function_with_gimple_body_p,
1876 cgraph_first_function_with_gimple_body,
1877 cgraph_next_function_with_gimple_body): New functions.
1878 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1880 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1881 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1882 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1883 devirtualization when optimizing.
1884 (verify_cgraph_node): Verify thunks.
1885 (cgraph_analyze_function): Analyze thunks.
1886 (cgraph_mark_functions_to_output): Output thunks only in combination
1887 with function they are assigned to.
1888 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1889 alias into normal node.
1890 (assemble_thunks): New functoin.
1891 (cgraph_expand_function): Use it.
1892 * lto-cgraph.c (lto_output_node): Stream thunks.
1893 (input_overwrite_node): Stream in thunks.
1894 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1895 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1896 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1897 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1898 (inline_analyze_function): Do not care about thunk jump functions.
1899 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1900 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1901 cgraph_function_with_gimple_body_p.
1902 * passes.c (do_per_function_toporder): Use
1903 cgraph_function_with_gimple_body_p.
1904 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1905 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1906 (function_called_by_processed_nodes_p): Likewise.
1908 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1910 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1911 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1913 (mabi=): Replace with separate entries for mabi=altivec,
1914 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1915 mabi=ieeelongdouble and mabi=ibmlongdouble.
1916 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1917 check for -mabi=spe without SPE ABI support here.
1918 (rs6000_handle_option): Replace OPT_mabi_ handling with
1919 OPT_mabi_altivec and OPT_mabi_spe handling.
1921 2011-05-06 Cary Coutant <ccoutant@google.com>
1923 * dwarf2out.c (contains_subprogram_definition): New function.
1924 (should_move_die_to_comdat): Call it.
1926 2011-05-06 Jeff Law <law@redhat.com>
1928 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1929 remove_ctrl_stmt_and_useless_edges.
1930 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1931 (fixup_template_block, thread_single_edge): Likewise.
1932 (mark_threaded_blocks): Use THREAD_TARGET.
1934 2011-05-06 Alan Modra <amodra@gmail.com>
1937 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1938 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1940 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1942 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1943 constraint modifier to "r".
1945 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1947 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1948 fall through for OPT_mcmodel_.
1950 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1952 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1954 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1956 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1959 * config/arm/arm.opt (marm): Document it.
1960 (mthumb): Reject negative variant.
1962 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1965 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1966 Fix typo in "ccvt" variable name.
1968 2011-05-06 Tristan Gingold <gingold@adacore.com>
1971 * config/vms/vms-ar.c (main): Remove cwd variable.
1973 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1976 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1978 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1980 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1981 * gimplify.c (gimplify_switch_expr): Likewise.
1982 * omp-low.c (expand_omp_sections): Likewise.
1983 * tree-eh.c (lower_try_finally_switch): Likewise.
1984 (lower_eh_dispatch): Likewise.
1985 * tree.h (build_case_label): Declare.
1986 * tree.c (build_case_label): Define.
1988 2011-05-05 Jason Merrill <jason@redhat.com>
1991 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1992 (copy_statement_list): Don't recurse.
1993 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1996 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1998 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1999 through from -mfpu= handling.
2000 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2002 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2004 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2007 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2009 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2011 (hppa[12]*-*-hpux11*): Ditto.
2012 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2013 * config/ia64/hpux-unix2003.h: New.
2014 * config/pa/pa-hpux1131.opt: New.
2015 * config/pa/pa-hpux1131.h: New.
2016 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2017 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2018 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2020 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2023 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2024 instead of mode as 3rd argument to recursive call.
2025 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2026 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2028 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2029 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2030 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2031 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2033 2011-05-05 Julian Brown <julian@codesourcery.com>
2035 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2036 parenthesis in D-register case.
2038 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2040 * opt-functions.awk (var_type_struct): Handle Enum options.
2041 * optc-gen.awk: Don't check range of variables of character type.
2042 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2043 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2044 rs6000_sdata_name, rs6000_explicit_options): Remove.
2045 (rs6000_option_override_internal): Check for -malign-power here.
2046 Use global_options_set instead of rs6000_explicit_options.
2047 (rs6000_parse_fpu_option): Remove.
2048 (rs6000_handle_option): Access variables via opts and opts_set
2049 pointers. Use error_at and warning_at. Add fall-through
2050 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2051 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2052 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2053 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2054 here. Don't use rs6000_parse_fpu_option.
2055 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2056 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2057 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2059 (mspe): Use Var and Save.
2060 (mtraceback=): Use Enum and Var.
2061 (rs6000_traceback_type): New Enum and EnumValue entries.
2062 (mfloat-gprs=): Use Enum, Var and Save.
2063 (rs6000_float_gprs): New Enum and EnumValue entries.
2064 (mlong-double-): use Var and Save.
2065 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2066 (malign-): Use Enum and Var.
2067 (rs6000_alignment_flags): New Enum and EnumValue entries.
2069 (fpu_type_t): New Enum and EnumValue entries.
2070 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2071 global_options_set instead of rs6000_explicit_options.
2072 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2073 global_options_set instead of rs6000_explicit_options.
2074 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2075 global_options_set instead of rs6000_explicit_options.
2076 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2077 global_options_set instead of rs6000_explicit_options.
2078 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2079 global_options_set instead of rs6000_explicit_options.
2080 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2081 global_options_set instead of rs6000_explicit_options.
2082 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2084 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2085 global_options_set instead of rs6000_explicit_options.
2086 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2087 (rs6000_cmodel): New Enum and EnumValue entries.
2088 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2089 global_options_set instead of rs6000_explicit_options.
2090 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2091 (mtls-size=): Use Enum and Var.
2092 (rs6000_tls_size): New Enum and EnumValue entries.
2094 2011-05-05 Michael Matz <matz@suse.de>
2096 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2097 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2098 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2099 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2100 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2101 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2102 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2103 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2104 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2105 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2106 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2107 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2108 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2109 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2110 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2111 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2113 2011-05-05 Richard Guenther <rguenther@suse.de>
2115 * expmed.c (expand_variable_shift): Rename to ...
2116 (expand_shift_1): ... this. Take an expanded shift amount.
2117 For rotates recurse directly not building trees for the shift amount.
2118 (expand_variable_shift): Wrap around expand_shift_1.
2119 (expand_shift): Adjust.
2121 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2123 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2125 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2127 * tree.h (get_pending_sizes): Remove prototype.
2128 (put_pending_size): Likewise.
2129 (put_pending_sizes): Likewise.
2130 * stor-layout.c (pending_sizes): Delete.
2131 (get_pending_sizes): Likewise.
2132 (put_pending_size): Likewise.
2133 (put_pending_sizes): Likewise.
2134 (variable_size): Do not call put_pending_size and tidy up.
2135 * function.h (struct function): Remove dont_save_pending_sizes_p.
2136 * lto-streamer-in.c (input_function): Do not stream it.
2137 * lto-streamer-out.c (output_function): Likewise.
2138 * tree-inline.c (initialize_cfun): Do not copy it.
2139 * c-decl.c (store_parm_decls): Do not set it.
2140 * omp-low.c (create_task_copyfn): Likewise.
2141 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2143 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2145 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2147 (*movdf_internal): Ditto.
2148 (*movdf_internal_nointeger): Ditto.
2149 (*movsf_internal): Ditto.
2151 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2153 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2154 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2155 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2156 (c_variable_size): Remove.
2157 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2158 call put_pending_sizes.
2159 (get_parm_info): Add parameter expr. Use it to set
2160 arg_info->pending_sizes.
2161 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2163 * c-parser.c (c_parser_parms_declarator): Update call to
2164 c_parser_parms_list_declarator.
2165 (c_parser_parms_list_declarator): Take parameter expr. Update
2166 call to push_parm_decl. Update recursive call. Don't call
2167 get_pending_sizes. Update calls to get_parm_info.
2168 (c_parser_objc_method_definition): Update calls to
2169 c_parser_objc_method_decl and objc_start_method_definition.
2170 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2171 (c_parser_objc_method_decl): Add parameter expr. Update call to
2173 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2174 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2175 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2177 2011-05-05 Michael Hope <michael.hope@linaro.org>
2180 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2183 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2185 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2186 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2187 (spu_output_mi_thunk): New function.
2189 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2191 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2192 targetm.asm_out.print_operand.
2193 * config/sol2.c: Include target.h.
2195 2011-05-04 Jan Hubicka <jh@suse.cz>
2197 * ipa-inline.c (reset_edge_caches): New function.
2198 (update_caller_keys): Add check_inlinablity_for; do not
2199 reset edge caches; remove now unnecesary loop.
2200 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2201 (update_all_callee_keys): Likewise.
2202 (inline_small_functions): Sanity check cache; update code
2205 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2207 PR rtl-optimization/47612
2208 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2209 as the last insn of the sequence to be moved.
2211 2011-05-04 Tobias Burnus <burnus@net-b.de>
2214 * doc/invoke.texi (Ofast): Document that it
2215 enables Fortran's -fno-protect-parens.
2217 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2219 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2221 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2223 * stor-layout.c (variable_size): Do not issue errors.
2225 2011-05-04 Richard Guenther <rguenther@suse.de>
2227 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2228 for array-ref indices.
2229 (tree_coverage_counter_addr): Likewise.
2230 (build_fn_info_type): Use size_int for index types.
2231 (build_gcov_info): Likewise.
2233 2011-05-04 Richard Guenther <rguenther@suse.de>
2235 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2237 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2238 for constructor indices.
2239 (push_init_level): Likewise.
2241 2011-05-04 Richard Guenther <rguenther@suse.de>
2243 * explow.c (promote_mode): Move variable declarations before code.
2245 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2247 * tree.h (build_function_type_array): Declare.
2248 (build_varargs_function_type_array): Declare.
2249 (build_function_type_vec, build_varargs_function_type_vec): Define.
2250 * tree.c (build_function_type_array_1): New function.
2251 (build_function_type_array): New function.
2252 (build_varargs_function_type_array): New function.
2254 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2256 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2257 before setting STMT_VINFO_TYPE.
2259 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2261 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2262 instead of spu_pass_by_reference.
2264 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2266 * calls.c (emit_library_call_value_1): Invoke
2267 promote_function_mode hook on libcall arguments.
2268 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2269 argument being NULL.
2270 * targhooks.c (default_promote_function_mode): Lisewise.
2271 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2272 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2274 * doc/tm.texi: Document that TYPE argument might be NULL.
2276 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2278 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2280 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2283 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2285 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2288 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2290 * mips-tfile.c: ... here.
2291 Don't include coretypes.h, tm.h, filenames.h.
2292 (saber_stop): Remove definition and all calls.
2293 [__SABER__]: Remove.
2294 (__LINE__): Remove default.
2295 (Size_t, Ptrdiff_t): Remove definitions.
2296 Replace by size_t, ptrdiff_t.
2297 [!MIPS_DEBUGGING_INFO]: Remove.
2298 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2299 (progname): Add const.
2301 Replace all uses by static.
2302 (ALIGN_SYMTABLE_OFFSET): Remove default.
2303 * mips-tdump.c: Don't include coretypes.h, tm.h.
2304 Remove !MIPS_IS_STAB guard.
2305 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2306 $(TM_H), filenames.h dependencies.
2307 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2309 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2312 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2313 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2315 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2318 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2319 account and save/restore RETS.
2320 (PROFILE_BEFORE_PROLOGUE): Define.
2321 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2322 the push insn to use predecrement.
2324 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2327 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2329 2011-05-04 Nick Clifton <nickc@redhat.com>
2331 * config/mn10300/mn10300.c: Include cfgloop.h.
2333 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2334 Lcc or a FLcc insn into the instruction stream.
2335 (mn10300_block_contains_call): New function. Returns true if the
2336 given basic block contains a CALL insn.
2337 (mn10300_loop_contains_call_insn): New function. Returns true if
2338 the given loop contains a CALL insn.
2339 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2340 to use the SETLB and Lcc or FLcc insns.
2341 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2342 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2343 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2344 disable the SETLB optimization.
2345 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2346 __SETLB__ or __NO_SETLB__.
2347 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2348 (movsf_internal): Handle MDR register.
2349 (cmpsi): Make visible.
2350 (setlb): New pattern.
2352 (FLcc): New pattern.
2354 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2357 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2358 for reg<->xmm moves.
2359 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2360 (vec_concatv2di_rex64_sse): Ditto.
2361 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2362 (*vec_extractv2di_1_rex64): Ditto.
2365 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2367 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2369 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2371 2011-05-04 Richard Guenther <rguenther@suse.de>
2373 * tree.h (int_const_binop): Remove notrunc argument.
2374 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2375 create integer constants that are properly truncated.
2376 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2377 (const_binop): Remove zero notrunc argument to int_const_binop.
2378 (size_binop_loc): Likewise.
2379 (fold_div_compare): Likewise.
2380 (maybe_canonicalize_comparison_1): Likewise.
2381 (fold_comparison): Likewise.
2382 (fold_binary_loc): Likewise.
2383 (multiple_of_p): Likewise.
2384 * expr.c (store_constructor): Likewise.
2385 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2386 (maybe_fold_stmt_addition): Likewise.
2387 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2388 * stor-layout.c (layout_type): Likewise.
2389 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2390 * tree-sra.c (build_ref_for_offset): Likewise.
2391 (build_user_friendly_ref_for_offset): Likewise.
2392 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2393 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2394 * tree-ssa-loop-niter.c (inverse): Likewise.
2395 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2396 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2397 * tree-switch-conversion.c (check_range): Likewise.
2398 (build_constructors): Likewise.
2399 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2400 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2401 (extract_range_from_assert): Likewise.
2402 (vrp_int_const_binop): Likewise.
2403 (extract_range_from_binary_expr): Likewise.
2404 (extract_range_from_unary_expr): Likewise.
2405 (check_array_ref): Likewise.
2406 (find_case_label_range): Likewise.
2407 (simplify_div_or_mod_using_ranges): Likewise.
2408 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2409 comparing case labels for merging.
2411 2011-05-03 Mark Wielaard <mjw@redhat.com>
2413 * dwarf2out.c (debug_str_hash_forced): Removed.
2414 (gen_label_for_indirect_string): Removed.
2415 (get_debug_string_label): Removed.
2416 (AT_string_form): Generate label directly.
2417 (output_indirect_string): Test indirect_string_node for
2418 DW_FORM_strp instead of checking label and refcount.
2419 (prune_indirect_string): Removed.
2420 (prune_unused_types): Don't check debug_str_hash_forced or
2421 call prune_indirect_string.
2423 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2426 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2428 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2432 * combine.c (try_combine): Skip debug insns at m_split tests.
2434 2011-04-26 Mark Wielaard <mjw@redhat.com>
2437 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2438 when info_section_emitted.
2440 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2442 * config/mips/mips-opts.h: New.
2443 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2445 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2446 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2447 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2449 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2451 (mips_abi, mips_code_readable): Don't declare.
2452 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2453 (mabi=): Use Enum and Var.
2454 (mips_abi): New Enum and EnumValue entries.
2455 (mcode-readable=): Use Enum and Var.
2456 (mips_code_readable_setting): New Enum and EnumValue entries.
2457 (mr10k-cache-barrier=): Use Enum and Var.
2458 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2460 2011-05-03 Jan Hubicka <jh@suse.cz>
2462 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2463 replace hash by pointer map.
2464 (cgraph_node_set_element_def, cgraph_node_set_element,
2465 const_cgraph_node_set_element, varpool_node_set_element_def,
2466 varpool_node_set_element, const_varpool_node_set_element): Remove.
2467 (free_cgraph_node_set, free_varpool_node_set): New function.
2468 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2469 * tree-emutls.c: Free varpool node set.
2470 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2471 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2472 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2473 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2474 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2475 Move here from ipa.c; implement using pointer_map
2476 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2477 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2478 debug_cgraph_node_set, varpool_node_set_new,
2479 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2480 dump_varpool_node_set, debug_varpool_node_set):
2481 Move to ipa-uitls.c.
2482 * passes.c (ipa_write_summaries): Update.
2484 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2486 From Mike Frysinger:
2487 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2488 bf542/bf544/bf547/bf548/bf549.
2490 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2492 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2494 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2497 * config/bfin/bfin.md (MOVCC): New mode_macro.
2498 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2499 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2500 comments from generated assembly.
2502 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2505 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2506 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2507 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2508 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2509 * config/bfin/lib1funcs.asm (___muldi3): New function.
2511 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2513 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2514 build_function_type_list instead of build_function_type.
2515 Rearrange initialization of `args' to do so.
2517 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2519 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2520 instead of build_function_type.
2522 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2524 * config/rs6000/rs6000.c (spe_init_builtins): Call
2525 build_function_type_list instead of build_function_type.
2526 (paired_init_builtins, altivec_init_builtins): Likewise.
2527 (builtin_function_type): Likewise.
2529 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2531 * config/sh/sh.c (sh_media_init_builtins): Call
2532 build_function_type_list instead of build_function_type.
2534 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2536 * config/sparc/sparc.c (sparc_file_end): Call
2537 build_function_type_list instead of build_function_type.
2539 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2541 * config/alpha/alpha.c (alpha_init_builtins): Call
2542 build_function_type_list instead of build_function_type.
2544 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2546 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2547 build_function_type_list instead of build_function_type.
2549 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2551 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2552 build_function_type_list instead of build_function_type.
2553 Delete `endlink' variable.
2555 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2557 * config/avr/avr.c (avr_init_builtins): Call
2558 build_function_type_list instead of build_function_type.
2560 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2562 * config/picochip/picochip.c (picochip_init_builtins): Call
2563 build_function_type_list instead of build_function_type.
2564 Delete `endlink' variable.
2566 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2568 * config/bfin/bfin.c (bfin_init_builtins): Call
2569 build_function_type_list instead of build_function_type.
2571 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2574 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2575 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2577 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2580 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2581 libbffastfp overrides libgcc when -mfast-fp.
2583 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2585 Originally from Bernd Schmidt
2586 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2587 * config/bfin/bfin.c (override_options): Test it and error if
2590 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2592 Originally From Bernd Schmidt
2593 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2596 2011-05-03 Jeff Law <law@redhat.com>
2598 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2599 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2600 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2601 than accessing AUX field directly. Free the AUX field before
2603 (thread_block, thread_through_loop_header): Likewise.
2604 (thread_single_edge, mark_threaded_blocks): Likewise.
2605 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2606 (register_jump_thread): Do not attempt to thread to a NULL edge.
2608 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2610 * function.c (init_function_start): Call decide_function_section.
2611 * varasm.c (decide_function_section): New function.
2612 (assemble_start_function): When not using
2613 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2614 or first_function_block_is_cold.
2615 * rtl.h (decide_function_section): Declare.
2617 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2618 Jakub Jelinek <jakub@redhat.com>
2621 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2622 only succeed if req_mode is the same as set_mode.
2624 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2626 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2627 * genemit.c (gen_exp): Handle RETURN.
2628 * emit-rtl.c (verify_rtx_sharing): Likewise.
2629 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2630 * rtl.c (copy_rtx): RETURN is shared.
2631 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2633 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2634 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2635 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2636 * config/cris/cris.c (cris_expand_return): Likewise.
2637 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2638 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2639 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2640 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2641 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2643 * config/v850/v850.c (expand_epilogue): Likewise.
2644 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2645 * config/arm/arm.md (epilogue): Likewise.
2646 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2647 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2648 variable to ret_reg.
2650 2011-05-03 Richard Guenther <rguenther@suse.de>
2653 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2654 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2655 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2657 2011-05-03 Richard Guenther <rguenther@suse.de>
2659 * c-decl.c (grokdeclarator): Instead of looking at
2660 TREE_OVERFLOW check if the constant fits in the index type.
2662 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2664 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2665 (vec_store_lanes<mode><mode>): Likewise.
2667 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2669 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2670 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2671 convert_optab_index values.
2672 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2673 * genopinit.c (optabs): Initialize the new optabs.
2674 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2675 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2676 (expand_STORE_LANES): New functions.
2677 * tree.h (build_array_type_nelts): Declare.
2678 * tree.c (build_array_type_nelts): New function.
2679 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2680 (vect_model_load_cost): Likewise.
2681 (vect_store_lanes_supported, vect_load_lanes_supported)
2682 (vect_record_strided_load_vectors): Declare.
2683 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2684 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2685 (vect_transform_strided_load): Split out statement recording into...
2686 (vect_record_strided_load_vectors): ...this new function.
2687 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2688 (write_vector_array, create_array_ref): New functions.
2689 (vect_model_store_cost): Add store_lanes_p argument.
2690 (vect_model_load_cost): Add load_lanes_p argument.
2691 (vectorizable_store): Try to use store-lanes functions for
2693 (vectorizable_load): Likewise load-lanes and loads.
2694 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2695 to vect_model_store_cost.
2696 (vect_build_slp_tree): Likewise vect_model_load_cost.
2698 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2700 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2701 * hooks.c (hook_bool_mode_uhwi_false): New function.
2702 * target.def (array_mode_supported_p): New hook.
2703 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2704 * doc/tm.texi: Regenerate.
2705 * stor-layout.c (mode_for_array): New function.
2706 (layout_type): Use it.
2707 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2708 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2710 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2713 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2714 for -fstack-check if the size to allocate is negative.
2716 2011-05-02 Lawrence Crowl <crowl@google.com>
2718 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2719 (timevar_cond_start): New for starting a timer only when it is not
2721 (timevar_cond_stop): New for stopping a timer when it was not already
2724 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2725 (timevar_cond_start): New as above.
2726 (timevar_cond_stop): New as above.
2728 * timevar.def: Add start/stop timers for compiler phases,
2729 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2730 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2731 and TV_PHASE_FINALIZE.
2732 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2733 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2734 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2735 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2736 Make unused TV_OVERLOAD into a start/stop timer.
2738 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2739 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2740 to indicate that they are start/stop timers.
2742 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2743 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2744 Move initialization to do_compile.
2745 (do_compile): Add initialization from above.
2746 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2748 * c-decl.c (c_write_global_declarations): Add start/stop of
2749 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2751 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2752 or TV_PARSE_INLINE, as appropriate.
2753 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2754 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2756 2011-05-02 Jason Merrill <jason@redhat.com>
2759 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2761 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2764 * c-decl.c (finish_decl): Only create a composite if the types are
2767 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2769 * config/fr30/fr30-protos.h (Mmode): Don't define.
2770 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2771 definition where used.
2772 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2773 define. Expand definitions where used.
2774 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2775 Expand definitions where used.
2776 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2777 rx_function_arg, rx_function_arg_advance,
2778 rx_function_arg_boundary): Expand definitions of those macros.
2779 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2780 definition where used.
2782 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2784 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2786 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2787 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2788 with *movv2sf_internal_rex64_avx.
2789 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2790 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2791 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2792 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2793 "vex" in "prefix" attribute calculation.
2794 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2796 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2799 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2800 inputs match the output.
2802 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2805 * config/m68k/m68k.c (m68k_expand_prologue): Set
2806 current_function_static_stack_size.
2808 2011-05-02 Jan Hubicka <jh@suse.cz>
2810 * lto-streamer.c (lto_streamer_cache_insert_1,
2811 lto_streamer_cache_lookup, lto_streamer_cache_create,
2812 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2813 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2815 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2817 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2818 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2819 config/m68k/t-opts: New files.
2820 * config/m68k/m68k-tables.opt: New file (generated).
2821 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2822 extra_options and m68k/t-opts to tmake_file.
2823 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2824 (all_isas): Initialize using m68k-isas.def.
2825 (all_microarchs): Initialize using m68k-microarchs.def.
2826 (m68k_find_selection): Remove.
2827 (m68k_handle_option): Don't assert that global structures are in
2828 use. Use error_at. Access variables via opts pointer. Don't
2829 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2830 directly for -m68020-40 and -m68020-60.
2831 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2832 m68k_tune_entry here.
2833 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2835 (m68k_library_id_string): Remove declaration.
2836 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2837 (m68k_library_id_string): New Variable.
2838 (march=, mcpu=, mtune=): Use Enum and Var.
2840 2011-05-02 Richard Guenther <rguenther@suse.de>
2842 * varasm.c (output_constructor_regular_field): Compute zero-based
2843 index with double-ints. Make sure to ICE instead of producing
2845 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2846 in asserts. Properly use a signed type.
2848 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2850 * config/i386/sse.md (V): New mode iterator.
2851 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2853 (V_256): Rename from AVX256MODE.
2854 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2855 condition to all users.
2857 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2858 condition to all users.
2859 (VF_128): Make V4SF mode unconditional.
2860 (VF_256): Rename from AVX256MODEF2P.
2861 (VI4F_128): Rename from SSEMODE4S.
2862 (VI8F_128): Rename from SSEMODE2D.
2863 (VI4F_256): Rename from AVX256MODE8P.
2864 (VI8F_256): Rename from AVX256MODE4P.
2865 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2866 (ssescalarmodesuffix): Remove SF and DF modes.
2867 (SSEMODE124): Remove.
2868 (SSEMODE1248): Ditto.
2869 (SSEMODEF2P): Ditto.
2870 (AVXMODEF2P): Ditto.
2871 (AVXMODEFDP): Ditto.
2872 (AVXMODEFSP): Ditto.
2873 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2875 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2877 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2878 xop_pcmov_<mode>256. Use V mode iterator.
2880 Adjust RTX patterns globally for renamed mode attributes.
2882 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2884 * haifa-sched.c (sched_emit_insn): Emit insn before first
2885 non-scheduled insn. Inform back-end about new insn. Add
2886 new insn to scheduled_insns list.
2888 2011-05-02 Richard Guenther <rguenther@suse.de>
2890 PR tree-optimization/48822
2891 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2892 (process_scc): Indicate which iteration we start.
2894 2011-05-02 Jan Hubicka <jh@suse.cz>
2896 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2897 (lto_section_overrun): New.
2898 * lto-section-out.c (append_block): Rename to ...
2899 (lto_append_block): ... this one; export.
2900 (lto_output_1_stream): Move lto lto-streamer.h
2901 (lto_output_data_stream): Update.
2902 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2903 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2906 2011-05-02 Richard Guenther <rguenther@suse.de>
2908 * tree.c (tree_code_counts): New global array.
2909 (record_node_allocation_statistics): Count individual tree codes.
2910 (dump_tree_statistics): Dump individual code stats.
2912 2011-05-01 Jan Hubicka <jh@suse.cz>
2914 * ipa-inline.c (caller_growth_limits): Fix thinko when
2915 looking for largest stack frame.
2916 * ipa-inline.h (dump_inline_summary): Declare.
2917 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2919 (dump_inline_summary): Export.
2920 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2922 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2924 * reginfo.c (memory_move_cost): Change rclass argument type form
2925 'enum reg_class' to reg_class_t.
2926 * reload.h (memory_move_cost): Update prototype.
2927 * postreload.c reload_cse_simplify_set): Change type dclass var to
2929 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2931 (ira_allocate_and_set_costs): Change aclass argument type form
2932 'enum reg_class' to reg_class_t.
2933 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2934 Change aclass argument type to reg_class_t.
2935 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2937 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2938 memory_move_cost call.
2940 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2941 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2942 Change type tmp var to reg_class_t.
2944 2011-04-30 Jan Hubicka <jh@suse.cz>
2946 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2947 inlining into function with flatten attribute.
2948 (want_inline_small_function_p): Be more realistic about inlining
2949 cold calls where callee size grows.
2951 2011-04-30 Jan Hubicka <jh@suse.cz>
2953 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2956 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2958 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2959 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2960 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2961 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2962 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2963 (print_operand): Rename to...
2964 (sparc_print_operand): ...this. Make static. Adjust
2965 sparc_print_operand function call.
2966 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2969 2011-04-30 Jan Hubicka <jh@suse.cz>
2972 * ipa-inline.c (early_inliner): Disable when doing late
2973 addition of function.
2975 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2977 * dwarf2out.c (get_address_mode): New inline.
2978 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2979 if not dwarf_strict emit
2980 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2981 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2982 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2983 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2984 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2985 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2986 mem_loc_descriptor callers.
2987 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2988 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2989 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2990 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2991 (base_types): New variable.
2992 (get_base_type_offset, calc_base_type_die_sizes,
2993 base_type_for_mode, mark_base_types, base_type_cmp,
2994 move_marked_base_types): New functions.
2995 (calc_die_sizes): Assert that die_offset is 0 or equal to
2997 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2998 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2999 callers. If not dwarf_strict, call mem_loc_descriptor even for
3000 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3001 (gen_subprogram_die): Don't give up on call site parameters
3002 with non-integral or large integral modes. Adjust
3003 mem_loc_descriptor callers.
3004 (prune_unused_types): Call prune_unused_types_mark on base_types
3006 (resolve_addr): Call mark_base_types.
3007 (dwarf2out_finish): Call move_marked_base_types.
3009 PR tree-optimization/48809
3010 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3012 (gen_inbound_check): Don't compute index_expr - range_min in utype
3013 again, instead reuse SSA_NAME initialized in build_arrays.
3014 Remove two useless gsi_for_stmt calls.
3016 2011-04-29 Jeff Law <law@redhat.com>
3018 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3020 2011-04-29 Martin Jambor <mjambor@suse.cz>
3022 * cgraph.h (cgraph_postorder): Remove declaration.
3023 * ipa-utils.h (ipa_free_postorder_info): Declare.
3024 (ipa_reverse_postorder): Likewise.
3025 * cgraphunit.c: Include ipa-utils.h.
3026 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3027 * ipa-inline.c: Include ipa-utils.h.
3028 (ipa_inline): Update call to ipa_reverse_postorder.
3029 * ipa-pure-const.c (propagate_pure_const): Update call to
3030 ipa_reduced_postorder and ipa_print_order. Call
3031 ipa_free_postorder_info to clean up.
3032 (propagate_nothrow): Likewise.
3033 * ipa-reference.c (propagate): Removed a useless call to
3034 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3035 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3036 * ipa.c: Include ipa-utils.h.
3037 (ipa_profile): Update call to ipa_reverse_postorder.
3038 (cgraph_postorder): Moved to...
3039 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3040 (ipa_utils_print_order): Renamed to ipa_print_order.
3041 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3043 (ipa_free_postorder_info): New function.
3044 * passes.c: Include ipa-utils.h.
3045 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3046 (ipa_write_summaries): Likewise.
3047 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3048 (cgraphunit.o): Likewise.
3050 (ipa-inline.o): Likewise.
3052 2011-04-29 Jan Hubicka <jh@suse.cz>
3054 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3055 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3056 * ipa-inline.h (clause_t): Turn into unsigned int.
3057 * ipa-inline-analysis.c (add_clause): Do more simplification.
3058 (and_predicates): Shortcut more cases.
3059 (predicates_equal_p): Move forward; check that clauses are properly
3061 (or_predicates): Shortcut more cases.
3062 (edge_execution_predicate): Rewrite as...
3063 (set_cond_stmt_execution_predicate): ... this function; handle
3064 __builtin_constant_p.
3065 (set_switch_stmt_execution_predicate): New .
3066 (compute_bb_predicates): New.
3067 (will_be_nonconstant_predicate): Update TODO.
3068 (estimate_function_body_sizes): Use compute_bb_predicates
3069 and free them later, always try to estimate if stmt is constant.
3070 (estimate_time_after_inlining, estimate_size_after_inlining):
3071 Gracefully handle optimized out edges.
3072 (read_predicate): Fix off by one error.
3074 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3076 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3078 2011-04-27 Xinliang David Li <davidxl@google.com>
3080 * tree-profile.c (init_ic_make_global_vars): Set
3081 tls attribute on ic vars.
3082 * coverage.c (coverage_end_function): Initialize
3083 function_list with zero.
3085 2011-04-29 Richard Guenther <rguenther@suse.de>
3087 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3088 for the type of the result.
3089 (fold_builtin_isascii): Likewise.
3090 (fold_builtin_toascii): Use integer_type_node where appropriate.
3091 (fold_builtin_logb): Likewise.
3092 (fold_builtin_frexp): Likewise.
3093 (fold_builtin_strstr): Likewise.
3094 (fold_builtin_strpbrk): Likewise.
3095 (fold_builtin_fputs): Likewise.
3096 (fold_builtin_sprintf): Likewise.
3097 (fold_builtin_snprintf): Likewise.
3098 (fold_builtin_printf): Likewise.
3099 (do_mpfr_remquo): Use a proper type for the assigned constant.
3100 (do_mpfr_lgamma_r): Likewise.
3101 * dwarf2out.c (resolve_one_addr): Use size_int.
3102 * except.c (init_eh): Likewise.
3103 (assign_filter_values): Use integer_type_node for filter values.
3104 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3106 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3107 for EH region numbers.
3108 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3109 for the shift amount.
3111 2011-04-29 Richard Guenther <rguenther@suse.de>
3113 * expr.h (expand_shift): Rename to ...
3114 (expand_variable_shift): ... this.
3115 (expand_shift): Take a constant shift amount.
3116 * expmed.c (expand_shift): Rename to ...
3117 (expand_variable_shift): ... this.
3118 (expand_shift): New wrapper around expand_variable_shift.
3119 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3120 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3121 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3122 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3123 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3124 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3125 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3126 emit_store_flag_1, emit_store_flag): Likewise.
3127 * builtins.c (expand_builtin_signbit): Likewise.
3128 * calls.c (load_register_parameters): Likewise.
3129 * function.c (assign_parm_setup_block): Likewise.
3130 * lower-subreg.c (resolve_shift_zext): Likewise.
3131 * optabs.c (widen_bswap, expand_abs_nojump,
3132 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3133 * spu/spu.c (spu_expand_extv): Likewise.
3134 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3136 2011-04-29 Richard Guenther <rguenther@suse.de>
3138 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3139 for the remapped region number.
3140 * predict.c (build_predict_expr): Use integer_type_node for the
3142 * fold-const.c (fold_binary_loc): Use integer_type_node for
3143 the shift amount. Use a proper type for the PLUS_EXPR operand.
3145 2011-04-29 Michael Matz <matz@suse.de>
3147 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3148 other trees that just builtins.
3149 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3151 2011-04-29 Richard Guenther <rguenther@suse.de>
3153 * tree-nested.c (get_trampoline_type): Use size_int.
3154 (get_nl_goto_field): Likewise.
3155 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3157 (lower_eh_constructs_2): Likewise.
3158 (lower_resx): Likewise.
3159 (lower_eh_dispatch): Likewise.
3160 * tree-mudflap.c (mf_build_string): Use size_int.
3161 (mudflap_register_call): Use integer_type_node for the flag.
3162 (mudflap_enqueue_constant): Use size_int.
3163 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3164 instead of rebuilding it.
3166 2011-04-29 Richard Guenther <rguenther@suse.de>
3168 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3169 Handle OBJ_TYPE_REF.
3170 (find_func_aliases_for_call): Use it more consistently.
3172 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3174 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3175 (rank_for_schedule): Use it.
3176 (schedule_block): Set it.
3178 2011-04-28 David Li <davidxl@google.com>
3180 * tree.c (crc32_string): Use crc32_byte.
3181 (crc32_byte): New function.
3182 * tree.h (crc32_byte): New function.
3183 * gcov.c (read_graph_file): Handle new cfg_cksum.
3184 (read_count_file): Ditto.
3185 * profile.c (instrument_values): Ditto.
3186 (get_exec_counts): Ditto.
3187 (read_profile_edge_counts): Ditto.
3188 (compute_branch_probabilities): Ditto.
3189 (compute_value_histograms): Ditto.
3190 (branch_prob): Ditto.
3191 (end_branch_prob): Ditto.
3192 * coverage.c (read_counts_file): Ditto.
3193 (get_coverage_counts): Ditto.
3194 (tree_coverage_counter_addr): Ditto.
3195 (coverage_checksum_string): Ditto.
3196 (coverage_begin_output): Ditto.
3197 (coverage_end_function): Ditto.
3198 (build_fn_info_type): Ditto.
3199 (build_fn_info_value): Ditto.
3200 * libgcov.c (gcov_exit): Ditto.
3201 * gcov-dump.c (tag_function): Ditto.
3202 (compute_checksum): Remove.
3204 2011-04-29 Alan Modra <amodra@gmail.com>
3206 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3207 unspec plus offset. Tidy macho code.
3209 2011-04-29 Martin Jambor <mjambor@suse.cz>
3211 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3212 node instead of a decl. Update all callers.
3213 * cgraph.h: Update declaration.
3215 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3217 PR tree-optimization/48765
3218 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3219 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3220 to indicate if loop aware SLP is being used. Scan the statements
3221 and update the vectorization factor according to the type of
3222 vectorization before statement analysis.
3223 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3224 pass it to vect_analyze_loop_operations.
3225 (vectorizable_reduction): Set number of copies to 1 in case of pure
3227 * tree-vect-stmts.c (vectorizable_conversion,
3228 vectorizable_assignment, vectorizable_shift,
3229 vectorizable_operation, vectorizable_type_demotion,
3230 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3232 (vectorizable_condition): Move the check that it is not SLP
3233 vectorization before the number of copies check.
3234 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3235 to vectorize the loop using SLP.
3237 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3240 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3243 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3245 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3246 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3247 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3248 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3249 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3251 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3252 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3253 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3254 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3255 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3256 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3258 * config/i386/linux.h (REG_NAME): Don't define.
3259 * config/i386/linux64.h (REG_NAME): Don't define.
3260 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3261 Undefine before defining.
3263 2011-04-28 Jan Hubicka <jh@suse.cz>
3265 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3266 nonconstant_names array.
3267 (estimate_function_body_sizes): Build nonconstant_names array; handle
3268 BUILT_IN_CONSTANT_P.
3270 2011-04-28 Richard Guenther <rguenther@suse.de>
3274 2011-04-28 Richard Guenther <rguenther@suse.de>
3276 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3277 as late as possible.
3279 2011-04-28 Richard Guenther <rguenther@suse.de>
3281 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3282 (debug_constraint): Do it here.
3283 (dump_constraints): And here.
3284 (rewrite_constraints): And here.
3285 (dump_constraint_edge): Remove.
3286 (dump_constraint_graph): Rewrite to produce DOT output.
3287 (solve_constraints): Build succ graph as late as possible.
3288 Dump constraint graphs before and after solving.
3290 2011-04-28 Richard Guenther <rguenther@suse.de>
3292 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3293 New function split out from ...
3294 (find_func_aliases): ... here. Call it.
3295 (find_func_aliases_for_call): Likewise.
3297 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3299 * internal-fn.h (internal_fn_name_array): Declare.
3300 (internal_fn_flags_array): Likewise.
3302 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3304 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3305 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3307 (ssemodefsuffix): Remove.
3308 (ssevecmodesuffix): New mode attribute.
3309 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3310 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3311 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3312 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3313 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3314 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3315 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3316 ssemodesuffix mode attribute.
3317 (float splitters): Use ssevecmodesuffix mode attribute.
3318 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3319 (sseinsmode): Rename from avxvecmode.
3320 (avxsizesuffix): Rename from avxmodesuffix.
3321 (sseintvecmode): Rename from avxpermvecmode.
3322 (ssedoublevecmode): Rename from ssedoublesizemode.
3323 (ssehalfvecmode): Rename from avxhalfvecmode.
3324 (ssescalarmode): Rename from avxscalarmode.
3325 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3326 templates for ssemodesuffix mode attribute.
3327 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3330 Adjust RTX patterns globally for renamed mode attributes.
3332 2011-04-27 Jan Hubcika <jh@suse.cz>
3334 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3335 * ipa-inline-analysis.c: Include alloc-pool.h.
3336 (edge_predicate_pool): New.
3337 (trye_predicate_p): New function
3338 (false_predicate_p): New function.
3339 (add_clause): Sanity check that false clauses are "optimized";
3340 never add clauses to predicate that is already known to be false.
3341 (and_predicate): Use flase_predicate_p.
3342 (evaulate_predicate): Rename to ...
3343 (evaluate_predicate): ... this one; update all callers; assert
3344 that false is not listed among possible truths.
3345 (dump_predicate): Use true_predicate_p.
3346 (account_size_time): Use false_predicate_p.
3347 (evaulate_conditions_for_edge): Rename to ...
3348 (evaluate_conditions_for_edge) ... this one.
3349 (edge_set_predicate): New function.
3350 (inline_edge_duplication_hook): Duplicate edge predicates.
3351 (inline_edge_removal_hook): Free edge predicates.
3352 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3353 (dump_inline_summary): Update.
3354 (estimate_function_body_sizes): Set edge predicates.
3355 (estimate_calls_size_and_time): Handle predicates.
3356 (estimate_callee_size_and_time): Update.
3357 (remap_predicate): Add toplev_predicate; update comment.
3358 (remap_edge_predicates): New function.
3359 (inline_merge_summary): Compute toplev predicate; update.
3360 (read_predicate): New function.
3361 (read_inline_edge_summary): Use it.
3362 (inline_read_section): Likewise.
3363 (write_predicate): New function.
3364 (write_inline_edge_summary): Use it.
3365 (inline_write_summary): Likewise.
3366 (inline_free_summary): Free alloc pool and edge summary vec.
3368 2011-04-27 Richard Guenther <rguenther@suse.de>
3370 * tree-ssa-structalias.c (changed_count): Remove.
3371 (changed): Use a bitmap.
3372 (unify_nodes): Adjust.
3373 (do_sd_constraint): Likewise.
3374 (do_ds_constraint): Likewise.
3375 (do_complex_constraint): Likewise.
3376 (solve_graph): Likewise.
3378 2011-04-27 Jan Hubicka <jh@suse.cz>
3380 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3382 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3384 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3385 (avx_vperm2f128_*_operand): Ditto.
3386 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3387 Use avx_vpermilp_parallel in insn condition.
3388 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3389 Use avx_vperm2f128_parallel in insn condition.
3391 2011-04-27 Richard Guenther <rguenther@suse.de>
3393 * Makefile.in (tree-ssa-structalias.o): Remove
3394 gt-tree-ssa-structalias.h dependency.
3395 (GTFILES): Remove tree-ssa-structalias.c.
3396 * tree.c (allocate_decl_uid): New function.
3397 (make_node_stat): Use it.
3398 (copy_node_stat): Likewise.
3399 * tree.h (allocate_decl_uid): Declare.
3400 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3401 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3402 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3403 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3404 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3405 (struct heapvar_map): Likewise.
3406 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3407 heapvar_insert): Likewise.
3408 (make_heapvar_for): Rename to ...
3409 (make_heapvar): ... this. Simplify.
3410 (fake_var_decl_obstack): New global var.
3411 (build_fake_var_decl): New function.
3412 (make_constraint_from_heapvar): Adjust.
3413 (handle_lhs_call): Likewise.
3414 (create_function_info_for): Likewise.
3415 (intra_create_variable_infos): Likewise.
3416 (init_alias_vars): Allocate fake_var_decl_obstack.
3417 (init_alias_heapvars, delete_alias_heapvars): Remove.
3418 (compute_points_to_sets): Do not call init_alias_heapvars.
3419 (ipa_pta_execute): Likewise.
3420 (delete_points_to_sets): Free fake_var_decl_obstack.
3422 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3424 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3425 (si_from_UTItype, si_to_UTItype): New functions.
3426 (__udivmodti4): Use them to implement type-punning.
3427 * config/spu/multi3.c (union qword_TItype): New data type.
3428 (si_from_TItype, si_to_TItype): New functions.
3429 (__multi3): Use them to implement type-punning.
3431 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3433 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3435 2011-04-27 Jan Hubicka <jh@suse.cz>
3437 * ipa-prop.c (function_insertion_hook_holder): New holder.
3438 (ipa_add_new_function): New function.
3439 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3440 Register/deregister holder.
3442 2011-04-27 Richard Guenther <rguenther@suse.de>
3444 PR tree-optimization/48772
3445 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3447 2011-04-27 Richard Guenther <rguenther@suse.de>
3449 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3450 TARGET_MEM_REF handling.
3452 2011-04-27 Nick Clifton <nickc@redhat.com>
3454 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3455 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3456 (REG_CLASS_NAMES): Likewise.
3457 (REG_CLASS_CONTENTS): Likewise.
3458 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3459 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3460 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3461 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3462 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3463 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3464 duplicate register classes.
3465 (frv_class_likely_spilled_p): Likewise.
3466 (frv_register_move_cost): Likewise.
3468 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3469 end of the regno_reg_class array.
3471 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3474 * c-typeck.c (build_binary_op): Don't wrap arguments if
3475 int_operands is true.
3477 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3480 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3481 targetm.calls.must_pass_in_stack for void type.
3483 2011-04-26 Jan Hubicka <jh@suse.cz>
3485 * cgraphbuild.c (build_cgraph_edges): Update call
3486 of cgraph_create_edge and cgraph_create_indirect_edge.
3487 * cgraph.c (cgraph_create_edge_including_clones,
3488 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3489 cgraph_update_edges_for_call_stmt_node): Do not take nest
3490 argument; do not initialize call_stmt_size/time.
3491 (dump_cgraph_node): Do not dump nest.
3492 (cgraph_clone_edge): Do not take loop_nest argument;
3493 do not propagate it; do not clone call_stmt_size/time.
3494 (cgraph_clone_node): Likewise.
3495 (cgraph_create_virtual_clone): Update.
3496 * cgraph.h (struct cgraph_edge): Remove
3497 call_stmt_size/call_stmt_time/loop_nest.
3498 (cgraph_create_edge, cgraph_create_indirect_edge,
3499 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3501 * tree-emutls.c (gen_emutls_addr): Update.
3502 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3503 loop_nest; handle indirect calls, too.
3504 (clone_inlined_nodes): Do not care about updating inline summaries.
3505 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3506 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3507 stream call_stmt_size/call_stmt_time/loop_nest.
3508 * ipa-inline.c (edge_badness): Update.
3509 (ipa_inline): dump summaries after inlining.
3510 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3512 (inline_edge_summary): New function.
3513 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3514 (inline_edge_removal_hook): Handle edge summaries.
3515 (inline_edge_duplication_hook): New hook.
3516 (inline_summary_alloc): Alloc hooks.
3517 (initialize_growth_caches): Do not register removal hooks.
3518 (free_growth_caches); Do not free removal hook.
3519 (dump_inline_edge_summary): New function.
3520 (dump_inline_summary): Use it.
3521 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3522 (inline_update_callee_summaries): New function.
3523 (inline_merge_summary): Use it.
3524 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3525 (read_inline_edge_summary): New function.
3526 (inline_read_section): Use it.
3527 (write_inline_edge_summary): New function.
3528 (inline_write_summary): Use it.
3529 (inline_free_summary): Free edge new holders.
3530 * tree-inline.c (copy_bb): Update.
3532 2011-04-26 Jason Merrill <jason@redhat.com>
3534 * tree-eh.c (lower_try_finally_switch): Create the label along with
3535 the CASE_LABEL_EXPR.
3537 2011-04-26 David S. Miller <davem@davemloft.net>
3538 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3540 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3541 * configure: Regenerate.
3543 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3546 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3548 (VEC_reduc): New code iterator and splitters for vector reduction.
3549 (VEC_reduc_name): Ditto.
3550 (VEC_reduc_rtx): Ditto.
3551 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3552 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3554 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3555 support for extracting SF on VSX.
3557 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3558 generating xscvspdp.
3559 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3560 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3561 double add, minimum, maximum vector reduction.
3562 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3563 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3564 optimize double vector reduction.
3565 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3567 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3569 * config/fr30/fr30.h (inhibit_libc): Don't define.
3570 * config/m32r/m32r-protos.h: Correct comment.
3571 * config/v850/v850.h (GHS_default_section_names,
3572 GHS_current_section_names): Use tree, not union tree_node *.
3574 2011-04-26 Xinliang David Li <davidxl@google.com>
3576 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3577 * c-family/c-opts.c (c_common_handle_option): Set
3578 warn_maybe_uninitialized.
3579 * opts.c (common_handle_option): Ditto.
3580 * common.opt: New option.
3581 * tree-ssa.c (warn_uninit): Add one more parameter.
3582 (warn_uninitialized_var): Pass warning code.
3583 * tree-flow.h: Interface change.
3586 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3588 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3589 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3590 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3592 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3594 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3595 * config/mips/mips.opt (mmips-tfile): Remove.
3597 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3598 mips-tdump reference to ...
3599 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3600 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3601 reference by Tru64 UNIX.
3603 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3606 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3607 is error_mark_node, set value to NULL.
3609 PR tree-optimization/48734
3610 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3611 if return value from maybe_fold_*_comparsions isn't something
3612 the code is prepared to handle.
3614 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3616 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3618 (ext_QIreg_nomode_operands): Remove.
3619 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3623 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3625 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3627 2011-04-26 Richard Guenther <rguenther@suse.de>
3629 * c-typeck.c (build_unary_op): Do not expand array-refs via
3630 pointer arithmetic. Only adjust qualifiers for function types.
3632 2011-04-26 Richard Guenther <rguenther@suse.de>
3635 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3636 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3637 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3638 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3640 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3642 * doc/extend.texi: Document __underlying_type.
3644 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3646 * config/rs6000/titan.md (automata_option "progress"): Remove.
3648 2011-04-25 Jeff Law <law@redhat.com>
3650 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3652 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3654 * system.h (ENUM_BITFIELD): Remove.
3656 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3657 Eric Botcazou <ebotcazou@adacore.com>
3659 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3660 for STORE_FLAG_VALUE==-1 case.
3662 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3665 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3666 LEGITIMATE_PIC_OPERAND_P.
3668 2011-04-24 Jan Hubicka <jh@suse.cz>
3670 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3672 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3673 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3674 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3675 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3676 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3677 Sanity check predicate length.
3678 (remap_predicate): Likewise; sanity check jump functions.
3679 (inline_read_section, inline_write_summary): Sanity check
3682 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3685 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3686 __is_literal_type, and __is_trivial; update throughout about
3687 possibly cv-qualified void types.
3689 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3691 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3692 testsuite and make it version agnostic.
3694 2011-04-22 Jan Hubicka <jh@suse.cz>
3696 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3698 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3701 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3702 to VOID_TYPE even around MODIFY_EXPR.
3704 2011-04-22 Mike Stump <mikestump@comcast.net>
3706 * gensupport.c (read_md_rtx): Fix typo in comment.
3707 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3710 2011-04-22 Jan Hubicka <jh@suse.cz>
3712 * gengtype.c (open_base_files): Add ipa-inline.h include.
3713 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3714 ipa-prop.c; update all uses.
3715 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3716 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3717 merge summary of inlined function into former caller.
3718 * ipa-inline.c (max_benefit): Remove.
3719 (edge_badness): Compensate for removal of benefits.
3720 (update_caller_keys): Use
3721 reset_node_growth_cache/reset_edge_growth_cache.
3722 (update_callee_keys): Likewise.
3723 (update_all_callee_keys): Likewise.
3724 (inline_small_functions): Do not collect max_benefit; do not reset
3725 estimated_growth; call free_growth_caches and initialize_growth_caches.
3726 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3727 struct size_time_entry): New structures.
3728 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3729 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3730 and estimated_growth.
3731 (edge_growth_cache_entry): New structure.
3732 (node_growth_cache, edge_growth_cache): New global vars.
3733 (estimate_growth): Turn into inline.
3734 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3735 initialize_growth_caches, free_growth_caches): Declare.
3736 (estimate_edge_growth): Rewrite.
3737 (estimate_edge_time): Implement as inline cache lookup.
3738 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3740 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3741 (NUM_CONDITIONS): New constant.
3742 (predicate_conditions): New enum.
3743 (IS_NOT_CONSTANT): New constant.
3744 (edge_removal_hook_holder): New var.
3745 (node_growth_cache, edge_growth_cache): New global vars.
3746 (true_predicate, single_cond_predicate, false_predicate,
3747 not_inlined_predicate, add_condition, add_clause, and_predicates,
3748 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3749 dump_clause, dump_predicate, account_size_time,
3750 evaulate_conditions_for_edge): New functions.
3751 (inline_summary_alloc): Move to heap.
3752 (inline_node_removal_hook): Clear condition and entry vectors.
3753 (inline_edge_removal_hook): New function.
3754 (initialize_growth_caches, free_growth_caches): New function.
3755 (dump_inline_summary): Update.
3756 (edge_execution_predicate): New function.
3757 (will_be_nonconstant_predicate): New function.
3758 (estimate_function_body_sizes): Compute BB and constantness predicates.
3759 (compute_inline_parameters): Do not clear estimated_growth.
3760 (estimate_edge_size_and_time): New function.
3761 (estimate_calls_size_and_time): New function.
3762 (estimate_callee_size_and_time): New function.
3763 (remap_predicate): New function.
3764 (inline_merge_summary): New function.
3765 (do_estimate_edge_time): New function based on...
3766 (estimate_edge_time): ... this one.
3767 (do_estimate_edge_growth): New function.
3768 (do_estimate_growth): New function based on....
3769 (estimate_growth): ... this one.
3770 (inline_analyze_function): Analyze after deciding on jump functions.
3771 (inline_read_section): New function.
3772 (inline_read_summary): Use it.
3773 (inline_write_summary): Write all the new data.
3774 * ipa-prop.c (ipa_get_param_decl_index): Export.
3775 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3776 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3778 (ipa_get_lattice): Move here from ipa-cp.c
3779 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3780 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3781 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3782 cgraph_edge_inlinable_p): Remove.
3783 * cgraphunit.c: Include ipainline.h
3784 (cgraph_process_new_functions): Update call of
3785 compute_inline_parameters.
3787 2011-04-22 Richard Guenther <rguenther@suse.de>
3789 * tree.c (build_int_cst): Properly create canonicalized integer
3791 (build_int_cst_type): Remove scary comments.
3793 2011-04-22 Xinliang David Li <davidxl@google.com>
3795 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3796 by default when -Wno-error is not specified.
3797 * opts-global.c (decode_options): Remove call to
3798 control_warning_options.
3800 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3802 PR tree-optimization/48717
3803 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3804 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3806 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3808 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3809 definition where used.
3811 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3814 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3815 TREE_STATIC variables declared inside of some OpenMP construct.
3817 2011-04-22 Martin Jambor <mjambor@suse.cz>
3820 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3822 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3825 * c-typeck.c (pop_init_level): Do not warn about initializing
3828 2011-04-22 Alan Modra <amodra@gmail.com>
3830 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3831 when returning call_cookie.
3832 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3833 pointers, to functions with no more vector args than the current
3834 function, and some non-local calls for ABI_V4.
3835 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3836 sibcall_nonlocal_aix64): Combine to ..
3837 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3838 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3839 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3840 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3841 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3843 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3844 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3845 sibcall_value_symbolic_64): Delete.
3847 2011-04-21 Xinliang David Li <davidxl@google.com>
3849 * cgraph.h: Remove pid.
3850 * cgraph.c: Remove pid.
3851 * value-prof.c (init_node_map): New function.
3852 (del_node_map): New function.
3853 (find_func_by_funcdef_no): New function.
3854 (gimple_ic_transform): Call new function.
3855 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3856 * function.c (get_last_funcdef_no): New function.
3857 * function.h (get_last_funcdef_no): New function.
3858 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3859 to libgcov function.
3860 (tree-profiling): Call node map init and delete function.
3862 2011-04-21 Ian Lance Taylor <iant@google.com>
3864 * godump.c (go_format_type): Use exported Go name for anonymous
3867 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3869 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3870 Call builtin_function_type_list instead of builtin_function_type.
3871 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3873 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3875 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3876 build_function_type_list instead of build_function_type.
3877 Delete variable `endlink'.
3879 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3881 * config/s390/s390.c (s390_init_builtins): Call
3882 build_function_type_list instead of build_function_type.
3884 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3886 * config/ia64/ia64.c (ia64_init_builtins): Call
3887 build_function_type_list instead of builtin_function_type.
3889 2011-04-21 Easwaran Raman <eraman@google.com>
3891 * cfgexpand.c (stack_var): Remove OFFSET...
3892 (add_stack_var): ...and its reference here...
3893 (expand_stack_vars): ...and here.
3894 (stack_var_cmp): Sort by descending order of size.
3895 (partition_stack_vars): Change heuristic.
3896 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3897 (dump_stack_var_partition): Add newline after each partition.
3899 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3900 Jeff Law <law@redhat.com>
3902 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3903 * gengtype.c (matching_file_name_substitute): Likewise.
3905 2011-04-21 Richard Guenther <rguenther@suse.de>
3908 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3910 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3912 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3914 2011-04-21 Richard Guenther <rguenther@suse.de>
3916 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3919 2011-04-21 Richard Guenther <rguenther@suse.de>
3921 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3922 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3923 Use DECL_P, not SSA_VAR_P.
3924 (ptr_derefs_may_alias_p): Likewise.
3925 (ptr_deref_may_alias_ref_p_1): Likewise.
3926 (decl_refs_may_alias_p): Likewise.
3927 (refs_may_alias_p_1): Likewise.
3928 (ref_maybe_used_by_call_p_1): Likewise.
3929 (call_may_clobber_ref_p_1): Likewise.
3930 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3931 are either MEM_REF or TARGET_MEM_REF.
3932 (indirect_refs_may_alias_p): Likewise.
3933 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3934 for MEM_EXPR of indirect calls.
3936 2011-04-21 Tristan Gingold <gingold@adacore.com>
3938 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3939 (dst_file_info_struct): Remove flen field.
3940 (lookup_filename): Remove code that set flen field.
3942 2011-04-21 Tristan Gingold <gingold@adacore.com>
3944 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3946 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3949 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3950 vec_extract and vec_concat for non-SSE4_1 targets.
3952 2011-04-21 Richard Guenther <rguenther@suse.de>
3954 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3957 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3959 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3961 (FILE): Don't undefine.
3963 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3965 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3967 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3969 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3970 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3971 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3973 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3974 definitions where used.
3975 * config/microblaze/microblaze.h (struct microblaze_args): Use
3976 rtx, not struct rtx_def *.
3977 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3979 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3980 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3981 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3982 not struct rtx_def *.
3983 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3985 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3987 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
3989 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3991 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3992 operand_equal_p to compare DR_BASE_ADDRESSes.
3993 (vect_check_interleaving): Likewise.
3995 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3998 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3999 for all Neon struct constants.
4001 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4003 * target.def (legitimate_constant_p): New hook.
4004 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4005 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4006 * doc/tm.texi: Regenerate.
4007 * hooks.h (hook_bool_mode_rtx_true): Declare.
4008 * hooks.c (hook_bool_mode_rtx_true): Define.
4009 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4010 * calls.c (precompute_register_parameters): Replace uses of
4011 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4012 (emit_library_call_value_1): Likewise.
4013 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4014 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4015 * ira-costs.c (scan_one_insn): Likewise.
4016 * recog.c (general_operand, immediate_operand): Likewise.
4017 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4018 * reload1.c (init_eliminable_invariants): Likewise.
4020 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4022 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4023 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4025 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4026 * config/alpha/predicates.md (input_operand): Update call to
4027 alpha_legitimate_constant_p.
4029 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4030 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4031 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4032 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4033 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4034 (arm_legitimate_constant_p): New functions.
4035 (arm_cannot_force_const_mem): Make static.
4037 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4039 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4040 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4041 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4042 instead of bfin_legitimate_constant_p.
4043 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4044 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4046 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4048 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4050 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4051 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4052 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4053 (frv_legitimate_constant_p): Make static. Add a mode argument.
4055 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4056 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4057 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4059 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4060 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4061 * config/i386/i386.c (legitimate_constant_p): Rename to...
4062 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4064 (ix86_cannot_force_const_mem): Update accordingly.
4065 (ix86_legitimate_address_p): Likewise.
4066 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4067 * config/i386/i386.md: Update commentary.
4069 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4070 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4071 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4072 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4074 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4076 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4077 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4078 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4079 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4081 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4082 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4083 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4085 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4086 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4087 (m32r_legitimate_constant_p): New function.
4089 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4090 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4091 LEGITIMATE_CONSTANT_P.
4092 (LEGITIMATE_CONSTANT_P): Delete.
4093 * config/m68k/m68k.c (m68k_expand_prologue): Call
4094 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4095 (m68k_legitimate_constant_p): New function.
4096 * config/m68k/m68k.md: Update comments.
4098 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4099 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4100 (mcore_legitimate_constant_p): New function.
4102 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4103 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4104 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4105 Add a mode argument.
4106 (mep_legitimate_address): Update accordingly.
4107 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4109 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4111 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4112 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4113 static. Check OP's mode for VOIDmode.
4114 (microblaze_legitimate_constant_p): New function.
4115 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4117 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4118 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4119 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4120 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4121 * config/mips/predicates.md: Update comments.
4123 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4124 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4125 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4126 (mmix_legitimate_constant_p): Make static, return a bool, and take
4128 (mmix_print_operand_address): Update accordingly.
4130 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4132 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4133 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4134 static. Add a mode argument.
4135 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4137 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4139 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4140 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4141 (pa_legitimate_constant_p): New function.
4143 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4145 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4146 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4147 (pdp11_legitimate_constant_p): New function.
4149 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4150 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4151 (rs6000_legitimate_constant_p): New function.
4153 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4154 (rx_legitimate_constant_p): ...this.
4155 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4156 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4157 (rx_legitimate_constant_p): ...this.
4158 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4159 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4161 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4162 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4163 * config/s390/s390.c (legitimate_constant_p): Rename to...
4164 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4165 and add a mode argument.
4166 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4168 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4170 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4171 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4172 (sh_legitimate_constant_p): New function.
4174 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4175 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4176 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4177 (legitimate_constant_p): Rename to...
4178 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4180 (constant_address_p): Update accordingly.
4182 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4183 argument and return a bool.
4184 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4185 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4186 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4187 (spu_rtx_costs): Update accordingly.
4188 * config/spu/predicates.md (vec_imm_operand): Likewise.
4190 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4192 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4193 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4196 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4197 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4198 * config/vax/vax.c (legitimate_constant_p): Likewise.
4200 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4201 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4202 (xtensa_legitimate_constant_p): New function.
4204 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4206 * target.def (cannot_force_const_mem): Add a mode argument.
4207 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4208 * doc/tm.texi: Regenerate.
4209 * hooks.h (hook_bool_mode_rtx_false): Declare.
4210 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4211 (hook_bool_mode_const_rtx_true): Likewise.
4212 (hook_bool_mode_rtx_false): New function.
4213 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4214 to be non-VOID. Update call to cannot_force_const_mem.
4215 (find_reloads): Update accordingly.
4216 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4217 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4219 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4220 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4221 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4222 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4223 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4224 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4225 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4226 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4227 (m68k_cannot_force_const_mem): ...this new function.
4228 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4230 (mips_const_insns, mips_legitimize_const_move): Update calls.
4231 (mips_secondary_reload_class): Likewise.
4232 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4233 (pa_cannot_force_const_mem): ...this new function.
4234 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4235 (rs6000_cannot_force_const_mem): ...this new function.
4236 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4238 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4239 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4241 (xtensa_cannot_force_const_mem): ...this new function.
4243 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4245 * config/mips/mips.c (mips16_build_function_stub): Call
4246 build_function_type_list instead of build_function_type.
4247 (mips16_build_call_stub): Likewise.
4249 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4251 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4252 instead of build_function_type.
4254 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4256 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4257 instead of build_function_type.
4259 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4262 * config/i386/i386.md (insv): Change operand 0 constraint to
4263 "register_operand". Change operand 1 and 2 constraint to
4264 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4265 * config/i386/sse.md (sse4_1_pinsrb): Export.
4266 (sse2_pinsrw): Ditto.
4267 (sse4_1_pinsrd): Ditto.
4268 (sse4_1_pinsrq): Ditto.
4269 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4270 * config/i386/i386.c (ix86_expand_pinsr): New.
4272 2011-04-20 Easwaran Raman <eraman@google.com>
4274 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4275 containing union type only with -fstrict-aliasing.
4277 2011-04-20 Jim Meyering <meyering@redhat.com>
4279 Remove useless if-before-free tests.
4280 * calls.c (expand_call, save_area): Likewise.
4281 * cfgcleanup.c (try_forward_edges): Likewise.
4282 * collect2.c (collect_execute): Likewise.
4283 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4284 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4285 * coverage.c (coverage_checksum_string): Likewise.
4286 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4287 * cselib.c (cselib_init): Likewise.
4288 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4289 (df_set_clean_cfg): Likewise.
4290 * function.c (free_after_compilation): Likewise.
4291 * gcc.c (do_spec_1, main): Likewise.
4292 * gcov.c (create_file_names): Likewise.
4293 * gensupport.c (identify_predicable_attribute): Likewise.
4294 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4295 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4296 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4297 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4298 * ipa-pure-const.c (local_pure_const): Likewise.
4299 * ipa-reference.c (propagate): Likewise.
4300 * ira-costs.c (free_ira_costs): Likewise.
4301 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4302 * matrix-reorg.c (mat_free): Likewise.
4303 * prefix.c (get_key_value): Likewise.
4304 * profile.c (compute_value_histograms): Likewise.
4305 * reload1.c (free_reg_equiv): Likewise.
4306 * sched-deps.c (free_deps): Likewise.
4307 * sel-sched-ir.c (fence_clear): Likewise.
4308 * sese.c (set_rename, if_region_set_false_region): Likewise.
4309 * tree-data-ref.c (free_rdg): Likewise.
4310 * tree-eh.c (lower_try_finally): Likewise.
4311 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4312 * tree-ssa-live.c (delete_var_map): Likewise.
4313 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4314 * tree-ssa-pre.c (phi_trans_add): Likewise.
4316 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4318 PR tree-optimization/48611
4319 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4320 beyond ERT_MUST_NOT_THROW region.
4322 2011-04-20 Catherine Moore <clm@codesourcery.com>
4324 * config/mips/mips.opt (mfix-24k): New.
4325 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4326 * config/mips/mips.md (length): Increase by 4 for stores if
4328 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4329 all noreorder if fixing 24K errata.
4330 * doc/invoke.texi: Document mfix-24k.
4332 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4334 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4335 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4337 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4339 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4340 (const_ok_for_op): ... to here.
4342 2011-04-20 Kai Tietz <ktietz@redhat.com>
4344 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4345 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4347 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4349 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4351 2011-04-20 Richard Guenther <rguenther@suse.de>
4353 PR tree-optimization/47892
4354 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4357 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4359 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4361 2011-04-20 Tristan Gingold <gingold@adacore.com>
4363 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4365 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4369 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4370 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4371 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4372 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4373 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4375 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4378 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4379 (avr_asm_named_section, avr_asm_output_aligned_common,
4380 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4381 New functions to update...
4382 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4383 (avr_asm_init_sections): Overwrite section callbacks for
4384 data_section, bss_section.
4385 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4387 (avr_file_end): ...here.
4389 2011-04-20 Richard Guenther <rguenther@suse.de>
4392 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4393 objects and types here. Adjust for their offset before comparing.
4395 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4397 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4400 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4402 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4403 (GIMPLE_H): Include $(INTERNAL_FN_H).
4404 (OBJS-common): Add internal-fn.o.
4405 (internal-fn.o): New rule.
4406 * internal-fn.def: New file.
4407 * internal-fn.h: Likewise.
4408 * internal-fn.c: Likewise.
4409 * gimple.h: Include internal-fn.h.
4410 (GF_CALL_INTERNAL): New gf_mask.
4411 (gimple_statement_call): Put fntype into a union with a new
4413 (gimple_build_call_internal): Declare.
4414 (gimple_build_call_internal_vec): Likewise.
4415 (gimple_call_same_target_p): Likewise.
4416 (gimple_call_internal_p): New function.
4417 (gimple_call_internal_fn): Likewise.
4418 (gimple_call_fntype): Return null for internal calls.
4419 (gimple_call_set_fntype): Assert that the function is not internal.
4420 (gimple_call_set_fn): Likewise.
4421 (gimple_call_set_fndecl): Likewise.
4422 (gimple_call_set_internal_fn): New function.
4423 (gimple_call_addr_fndecl): Handle null functions.
4424 (gimple_call_return_type): Likewise null types.
4425 * gimple.c (gimple_build_call_internal_1): New function.
4426 (gimple_build_call_internal): Likewise.
4427 (gimple_build_call_internal_vec): Likewise.
4428 (gimple_call_same_target_p): Likewise.
4429 (gimple_call_flags): Handle calls to internal functions.
4430 (gimple_call_fnspec): New function.
4431 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4432 (gimple_has_side_effects): Handle null functions.
4433 (gimple_rhs_has_side_effects): Likewise.
4434 (gimple_call_copy_skip_args): Handle calls to internal functions.
4435 * cfgexpand.c (expand_call_stmt): Likewise.
4436 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4437 * gimple-fold.c (gimple_fold_call): Handle null functions.
4438 (gimple_fold_stmt_to_constant_1): Don't fold
4439 calls to internal functions.
4440 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4442 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4443 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4444 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4445 (do_warn_unused_result): Likewise.
4446 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4447 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4448 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4449 the target of a call.
4450 (initialize_hash_element): Update accordingly.
4451 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4452 (iterative_hash_hashable_expr): Handle calls to internal functions.
4453 (print_expr_hash_elt): Likewise.
4454 * tree-ssa-pre.c (can_value_number_call): Likewise.
4455 (eliminate): Handle null functions.
4456 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4457 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4458 (find_func_aliases): Likewise.
4459 * value-prof.c (gimple_ic_transform): Likewise.
4460 (gimple_indirect_call_to_profile): Likewise.
4461 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4462 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4464 2011-04-19 Jan Hubicka <jh@suse.cz>
4466 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4467 * ipa-inline.c (inline_small_functions): Compute summaries first,
4468 populate heap later.
4470 2011-04-19 Jan Hubicka <jh@suse.cz>
4472 * cgraph.h (save_inline_function_body): Remove.
4473 * ipa-inline-transform.c: New file, broke out of...
4474 * ipa-inline.c: ... this one; Update toplevel comment.
4475 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4477 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4478 (cgraph_mark_inline_edge): Rename to inline_call; move to
4479 ipa-inline-transform.c.
4480 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4481 move to ipa-inline-transform.c
4482 (recursive_inlining, inline_small_functions, flatten_function,
4483 ipa_inline, inline_always_inline_functions,
4484 early_inline_small_functions): Update.
4485 (inline_transform): Move to ipa-inline-transform.c.
4486 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4488 * Makefile.in (ipa-inline-transform.o): New file.
4489 * cgraphunit.c (save_inline_function_body): Move to
4490 ipa-inline-transform.c
4492 2011-04-19 DJ Delorie <dj@redhat.com>
4494 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4495 registers if we already know there aren't any.
4496 (m32c_emit_epilogue): Don't emit a barrier here.
4497 (m32c_emit_eh_epilogue): Likewise.
4498 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4499 operands at expand time.
4500 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4502 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4503 duplicates. Provide aliases instead.
4504 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4505 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4508 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4510 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4511 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4512 (general_or_i64_p, sparc_register_move_cost): New function.
4514 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4516 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4517 Add lynx, mipssde. Sort table.
4519 2011-04-19 Xinliang David Li <davidxl@google.com>
4521 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4524 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4527 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4528 is a SUBREG with non-MODE_INT mode inside of it.
4530 2011-04-19 Martin Jambor <mjambor@suse.cz>
4532 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4533 also according to actual contants.
4534 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4535 (gimple_fold_call): Use it.
4536 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4538 2011-04-19 Martin Jambor <mjambor@suse.cz>
4540 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4541 non-pointer assignments.
4543 2011-04-19 Martin Jambor <mjambor@suse.cz>
4545 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4546 account anc_offset and otr_type from the indirect edge info.
4547 * ipa-prop.c (get_ancestor_addr_info): New function.
4548 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4549 get_ancestor_addr_info, call it.
4550 (ipa_note_param_call): Do not initialize information about polymorphic
4551 calls, return the indirect call graph edge. Remove the last
4552 parameter, adjust all callers.
4553 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4554 parameters. Initialize polymorphic information in the indirect edge.
4556 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4559 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4560 the types if they have different enumeration identifiers.
4562 2011-04-19 Jan Hubicka <jh@suse.cz>
4564 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4565 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4566 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4567 (optimize_function_for_size_p) ... here.
4569 2011-04-19 Richard Guenther <rguenther@suse.de>
4572 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4575 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4577 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4578 if DECL_NO_INLINE_WARNING_P is set on the function.
4580 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4583 * reload1.c (inc_for_reload): Return void. All callers changed.
4584 (emit_input_reload_insns): Don't try to delete previous output
4585 reloads to a register, or record spill_reg_store for autoincs.
4587 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4589 * gengtype.h: Updated copyright year.
4590 (struct input_file_st): Add inpisplugin field.
4591 (type_fileloc): New function.
4593 (write_typed_struct_alloc_def): Add gcc_assert.
4594 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4595 (write_typed_alloc_defns): Don't output for plugin files.
4596 (input_file_by_name): Clear inpisplugin field.
4597 (main): Set inpisplugin field for plugin files.
4599 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4601 * gengtype-state.c (string_eq): New.
4602 (read_state): Use string_eq instead of strcmp when creating the
4605 2011-04-19 Wei Guozhi <carrot@google.com>
4608 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4609 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4611 * config/arm/constraints.md (Uu): New constraint.
4612 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4614 2011-04-19 Tristan Gingold <gingold@adacore.com>
4616 * config.gcc (-*-*-*vms): Added.
4617 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4619 * config/vms/vms-ld.c: New file.
4620 * config/vms/vms-ar.c: New file.
4621 * config/vms/t-vmsnative: New file.
4623 2011-04-18 Xinliang David Li <davidxl@google.com>
4625 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4627 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4630 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4631 if TREE_TYPE (v) is non-NULL.
4633 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4634 gimple_get_virt_mehtod_for_binfo.
4635 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4636 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4638 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4640 2011-04-18 Michael Matz <matz@suse.de>
4641 Steve Ellcey <sje@cup.hp.com>
4643 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4644 use its mode as source mode if it isn't VOIDmode.
4646 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4648 * doc/passes.texi: Fill crossref nodes.
4650 2011-04-18 Jim Meyering <meyering@redhat.com>
4652 Fix doubled-word typos in comments and strings
4653 * config/alpha/vms-unwind.h: s/for for/for/
4654 * config/arm/unwind-arm.h: Likewise.
4655 * config/microblaze/microblaze.c: Likewise.
4656 * config/sh/constraints.md: s/in in/in/
4657 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4659 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4661 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4662 (AVX_FLOAT_MODE_P): Ditto.
4663 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4664 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4665 (AVX_VEC_FLOAT_MODE_P): Ditto.
4666 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4667 (UNSPEC_MASKSTORE): Ditto.
4668 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4669 Merge from <sse>_movmsk<ssemodesuffix> and
4670 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4671 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4673 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4674 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4675 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4677 2011-04-18 Jan Hubicka <jh@suse.cz>
4679 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4681 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4682 (want_inline_function_called_once_p): Break out the logic from
4684 (edge_badness): Ensure that profile is not misupdated.
4685 (lookup_recursive_calls): Prioritize by call frequencies.
4686 (inline_small_functions): Move program size estimates here;
4687 actually process whole queue even when unit growth has been
4688 met. (to properly compute inline_failed reasons and for the
4689 case unit size decrease.) Revisit comments on recursive inlining.
4690 (ipa_inline): Remove unit summary code; first inline hot calls
4691 of functions called once, cold calls next.
4692 (order, nnodes): Remove unused variables.
4693 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4694 (GTFILES): Remove ipa-inline.c
4695 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4697 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4699 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4701 2011-04-18 Jie Zhang <jie@codesourcery.com>
4702 Richard Earnshaw <rearnsha@arm.com>
4704 * arm.c (neon_builtin_type_bits): Remove.
4705 (typedef enum neon_builtin_mode): New.
4706 (T_MAX): Don't define.
4707 (typedef enum neon_builtin_datum): Remove bits, codes[],
4708 num_vars and base_fcode. Add mode, code and fcode.
4709 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4710 VAR10): Change accordingly.
4711 (neon_builtin_data[]): Change accordingly
4712 (arm_init_neon_builtins): Change accordingly.
4713 (neon_builtin_compare): Remove.
4714 (locate_neon_builtin_icode): Remove.
4715 (arm_expand_neon_builtin): Change accordingly.
4717 * arm.h (enum arm_builtins): Move to ...
4718 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4720 * arm.c (arm_builtin_decl): Declare.
4721 (TARGET_BUILTIN_DECL): Define.
4722 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4723 (arm_builtin_decls[]): New.
4724 (arm_init_neon_builtins): Store builtin declarations in
4725 arm_builtin_decls[].
4726 (arm_init_tls_builtins): Likewise.
4727 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4728 (arm_builtin_decl): New.
4730 2011-04-18 Richard Guenther <rguenther@suse.de>
4732 * tree.c (upper_bound_in_type): Build properly canonicalized
4734 (lower_bound_in_type): Likewise.
4736 2011-04-18 Richard Guenther <rguenther@suse.de>
4738 * gimple.h (gimple_call_addr_fndecl): New function.
4739 (gimple_call_fndecl): Use it.
4740 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4742 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4743 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4745 2011-04-18 Richard Guenther <rguenther@suse.de>
4748 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4750 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4753 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4754 DECL_IN_CONSTANT_POOL without RTL.
4756 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4757 Ira Rosen <ira.rosen@linaro.org>
4760 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4761 to match neon_vzip/vuzp/vtrn_internal.
4762 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4763 outputs explicitly dependent on both inputs.
4764 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4766 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4768 PR tree-optimization/48616
4769 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4770 whether the shift is by scalar or vector based on whether all SLP
4771 scalar stmts have the same rhs.
4773 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4775 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4778 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4780 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4783 2011-04-17 Jan Hubicka <jh@suse.cz>
4785 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4786 * cgrpahunit.c (cgraph_finalize_function): Do not set
4787 finalized_by_frontend.
4788 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4789 finalized_by_frontend.
4791 2011-04-17 Jan Hubicka <jh@suse.cz>
4793 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4794 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4795 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4796 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4798 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4800 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4802 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4805 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4806 is non-null before accessing it.
4807 (input_cgraph): Remove trailing spaces.
4809 2011-04-17 Revital Eres <revital.eres@linaro.org>
4811 * params.def (sms-min-sc): New param flag.
4812 * modulo-sched.c (sms_schedule): Use it.
4813 * doc/invoke.texi (sms-min-sc): Document it.
4815 2011-04-17 Jan Hubicka <jh@suse.cz>
4817 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4818 present, also set gimple_call_set_cannot_inline.
4819 * ipa-inline.c: Update toplevel comment.
4821 (cgraph_clone_inlined_nodes): Fix linebreaks.
4822 (cgraph_check_inline_limits): Restructure to ...
4823 (caller_growth_limits): ... this one; be more tolerant
4824 on growth in nested inline chains; add explanatory comment;
4825 fix stack accounting thinko introduced by previous patch.
4826 (cgraph_default_inline_p): Remove.
4827 (report_inline_failed_reason): New function.
4828 (can_inline_edge_p): New function.
4829 (can_early_inline_edge_p): New function.
4830 (leaf_node_p): Move upwards in file.
4831 (want_early_inline_function_p): New function.
4832 (want_inline_small_function_p): New function.
4833 (want_inline_self_recursive_call_p): New function.
4834 (cgraph_edge_badness): Rename to ...
4835 (edge_badness) ... this one; fix linebreaks.
4836 (update_edge_key): Update call of edge_baddness; add
4837 detailed dump about queue updates.
4838 (update_caller_keys): Use can_inline_edge_p and
4839 want_inline_small_function_p.
4840 (cgraph_decide_recursive_inlining): Rename to...
4841 (recursive_inlining): Use can_inline_edge_p and
4842 want_inline_self_recursive_call_p; simplify and remove no longer
4844 (cgraph_set_inline_failed): Remove.
4845 (add_new_edges_to_heap): Use can_inline_edge_p and
4846 want_inline_small_function_p.
4847 (cgraph_decide_inlining_of_small_functions): Rename to ...
4848 (inline_small_functions): ... this one; cleanup; use
4849 can/want predicates; cleanup debug ouput; work edges till fibheap
4850 is exhausted and do not stop once unit growth is reached; remove
4851 later loop processing remaining edges.
4852 (cgraph_flatten): Rename to ...
4853 (flatten_function): ... this one; use can_inline_edge_p
4854 and can_early_inline_edge_p predicates.
4855 (cgraph_decide_inlining): Rename to ...
4856 (ipa_inline): ... this one; remove unreachable nodes before
4857 inlining functions called once; simplify the pass.
4858 (cgraph_perform_always_inlining): Rename to ...
4859 (inline_always_inline_functions): ... this one; use
4860 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4861 (cgraph_decide_inlining_incrementally): Rename to ...
4862 (early_inline_small_functions): ... this one; simplify
4863 using new predicates; cleanup; make dumps prettier.
4864 (cgraph_early_inlining): Rename to ...
4865 (early_inliner): newer inline regular functions into always-inlines;
4866 fix updating of call stmt summaries.
4867 (pass_early_inline): Update for new names.
4868 (inline_transform): Fix formating.
4869 (gate_cgraph_decide_inlining): Rename to ...
4870 (pass_ipa_inline): ... this one.
4871 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4872 * ipa-inline-analysis.c (dump_inline_summary): Update.
4873 (compute_inline_parameters): Do not compute disregard_inline_limits;
4874 look for mismatching arguments.
4875 (estimate_growth): Fix handlig of non-trivial self recursion.
4876 (inline_read_summary): Do not read info->disregard_inline_limits.
4877 (inline_write_summary): Do not write info->disregard_inline_limits.
4878 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4879 and move all checks into can_inline_edge_p predicate; re-enable code
4880 comparing optimization levels.
4881 (expand_call_inline): Do not test inline_forbidden_into_p.
4882 * Makefile.in (ipa-inline.o): Update arguments.
4884 2011-04-17 Revital Eres <revital.eres@linaro.org>
4886 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4888 2011-04-17 Revital Eres <revital.eres@linaro.org>
4890 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4892 2011-04-17 Michael Matz <matz@suse.de>
4894 PR tree-optimization/48622
4896 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4897 in same order as they're written.
4899 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4901 * config/pa/predicates.md: Reorganize and simplify predicates.
4902 Eliminate duplicate code checks.
4903 (arith_operand): Rename to arith14_operand
4904 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4905 * config/pa/pa.md: Use renamed operands.
4906 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4907 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4908 arith11_operand, adddi3_operand, indexed_memory_operand,
4909 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4910 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4911 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4912 move_dest_operand, move_src_operand, prefetch_cc_operand,
4913 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4914 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4915 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4916 div_operand, int5_operand, movb_comparison_operator,
4917 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4918 arith_double_operand, ireg_operand, lhs_lshift_operand,
4919 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4920 integer_store_memory_operand): Likewise.
4921 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4922 (integer_store_memory_operand, read_only_operand,
4923 function_label_operand, borx_reg_operand,
4924 non_hard_reg_operand): Likewise.
4925 (eq_neq_comparison_operator): Delete unused operator.
4926 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4927 function_label_operand.
4928 (emit_move_sequence): Likewise.
4930 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4932 * config/i386/sse.md (sseunpackmode): New mode attribute.
4933 (ssepackmode): Ditto.
4934 (vec_pack_trunc_<mode>): Macroize expander from
4935 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4936 (vec_unpacks_lo_<mode>): Macroize expander from
4937 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4938 (vec_unpacks_hi_<mode>): Macroize expander from
4939 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4940 (vec_unpacku_lo_<mode>): Macroize expander from
4941 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4942 (vec_unpacku_hi_<mode>): Macroize expander from
4943 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4944 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4945 ix86_expand_sse4_unpack.
4946 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4948 2011-04-16 Jan Hubicka <jh@suse.cz>
4950 * cgraphbuild.c: Include ipa-inline.h.
4951 (reset_inline_failed): Use initialize_inline_failed.
4952 * cgraph.c: Include ipa-inline.h.
4953 (cgraph_create_node_1): Do not initialize estimated_growth.
4954 (initialize_inline_failed): More to ipa-inline-analysis.c
4955 (dump_cgraph_node): Do not dump inline flags.
4956 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4957 and disregard_inline_limits flags.
4958 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4959 time, size, estimated_growth.
4960 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4962 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4963 DECL_DISREGARD_INLINE_LIMITS.
4964 (cgraph_analyze_function): Do not initialize
4965 node->local.disregard_inline_limits.
4966 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4967 inlinable, versionable and disregard_inline_limits.
4968 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4969 cgraph_check_inline_limits, cgraph_default_inline_p,
4970 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4971 add_new_edges_to_heap): Update.
4972 (cgraph_decide_inlining_of_small_function): Update; set
4973 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4974 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4975 cgraph_decide_inlining_incrementally): Update.
4976 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4977 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4978 time, size and estimated_growth parameters.
4979 (estimate_edge_growth): Update.
4980 (initialize_inline_failed): Declare.
4981 * ipa-split.c: Include ipa-inline.h
4982 (execute_split_functions): Update.
4983 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4984 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4985 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4986 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4987 estimated_growth to INT_MIN.
4988 (inline_node_duplication_hook): Likewise.
4989 (dump_inline_summary): Dump new fields.
4990 (compute_inline_parameters): Update.
4991 (estimate_edge_time, estimate_time_after_inlining,
4992 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4993 inline_write_summary):
4994 (initialize_inline_failed): Move here from cgraph.c.
4995 * tree-sra.c: Include ipa-inline.h.
4996 (ipa_sra_preliminary_function_checks): Update.
4997 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5000 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5002 * config/i386/sse.md (V16): New mode iterator.
5004 (AVXMODEQI, AVXMODEDI): Remove.
5005 (sse2, sse3): New mode attribute.
5006 (mov<mode>): Use V16 mode iterator.
5007 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5008 (push<mode>1): Use V16 mode iterator.
5009 (movmisalign<mode>): Ditto.
5010 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5011 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5012 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5013 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5014 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5015 avx_movdqu<avxmodesuffix>.
5016 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5017 *avx_movdqu<avxmodesuffix>.
5018 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5019 avx_lddqu<avxmodesuffix>.
5020 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5021 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5022 avx_movnt<AVXMODEDI:mode>.
5023 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5024 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5026 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5029 * haifa-sched.c (prune_ready_list, schedule_block): Use
5030 sched_pressure_p rather than flag_sched_pressure.
5032 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5034 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5035 cgraph_get_node instead of cgraph_get_create_node.
5037 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5039 * cfgexpand.c (expand_debug_expr): Use
5040 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5042 2011-04-15 Michael Matz <matz@suse.de>
5044 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5045 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5046 * function.c (gimplify_parameters): Ditto.
5047 * gimplify.c (gimplify_vla_decl): Ditto.
5049 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5050 (gimple_call_set_alloca_for_var): New inline function.
5051 (gimple_call_alloca_for_var_p): Ditto.
5052 * gimple.c (gimple_build_call_from_tree): Remember
5053 CALL_ALLOCA_FOR_VAR_P state.
5054 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5056 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5057 calls if they were for VLA objects.
5059 2011-04-15 Martin Jambor <mjambor@suse.cz>
5061 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5064 2011-04-15 Martin Jambor <mjambor@suse.cz>
5067 * tree-emutls.c (lower_emutls_function_body): Call
5068 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5071 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5073 * c-decl.c (detect_field_duplicates): Call
5074 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5076 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5078 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5079 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5080 * ipa-pure-const.c (check_stmt): Call it.
5081 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5083 2011-04-15 Richard Guenther <rguenther@suse.de>
5085 PR tree-optimization/48290
5086 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5087 Properly decide inhibiting propagation based on the valueized
5088 operand. Do loop-closed SSA form preserving here ...
5089 (init_copy_prop): ... not here.
5091 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5094 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5095 (*ieee_smax<mode>3): Likewise.
5097 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5099 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5100 Replace match_operand with match_dup for the third operand in
5103 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5105 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5106 to track processing of conditionals. Update all callers.
5107 (try_combine, simplify_if_then_else): Update.
5109 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5111 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5114 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5116 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5117 instead of match_operand for operand 3.
5119 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5121 * recog.h (insn_operand_data): Add an "allows_mem" field.
5122 * genoutput.c (output_operand_data): Initialize it.
5123 * optabs.c (maybe_legitimize_operand_same_code): New function.
5124 (maybe_legitimize_operand): Use it when matching the original
5127 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5129 * gimplify.c: Fix issues in comments throughout.
5130 (voidify_wrapper_expr): Fix long line.
5131 (build_stack_save_restore): Likewise.
5132 (gimplify_loop_expr): Likewise.
5133 (gimplify_compound_lval): Likewise.
5134 (gimplify_init_ctor_eval): Likewise.
5135 (gimplify_modify_expr_rhs): Likewise.
5136 (omp_notice_threadprivate_variable): Likewise.
5138 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5140 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5141 original one if this is not a builtin function.
5143 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5146 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5147 offset it as needed based on top 2 bits in operands[3], change
5148 MEM mode to SFmode and mask those 2 bits away from operands[3].
5150 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5152 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5153 change from objc_declare_protocols() to objc_declare_protocol().
5155 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5157 * config/i386/sse.md (sse4_1): New mode attribute.
5158 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5159 avx_blend<ssemodesuffix><avxmodesuffix> and
5160 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5161 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5162 avx_blendv<ssemodesuffix><avxmodesuffix> and
5163 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5164 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5165 avx_dp<ssemodesuffix><avxmodesuffix> and
5166 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5167 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5168 (sse4_1_packusdw): Merge with *avx_packusdw.
5169 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5170 (sse4_1_pblendw): Merge with *avx_pblendw.
5171 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5172 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5173 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5175 (sse4_1_round<ssescalarmodesuffix>): Merge with
5176 *avx_round<ssescalarmodesuffix>.
5177 (aesenc): Merge with *avx_aesenc.
5178 (aesenclast): Merge with *avx_aesenclast.
5179 (aesdec): Merge with *avx_aesdec.
5180 (aesdeclast): Merge with *avx_aesdeclast.
5181 (pclmulqdq): Merge with *pclmulqdq.
5182 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5184 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5186 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5189 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5190 (align_local_variable): This. Update DECL_ALIGN.
5191 (add_stack_var): Updated.
5192 (expand_one_stack_var): Likewise.
5194 2011-04-14 Richard Guenther <rguenther@suse.de>
5196 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5198 (dse_initialize_block_local_data, dse_leave_block,
5199 record_voperand_set, get_stmt_uid): Likewise.
5200 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5201 (dse_optimize_stmt): Remove voperand set handling code.
5202 Simplify and improve to handle any kind of killing stmt.
5203 (dse_record_phi): Remove.
5204 (dse_enter_block): Simplify.
5205 (tree_ssa_dse): Likewise.
5206 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5208 2011-04-14 Jan Hubicka <jh@suse.cz>
5210 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5211 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5212 (cgraph_local_info): Remove inline_summary.
5213 * ipa-cp.c: Include ipa-inline.h.
5214 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5215 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5217 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5218 (input_overwrite_node): Do not set inline summary.
5219 (input_node): Do not stream inline summary.
5220 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5221 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5222 growth; we do not have inline parameters computed for that anyway.
5223 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5224 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5225 (inline_summary_t): New type and VECtor.
5226 (debug_inline_summary, dump_inline_summaries): Declare.
5227 (inline_summary): Use VOCtor.
5228 (estimate_edge_growth): Kill hack computing call stmt size directly.
5229 * lto-section-in.c (lto_section_name): Add inline section.
5230 * ipa-inline-analysis.c: Include lto-streamer.h
5231 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5232 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5233 (inline_summary_vec): Define.
5234 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5235 dump_inline_summaries): New functions.
5236 (estimate_function_body_sizes): Properly compute size/time of outgoing
5238 (compute_inline_parameters): Alloc inline_summary; do not compute
5239 size/time of incomming calls.
5240 (estimate_edge_time): Avoid missing time summary hack.
5241 (inline_read_summary): Read inline summary info.
5242 (inline_write_summary): Write inline summary info.
5243 (inline_free_summary): Free all hooks and inline summary vector.
5244 * lto-streamer.h: Add LTO_section_inline_summary section.
5245 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5246 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5248 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5250 * tree-vectorizer.h (vect_strided_store_supported): Add a
5251 HOST_WIDE_INT argument.
5252 (vect_strided_load_supported): Likewise.
5253 (vect_permute_store_chain): Return void.
5254 (vect_transform_strided_load): Likewise.
5255 (vect_permute_load_chain): Delete.
5256 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5257 count argument. Check that the count is a power of two.
5258 (vect_strided_load_supported): Likewise.
5259 (vect_permute_store_chain): Return void. Update after above changes.
5260 Assert that the access is supported.
5261 (vect_permute_load_chain): Likewise.
5262 (vect_transform_strided_load): Return void.
5263 * tree-vect-stmts.c (vectorizable_store): Update calls after
5264 above interface changes.
5265 (vectorizable_load): Likewise.
5266 (vect_analyze_stmt): Don't check for strided powers of two here.
5268 2011-04-14 Richard Guenther <rguenther@suse.de>
5270 PR tree-optimization/48590
5271 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5272 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5273 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5274 BUILT_IN_STACK_SAVE.
5275 * tree-ssa-dce.c (propagate_necessity): Handle
5276 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5278 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5280 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5283 2011-04-14 Richard Guenther <rguenther@suse.de>
5285 * tree.h (get_object_alignment_1): Declare.
5286 * builtins.c (get_object_alignment_1): Split out worker from ...
5287 (get_object_alignment): ... here.
5288 * fold-const.c (get_pointer_modulus_and_residue): Use
5289 get_object_alignment_1.
5291 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5293 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5295 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5296 parameter. Generalise code to handle arrays as well as vectors.
5297 (vect_setup_realignment): Update accordingly.
5298 * tree-vect-stmts.c (vectorizable_store): Likewise.
5299 (vectorizable_load): Likewise.
5301 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5303 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5304 within the per-copy loop.
5306 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5308 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5311 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5313 * doc/options.texi (Negative): Explicitly mention that the
5314 Negative chain must be circular.
5316 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5318 * function.h (block_chainon): Declare.
5319 * function.c (block_chainon): Define.
5321 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5322 Eric Weddington <eric.weddington@atmel.com>
5323 Georg-Johann Lay <avr@gjlay.de>
5325 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5327 (avr_init_builtins, avr_expand_builtin,
5328 avr_expand_delay_cycles, avr_expand_unop_builtin,
5329 avr_expand_binop_builtin ): New functions.
5330 (avr_builtin_id): New enum
5331 (struct avr_builtin_description): New struct
5332 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5333 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5335 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5336 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5337 UNSPECV_DELAY_CYCLES): new enumeration values
5338 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5339 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5340 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5341 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5342 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5343 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5344 "fmulsu"): New insns
5346 * config/avr/avr-c.c: fix line endings
5347 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5348 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5349 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5350 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5351 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5353 * doc/extend.texi (AVR Built-in Functions): New node
5354 (Target Builtins): Add documentation of AVR
5357 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5360 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5361 alone. Error if non-const data has attribute progmem.
5363 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5365 * tree.h (struct tree_constructor): Include tree_typed instead of
5367 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5368 TS_TYPED instead of TS_COMMON.
5370 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5372 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5373 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5374 (sse2_psadbw): Merge with *avx_psadbw.
5375 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5376 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5377 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5378 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5379 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5380 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5381 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5382 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5383 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5384 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5385 (ssse3_palignrti): Merge with *avx_palignrti.
5387 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5389 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5390 * tree-ssanames.c (fini_ssanames): VEC_free it.
5391 (make_ssa_name_fn): Update for VECness of free_ssanames.
5392 (release_ssa_name, release_dead_ssa_names): Likewise.
5393 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5395 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5396 TS_TYPED instead of TS_COMMON.
5398 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5400 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5401 statistics_counter_event.
5402 * tree-ssa-copyrename.c (stats): Define.
5403 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5404 statistics_counter_event.
5405 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5406 (bswap_stats, widen_mul_stats): Define.
5407 (insert_reciprocals): Increment rdivs_inserted.
5408 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5409 rfuncs_inserted. Add calls to statistics_counter_event.
5410 (execute_cse_sincos_1): Increment inserted.
5411 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5412 statistics_counter_event.
5413 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5414 of bswap_stats. Add calls to statistics_counter_event.
5415 (convert_mult_to_widen): Increment widen_mults_inserted.
5416 (convert_plusminus_to_widen): Increment maccs_inserted.
5417 (convert_mult_to_fma): Increment fmas_inserted.
5418 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5419 calls to statistics_counter_event.
5421 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5423 PR rtl-optimization/48455
5424 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5425 `temp_costs->mem_cost'.
5427 2011-04-13 Jan Hubicka <jh@suse.cz>
5429 * ipa-inline.h: New file.
5430 * ipa-inline-analysis.c: New file. Broken out of ...
5431 * ipa-inline.c: ... this file; update toplevel comment;
5432 include ipa-inline.h
5433 (inline_summary): Move to ipa-inline.h
5434 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5435 ipa-inline-analysis.c.
5436 (cgraph_estimate_time_after_inlining): Rename to
5437 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5438 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5439 to estimate_edge_growth.
5440 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5441 rename to estimate_size_after_inlining.
5442 (cgraph_mark_inline_edge): Update for new naming convention.
5443 (cgraph_check_inline_limits): Likewise.
5444 (cgraph_edge_badness): Likewise.
5445 (cgraph_decide_recursive_inlining): Likewise.
5446 (cgraph_decide_inlining_of_small_functions): Likewise.
5447 (cgraph_decide_inlining_incrementally): Likewise.
5448 (cgraph_estimate_growth): Rename to estimate_growth; move to
5449 ipa-inline-analysis.c.
5450 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5451 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5452 (compute_inline_parameters): Likewise.
5453 (compute_inline_parameters_for_current): Likewise.
5454 (pass_inline_parameters): Likewise.
5455 (inline_indirect_intraprocedural_analysis): Likewise.
5456 (analyze_function): Rename to inline_analyze_function; likewise.
5457 (add_new_function): Move to ipa-inline-analysis.c.
5458 (inline_generate_summary): Likewise.
5459 (inline_read_summary): Likewise.
5460 (inline_write_summary): Likewise.
5461 * Makefile.in (ipa-inline-analysis.c): New file.
5463 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5465 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5466 * configure: Regenerate.
5468 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5470 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5471 instead of tree_common.
5472 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5474 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5475 TS_TYPED rather than TS_COMMON.
5476 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5478 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5481 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5482 r20 around calls of __tablejump_elpm__
5484 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5487 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5489 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5491 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5493 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5494 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5495 (cfi_vec): New typedef.
5496 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5497 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5498 (cie_cfi_vec): New static variable.
5499 (cie_cfi_head): Delete.
5500 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5501 declaration changed. Use vector rather than list operations.
5502 (new_cfi): Don't initialize the dw_cfi_next field.
5503 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5504 rather than list operations.
5505 (lookup_cfa): Use vector rather than list operations.
5506 (output_cfis): New argument upto. Accept a cfi_vec rather than
5507 a dw_cfi_ref list head as argument. All callers changed.
5508 Iterate over the vector using upto as a maximum index.
5509 (output_all_cfis): New static function.
5510 (output_fde): Use vector rather than list operations. Use the
5511 new upto argument for output_cfis rather than manipulating a
5513 (dwarf2out_begin_prologue): Change initializations to match
5515 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5516 from the vector length rather than searching for the end of a list.
5517 Use output_all_cfis.
5518 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5520 2011-04-13 Nick Clifton <nickc@redhat.com>
5522 * config/rx/rx.md (movmemsi): Do not use this pattern when
5523 volatile pointers are involved.
5525 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5527 * config/i386/sse.md (pinsrbits): Remove.
5528 (sse2_packsswb): Merge with *avx_packsswb.
5529 (sse2_packssdw): Merge with *avx_packssdw.
5530 (sse2_packuswb): Merge with *avx_packuswb.
5531 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5532 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5533 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5534 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5535 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5536 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5537 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5538 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5539 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5540 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5541 (sse2_loadld): Merge with *avx_loadld.
5542 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5543 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5544 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5545 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5546 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5548 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5550 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5552 * print-tree.c (print_node): Likewise.
5553 * tree-inline.c (copy_tree_r): Likewise.
5554 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5555 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5556 instead of TS_COMMON.
5557 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5558 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5559 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5560 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5561 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5563 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5565 (TREE_CHAIN): Check for a TS_COMMON structure.
5566 (TREE_TYPE): Check for a TS_TYPED structure.
5568 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5570 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5571 cgraph_get_create_node instead of cgraph_node.
5573 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5575 * c-parser.c (c_parser_initelt): Updated call to
5576 objc_build_message_expr.
5577 (c_parser_postfix_expression): Likewise.
5579 2011-04-12 Kai Tietz <ktietz@redhat.com>
5581 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5582 MASK_MS_BITFIELD_LAYOUT bit.
5584 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5586 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5587 assert it is always true.
5588 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5591 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5593 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5594 compiling Objective-C to be more efficient.
5596 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5598 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5601 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5603 * recog.h, genoutput.c, optabs.c: Revert last patch.
5605 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5608 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5610 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5612 * recog.h (insn_operand_data): Add an "allows_mem" field.
5613 * genoutput.c (output_operand_data): Initialize it.
5614 * optabs.c (maybe_legitimize_operand_same_code): New function.
5615 (maybe_legitimize_operand): Use it when matching the original
5618 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5620 * genpreds.c (process_define_predicate): Move most processing
5621 to gensupport.c. Continue to validate the expression.
5622 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5623 (process_define_predicate): Move processing to gensupport.c.
5624 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5625 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5626 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5628 (valid_predicate_name_p): New function, split out from old
5629 genpreds.c:process_define_predicate.
5630 (process_define_predicate): New function, combining code from
5631 old genpreds.c and genrecog.c functions.
5632 (process_rtx): Call it for DEFINE_PREDICATE and
5633 DEFINE_SPECIAL_PREDICATE.
5635 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5637 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5638 size of a '%A' memory reference.
5639 (T_DREG, T_QREG): New neon_builtin_type_bits.
5640 (arm_init_neon_builtins): Assert that the load and store operands
5641 are neon_struct_operands.
5642 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5643 (NEON_ARG_MEMORY): New builtin_arg.
5644 (neon_dereference_pointer): New function.
5645 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5646 Handle NEON_ARG_MEMORY.
5647 (arm_expand_neon_builtin): Update after above interface changes.
5648 Use NEON_ARG_MEMORY for loads and stores.
5649 * config/arm/predicates.md (neon_struct_operand): New predicate.
5650 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5651 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5652 (V_four_elem): Tweak formatting.
5653 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5654 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5655 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5656 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5657 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5658 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5659 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5660 Use %A in the output template.
5661 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5662 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5663 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5664 the width of the memory access. Remove post-increment.
5665 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5667 2011-04-12 Nick Clifton <nickc@redhat.com>
5669 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5670 instruction for interrupt handlers if the target is the basic V850
5672 (expand_epilogue): Likewise.
5674 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5676 PR rtl-optimization/48549
5677 * combine.c (propagate_for_debug): Also stop after BB_END of
5678 this_basic_block. Process LAST and just stop processing after it.
5679 (combine_instructions): If last_combined_insn has been deleted,
5680 set last_combined_insn to its PREV_INSN.
5682 2011-04-12 Richard Guenther <rguenther@suse.de>
5684 PR tree-optimization/46076
5685 * gimple.h (struct gimple_statement_call): Add fntype field.
5686 (gimple_call_fntype): Adjust.
5687 (gimple_call_set_fntype): New function.
5688 * gimple.c (gimple_build_call_1): Set the call function type.
5689 * gimplify.c (gimplify_call_expr): Preserve the function
5690 type the frontend used for the call.
5691 (gimplify_modify_expr): Likewise.
5692 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5694 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5696 * tree-ssa.c (useless_type_conversion_p): Function pointer
5697 conversions are useless.
5699 2011-04-12 Martin Jambor <mjambor@suse.cz>
5701 * cgraph.h (cgraph_node): Remove function declaration.
5702 (cgraph_create_node): Declare.
5703 (cgraph_get_create_node): Likewise.
5704 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5705 Updated all callers.
5706 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5707 the decl does not already exist. Call cgraph_get_create_node instead
5709 (cgraph_get_create_node): New function.
5710 (cgraph_same_body_alias): Update comment.
5711 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5712 assert it does not return NULL.
5713 (cgraph_update_edges_for_call_stmt): Likewise.
5714 (cgraph_clone_edge): Likewise.
5715 (cgraph_create_virtual_clone): Likewise.
5716 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5717 instead of cgraph_node.
5718 (cgraph_add_new_function): Call cgraph_create_node or
5719 cgraph_get_create_node instead of cgraph_node.
5720 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5721 instead of cgraph_node.
5722 (record_eh_tables): Likewise.
5723 (mark_address): Likewise.
5724 (mark_load): Likewise.
5725 (build_cgraph_edges): Call cgraph_get_create_node instead
5727 (rebuild_cgraph_edges): Likewise.
5728 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5729 instead of cgraph_node.
5730 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5732 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5733 cgraph_create_node instead of cgraph_node.
5734 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5736 * lto-cgraph.c (input_node): Likewise.
5737 * lto-streamer-in.c (input_function): Likewise.
5738 * varasm.c (mark_decl_referenced): Likewise.
5739 (assemble_alias): Likewise.
5741 2011-04-12 Martin Jambor <mjambor@suse.cz>
5743 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5744 instead of cgraph_node and assert it does not return NULL.
5745 * lto-streamer-in.c (lto_read_body): Likewise.
5746 * omp-low.c (new_omp_context): Likewise.
5747 (create_task_copyfn): Likewise.
5748 * tree-emutls.c (lower_emutls_function_body): Likewise.
5749 * matrix-reorg.c (transform_allocation_sites): Likewise.
5751 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5754 * c-typeck.c (build_asm_expr): Error out on attempts to use
5755 void type outputs or inputs for constraints that allow reg or
5758 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5759 Richard Earnshaw <rearnsha@arm.com>
5762 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5763 to use sign-magnitude offsets. Reject unsupported unaligned
5764 cases. Add detailed description in comments.
5765 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5766 condition from TARGET_32BIT to TARGET_ARM.
5768 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5770 * tree.h (struct typed_tree): New.
5771 (struct tree_common): Include it instead of tree_base.
5772 (TREE_TYPE): Update for new location of type field.
5773 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5774 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5775 (union tree_node): Add typed field.
5776 * treestruct.def (TS_TYPED): New.
5777 * lto-streamer.c (check_handled_ts_structures): Handle it.
5778 * tree.c (MARK_TS_TYPED): New macro.
5779 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5781 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5783 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5784 (force_nonfallthru): Do not alter the loop nest if no basic block
5787 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5789 * config/i386/sse.md (VI): New mode iterator.
5791 (AVX256MODEI): Ditto.
5792 (AVXMODEF4P): Ditto.
5793 (avxvecpsmode): Ditto.
5794 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5795 (sse2_andnot<mode>3): New expander.
5796 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5797 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5798 (<any_logic:code><mode>3): Use VI mode iterator.
5799 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5800 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5801 (*andnottf3): Handle AVX three-operand constraints.
5802 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5804 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5805 Robert Millan <rmh@gnu.org>
5807 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5808 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5809 GNU_USER_DYNAMIC_LINKER64): Define.
5810 (REG_NAME): Don't undefine.
5811 (MD_UNWIND_SUPPORT): Undefine.
5812 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5813 (REG_NAME): Don't undefine.
5814 (MD_UNWIND_SUPPORT): Undefine.
5815 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5817 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5819 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5820 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5822 2011-04-11 Xinliang David Li <davidxl@google.com>
5824 * value-profile.c (check_ic_target): New function.
5825 (gimple_ic_transform): Sanity check indirect call target.
5826 * gimple-low.c (gimple_check_call_args): Interface change.
5827 (gimple_check_call_matching_types): New function.
5828 * tree-inline.c (tree_can_inline_p): Call new function.
5830 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5832 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5833 tree-pretty-print.h & realmpfr.h.
5835 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5838 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5839 (setup_allocno_and_important_classes): Ditto.
5841 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5843 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5844 GNU_USER_DYNAMIC_LINKER.
5845 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5846 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5847 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5848 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5849 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5850 GNU_USER_TARGET_OS_CPP_BUILTINS.
5851 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5852 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5853 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5854 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5855 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5856 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5857 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5858 GNU_USER_TARGET_OS_CPP_BUILTINS.
5859 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5860 GNU_USER_DYNAMIC_LINKER.
5861 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5862 GNU_USER_TARGET_OS_CPP_BUILTINS.
5863 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5864 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5865 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5866 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5867 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5868 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5869 GNU_USER_DYNAMIC_LINKER64): Remove.
5870 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5871 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5872 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5873 GNU_USER_DYNAMIC_LINKER.
5874 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5875 GNU_USER_TARGET_OS_CPP_BUILTINS.
5876 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5877 GNU_USER_TARGET_OS_CPP_BUILTINS.
5878 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5879 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5880 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5881 GNU_USER_TARGET_OS_CPP_BUILTINS.
5882 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5883 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5884 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5885 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5886 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5887 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5888 GNU_USER_DYNAMIC_LINKER.
5889 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5890 GNU_USER_TARGET_OS_CPP_BUILTINS.
5891 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5892 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5893 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5894 GNU_USER_DYNAMIC_LINKER.
5895 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5896 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5897 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5899 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5900 GNU_USER_DYNAMIC_LINKER.
5901 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5902 GNU_USER_DYNAMIC_LINKERN32.
5903 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5904 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5905 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5906 GNU_USER_DYNAMIC_LINKER32.
5907 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5909 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5910 GNU_USER_DYNAMIC_LINKER.
5911 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5912 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5913 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5914 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5915 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5916 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5917 GNU_USER_DYNAMIC_LINKER32.
5918 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5919 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5920 GNU_USER_DYNAMIC_LINKER.
5921 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5922 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5923 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5924 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5925 GNU_USER_DYNAMIC_LINKER64.
5926 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5927 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5928 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5929 GNU_USER_DYNAMIC_LINKER.
5930 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5931 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5932 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5933 GNU_USER_DYNAMIC_LINKER.
5934 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5935 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5936 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5937 GNU_USER_DYNAMIC_LINKER32.
5938 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5939 GNU_USER_DYNAMIC_LINKER64.
5940 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5941 GNU_USER_DYNAMIC_LINKER64.
5942 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5943 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5944 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5945 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5946 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5948 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5950 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5951 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5952 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5953 GNU_USER_DYNAMIC_LINKER.
5954 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5955 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5956 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5957 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5958 GNU_USER_DYNAMIC_LINKER64.
5959 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5960 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5961 GNU_USER_LINK_EMULATION.
5962 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5963 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5964 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5965 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5966 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5967 CPP_SPEC, CC1_SPEC): Remove.
5968 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5969 (GNU_USER_DYNAMIC_LINKER): Define.
5970 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5971 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5972 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5973 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5974 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5975 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5976 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5977 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5978 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5979 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5980 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5981 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5982 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5983 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5984 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5985 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5986 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5987 GNU_USER_DYNAMIC_LINKER.
5988 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5989 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5990 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5991 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5992 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5993 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5994 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5995 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5996 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
5997 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
5999 2011-04-11 Kai Tietz <ktietz@redhat.com>
6003 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6004 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6006 (ix86_is_msabi_thiscall): Removed.
6007 (ix86_is_type_thiscall): Likewise.
6008 (ix86_get_callcvt): New function.
6009 (ix86_comp_type_attributes): Simplify check.
6010 (ix86_function_regparm): Use ix86_get_callcvt for calling
6011 convention attribute checks.
6012 (ix86_return_pops_args): Likewise.
6013 (ix86_static_chain): Likewise.
6014 (x86_this_parameter): Likewise.
6015 (x86_output_mi_thunk): Likewise.
6016 (ix86_function_type_abi): Optimize check for types without attributes.
6017 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6018 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6019 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6021 (IX86_BASE_CALLCVT): Helper macro.
6022 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6023 Use ix86_get_callcvt for calling convention attribute checks and avoid
6024 symbol-decoration for stdcall in TARGET_RTD case.
6025 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6027 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6030 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6032 * config/i386/sse.md (VI_128): New mode iterator.
6033 (VI12_128): Rename from SSEMODE12.
6034 (VI14_128): Rename from SSEMODE14.
6035 (VI124_128): New mode iterator.
6036 (VI24_128): Rename from SSEMODE248.
6037 (VI248_128): Rename from SSEMODE248.
6038 (SSEMODE124C8): Remove.
6039 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6040 (*sse2_<plusminus_insn><mode>3): Merge with
6041 *avx_<plusminus_insn><mode>3.
6042 (*mulv8hi3): Merge with *avx_mulv8hi3.
6043 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6044 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6045 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6046 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6047 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6048 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6049 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6050 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6051 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6052 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6053 (*<smaxmin:code>v8hi3): Ditto.
6054 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6055 (*<smaxmin:code>v16qi3): Ditto.
6056 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6057 (*sse2_eq<mode>3): Ditto.
6058 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6059 (*sse2_gt<mode>3): Ditto.
6060 (vcondv2di): Split out of vcond<mode>.
6061 (vconduv2di): Split out of vcondu<mode>.
6063 2011-04-11 Richard Guenther <rguenther@suse.de>
6065 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6066 before calling tree_low_cst.
6068 2011-04-11 Richard Guenther <rguenther@suse.de>
6070 * stor-layout.c (layout_type): Compute all array index size operations
6071 in the original type.
6072 (initialize_sizetypes): Add comment.
6073 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6075 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6077 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6079 2011-04-11 Martin Jambor <mjambor@suse.cz>
6081 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6082 of cgraph_node, handle NULL return value.
6083 (cgraph_global_info): Likewise.
6084 (cgraph_rtl_info): Likewise.
6085 * tree-inline.c (estimate_num_insns): Likewise.
6086 * gimplify.c (unshare_body): Likewise.
6087 (unvisit_body): Likewise.
6088 (gimplify_body): Likewise.
6089 * predict.c (optimize_function_for_size_p): Likewise.
6090 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6091 (call_may_clobber_ref_p_1): Likewise.
6092 * varasm.c (function_section_1): Likewise.
6093 (assemble_start_function): Likewise.
6095 2011-04-11 Martin Jambor <mjambor@suse.cz>
6097 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6099 * final.c (rest_of_clean_state): Likewise.
6100 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6101 * passes.c (pass_init_dump_file): Likewise.
6102 (execute_all_ipa_transforms): Likewise.
6103 (function_called_by_processed_nodes_p): Likewise.
6104 * predict.c (maybe_hot_frequency_p): Likewise.
6105 (probably_never_executed_bb_p): Likewise.
6106 (compute_function_frequency): Likewise.
6107 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6108 (unnest_nesting_tree_1): Likewise.
6109 (lower_nested_functions): Likewise.
6110 * tree-optimize.c (execute_fixup_cfg): Likewise.
6111 (tree_rest_of_compilation): Likewise.
6112 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6113 * tree-sra.c (ipa_early_sra): Likewise.
6114 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6115 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6116 * ipa.c (record_cdtor_fn): Likewise.
6117 * ipa-inline.c (cgraph_early_inlining): Likewise.
6118 (compute_inline_parameters_for_current): Likewise.
6119 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6120 * ipa-pure-const.c (local_pure_const): Likewise.
6121 * ipa-split.c (split_function): Likewise.
6122 (execute_split_functions): Likewise.
6123 * cgraphbuild.c (build_cgraph_edges): Likewise.
6124 (rebuild_cgraph_edges): Likewise.
6125 (cgraph_rebuild_references): Likewise.
6126 (remove_cgraph_callee_edges): Likewise.
6127 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6128 (verify_cgraph_node): Likewise.
6129 (cgraph_analyze_functions): Likewise.
6130 (cgraph_preserve_function_body_p): Likewise.
6131 (save_inline_function_body): Likewise.
6132 (save_inline_function_body): Likewise.
6133 * tree-inline.c (copy_bb): Likewise.
6134 (optimize_inline_calls): Likewise.
6136 2011-04-11 Martin Jambor <mjambor@suse.cz>
6138 PR tree-optimization/48195
6139 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6140 ipa_check_create_edge_args.
6141 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6142 ipa_check_create_edge_args.
6143 * ipa-inline.c (inline_generate_summary): Do not call
6144 ipa_check_create_node_params and ipa_check_create_edge_args.
6145 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6146 ipa_check_create_edge_args.
6148 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6150 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6152 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6153 * function.c (record_hard_reg_sets): Likewise.
6154 * ira.c (compute_regs_asm_clobbered): Likewise.
6155 * sched-deps.c (sched_analyze_1): Likewise.
6156 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6158 2011-04-09 Xinliang David Li <davidxl@google.com>
6160 PR tree-optimization/PR48484
6161 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6162 has_valid_pred lazily
6164 2011-04-09 Duncan Sands <baldrick@free.fr>
6166 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6168 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6170 * combine.c (combine_validate_cost): Adjust comments. Set registered
6171 cost of I0 to zero at the end, if any.
6173 2011-04-08 Xinliang David Li <davidxl@google.com>
6175 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6176 to insane profile data.
6178 2011-04-08 Xinliang David Li <davidxl@google.com>
6180 * ipa-cp.c (ipcp_update_profiling): Correct
6181 negative scale factor due to insane profile data.
6183 2011-04-08 Xinliang David Li <davidxl@google.com>
6185 * final.c (dump_basic_block_info): New function.
6186 (final): Dump basic block.
6187 (final_scan_insn): Remove old dump.
6189 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6192 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6195 2011-04-08 Michael Matz <matz@suse.de>
6198 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6200 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6201 * rtl.h (rebuild_jump_labels_chain): Declare.
6202 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6203 insns inserted on edges.
6205 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6207 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6208 * config/arm/arm-arches.def: New.
6209 * config/arm/arm-opts.h: New.
6210 * config/arm/genopt.sh: New.
6211 * config/arm/arm-tables.opt: New (generated).
6212 * config/arm/arm.c (arm_handle_option, arm_target_help,
6213 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6214 (all_architectures): Get most table contents from arm-arches.def.
6215 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6216 arm_selected_tune here.
6217 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6218 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6219 (march=, mcpu=, mtune=): Use Enum and Var.
6220 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6221 (arm.o): Update dependencies.
6223 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6225 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6227 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6228 (write_typed_alloc_defns): Likewise.
6229 (main): Calls write_typed_alloc_defns with output_header.
6231 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6234 * ira-color.c (setup_profitable_hard_regs): Add comments.
6235 Don't take prohibited hard regs into account.
6236 (setup_conflict_profitable_regs): Rename to
6237 get_conflict_profitable_regs.
6238 (check_hard_reg_p): Check prohibited hard regs.
6240 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6242 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6243 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6244 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6246 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6249 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6250 move from floating point to shift amount register.
6251 (emit_move_sequence): Remove secondary reload support for floating
6252 point to shift amount amount register copies.
6253 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6254 amount register copies.
6255 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6256 register, return false if mode isn't a scalar integer mode.
6257 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6259 2011-04-08 Richard Guenther <rguenther@suse.de>
6261 * gimple.c (gimple_call_flags): Remove kludge.
6263 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6265 * sel-sched.c (sel_region_init): Move call to
6266 sel_setup_region_sched_flags after setup_current_loop_nest.
6268 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6270 PR rtl-optimization/48272
6271 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6272 init_insn_reg_pressure_info. Adjust a caller.
6273 * sched-int.h (init_insn_reg_pressure_info): Declare.
6274 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6275 when sched-pressure is enabled.
6277 2011-04-08 Richard Guenther <rguenther@suse.de>
6279 * gimple.c (gimple_set_modified): Do not queue calls to
6280 MODIFIED_NORETURN_CALLS here ...
6281 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6283 2011-04-08 Richard Guenther <rguenther@suse.de>
6286 * toplev.c (lang_dependent_init): Do not open asm_out_file
6287 in WPA mode, nor perform debug machinery initialization.
6288 (finalize): Do not unlink asm_out_file in WPA mode.
6290 2011-04-08 Richard Guenther <rguenther@suse.de>
6292 * gimple.h (gimple_call_fntype): New function.
6293 (gimple_call_return_type): Use it.
6294 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6295 * gimple-low.c (gimple_check_call_args): Likewise.
6296 * gimple.c (gimple_call_flags): Likewise.
6297 (gimple_call_arg_flags): Likewise.
6298 (gimple_call_return_flags): Likewise.
6299 * tree-cfg.c (verify_gimple_call): Likewise.
6300 (do_warn_unused_result): Likewise.
6301 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6302 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6304 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6306 PR rtl-optimization/48235
6307 * sel-sched.c (code_motion_process_successors): Recompute the last
6308 insn in basic block if control flow changed.
6309 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6310 Update condition for ilist_remove.
6312 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6314 PR rtl-optimization/48302
6315 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6316 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6317 it to record added preheader blocks.
6318 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6319 on to sel_add_loop_preheaders.
6320 (sel_region_init): Move call to setup_current_loop_nest after
6323 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6326 * cfgloop.h (loop_has_exit_edges): New helper.
6327 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6329 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6330 that have no exit edges.
6332 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6334 PR rtl-optimization/48442
6335 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6336 all callers. Adjust assert.
6338 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6340 PR tree-optimization/48377
6341 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6342 is_packed to true even for types with smaller TYPE_ALIGN than
6345 2011-04-08 Richard Guenther <rguenther@suse.de>
6348 * doc/tm.texi: Re-generate.
6350 2011-04-08 Wei Guozhi <carrot@google.com>
6353 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6354 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6355 * config/arm/arm.md (*push_multi): Change the length computation to
6358 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6360 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6361 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6362 * doc/tm.texi: Regenerate.
6363 * system.h (ASM_OUTPUT_BSS): Poison.
6364 * varasm.c (asm_output_bss): Remove function.
6365 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6367 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6368 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6369 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6370 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6372 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6374 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6376 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6378 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6380 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6383 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6385 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6386 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6387 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6389 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6390 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6391 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6392 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6393 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6394 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6395 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6396 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6397 options. Don't map other m68k options manually. Don't handle
6398 old-style options as canonical.
6399 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6400 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6402 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6404 * basic-block.h (force_nonfallthru): Move to...
6405 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6406 (force_nonfallthru): ...here.
6407 * cfghooks.c (force_nonfallthru): New function.
6408 * cfgrtl.c (force_nonfallthru): Rename into...
6409 (rtl_force_nonfallthru): ...this.
6410 (commit_one_edge_insertion): Do not set AUX field.
6411 (commit_edge_insertions): Do not discover new basic blocks.
6412 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6413 (cfg_layout_rtl_cfg_hooks): Likewise.
6414 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6415 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6416 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6418 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6420 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6423 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6425 * config/i386/sse.md: Update copyright year.
6426 (avxcvtvecmode): Remove.
6427 (sse_movhlps): Merge with *avx_movhlps.
6428 (sse_movlhps): Merge with *avx_movlhps.
6429 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6430 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6431 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6432 (sse_loadhps): Merge with *avx_loadhps.
6433 (sse_storelps): Merge with *avx_storelps.
6434 (sse_loadlps): Merge with *avx_loadlps.
6435 (sse_movss): Merge with *avx_movss.
6436 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6437 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6438 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6439 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6440 (vec_set<mode>_0): Ditto.
6441 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6442 (sse4_1_insertps): Merge with *avx_insertps.
6443 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6444 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6445 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6446 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6447 (sse2_storehpd): Merge with *avx_storehpd.
6448 (sse2_loadhpd): Merge with *avx_loadhpd.
6449 (sse2_loadlpd): Merge with *avx_loadlpd.
6450 (sse2_movsd): Merge with *avx_movsd.
6451 (*vec_concatv2df): Merge with *vec_concatv2df.
6453 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6456 * combine.c (combine_instructions): Add last_combined_insn,
6457 update it if insn is after it, pass it to all try_combine calls.
6458 (try_combine): Add last_combined_insn parameter, pass it instead of
6459 i3 to propagate_for_debug.
6461 2011-04-07 Nick Clifton <nickc@redhat.com>
6463 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6464 to handle MDR <-> data register transfers.
6465 (movhi_internal): Likewise.
6467 2011-04-07 Alan Modra <amodra@gmail.com>
6469 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6470 previous stack info.
6472 2011-04-07 Tom de Vries <tom@codesourcery.com>
6475 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6476 flow_find_cross_jump. Swap variables to implement backward replacement.
6477 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6479 2011-04-07 Tom de Vries <tom@codesourcery.com>
6482 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6483 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6485 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6486 src1 or src2. Redirect edges to the last basic block. Update
6487 frequency and count on multiple basic blocks in case of fallthru.
6489 2011-04-07 Tom de Vries <tom@codesourcery.com>
6492 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6494 (old_insns_match_p): Change return type. Replace return false/true
6495 with return dir_none/dir_both. Use can_replace_by.
6496 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6497 direction from dir_p. Register replacement direction in dir, last_dir
6498 and afterlast_dir. Handle new return type of old_insns_match_p using
6499 merge_dir. Return replacement direction in dir_p.
6500 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6501 return type of old_insns_match_p.
6502 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6503 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6504 flow_find_cross_jump.
6505 * basic-block.h (enum replace_direction): New type.
6506 (flow_find_cross_jump): Add parameter to declaration.
6508 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6510 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6511 (AVXMODEDCVTPS2DQ): Ditto.
6512 (VEC_FLOAT_MODE): Ditto.
6513 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6514 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6515 (<any_logic:code><mode>3): Use VF mode iterator.
6516 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6517 Use VF mode iterator.
6518 (copysign<mode>3): Use VF mode iterator.
6519 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6520 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6521 (*<any_logic:code><MODEF:mode>3): Merge with
6522 *avx_<any_logic:code><MODEF:mode>3.
6523 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6524 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6525 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6526 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6527 (sse2_cvtdq2ps): Use %v modifier.
6528 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6529 (avx_cvtps2dq<avxmodesuffix>): Remove.
6530 (sse2_cvtps2dq): Use %v modifier.
6531 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6532 (avx_cvttps2dq<avxmodesuffix>): Remove.
6533 (sse2_cvttps2dq): Use %v modifier.
6534 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6535 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6536 (sse2_cvtsd2siq): Fix insn template.
6537 (sse2_cvtsd2siq_2): Ditto.
6538 (sse2_cvttsd2siq): Ditto.
6539 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6540 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6542 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6544 * gcov-io.c: Use GCC Runtime Library Exception.
6546 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6549 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6550 as base_reg whatever register reg has been eliminated to, instead
6551 of hardcoding STACK_POINTER_REGNUM.
6553 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6555 * doc/tm.texi.in: Document C target hooks as separate from general
6557 * doc/tm.texi: Regenerate.
6558 * genhooks.c (struct hook_desc): Add docname field.
6559 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6561 (hook_array): Include c-target.def.
6562 (emit_documentation): Use docname field in output.
6563 (emit_init_macros): Take docname argument. Only emit definitions
6564 for hooks matching docname.
6565 (main): Expect additional arguments in all cases. Pass argument
6566 to emit_init_macros.
6567 * target.def: Move initial macro definitions and comments to
6568 target-hooks-macros.h.
6569 (gcc_targetcm): Move to c-family/c-target.def.
6570 * target.h (targetcm): Move declaration to c-family/c-target.h.
6571 * targhooks.c (default_handle_c_option): Move to
6573 * targhooks.h (default_handle_c_option): Move declaration to
6574 c-family/c-common.h.
6575 * target-hooks-macros.h: New file.
6576 * config.gcc (target_has_targetcm): Define and use to add to
6577 c_target_objs and cxx_target_objs.
6578 * config/default-c.c: New file.
6579 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6580 of target.h and target-def.h.
6581 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6582 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6583 darwin_check_cfstring_format_arg): Make static.
6584 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6585 TARGET_STRING_OBJECT_REF_TYPE_P,
6586 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6587 * config/darwin-protos.h (darwin_objc_construct_string,
6588 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6590 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6591 TARGET_STRING_OBJECT_REF_TYPE_P,
6592 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6593 * config/t-darwin (darwin-c.o): Update dependencies.
6594 * system.h (TARGET_HAS_TARGETCM): Poison.
6595 * Makefile.in (TARGET_H): Update.
6596 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6597 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6598 (default-c.o): New target.
6599 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6600 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6601 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6603 (build/genhooks.o): Update dependencies.
6605 2011-04-06 Richard Guenther <rguenther@suse.de>
6607 * ipa-inline.c (enum inlining_mode): Remove.
6608 (cgraph_flatten): Use some other token.
6609 (cgraph_edge_early_inlinable_p): New function, split out from ...
6610 (cgraph_perform_always_inlining): New function, split out from ...
6611 (cgraph_decide_inlining_incrementally): ... here.
6612 (cgraph_mark_inline_edge): Adjust.
6613 (cgraph_early_inlining): Re-structure.
6614 (pass_early_inline): Require SSA form.
6616 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6617 Julian Brown <julian@codesourcery.com>
6618 Mark Shinwell <shinwell@codesourcery.com>
6620 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6621 LO_REGS only for Thumb-1.
6622 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6623 be used in short instructions when optimising for size on Thumb-2.
6625 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6627 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6628 associated with user returns to be preserved.
6630 2011-04-06 Tristan Gingold <gingold@adacore.com>
6632 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6633 symbol_queue_size, DBXOUT_DECR_NESTING,
6634 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6635 if XCOFF_DEBUGGING_INFO.
6637 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6639 * config/i386/i386.md (attribute isa): New.
6640 (attribute enabled): New.
6641 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6642 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6643 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6644 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6645 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6646 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6647 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6648 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6650 * config/i386/sse.md (VF): New mode iterator.
6654 (SSEMODEF4): Remove.
6655 (attribute sse): Handle V8SF and V4DF modes.
6656 (<absneg:code><mode>2): Use VF mode iterator.
6657 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6659 (<plusminus_insn><mode>3): Use VF mode iterator.
6660 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6661 Use VF mode iterator.
6662 (<sse>_vm<plusminus_insn><mode>3): Merge with
6663 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6664 (mul<mode>3): Use VF mode iterator.
6665 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6666 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6668 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6669 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6670 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6671 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6673 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6674 Use VF1 mode iterator.
6675 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6676 (sqrt<VF2:mode>2): New expander.
6677 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6678 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6679 and sqrtv2df2. Use VF mode iterator.
6680 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6682 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6683 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6684 Use VF1 mode iterator.
6685 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6686 (<smaxmin:code><mode>3): Use VF mode iterator.
6687 (*<smaxmin:code><mode>3_finite): Merge with
6688 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6689 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6690 (<sse>_vm<smaxmin:code><mode>2): Merge with
6691 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6692 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6694 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6696 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6697 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6698 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6699 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6700 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6702 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6703 Use VF_128 mode iterator.
6704 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6706 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6707 VF_128 mode iterator.
6708 (vcond<mode>): Use VF mode iterator.
6709 * config/i386/predicates.md (sse_comparison_operator): Merge with
6710 avx_comparison_float_operator. Do not declare as special_predicate.
6711 * config/i386/i386.c (struct builtin_description): Update for renamed
6713 (ix86_expand_args_builtin): Ditto.
6714 (ix86_expand_sse_compare_mask): Ditto.
6716 2011-04-06 Richard Guenther <rguenther@suse.de>
6718 * tree-inline.c (estimate_num_insns): For calls simply account
6719 for all passed arguments and a used return value.
6721 2011-04-06 Richard Guenther <rguenther@suse.de>
6723 PR tree-optimization/47663
6724 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6725 call_stmt_time fields.
6726 (cgraph_edge_inlinable_p): Declare.
6727 (cgraph_edge_recursive_p): New inline function.
6728 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6729 (cgraph_clone_edge): Copy it.
6730 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6731 Account for call stmt time.
6732 (cgraph_estimate_time_after_inlining): Take edge argument.
6733 (cgraph_estimate_edge_growth): Account call stmt size.
6734 (cgraph_estimate_size_after_inlining): Take edge argument.
6735 (cgraph_mark_inline_edge): Adjust.
6736 (cgraph_check_inline_limits): Likewise.
6737 (cgraph_recursive_inlining_p): Remove.
6738 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6739 (cgraph_decide_recursive_inlining): Take edge argument and
6741 (cgraph_decide_inlining_of_small_functions): Do not avoid
6742 diags for recursive inlining here.
6743 (cgraph_flatten): Adjust.
6744 (cgraph_decide_inlining_incrementally): Likewise.
6745 (estimate_function_body_sizes): Remove call cost handling.
6746 (compute_inline_parameters): Initialize caller edge call costs.
6747 (cgraph_estimate_edge_growth): New function.
6748 (cgraph_estimate_growth): Use it.
6749 (cgraph_edge_badness): Likewise.
6750 (cgraph_check_inline_limits): Take an edge argument.
6751 (cgraph_decide_inlining_of_small_functions): Adjust.
6752 (cgraph_decide_inlining): Likewise.
6753 * tree-inline.c (estimate_num_insns): Only account for call
6754 return value if it is used.
6755 (expand_call_inline): Avoid diagnostics on recursive inline
6757 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6758 (input_edge): Input edge call costs.
6760 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6762 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6764 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6766 * doc/invoke.texi (Spec Files): Fix typo.
6768 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6770 * profile.c (branch_prob): Move declaration of local variable. Remove
6771 obsolete ??? comment. Expand the location explicitly instead of using
6772 the LOCATION_FILE and LOCATION_LINE macros.
6774 2011-04-06 Wei Guozhi <carrot@google.com>
6777 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6778 (arm_cond_branch): Likewise.
6779 (arm_cond_branch_reversed): Likewise.
6780 (arm_jump): Likewise.
6781 (push_multi): Likewise.
6782 * config/arm/constraints.md (Py): New constraint.
6784 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6787 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6789 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6790 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6791 #ifdef DBX_DEBUGGING_INFO.
6793 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6796 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6797 if old and new states differ.
6799 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6801 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6802 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6803 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6804 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6805 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6807 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6808 ColdFire options to -mcpu= options.
6810 2011-04-05 Jeff Law <law@redhat.com>
6812 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6813 check if BB is a successor of LOOP->header and return
6814 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6816 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6818 * cprop.c (struct reg_use): Remove.
6819 (reg_use_table): Make an array of RTX.
6820 (find_used_regs, constprop_register, local_cprop_pass,
6821 bypass_block): Simplify users of reg_use_table.
6822 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6823 on one of the uses found by find_used_regs.
6825 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6828 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6831 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6833 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6835 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6837 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6840 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6842 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6844 * combine.c: Include obstack.h.
6845 (struct insn_link): Define.
6846 (uid_log_links): Adjust type.
6847 (FOR_EACH_LOG_LINK): New macro.
6848 (insn_link_obstack): Declare.
6849 (alloc_insn_link): Define.
6850 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6851 type of link variables.
6852 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6853 (try_combine, record_promoted_values, distribute_notes): Likewise.
6854 (distribute_links): Likewise. Tweak prototype.
6855 (clear_log_links): Delete.
6856 (adjust_for_new_dest): Call alloc_insn_link.
6857 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6859 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6861 * gcse.c (modify_mem_list): Convert to an array of VECs.
6862 (canon_modify_mem_list, compute_transp): Tweak formatting.
6863 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6864 (load_killed_in_block_p): Likewise.
6865 (record_last_mem_set_info): Likewise.
6866 (clear_modify_mem_tables): Likewise.
6868 2011-04-05 Tom de Vries <tom@codesourcery.com>
6871 * function.c (emit_use_return_register_into_block): Only define if
6874 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6876 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6878 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6880 * config/rx/rx-opts.h: New.
6881 * config/rx/rx.c (rx_cpu_type): Remove.
6882 (rx_handle_option): Don't assert that global structures are in
6883 use. Access variables via opts pointer. Defer most handling of
6884 OPT_mint_register_. Use error_at.
6885 (rx_option_override): Handle deferred OPT_mint_register_ here.
6886 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6887 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6888 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6889 (rx_cpu_types): New Enum and EnumValue entries.
6890 (mint-register=): Use Defer and use Var accordingly.
6892 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6894 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6895 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6896 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6898 (debug_free_queue, debug_nesting, symbol_queue_index):
6900 * dbxout.c: ...to here. Make static.
6902 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6904 * gcse.c (modify_pair): Define. Define a VEC of it.
6905 (canon_modify_mem_list): Convert to an array of VECs.
6906 (free_insn_expr_list_list): Delete.
6907 (clear_modify_mem_tables): Call VEC_free instead.
6908 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6909 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6910 (canon_list_insert, compute_transp): Likewise.
6912 2011-04-05 Tom de Vries <tom@codesourcery.com>
6915 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6918 2011-04-05 Tom de Vries <tom@codesourcery.com>
6921 * function.c (emit_use_return_register_into_block): New function.
6922 (thread_prologue_and_epilogue_insns): Use
6923 emit_use_return_register_into_block.
6925 2011-04-05 Tom de Vries <tom@codesourcery.com>
6928 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6931 2011-04-05 Tom de Vries <tom@codesourcery.com>
6933 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6935 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6937 * config/arm/arm.md (define_constants for unspec): Replace with
6939 (define_constants for unspecv): Replace with define_c_enum.
6940 * config/arm/neon.md (define_constants for unspec): Replace with
6943 2011-04-04 Richard Henderson <rth@redhat.com>
6946 * dwarf2out.c (output_line_info): Always emit line info from
6947 at least one section.
6948 (dwarf2out_init): Create text_section_line_info here ...
6949 (set_cur_line_info_table): ... not here.
6951 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6954 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6957 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6959 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6961 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6962 (expr_equiv_p): Remove.
6963 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6964 (hash_scan_set): Update call to insert_set_in_table.
6965 (dump_hash_table): Dump <dest, src> pair.
6966 (lookup_set): Simplify. Lookup <dest, src> pair.
6967 (compute_transp): Remove, fold heavily simplified code into...
6968 (compute_local_properties): ...here. Expect COMP and TRANSP
6970 (find_avail_set): Take set directly from struct expr.
6971 (find_bypass-set): Likewise.
6972 (bypass_block): Likewise.
6973 (cprop_insn): Likewise. Remove redundant INSN_P test.
6975 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6976 checks on form of COND from find_implicit_sets to here.
6977 (find_implicit_sets): Cleanup control flow. Split critical edges
6978 if it exposes implicit sets. Allocate/resize implicit_sets as
6980 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6981 changed something. Run df_analyze after find_implicit_sets if any
6982 edges were split. Do not allocate implicit_sets here.
6984 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6985 (gcse_obstack): Renamed to cprop_obstack.
6986 (GNEW, GNEWVEC, GNEWVAR): Remove.
6988 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6989 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6990 (gcse_alloc): Likewise, and rename to cprop_alloc.
6991 (alloc_gcse_men, free_gcse_mem): Remove.
6992 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6993 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6994 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6996 * cprop.c (oprs_not_set_p): Remove.
6997 (mark_set, mark_clobber): Remove.
6998 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6999 (reg_not_set_p): New function.
7000 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7001 (cprop_insn): Likewise.
7002 (cprop_jump): Use FOR_EACH_EDGE.
7004 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7007 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7008 (rank_for_schedule): Use scheduled_insns vector instead of
7009 last_scheduled_insn.
7010 (ok_for_early_queue_removal): Likewise.
7011 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7013 (choose_ready): Likewise.
7014 (commit_schedule): Use VEC_iterate.
7015 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7016 a dbg_cnt, use it and ensure the first insn is in the ready list.
7017 (haifa_sched_init): Allocate scheduled_insns.
7018 (sched_extend_ready_list): Don't allocate it; reserve space.
7019 (haifa_sched_finish): Free it.
7021 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7023 * optc-gen.awk: Always remove type from Variable entry before
7024 recording in var_seen.
7026 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7028 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7029 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7030 call to tidy_fallthru_edges.
7032 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7034 * doc/options.texi (ToLower): Document.
7035 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7036 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7037 * opts.h (cl_option): Add cl_tolower field.
7038 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7039 arguments with lowercase strings.
7040 * config/rx/rx.opt (mcpu=): Add ToLower.
7041 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7044 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7046 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7048 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7050 * config/vax/vax.c: Include reload.h.
7052 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7054 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7055 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7056 (sparc_preferred_reload_class): New function.
7058 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7061 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7062 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7064 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7066 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7067 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7069 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7071 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7072 (ASM_OUTPUT_ALIGNED_BSS): Define.
7074 2011-04-03 Michael Matz <matz@suse.de>
7076 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7077 and next_slot members.
7078 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7079 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7080 (lto_streamer_cache_append): Declare.
7081 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7082 unsigned index, remove offset parameter, ensure that we append
7083 or update existing entries.
7084 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7085 parameter, update next_slot for append.
7086 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7088 (lto_streamer_cache_insert_at): Likewise.
7089 (lto_streamer_cache_append): New function.
7090 (lto_streamer_cache_lookup): Use unsigned index.
7091 (lto_streamer_cache_get): Likewise.
7092 (lto_record_common_node): Don't test tree_node_can_be_shared.
7093 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7094 (lto_streamer_cache_delete): Don't free offsets member.
7095 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7096 (lto_output_string_with_length): Use lto_output_data_stream.
7097 (lto_output_tree_header): Remove ix parameter, don't write it.
7098 (lto_output_builtin_tree): Likewise.
7099 (lto_write_tree): Adjust callers to above, don't track and write
7100 offset, write unsigned index.
7101 (output_unreferenced_globals): Don't emit all global vars.
7102 (write_global_references): Use unsigned indices.
7103 (lto_output_decl_state_refs): Likewise.
7104 (write_symbol): Likewise.
7105 * lto-streamer-in.c (lto_input_chain): Move earlier.
7106 (input_function): Use unsigned index.
7107 (input_alias_pairs): Don't read and then ignore all global vars.
7108 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7109 don't pass it back, use lto_streamer_cache_append.
7110 (lto_register_var_decl_in_symtab): Use unsigned index.
7111 (lto_register_function_decl_in_symtab): Likewise.
7112 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7114 (lto_get_builtin_tree): Don't read index, use
7115 lto_streamer_cache_append.
7116 (lto_read_tree): Adjust call to lto_materialize_tree.
7118 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7119 don't use function calls in arguments to MIN.
7121 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7124 * gimple.c (gimple_type_leader_entry): Mark deletable.
7126 2011-04-03 Alan Modra <amodra@gmail.com>
7128 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7130 2011-04-03 Michael Matz <matz@suse.de>
7132 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7134 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7136 2011-04-03 Michael Matz <matz@suse.de>
7138 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7139 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7140 without function context.
7141 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7142 current_function_decl and cfun.
7144 2011-04-03 Michael Matz <matz@suse.de>
7146 * tree.c (decl_init_priority_insert): Don't create entry for
7148 (decl_fini_priority_insert): Ditto.
7149 (fields_compatible_p, find_compatible_field): Remove.
7150 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7151 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7153 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7155 * combine.c (try_combine): Remove useless local variable.
7157 2011-04-03 Richard Guenther <rguenther@suse.de>
7158 Ira Rosen <ira.rosen@linaro.org>
7160 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7161 non-variable offsets and compare the remaining bases of the two
7162 accesses instead of looking for exact same data-ref.
7164 2011-04-02 Kai Tietz <ktietz@redhat.com>
7167 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7169 * i386.c (ix86_is_msabi_thiscall): New helper function.
7170 (ix86_is_type_thiscall): New helper function.
7171 (ix86_comp_type_attributes): Handle thiscall for method-functions
7173 (init_cumulative_args): Likewise.
7174 (find_drap_reg): Likewise.
7175 (ix86_static_chain): Likewise.
7176 (x86_this_parameter): Likewise.
7177 (x86_output_mi_thunk): Likewise.
7179 2011-04-01 Olivier Hainque <hainque@adacore.com>
7180 Nicolas Setton <setton@adacore.com>
7181 Eric Botcazou <ebotcazou@adacore.com>
7183 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7184 (add_gnat_descriptive_type_attribute): New function.
7185 (gen_array_type_die): Call it.
7186 (gen_enumeration_type_die): Likewise.
7187 (gen_struct_or_union_type_die): Likewise.
7188 (modified_type_die): Likewise.
7189 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7190 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7191 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7193 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7196 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7197 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7200 2011-03-17 Richard Guenther <rguenther@suse.de>
7203 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7204 origin for decls in other ltrans units.
7205 (input_varpool_node): Likewise.
7207 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7210 * expr.c (expand_assignment): Handle all possibilities
7211 if TO_RTX is CONCAT.
7212 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7213 (store_split_bit_field): If SUBREG_REG (op0) or
7214 op0 itself has smaller mode than word, return it
7215 for offset 0 and const0_rtx for out-of-bounds stores.
7216 If word is const0_rtx, skip it.
7218 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7220 * config/h8300/h8300.c (print_operand_address): Rename to...
7221 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7222 Call h8300_print_operand and h8300_print_operand_address instead of
7223 print_operand and print_operand_address. Declare.
7224 (print_operand): Renake to...
7225 (h8300_print_operand): ...this. Make static. Adjust comments.
7226 Call h8300_print_operand instead of print_operand. Declare.
7227 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7228 (h8300_register_move_cost): Likewise.
7229 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7230 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7231 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7232 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7233 * config/h8300/h8300-protos.h (print_operand): Delete.
7234 (print_operand_address): Delete.
7236 2011-04-01 Richard Henderson <rth@redhat.com>
7239 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7240 in strict mode before dwarf4. Re-order tests to early out
7241 before switching sections.
7243 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7245 * config/h8300/constraints.md: New file.
7246 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7247 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7248 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7249 * config/h8300/predicates.md (bit_operand): Likewise.
7250 (incdec_operand): Use satisfies_constraint_M and
7251 satisfies_constraint_O. Don't use C code block.
7252 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7253 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7254 (compute_mov_length): Use satisfies_constraint_G.
7255 (fix_bit_operand): Use satisfies_constraint_U.
7256 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7257 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7258 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7259 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7260 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7261 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7262 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7263 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7264 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7265 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7266 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7267 (EXTRA_MEMORY_CONSTRAINT): Delete.
7269 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7270 Michael Meissner <meissner@linux.vnet.ibm.com>
7273 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7274 operands, as per the specifications.
7276 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7277 (vec_extract_evenv4sf): Ditto.
7278 (vec_extract_evenv8hi): Ditto.
7279 (vec_extract_evenv16qi): Ditto.
7280 (vec_extract_oddv4si): Ditto.
7282 2011-03-31 Mark Wielaard <mjw@redhat.com>
7284 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7285 high_pc attribute if the CU has no associated code. Only output
7286 DW_AT_entry_pc for CU if not generating strict dwarf and
7289 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7291 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7292 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7294 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7295 * final.c (final_start_function): Call the new function rather
7296 than using a NULL argument for dwarf2out_frame_debug.
7298 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7299 that contains the prologue.
7301 * haifa-sched.c (queue_insn): New arg REASON. All callers
7302 changed. Print it in debugging output.
7304 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7306 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7307 Split most of the code into...
7308 (begin_move_insn): ... here. New function.
7309 (ebb_sched_info): Add a pointer to it.
7310 * haifa-sched.c (scheduled_insns): New static variable.
7311 (sched_extend_ready_list): Allocate it.
7312 (schedule_block): Use it to record the order of scheduled insns.
7313 Perform RTL changes to move insns only after all scheduling
7314 decisions have been made.
7315 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7316 begin_move_insn field.
7317 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7318 * sched-int.h (struct haifa_sched_info): Remove second argument
7319 from begin_schedule_ready hook. Add new member begin_move_insn.
7320 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7321 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7323 * haifa-sched.c (prune_ready_list): New function, broken out of
7325 (schedule_block): Use it.
7327 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7329 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7331 2011-04-01 Kai Tietz <ktietz@redhat.com>
7333 * config.gcc (*-*-mingw*): Allow as option the
7334 posix threading model.
7335 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7336 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7338 (CPP_SPEC): Add pthread/no-pthread handling.
7339 (LIB_SPEC): Likewise.
7340 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7341 (LIB_SPEC): Likewise.
7342 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7343 flag to pass -pthread option for shared libgcc build.
7344 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7345 for shared libgcc build.
7346 * config/i386/t-mingw-pthread: New file.
7347 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7348 New define to enable use of library pthread by default.
7349 * config/i386/mingw.opt (pthread): New driver option.
7350 (no-pthread): New driver option.
7351 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7352 * config/i386/mingw-w64.opt: Likewise.
7354 2011-04-01 Gary Funck <gary@intrepid.com>
7356 * c-decl.c (grokdeclarator): Fix formatting.
7358 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7360 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7361 instead of n_operands.
7362 (set_storage_via_setmem): Likewise.
7363 * optabs.c (maybe_gen_insn): Likewise.
7364 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7365 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7366 (mips_expand_builtin_direct): Likewise.
7367 * config/spu/spu.c (expand_builtin_args): Likewise.
7369 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7371 * recog.h (insn_data_d): Add n_generator_args.
7372 * genoutput.c (data): Likewise.
7373 (output_insn_data): Print it.
7374 (max_opno, num_dups): Delete.
7375 (scan_operands): Just fill in "d->operand[...]".
7376 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7378 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7380 * gensupport.h (pattern_stats): New structure.
7381 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7382 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7383 (max_operand_1, max_operand_vec): Delete.
7384 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7386 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7388 * emit-rtl.c (emit_pattern_after_setloc): New function.
7389 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7390 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7391 (emit_pattern_after): New function.
7392 (emit_insn_after, emit_jump_insn_after): Call it.
7393 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7394 (emit_pattern_before_setloc): New function.
7395 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7396 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7398 (emit_pattern_before): New function.
7399 (emit_insn_before, emit_jump_insn_before): Call it.
7400 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7402 2011-03-31 Richard Henderson <rth@redhat.com>
7404 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7405 (dw_separate_line_info_entry): Remove.
7406 (enum dw_line_info_opcode): New.
7407 (dw_line_info_entry): Use it.
7408 (dw_line_info_table, dw_line_info_table_p): New.
7409 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7410 (line_info_table, line_info_label_num): Remove.
7411 (line_info_table_in_use): Remove.
7412 (separate_line_info_table): Remove.
7413 (separate_line_info_table_allocated): Remove.
7414 (separate_line_info_table_in_use): Remove.
7415 (LINE_INFO_TABLE_INCREMENT): Remove.
7416 (line_info_label_num): New.
7417 (cur_line_info_table): New.
7418 (text_section_line_info, cold_text_section_line_info): New.
7419 (separate_line_info): New.
7420 (SEPARATE_LINE_CODE_LABEL): Remove.
7421 (print_dwarf_line_table): Remove.
7422 (debug_dwarf): Don't dump it.
7423 (output_one_line_info_table): New.
7424 (output_line_info): Use it.
7425 (new_line_info_table): New.
7426 (set_cur_line_info_table): New.
7427 (dwarf2out_switch_text_section): Use it.
7428 (dwarf2out_begin_function): Likewise.
7429 (push_dw_line_info_entry): New.
7430 (dwarf2out_source_line): Rewrite for new line info tables.
7431 (dwarf2out_init): Remove dead initailizations.
7433 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7435 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7437 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7438 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7439 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7440 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7441 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7442 * opt-functions.awk (flag_init, switch_bit_fields): New.
7443 (switch_flags): Don't handle flags moved to bit-fields. Don't
7444 generate CL_MISSING_OK or CL_SAVE.
7445 * optc-gen.awk: Update to generate bit-field output as well as
7447 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7448 bit-field instead of CL_REJECT_DRIVER flag.
7449 * opts-common.c (generate_canonical_option,
7450 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7451 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7452 instead of CL_REJECT_NEGATIVE flag.
7453 * toplev.c (print_switch_values): Use cl_report bit-field instead
7456 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7458 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7459 a zero minimum index only if it is redundant.
7461 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7463 PR rtl-optimization/48381
7464 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7465 instead of ira_class_hard_reg_index for calculating conflicting
7468 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7470 * cprop.c: Clean up hash table building.
7471 (reg_avail_info): Remove.
7472 (oprs_available_p): Remove.
7473 (record_last_reg_set_info): Remove.
7474 (record_last_set_info): Remove.
7475 (reg_available_p): New function.
7476 (gcse_constant_p): Do not treat unfolded conditions as constants.
7477 (make_set_regs_unavailable): New function.
7478 (hash_scan_set): Simplify with new reg_available_p.
7479 (compute_hash_table_work): Traverse insns stream only once.
7480 Do not compute reg_avail_info. Traverse insns in reverse order.
7481 Record implicit sets after recording explicit sets from the block.
7483 2011-03-31 Michael Matz <matz@suse.de>
7485 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7487 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7489 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7490 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7491 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7492 (h8300_mode_dependent_address_p): New function.
7493 (h8300_get_index): Make static.
7495 2011-03-31 Jeff Law <law@redhat.com>
7497 * reload1.c (elimination_effects): Fix typo in recent change.
7499 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7500 typo potentially leading to null pointer dereference.
7502 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7503 (setup_save_areas): Corresponding changes to avoid useless
7506 * jump.c (reversed_comparison_code_parts): Avoid successive return
7507 statements when REVERSE_CONDITION is defined.
7509 * expr.c (expand_assignment): Avoid useless assignments.
7510 (expand_expr_real_1): Likewise.
7511 (expand_expr_real_2): Avoid useless statements.
7513 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7515 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7517 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7520 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7522 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7525 * doc/tm.texi.in (TARGET_VERSION): Remove.
7526 * doc/tm.texi: Regenerate.
7527 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7528 * collect2.c (main): Don't use TARGET_VERSION.
7529 * mips-tdump.c (main): Don't use TARGET_VERSION.
7530 * mips-tfile.c (main): Don't use TARGET_VERSION.
7531 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7532 * config/rs6000/vxworksae.h: Remove.
7533 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7534 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7535 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7536 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7537 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7538 * config/arm/arm.h (TARGET_VERSION): Remove.
7539 * config/arm/coff.h (TARGET_VERSION): Remove.
7540 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7541 * config/arm/elf.h (TARGET_VERSION): Remove.
7542 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7543 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7544 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7545 * config/arm/pe.h (TARGET_VERSION): Remove.
7546 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7547 * config/arm/semi.h (TARGET_VERSION): Remove.
7548 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7549 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7550 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7551 * config/avr/avr.h (TARGET_VERSION): Remove.
7552 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7553 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7554 * config/frv/frv.h (TARGET_VERSION): Remove.
7555 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7556 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7557 * config/i386/darwin.h (TARGET_VERSION): Remove.
7558 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7559 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7560 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7561 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7562 * config/i386/gnu.h (TARGET_VERSION): Remove.
7563 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7564 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7565 * config/i386/linux.h (TARGET_VERSION): Remove.
7566 * config/i386/linux64.h (TARGET_VERSION): Remove.
7567 * config/i386/lynx.h (TARGET_VERSION): Remove.
7568 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7569 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7570 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7571 * config/i386/netware.h (TARGET_VERSION): Remove.
7572 * config/i386/nto.h (TARGET_VERSION): Remove.
7573 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7574 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7575 * config/ia64/elf.h (TARGET_VERSION): Remove.
7576 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7577 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7578 * config/ia64/linux.h (TARGET_VERSION): Remove.
7579 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7580 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7581 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7582 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7583 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7584 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7585 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7586 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7587 * config/m68k/linux.h (TARGET_VERSION): Remove.
7588 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7589 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7590 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7591 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7592 * config/mep/mep.h (TARGET_VERSION): Remove.
7593 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7594 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7595 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7596 * config/mips/linux.h (TARGET_VERSION): Remove.
7597 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7598 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7599 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7600 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7601 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7602 * config/pa/pa.h (TARGET_VERSION): Remove.
7603 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7604 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7605 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7606 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7607 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7608 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7609 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7610 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7611 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7612 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7613 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7614 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7615 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7616 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7617 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7618 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7619 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7620 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7621 * config/s390/linux.h (TARGET_VERSION): Remove.
7622 * config/s390/s390.h (TARGET_VERSION): Remove.
7623 * config/s390/tpf.h (TARGET_VERSION): Remove.
7624 * config/score/score.h (TARGET_VERSION): Remove.
7625 * config/sh/linux.h (TARGET_VERSION): Remove.
7626 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7627 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7628 * config/sh/sh.h (TARGET_VERSION): Remove.
7629 * config/sh/sh64.h (TARGET_VERSION): Remove.
7630 * config/sh/superh.h (TARGET_VERSION): Remove.
7631 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7632 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7633 * config/sparc/linux.h (TARGET_VERSION): Remove.
7634 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7635 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7636 TARGET_NAME32, TARGET_NAME): Remove.
7637 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7638 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7639 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7640 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7641 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7642 * config/spu/spu.h (TARGET_VERSION): Remove.
7643 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7644 * config/v850/v850.h (TARGET_VERSION): Remove.
7645 * config/vax/linux.h (TARGET_VERSION): Remove.
7646 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7647 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7648 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7650 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7653 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7654 frame-related from frame-unrelated adjustments to the stack pointer.
7656 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7658 * common.opt (fdebug-types-section): Move earlier.
7659 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7661 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7663 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7666 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7668 * tree.h (CASE_CHAIN): Define.
7669 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7670 (gimple_redirect_edge_and_branch): Likewise.
7672 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7675 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7678 2011-03-30 Jeff Law <law@redhat.com>
7680 * PR bootstrap/48371
7681 * reload1.c (reload): Fix botch in last change.
7683 * reload.h (struct reload): Fix typo introduced in last change.
7685 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7687 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7688 Undocumented. Remove help text.
7689 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7692 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7694 * doc/options.texi (NegativeAlias): Document.
7695 (Alias): Mention NegativeAlias.
7696 * opt-functions.awk: Handle NegativeAlias.
7697 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7698 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7699 * opts.h (CL_NEGATIVE_ALIAS): Define.
7700 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7701 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7703 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7705 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7706 mno-spe and mno-isel instead of mspe=no and -misel=no.
7708 2011-03-29 Mark Wielaard <mjw@redhat.com>
7710 * common.opt (fdebug-types-section): New flag.
7711 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7712 * dwarf2out.c (use_debug_types): New define.
7713 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7714 (print_die): Guard output of type unit signatures using
7716 (build_abbrev_table): Replace assert of dwarf_version >= 4
7717 with assert on use_debug_types.
7718 (size_of_die): Likewise.
7719 (unmark_dies): Likewise.
7720 (value_format): Decide AT_ref_external form on use_debug_types.
7721 (output_die): Replace dwarf_version version check guard with
7722 use_debug_types where appropriate.
7723 (modified_type_die): Likewise.
7724 (gen_reference_type_die): Likewise.
7725 (dwarf2out_start_source_file): Likewise.
7726 (dwarf2out_end_source_file): Likewise.
7727 (prune_unused_types_walk_attribs): Likewise.
7728 (dwarf2out_finish): Likewise.
7730 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7732 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7734 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7736 PR rtl-optimization/48332
7737 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7738 mode of input operand N and modeN to its actual mode.
7740 2011-03-30 Jeff Law <law@redhat.com>
7742 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7743 define accessor macro.
7744 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7745 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7746 (reg_equiv_init): Likewise.
7747 (reg_equivs_size): New variable.
7748 (reg_equiv_init_size): Remove.
7749 (allocate_initial_values): Move prototype to here from....
7750 * integrate.h (allocate_initial_values): Remove prototype.
7751 * integrate.c: Include reload.h.
7752 (allocate_initial_values): Corresponding changes.
7753 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7754 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7755 (update_equiv_regs): Corresponding changes.
7756 (ira): Corresponding changes.
7757 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7758 (push_secondary_reload): Corresponding changes.
7759 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7760 (make_memloc, find_reloads_address): Corresponding changes.
7761 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7762 (find_reloads_address_1): Corresponding changes.
7763 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7764 (refers_to_regno_for_reload_p): Corresponding changes.
7765 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7766 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7767 * reload1.c: Include ggc.h.
7768 (grow_reg_equivs): New function.
7769 (replace_pseudos_in, reload): Corresponding changes.
7770 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7771 (eliminate_regs_1, elimination_effects): Corresponding changes.
7772 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7773 (delete_output_reload): Likewise.
7774 * caller-save.c (mark_referenced_regs): Corresponding changes.
7775 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7776 * frv/predicates.md (frv_load_operand): Corresponding changes.
7777 * microblaze/microblaze.c (double_memory_operand): Corresponding
7779 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7780 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7781 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7782 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7783 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7785 * pa/pa.c (emit_move_sequence): Corresponding changes.
7786 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7788 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7791 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7792 structure modes. Don't check neon_vector_mem_operand for
7793 vector or structure modes.
7795 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7796 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7799 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7800 operand 1 and reshuffle the operands to match.
7801 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7803 2011-03-30 Christian Schüler <cschueler@gmx.de>
7806 * config/c.opt (F): Added 'Driver' to -F option.
7809 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7811 * config/darwin.opt: Added '-arch' option.
7813 2011-03-30 Nick Clifton <nickc@redhat.com>
7815 * config/rx/rx.md: Add peepholes and patterns to combine
7816 extending loads and simple arithmetic instructions.
7817 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7818 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7819 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7820 modes to use pre-decrement and post-increment addressing.
7821 (rx_is_restricted_memory_address): Add range checking of REG+INT
7823 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7824 (rx_memory_move_cost): Adjust cost of stores.
7825 (rx_adjust_insn_length): New function.
7827 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7830 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7831 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7832 matching arg00/arg01 types.
7834 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7836 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7837 last_location to UNKNOWN_LOCATION.
7839 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7842 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7845 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7846 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7849 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7851 (sparc_cpu): Likewise.
7852 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7855 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7859 PR rtl-optimization/48345
7860 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7861 hard regs for given mode from profitable regs when doing secondary
7864 2011-03-29 Jeff Law <law@redhat.com>
7867 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7868 do_not_duplicate field.
7869 (lookup_redirection_data): Corresponding changes.
7870 (create_duplicates): Always create a template block.
7871 (redirect_edges): Remove code which reused the original block
7872 when it was going to become unreachable code.
7873 (thread_block): Don't set do_not_duplicate field.
7875 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7877 * lto-opts.c (register_user_option_p, lto_register_user_option):
7878 Make type argument unsigned.
7879 * lto-streamer.h (lto_register_user_option): Make type argument
7881 * opth-gen.awk: Make CL_* macros unsigned.
7882 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7883 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7884 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7885 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7886 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7887 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7888 (find_opt): Make lang_mask argument unsigned.
7890 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7892 PR rtl-optimization/48331
7893 PR rtl-optimization/48334
7894 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7895 for any used algorithm.
7897 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7899 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7902 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7904 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7905 (alpha_option_override): Don't set alpha_sr_alias_set.
7906 (emit_frame_store_1): Use gen_frame_mem rather than calling
7908 (alpha_expand_epilogue): Ditto.
7910 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7912 PR tree-optimization/48290
7913 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7914 vectorization, check that relevant phis in the basic block after
7915 the inner loop are really inner loop's exit phis.
7917 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7920 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7921 (cached_dw_loc_list_def): New structure.
7922 (cached_dw_loc_list): New typedef.
7923 (cached_dw_loc_list_table): New variable.
7924 (cached_dw_loc_list_table_hash): New function.
7925 (cached_dw_loc_list_table_eq): Likewise.
7926 (add_location_or_const_value_attribute): Take a bool cache_p.
7927 Cache the list when the parameter is true.
7928 (gen_formal_parameter_die): Update caller.
7929 (gen_variable_die): Likewise.
7930 (dwarf2out_finish): Likewise.
7931 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7932 while generating debug info for the decl.
7933 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7934 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7935 (resolve_addr): Cache the result of resolving a chain of
7938 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7940 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7941 conflict object hard regset nodes have intersecting hard reg sets.
7943 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7944 after regstat_init_n_sets_and_refs.
7946 * ira.c: Add more comments at the top.
7947 (setup_stack_reg_pressure_class, setup_pressure_classes):
7948 Add comments how we compute the register pressure classes.
7949 (setup_allocno_and_important_classes): Add more comments.
7950 (setup_class_translate_array, reorder_important_classes)
7951 (setup_reg_class_relations): Add comments.
7953 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7956 * ira-color.c: Add 2011 to the Copyright line.
7957 (assign_hard_reg): Add more comments.
7958 (improve_allocation): Ditto.
7960 * ira-costs.c: Add 2011 to the Copyright line.
7961 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7963 (setup_regno_cost_classes_by_mode): Ditto.
7965 Initial patches from ira-improv branch:
7967 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7969 * ira-build.c (ira_create_object): Remove initialization of
7970 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7971 (ira_create_allocno): Remove initialization of
7972 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7973 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7974 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7975 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7976 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7977 Initialize ALLOCNO_ADD_DATA.
7978 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7979 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7981 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7982 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7984 * ira.c (ira_reallocate): Remove.
7985 (setup_pressure_classes): Call
7986 ira_init_register_move_cost_if_necessary. Use
7987 ira_register_move_cost instead of ira_get_register_move_cost.
7988 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7989 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7991 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7992 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7993 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7994 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7995 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7996 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7998 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
7999 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8000 (struct allocno_color_data): New.
8001 (allocno_color_data_t): New typedef.
8002 (allocno_color_data): New definition.
8003 (ALLOCNO_COLOR_DATA): New macro.
8004 (struct object_color_data): New.
8005 (object_color_data_t): New typedef.
8006 (object_color_data): New definition.
8007 (OBJECT_COLOR_DATA): New macro.
8008 (update_copy_costs, calculate_allocno_spill_cost): Call
8009 ira_init_register_move_cost_if_necessary. Use
8010 ira_register_move_cost instead of ira_get_register_move_cost.
8011 (move_spill_restore, update_curr_costs): Ditto.
8012 (allocno_spill_priority): Make it inline.
8013 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8014 (struct coalesce_data, coalesce_data_t): New.
8015 (allocno_coalesce_data): New definition.
8016 (ALLOCNO_COALESCE_DATA): New macro.
8017 (merge_allocnos, coalesced_allocno_conflict_p): Use
8018 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8019 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8020 (coalesce_allocnos): Ditto.
8021 (setup_coalesced_allocno_costs_and_nums): Ditto.
8022 (collect_spilled_coalesced_allocnos): Ditto.
8023 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8024 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8025 (coalesce_spill_slots): Ditto.
8026 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8027 free allocno_coalesce_data.
8029 * ira-conflicts.c: Fix formatting.
8030 (process_regs_for_copy): Call
8031 ira_init_register_move_cost_if_necessary. Use
8032 ira_register_move_cost instead of ira_get_register_move_cost.
8033 (build_object_conflicts): Optimize.
8035 * ira-costs.c (record_reg_classes): Optimize. Call
8036 ira_init_register_move_cost_if_necessary. Use
8037 ira_register_move_cost, ira_may_move_in_cost, and
8038 ira_may_move_out_cost instead of ira_get_register_move_cost and
8039 ira_get_may_move_cost.
8040 (record_address_regs): Ditto.
8041 (scan_one_insn): Optimize.
8042 (find_costs_and_classes): Optimize.
8043 (process_bb_node_for_hard_reg_moves): Call
8044 ira_init_register_move_cost_if_necessary. Use
8045 ira_register_move_cost instead of ira_get_register_move_cost.
8047 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8048 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8049 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8050 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8052 (ira_initiate_emit_data, ira_finish_emit_data)
8053 (create_new_allocno): New functions.
8054 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8055 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8056 Use ira_register_move_cost instead of ira_get_register_move_cost.
8058 * ira-int.h: Fix some comments.
8059 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8060 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8061 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8062 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8064 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8065 bitfield after mode. Make hard_regno a short int. Make
8066 hard_regno short. Remove first_coalesced_allocno and
8067 next_coalesced_allocno. Move mem_optimized_dest_p,
8068 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8069 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8070 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8071 temp, colorable_p. Add new member add_data.
8072 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8073 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8074 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8075 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8076 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8077 (ALLOCNO_ADD_DATA): New macro.
8078 (ira_emit_data_t): New typedef.
8079 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8080 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8081 from struct ira_allocno.
8082 (ALLOCNO_EMIT_DATA): New macro.
8083 (ira_allocno_emit_data, allocno_emit_reg): New.
8084 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8085 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8086 (OBJECT_ADD_DATA): New macro.
8087 (ira_reallocate): Remove.
8088 (ira_initiate_emit_data, ira_finish_emit_data): New.
8089 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8090 (ira_init_register_move_cost_if_necessary): New.
8091 (ira_object_conflict_iter_next): Merge into
8092 ira_object_conflict_iter_cond.
8093 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8095 * ira-live.c (process_single_reg_class_operands): Call
8096 ira_init_register_move_cost_if_necessary. Use
8097 ira_register_move_cost instead of ira_get_register_move_cost.
8099 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8101 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8103 * ira-costs.c: Fix formatting.
8104 (cost_classes, cost_classes_num): Remove.
8105 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8106 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8107 (cost_classes_del, cost_classes_htab): New.
8108 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8109 (initiate_regno_cost_classes, setup_cost_classes): New.
8110 (setup_regno_cost_classes_by_aclass): New.
8111 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8112 (record_reg_classes): Use regno_cost_classes instead of
8113 cost_classes. Move checking opposite operand up.
8114 (record_address_regs): Use regno_cost_classes
8115 instead of cost_classes.
8116 (scan_one_insn): Ditto. Use always general register.
8117 (print_allocno_costs): Use regno_cost_classes instead of
8119 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8120 (find_costs_and_classes): Set up cost classes for each registers.
8121 Use also their mode for this. Use regno_cost_classes instead of
8123 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8125 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8126 (ira_costs, ira_set_pseudo_classes): Call
8127 initiate_regno_cost_classes and finish_regno_cost_classes.
8129 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8131 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8133 * target.def (ira_cover_classes): Remove.
8135 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8137 * doc/tm.texi.in: Ditto.
8139 * ira-conflicts.c: Remove mentioning cover classes from the file.
8140 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8141 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8143 * targhooks.c (default_ira_cover_classes): Remove.
8145 * targhooks.h (default_ira_cover_classes): Ditto.
8147 * haifa-sched.c: Remove mentioning cover classes from the file.
8148 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8149 ira_pressure_classes and ira_pressure_classes_num instead of
8150 ira_reg_class_cover_size and ira_reg_class_cover. Use
8151 sched_regno_pressure_class instead of sched_regno_cover_class.
8152 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8153 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8155 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8156 classes from the file.
8157 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8158 (struct object_hard_regs, struct object_hard_regs_node): New.
8159 (struct ira_object): New members profitable_hard_regs,
8160 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8161 (struct ira_allocno): Rename cover_class to aclass. Rename
8162 cover_class_cost and updated_cover_class_cost to class_cost and
8163 updated_class_cost. Remove splay_removed_p and
8164 left_conflict_size. Add new members colorable_p.
8165 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8166 (ALLOCNO_COLORABLE_P): New macro.
8167 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8168 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8169 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8170 (OBJECT_...): Rename parameter C to O.
8171 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8172 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8173 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8174 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8175 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8176 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8177 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8178 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8179 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8180 x_ira_reg_class_subunion.
8181 (ira_max_memory_move_cost, ira_max_register_move_cost)
8182 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8183 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8184 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8185 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8186 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8187 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8188 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8189 (ira_tune_allocno_costs_and_cover_classes): Rename to
8190 ira_tune_allocno_costs.
8191 (ira_debug_hard_regs_forest): New.
8192 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8193 (ira_object_conflict_iter_next): Fix comments.
8194 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8195 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8196 cover_class to aclass.
8197 (ira_allocate_and_accumulate_costs): Ditto.
8198 (ira_allocate_and_set_or_copy_costs): Ditto.
8200 * opts.c (decode_options): Remove ira_cover_class check.
8202 * ira-color.c: Remove mentioning cover classes from the file. Use
8203 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8204 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8205 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8206 (splay-tree.h): Remove include.
8207 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8208 before copy_freq_compare_func.
8209 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8210 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8212 (hard_regs_roots, hard_regs_node_vec): Ditto.
8213 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8214 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8215 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8216 (create_new_object_hard_regs_node): Ditto.
8217 (add_new_object_hard_regs_node_to_forest): Ditto.
8218 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8219 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8221 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8222 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8223 (remove_unused_object_hard_regs_nodes): Ditto.
8224 (enumerate_object_hard_regs_nodes): Ditto.
8225 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8226 (object_hard_regs_subnode_t): Ditto.
8227 (struct object_hard_regs_subnode): Ditto.
8228 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8229 (setup_object_hard_regs_subnode_index): Ditto.
8230 (get_object_hard_regs_subnodes_num): Ditto.
8231 (form_object_hard_regs_nodes_forest): Ditto.
8232 (finish_object_hard_regs_nodes_tree): Ditto.
8233 (finish_object_hard_regs_nodes_forest): Ditto.
8234 (allocnos_have_intersected_live_ranges_p): Rename to
8235 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8236 (pseudos_have_intersected_live_ranges_p): Rename to
8237 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8238 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8239 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8240 (update_copy_costs): Remove assert. Skip cost update if the hard
8241 reg does not belong the class.
8242 (assign_hard_reg): Process only profitable hard regs.
8243 (uncolorable_allocnos_num): Make it scalar.
8244 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8245 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8246 and ira_reg_class_max_nregs.
8247 (bucket_allocno_compare_func): Check frequency first.
8248 (sort_bucket): Add compare function as a parameter.
8249 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8250 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8251 (push_allocno_to_stack): Rewrite for checking new allocno
8253 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8254 (push_only_colorable): Pass new parameter to sort_bucket.
8255 (push_allocno_to_spill): Remove.
8256 (allocno_spill_priority_compare): Make it inline and rewrite.
8257 (splay_tree_allocate, splay_tree_free): Remove.
8258 (allocno_spill_sort_compare): New function.
8259 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8260 build and use splay tree. Choose first allocno in uncolorable
8261 allocno bucket to spill. Remove setting spill cost.
8262 (all_conflicting_hard_regs): Remove.
8263 (setup_allocno_available_regs_num): Check only profitable hard
8264 regs. Print info about hard regs nodes.
8265 (setup_allocno_left_conflicts_size): Remove.
8266 (put_allocno_into_bucket): Don't call
8267 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8268 (improve_allocation): New.
8269 (color_allocnos): Call setup_profitable_hard_regs,
8270 form_object_hard_regs_nodes_forest, improve_allocation,
8271 finish_object_hard_regs_nodes_forest. Setup spill cost.
8272 (print_loop_title): Use pressure classes.
8273 (color_allocnso): Ditto.
8274 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8275 and allocnos_for_spilling.
8276 (ira_sort_regnos_for_alter_reg): Don't setup members
8277 {first,next}_coalesced_allocno.
8278 (color): Remove allocating and freeing removed_splay_allocno_vec.
8279 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8280 prohibited_class_mode_regs.
8282 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8284 (update_allocno_pressure_excess_length): Use pressure classes.
8285 (inc_register_pressure, dec_register_pressure): Check for pressure
8287 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8288 pressure class. Use ira_reg_class_nregs instead of
8289 ira_reg_class_max_nregs.
8290 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8291 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8292 (single_reg_class): Use ira_reg_class_nregs instead of
8293 ira_reg_class_max_nregs.
8294 (process_bb_node_lives): Use pressure classes.
8296 * ira-emit.c: Remove mentioning cover classes from the file. Use
8297 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8298 (change_loop): Use pressure classes.
8299 (modify_move_list): Call ira_set_allocno_class instead of
8300 ira_set_allocno_cover_class.
8302 * ira-build.c: Remove mentioning cover classes from the file. Use
8303 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8304 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8305 ALLOCNO_UPDATED_CLASS_COST instead of
8306 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8307 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8308 (ira_create_allocno): Remove initialization of
8309 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8310 ALLOCNO_COLORABLE_P.
8311 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8312 Update conflict regs for the objects.
8313 (create_cap_allocno): Remove assert. Don't propagate
8314 ALLOCNO_AVAILABLE_REGS_NUM.
8315 (ira_free_allocno_costs): New function.
8316 (finish_allocno): Change a part of code into call of
8317 ira_free_allocno_costs.
8318 (low_pressure_loop_node_p): Use pressure classes.
8319 (object_range_compare_func): Don't compare classes.
8320 (setup_min_max_conflict_allocno_ids): Ditto.
8322 * loop-invariant.c: Remove mentioning cover classes from the file.
8323 Use ira_pressure_classes and ira_pressure_classes_num instead of
8324 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8325 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8326 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8327 Use reg_allocno_class instead of reg_cover_class.
8328 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8329 STACK_REG_COVER_CLASS.
8330 (get_regno_cover_class): Rename to get_regno_pressure_class.
8331 (move_loop_invariants): Initialize and finalize regstat.
8333 * ira.c: Remove mentioning cover classes from the file. Add
8334 comments about coloring without cover classes. Use ALLOCNO_CLASS
8335 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8336 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8337 setup_class_subset_and_memory_move_costs.
8338 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8339 (setup_cover_and_important_classes): Rename to
8340 setup_allocno_and_important_classes.
8341 (setup_class_translate_array): New.
8342 (setup_class_translate): Call it for allocno and pressure classes.
8343 (cover_class_order): Rename to allocno_class_order.
8344 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8345 of ira_class_translate.
8346 (reorder_important_classes): Set up ira_important_class_nums.
8347 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8348 (print_class_cover): Rename to print_classes. Add parameter.
8349 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8350 Print pressure classes too.
8351 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8352 setup_reg_subclasses.
8353 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8354 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8355 (setup_prohibited_class_mode_regs): Use
8356 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8357 (clarify_prohibited_class_mode_regs): New function.
8358 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8359 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8360 (ira_init_once): Initialize them.
8361 (free_register_move_costs): Process them.
8362 (ira_init): Move calls of find_reg_classes and
8363 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8364 Call clarify_prohibited_class_mode_regs.
8365 (ira_no_alloc_reg): Remove.
8366 (too_high_register_pressure_p): Use pressure classes.
8368 * sched-deps.c: Remove mentioning cover classes from the file.
8369 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8370 ira_pressure_classes and ira_pressure_classes_num instead of
8371 ira_reg_class_cover_size and ira_reg_class_cover.
8372 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8373 sched_regno_pressure_class instead of sched_regno_cover_class.
8374 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8375 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8377 * ira.h: Add 2010 to Copyright.
8378 (ira_no_alloc_reg): Remove external.
8379 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8380 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8381 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8382 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8383 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8384 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8385 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8386 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8387 x_ira_no_alloc_regs.
8388 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8389 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8390 ira_allocno_classes_num and ira_allocno_classes.
8391 (ira_class_translate): Rename to ira_allocno_class_translate.
8392 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8393 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8394 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8395 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8396 (ira_no_alloc_regs): New.
8398 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8399 classes from the file. Use ALLOCNO_CLASS instead of
8400 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8401 ALLOCNO_COVER_CLASS_COST.
8402 (regno_cover_class): Rename to regno_aclass.
8403 (record_reg_classes): Use ira_reg_class_subunion instead of
8404 ira_reg_class_union.
8405 (record_address_regs): Check overflow.
8406 (scan_one_insn): Ditto.
8407 (print_allocno_costs): Print total mem cost fore regional allocation.
8408 (print_pseudo_costs): Use REG_N_REFS.
8409 (find_costs_and_classes): Use classes intersected with them on the
8410 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8411 ira_reg_class_union. Use ira_allocno_class_translate and
8412 regno_aclass instead of ira_class_translate and regno_cover_class.
8413 Modify code for finding regno_aclass. Setup preferred classes for
8415 (setup_allocno_cover_class_and_costs): Rename to
8416 setup_allocno_class_and_costs. Use regno_aclass instead of
8417 regno_cover_class. Use ira_set_allocno_class instead of
8418 ira_set_allocno_cover_class.
8419 (init_costs, finish_costs): Use regno_aclass instead of
8421 (ira_costs): Use setup_allocno_class_and_costs instead of
8422 setup_allocno_cover_class_and_costs.
8423 (ira_tune_allocno_costs_and_cover_classes): Rename to
8424 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8425 by processing objects. Use ira_reg_class_max_nregs instead of
8426 ira_reg_class_nregs.
8428 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8430 * sched-int.h: Remove mentioning cover classes from the file.
8431 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8433 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8434 classes from the file.
8435 (struct reg_pref): Rename coverclass into allocnoclass.
8436 (reg_cover_class): Rename to reg_allocno_class.
8438 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8440 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8442 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8444 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8446 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8448 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8450 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8452 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8454 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8456 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8458 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8459 (i386_ira_cover_classes): Ditto.
8461 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8463 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8465 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8467 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8469 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8471 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8473 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8474 (mips_ira_cover_classes): Ditto.
8476 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8478 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8480 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8482 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8484 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8486 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8487 (IRA_COVER_CLASSES_VSX): Ditto.
8489 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8490 (rs6000_ira_cover_classes): Ditto.
8492 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8494 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8496 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8498 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8500 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8502 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8504 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8506 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8508 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8510 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8512 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8515 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8516 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8517 dw_fde_unlikely_section_end_label, cold_in_std_section,
8518 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8519 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8521 (output_fde): Use dw_fde_second_{begin,end} if second is
8522 true, otherwise dw_fde_{begin,end}.
8523 (output_call_frame_info): Test dw_fde_second_begin != NULL
8524 instead of dw_fde_switched_sections.
8525 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8526 fields, initialize new fields. Initialize in_std_section
8527 unconditionally from the first partition.
8528 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8529 dw_fde_second_begin is non-NULL.
8530 (dwarf2out_switch_text_section): Stop initializing removed
8531 dw_fde_struct fields, initialize new fields, initialize
8532 also dw_fde_end here. Set dw_fde_switch_cfi even when
8533 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8534 (struct var_loc_list_def): Add last_before_switch field.
8535 (arange_table, arange_table_allocated, arange_table_in_use,
8536 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8537 (size_of_aranges): Count !in_std_section and !second_in_std_section
8538 hunks in fdes, instead of looking at arange_table_in_use.
8539 (output_aranges): Add aranges_length argument, don't call
8540 size_of_aranges here. Instead of using aranges_table*
8541 emit ranges for fdes when !in_std_section resp.
8542 !second_in_std_section.
8543 (dw_loc_list): Break ranges crossing section switch.
8544 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8545 use dw_fde_second_end instead of dw_fde_end as end of last range.
8546 (gen_subprogram_die): Don't call add_arange. Use
8547 dw_fde_{begin,end} for first partition and if switched
8548 section dw_fde_second_{begin,end} for the second.
8549 (var_location_switch_text_section_1,
8550 var_location_switch_text_section): New functions.
8551 (dwarf2out_begin_function): Initialize cold_text_section even
8552 when function_section () isn't text_section.
8553 (prune_unused_types): Don't walk arange_table.
8554 (dwarf2out_finish): Don't needlessly test
8555 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8556 If info_section_emitted, call size_of_aranges and if it indicates
8557 non-empty .debug_aranges, call output_aranges with the computed
8558 size. Stop using removed dw_fde_struct fields, use
8559 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8563 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8564 create ENTRY_VALUE if incoming or address of incoming's MEM
8566 * dwarf2out.c (mem_loc_descriptor): Don't emit
8567 DW_OP_GNU_entry_value of DW_OP_fbreg.
8568 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8569 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8570 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8571 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8573 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8574 is a REG_P or MEM_P with REG_P address, compute hash directly
8575 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8576 (preserve_only_constants): Don't clear VALUES forwaring
8577 ENTRY_VALUE to some other VALUE.
8579 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8581 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8584 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8586 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8587 block before expanding the statement.
8588 (expand_gimple_stmt_1): Likewise. Set them here...
8589 (expand_gimple_stmt): ...and not here. Tidy.
8590 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8593 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8595 * Makefile.in: New rule for cprop.o.
8596 * gcse.c: Move constant/copy propagation to cprop.c.
8597 (compute_local_properties): Only handle expression tables.
8598 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8599 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8600 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8601 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8602 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8603 compute_cprop_data, find_used_regs, try_replace_reg,
8604 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8605 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8606 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8607 find_bypass_set, reg_killed_on_edge, bypass_block,
8608 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8609 execute_rtl_cprop, pass_rtl_cprop): Move to...
8610 * cprop.c: ...here. New file, constant/copy propagation for RTL
8611 moved from gcse.c to here with minor cleanups in duplicated code.
8613 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8615 * config/i386/i386.c (flag_opts): Fix a typo in
8616 -mavx256-split-unaligned-store.
8618 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8620 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8621 LIBCALL_VALUE): Remove macros.
8622 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8623 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8624 (h8300_function_value, h8300_libcall_value,
8625 h8300_function_value_regno_p): New functions.
8627 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8629 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8631 2011-03-28 Jeff Law <law@redhat.com>
8633 * tree-ssa-threadupdate.c (redirect_edges): Call
8634 create_edge_and_update_destination_phis as needed.
8635 (create_edge_and_update_destination_phis): Accept new BB argument.
8636 All callers updated.
8637 (thread_block): Do not update the profile when threading around
8638 intermediate blocks.
8639 (thread_single_edge): Likewise.
8640 (determine_bb_domination_status): If BB is not a successor of the
8641 loop header, return NONDOMINATING.
8642 (register_jump_thread): Note when we register a jump thread around
8643 an intermediate block.
8644 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8645 (thread_across_edge): Use it.
8647 2011-03-28 Tristan Gingold <gingold@adacore.com>
8649 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8650 when for_return is 2.
8652 2011-03-28 Jeff Law <law@redhat.com>
8654 * var-tracking.c (canonicalize_values_mark): Delete unused
8656 (canonicalize_values_star, set_variable_part): Likewise.
8657 (clobber_variable_part, delete_variable_part): Likewise.
8659 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8661 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8663 2011-03-28 Martin Jambor <mjambor@suse.cz>
8665 * tree-inline.c (expand_call_inline): Do not check that destination
8667 (optimize_inline_calls): Assert that destination node is analyzed.
8668 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8669 not call tree_lowering_passes.
8670 * cgraph.h (cgraph_analyze_function): Declare.
8671 * cgraphunit.c (cgraph_analyze_function): Make public.
8673 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8675 * config/sparc/sparc-opts.h: New.
8676 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8677 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8678 (sparc_option_override): Store processor_type enumeration rather
8679 than string in cpu_default. Remove name and enumeration from
8680 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8681 without using sparc_select. Use target_flags_explicit instead of
8683 * config/sparc/sparc.h (enum processor_type): Move to
8685 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8686 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8687 HeaderInclude entry.
8688 (mcpu=, mtune=): Use Var and Enum.
8689 (sparc_processor_type): New Enum and EnumValue entries.
8691 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8692 Iain Sandoe <iains@gcc.gnu.org>
8695 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8697 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8699 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8700 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8701 Insert new statements at it in lieu of STMT.
8702 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8703 * tree-vect-stmts.c (vectorizable_store): Likewise.
8704 (vectorizable_load): Likewise.
8706 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8708 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8713 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8715 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8716 unaligned 256bit load/store.
8717 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8718 (*avx_movdqu<avxmodesuffix>): Likewise.
8720 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8723 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8724 * config/pa/pa.md (iordi3): Use new predicate in expander.
8727 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8729 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8730 FUNCTION_VALUE_REGNO_P): Remove macros.
8731 * config/mips/mips-protos.h (mips_function_value): Remove.
8732 * config/mips/mips.c (mips_function_value): Rename to...
8733 (mips_function_value_1): ... this. Make static. Handle receiving
8734 the function type in 'fn_decl_or_type' argument.
8735 (mips_function_value, mips_libcall_value,
8736 mips_function_value_regno_p): New function.
8737 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8738 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8740 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8742 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8743 and -mavx256-split-unaligned-store.
8744 (ix86_option_override_internal): Split 32-byte AVX unaligned
8745 load/store by default.
8746 (ix86_avx256_split_vector_move_misalign): New.
8747 (ix86_expand_vector_move_misalign): Use it.
8749 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8750 -mavx256-split-unaligned-store.
8752 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8753 256bit load/store. Generate unaligned store on misaligned memory
8755 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8757 (*avx_movdqu<avxmodesuffix>): Likewise.
8759 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8760 -mavx256-split-unaligned-store.
8762 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8765 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8768 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8770 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8771 opno arguments with an expand_operand. Use create_input_operand.
8772 (mips_prepare_builtin_target): Delete.
8773 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8775 (mips_expand_builtin_direct): Use create_output_operand and
8776 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8777 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8778 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8780 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8782 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8784 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8786 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8788 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8789 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8790 basic blocks and call commit_edge_insertions directly.
8791 (fixup_abnormal_edges): Move from here to...
8792 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8793 on the edges and return whether some have actually been inserted.
8794 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8797 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8799 PR rtl-optimization/48144
8800 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8801 (merge_expr_data): ... here.
8802 (av_set_intersect): Rename to av_set_code_motion_filter.
8803 Update all callers. Call merge_history_vect when an expression
8804 is found in both sets.
8805 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8807 2011-03-26 Alan Modra <amodra@gmail.com>
8809 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8810 cmodel medium addresses.
8811 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8812 64-bit gpr loads and stores.
8813 (rs6000_secondary_reload_ppc64): New function.
8814 * config/rs6000/rs6000-protos.h: Declare it.
8815 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8817 2011-03-26 Alan Modra <amodra@gmail.com>
8820 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8821 GNU Go in traceback table.
8823 2011-03-25 Richard Henderson <rth@redhat.com>
8825 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8826 if there are exactly 6 operands.
8827 (set_storage_via_setmem): Similarly.
8829 2011-03-25 Kai Tietz <ktietz@redhat.com>
8831 * collect2.c (write_c_file_stat): Handle backslash
8832 as right-hand directory separator.
8833 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8834 checking just for slash.
8835 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8836 instead of checking for trailing slash.
8837 * gcc.c (record_temp_file): Use filename_cmp instead
8839 (do_spec_1): Likewise.
8840 (replace_outfile_spec_function): Likewise.
8841 (is_directory): Use filename_ncmp instead of strncmp.
8842 (print_multilib_info): Likewise.
8843 * gcov.c (find_source): Use filename_cmp instead
8845 (make_gcov_file_name): Fix order of slash/backslash
8847 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8848 (add_standard_paths): Likewise.
8849 * mips-tfile.c (saber_stop): Handle backslash.
8850 * prefix.c (update_path): Use filename_ncmp instead of
8852 * profile.c (output_location): Use filename_cmp instead
8854 * read-md.c (handle_toplevel_file): Handle backslash.
8855 * tlink.c (frob_extension): Likewise.
8856 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8858 * tree-dump.c (dequeue_and_dump): Handle backslash.
8859 * tree.c (get_file_function_name): Likewise.
8860 * gengtype.c (read_input_list): Likewise.
8861 (get_file_realbasename): Likewise.
8862 (get_output_file_with_visibility): Use filename_cmp
8865 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8867 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8870 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8872 * fold-const.c (expr_location_or): New function.
8873 (fold_truth_not_expr): Call it.
8875 2011-03-25 Jeff Law <law@redhat.com>
8877 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8879 * c-family/c-common.c (def_fn_type): Likewise.
8880 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8881 * emit-rtl.c (gen_rtvec): Likewise.
8882 * lto/lto-lang.c (def_fn_type): Likewise.
8884 2011-03-25 Richard Guenther <rguenther@suse.de>
8886 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8887 also generate copies.
8888 (fini_copy_prop): Handle constant values properly.
8890 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8892 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8893 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8894 (hash_loc_operands, compare_loc_operands): Handle
8895 DW_OP_GNU_entry_value.
8897 2011-03-25 Kai Tietz <ktietz@redhat.com>
8899 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8900 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8901 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8902 comment and use macro TARGET_64BIT_MS_ABI instead.
8903 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8904 and change default behavior for 32-bit MS_ABI.
8905 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8906 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8908 (ix86_cfun_abi): Likewise.
8909 (ix86_maybe_switch_abi): Adjust comment.
8910 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8911 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8912 instead of checking for SYSV_ABI.
8913 (ix86_nsaved_sseregs): Likewise.
8914 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8916 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8917 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8918 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8919 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8920 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8922 2011-03-25 Richard Guenther <rguenther@suse.de>
8924 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8925 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8926 (verify_gimple): Remove.
8927 * tree-cfg.c (verify_gimple_call): Merge verification
8929 (verify_gimple_phi): Merge verification from verify_stmts.
8930 (verify_gimple_label): New function.
8931 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8932 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8933 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8934 (verify_stmts): Rename to verify_gimple_in_cfg.
8935 (verify_gimple_in_cfg): New function.
8936 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8937 * tree-ssa.c (verify_ssa): Likewise.
8938 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8940 2011-03-25 Richard Guenther <rguenther@suse.de>
8942 * passes.c (init_optimization_passes): Add FRE pass after
8945 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8946 Andrew Stubbs <ams@codesourcery.com>
8948 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8950 (arm_movdi_vfp_cortexa8): New pattern.
8951 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8952 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8953 instructions when tuning for Cortex-A8. Set attribute "arch".
8954 * config/arm/arm.md: Move include arm-tune.md up a bit.
8955 (define_attr "arch"): Add "onlya8" and "nota8" values.
8956 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8958 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8962 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8964 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8965 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8966 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8967 * passes.c (init_optimization_passes): Move
8968 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8970 2011-03-25 Kai Tietz <ktietz@redhat.com>
8972 * c-typeck.c (comptypes_internal): Replace target
8973 hook call of comp_type_attributes by version in tree.c file.
8974 * gimple.c (gimple_types_compatible_p_1): Likewise.
8975 * tree-ssa.c (useless_type_conversion_p): Likewise.
8976 * tree.c (build_type_attribute_qual_variant): Likewise.
8977 (attribute_value_equal): New static helper function.
8978 (comp_type_attributes): New function.
8979 (merge_attributes): Use attribute_value_equal for comparison.
8980 (attribute_list_contained): Likewise.
8981 * tree.h (comp_type_attributes): New prototype.
8983 2011-03-25 Richard Guenther <rguenther@suse.de>
8985 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8986 of complex types at -O0.
8987 (verify_gimple_assign_binary): Likewise.
8988 (verify_gimple_assign_ternary): Likewise.
8990 2011-03-24 Mark Wielaard <mjw@redhat.com>
8992 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8993 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8995 2011-03-24 Mark Wielaard <mjw@redhat.com>
8998 * dwarf2out.c (output_abbrev_section): Only write table when
8999 abbrev_die_table_in_use > 1.
9001 2011-02-24 Richard Henderson <rth@redhat.com>
9003 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9004 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9005 (alpha_expand_unaligned_load_words): Use extql.
9006 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9007 (emit_insxl): Handle all modes for consistency.
9009 2011-02-24 Richard Henderson <rth@redhat.com>
9011 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9012 (alpha_expand_unaligned_load): Likewise.
9013 (alpha_expand_unaligned_store): Likewise.
9014 (alpha_expand_unaligned_load_words): Likewise.
9015 (alpha_expand_unaligned_store_words): Likewise.
9016 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9017 (alpha_split_lock_test_and_set_12): Likewise.
9018 (print_operand, alpha_fold_builtin_extxx): Likewise.
9019 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9020 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9021 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9022 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9023 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9024 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9025 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9026 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9027 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9028 (extwl, extll, extql): Similarly.
9029 (inswh, inslh, insqh): Similarly.
9030 (mskbl, mskwl, mskll, mskql): Similarly.
9031 (mskwh, msklh, mskqh): Similarly.
9033 2011-02-24 Richard Henderson <rth@redhat.com>
9035 * config/alpha/alpha.md (attribute isa): Add er, ner.
9036 (attribute enabled): Handle them.
9037 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9039 2011-02-24 Richard Henderson <rth@redhat.com>
9041 * config/alpha/alpha.md (attribute isa): Add vms.
9042 (attribute enabled): Handle it.
9043 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9044 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9045 (*movtf): Rename from *movtf_internal for consistency.
9046 (*movsi): Merge with *movsi_nt_vms.
9047 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9048 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9049 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9050 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9052 2011-02-24 Richard Henderson <rth@redhat.com>
9054 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9055 (extendqisi2, extendhisi2): Likewise.
9056 (extendqidi2): Simplify BWX/non-BWX expansions.
9057 (extendhidi2): Similarly.
9059 2011-02-24 Richard Henderson <rth@redhat.com>
9061 * config/alpha/alpha.md (attribute isa): New.
9062 (attribute enabled): New.
9063 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9064 (zero_extendqisi2, zero_extendqidi2): Similarly.
9065 (zero_extendhisi2, zero_extendhidi2): Similarly.
9066 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9068 2011-02-24 Richard Henderson <rth@redhat.com>
9070 * config/alpha/predicates.md (input_operand): Revert last change;
9071 update comment to mention 32-bit VMS rather than Windows.
9073 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9075 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9076 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9077 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9078 * passes.c (init_optimization_passes): Move
9079 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9081 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9083 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9085 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9087 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9090 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9093 * simplify-rtx.c (simplify_const_unary_operation): Call
9094 real_convert when changing mode class with FLOAT_EXTEND.
9096 2011-03-24 Nick Clifton <nickc@redhat.com>
9098 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9099 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9100 * config/rx/rx.c (rx_option_override): Set align_jumps,
9101 align_loops and align_labels if not set by the user.
9102 (rx_align_for_label): New function.
9103 (rx_max_skip_for_label): New function.
9104 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9105 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9106 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9107 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9108 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9110 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9112 PR rtl-optimization/48263
9113 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9114 and original commutative_p handling. Use maybe_gen_insn.
9116 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9118 * reload.c (find_reloads_subreg_address): Add address_reloaded
9119 parameter and return true there if the full address has been
9121 (find_reloads_toplev): Pass address_reloaded flag.
9122 (find_reloads_address_1): Don't use address_reloaded parameter.
9124 2011-03-24 Jeff Law <law@redhat.com>
9126 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9127 unused variable "ann".
9128 (remove_unused_locals): Likewise.
9130 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9133 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9136 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9138 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9139 for invalid symbolic addresses.
9140 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9143 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9145 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9146 the argument in calls to fold_truth_not_expr.
9148 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9150 * tree.c (record_node_allocation_statistics): New function.
9151 (make_node_stat, copy_node_stat, build_string): Call it.
9152 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9153 (build1_stat, build_omp_clause): Likewise.
9155 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9157 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9160 2011-03-24 Richard Guenther <rguenther@suse.de>
9162 PR tree-optimization/48271
9163 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9164 blocks that still exist.
9166 2011-03-24 Richard Guenther <rguenther@suse.de>
9168 PR tree-optimization/48270
9169 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9170 not free datarefs before ddrs.
9172 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9174 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9175 from the address built for a reference with variable offset.
9177 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9180 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9181 alternatives that can be handled with movq or movabsq insn.
9182 (*movdf_internal): Disable for !TARGET_64BIT.
9183 (*movdf_internal_nointeger): Ditto.
9184 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9186 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9188 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9189 (FUNCTION_ARG_ADVANCE): Likewise.
9190 * tm.texi.in: Change references to them to hook references.
9191 * tm.texi: Regenerate.
9192 * targhooks.c (default_function_arg): Eliminate check for target macro.
9193 (default_function_incoming_arg): Likewise.
9194 (default_function_arg_advance): Likewise.
9195 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9196 (function_arg_advance): Likewise.
9197 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9199 2011-03-24 Richard Guenther <rguenther@suse.de>
9202 * tree-object-size.c (addr_object_size): Do not double-account
9203 for MEM_REF offsets.
9205 2011-03-24 Diego Novillo <dnovillo@google.com>
9207 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9208 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9209 (lto_input_data_block): Move from lto-opts.c. Make extern.
9211 (lto_input_string): Rename from input_string. Make extern.
9213 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9214 output_string_with_length.
9215 Output 0 to indicate a non-NULL string. Update all callers to
9217 (lto_output_string): Rename from output_string. Make extern.
9219 (lto_output_decl_state_streams): Make extern.
9220 (lto_output_decl_state_refs): Make extern.
9221 * lto-streamer.h (lto_input_string): Declare.
9222 (lto_input_data_block): Declare.
9223 (lto_output_string): Declare.
9224 (lto_output_string_with_length): Declare.
9225 (lto_output_decl_state_streams): Declare.
9226 (lto_output_decl_state_refs): Declare.
9228 2011-03-24 Richard Guenther <rguenther@suse.de>
9230 PR tree-optimization/46562
9231 * tree.c (build_invariant_address): New function.
9232 * tree.h (build_invariant_address): Declare.
9233 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9234 a renamed function moved ...
9235 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9236 Take valueization callback parameter.
9237 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9238 * gimple-fold.h: New file.
9239 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9240 (ccp_fold, fold_const_aggregate_ref,
9241 fold_ctor_reference, fold_nonarray_ctor_reference,
9242 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9243 get_base_constructor): Move ...
9244 * gimple-fold.c: ... here.
9245 (gimple_fold_stmt_to_constant_1): New function
9246 split out from ccp_fold. Take a valueization callback parameter.
9247 Valueize all operands.
9248 (gimple_fold_stmt_to_constant): New wrapper function.
9249 (fold_const_aggregate_ref_1): New function split out from
9250 fold_const_aggregate_ref. Take a valueization callback parameter.
9251 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9252 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9253 invariant POINTER_PLUS_EXPRs to invariant form.
9254 (vn_valueize): New function.
9255 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9256 * tree-vrp.c (vrp_valueize): New function.
9257 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9258 to fold statements to constants.
9259 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9260 function declarations.
9261 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9262 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9264 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9266 * config/h8300/predicates.md (jump_address_operand): Fix register
9269 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9271 * doc/invoke.texi (max-stores-to-sink): Document.
9272 * params.h (MAX_STORES_TO_SINK): Define.
9273 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9274 if either vectorization or if-conversion is disabled.
9275 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9276 tree-vect-data-refs.c vect_equal_offsets.
9277 (dr_equal_offsets_p): New function.
9278 (find_data_references_in_bb): Remove static.
9279 * tree-data-ref.h (find_data_references_in_bb): Declare.
9280 (dr_equal_offsets_p): Likewise.
9281 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9282 (vect_drs_dependent_in_basic_block): Update calls to
9284 (vect_check_interleaving): Likewise.
9285 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9286 (cond_if_else_store_replacement): Rename to...
9287 (cond_if_else_store_replacement_1): ... this. Change arguments and
9289 (cond_if_else_store_replacement): New function.
9290 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9291 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9293 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9296 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9297 to subtract lower bound instead of GEN_INT().
9299 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9304 * doc/extend.texi (Alignment): Move section to match order in TOC.
9305 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9306 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9308 2011-03-23 Jeff Law <law@redhat.com>
9310 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9311 before removing the edge.
9313 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9314 it may have been freed by redirect_branch_edge or
9315 redirect_edge_succ_nodup.
9317 2011-03-23 Richard Guenther <rguenther@suse.de>
9319 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9320 (check_va_list_escapes): Likewise.
9321 (check_all_va_list_escapes): Likewise.
9323 2011-03-23 Richard Guenther <rguenther@suse.de>
9325 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9326 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9327 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9328 (alias.o): Likewise.
9329 (ipa-type-escape.o): Remove.
9330 (ipa-struct-reorg.o): Likewise.
9331 (GTFILES): Remove ipa-struct-reorg.c.
9332 * alias.c: Do not include ipa-type-escape.h.
9333 * tree-ssa-alias.c: Likewise.
9334 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9335 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9336 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9337 and ipa-type-escape passes.
9338 * tree-pass.h (pass_ipa_type_escape): Remove.
9339 (pass_ipa_struct_reorg): Likewise.
9340 * ipa-struct-reorg.h: Remove.
9341 * ipa-struct-reorg.c: Likewise.
9342 * ipa-type-escape.h: Likewise.
9343 * ipa-type-escape.c: Likewise.
9344 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9345 (--param struct-reorg-cold-struct-ratio): Likewise.
9346 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9347 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9348 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9350 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9352 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9353 cpu attribute value.
9354 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9355 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9356 * config/s390/s390.c (processor_flags_table): New constant array.
9357 (s390_handle_arch_option): Remove.
9358 (s390_handle_option): Remove s390_handle_arch_option invocations
9359 and OPT_mwarn_framesize_ handling.
9360 (s390_option_override): Remove s390_handle_arch_option invocation.
9361 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9363 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9364 * config/s390/s390.opt (s390_tune, s390_arch)
9365 (march=): Replace s390_arch_option enum and values with
9366 processor_type. Set variable name to s390_arch. Set
9367 initialization value.
9368 (mtune=): Replace s390_arch_option with processor_type. Set
9369 variable name to s390_tune. Set initialization value.
9371 2011-03-23 Julian Brown <julian@codesourcery.com>
9373 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9374 accesses which are not naturally aligned.
9376 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9379 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9381 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9383 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9384 parameter from "int" to "enum insn_code".
9385 (expand_operand_type): New enum.
9386 (expand_operand): New structure.
9387 (create_expand_operand): New function.
9388 (create_fixed_operand, create_output_operand): Likewise
9389 (create_input_operand, create_convert_operand_to): Likewise.
9390 (create_convert_operand_from, create_address_operand): Likewise.
9391 (create_integer_operand): Likewise.
9392 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9393 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9394 (expand_insn, expand_jump_insn): Likewise.
9395 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9396 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9397 (expand_movstr, expand_builtin___clear_cache): Likewise.
9398 (expand_builtin_lock_release): Likewise.
9399 * explow.c (allocate_dynamic_stack_space): Likewise.
9400 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9401 and use the default handling in that case.
9402 * expmed.c (check_predicate_volatile_ok): Delete.
9403 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9404 (emit_cstore): Likewise.
9405 * expr.c (emit_block_move_via_movmem): Likewise.
9406 (set_storage_via_setmem, expand_assignment): Likewise.
9407 (emit_storent_insn, try_casesi): Likewise.
9408 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9409 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9410 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9411 (expand_twoval_unop, expand_twoval_binop): Likewise.
9412 (expand_unop_direct, emit_indirect_jump): Likewise.
9413 (emit_conditional_move, vector_compare_rtx): Likewise.
9414 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9415 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9416 (expand_sync_lock_test_and_set): Likewise.
9417 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9418 (emit_unop_insn): Likewise.
9419 (expand_copysign_absneg): Change icode to an insn_code.
9420 (create_convert_operand_from_type): New function.
9421 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9422 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9423 (expand_insn, expand_jump_insn): Likewise.
9424 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9425 than const_int_operand for operand 2.
9427 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9429 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9432 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9434 * emit-rtl.c (emit_pattern_before_noloc): New function.
9435 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9436 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9437 (emit_pattern_after_noloc): New function.
9438 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9439 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9441 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9443 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9444 (__ffsDI2): Likewise.
9446 2011-03-22 Richard Henderson <rth@redhat.com>
9448 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9449 of !TARGET_ABI_OPEN_VMS.
9450 (alpha_trampoline_init, alpha_start_function): Likewise.
9451 (alpha_expand_epilogue, alpha_file_start): Likewise.
9452 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9453 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9454 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9455 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9456 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9458 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9460 * config/s390/s390-opts.h: New.
9461 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9462 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9463 s390_stack_guard): Remove.
9464 (s390_handle_arch_option): Return void. Take enum
9465 s390_arch_option value instead of string and searching array.
9466 (s390_handle_option): Don't assert that global structures are in
9467 use. Access variables via opts pointer. Use error_at. Don't use
9468 sscanf for -mstack-guard= or -mstack-size=. Update call to
9469 s390_handle_arch_option.
9470 (s390_option_override): Update call to s390_handle_arch_option.
9471 (s390_emit_prologue): Use %d format for s390_stack_size in
9472 diagnostic. Use %wd for HOST_WIDE_INT.
9473 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9474 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9475 * config/s390/s390.opt (config/s390/s390-opts.h): New
9476 HeaderInclude entry.
9477 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9478 s390_arch_flags, s390_warn_framesize): New Variable entries.
9479 (s390_arch_option): New Enum and EnumValue entries.
9480 (march=): Use Enum instead of Var.
9481 (mstack-guard=, mstack-size=): Use UInteger and Var.
9484 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9486 * config/score/score.c (score_handle_option): Don't assert that
9487 global structures are in use. Access target_flags via opts
9488 pointer. Use value of -march= option to determine target_flags
9490 * config/score/score.opt (march=): Use Enum.
9491 (score_arch): New Enum and EnumValue entries.
9493 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9495 * config/mep/mep.c (option_mtiny_specified): Remove.
9496 (mep_option_override): Move register handling for -mivc2 from
9497 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9498 instead of option_mtiny_specified.
9499 (mep_handle_option): Access target_flags via opts pointer. Don't
9500 assert that global structures are in use. Defer part of -mivc2
9501 handling and move it to mep_option_override.
9502 * config/mep/mep.opt (IVC2): New Mask entry.
9503 (mivc2): Use Var and Defer instead of Mask.
9505 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9507 * config/v850/v850-opts.h: New.
9508 * config/v850/v850.c (small_memory): Replace with
9509 small_memory_physical_max array. Make that array static const.
9510 (v850_handle_memory_option): Take integer value of argument. Take
9511 gcc_options pointer, option text and location. Return void.
9512 Update for changes to small memory structures.
9513 (v850_handle_option): Access target_flags via opts pointer. Don't
9514 assert that global structures are in use. Update calls to
9515 v850_handle_memory_option.
9516 (v850_encode_data_area): Update references to small memory settings.
9517 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9518 (enum small_memory_type): Move to v850-opts.h.
9519 * config/v850/v850.opt (config/v850/v850-opts.h): New
9520 HeaderInclude entry.
9521 (small_memory_max): New Variable entry.
9522 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9523 (mtda, mzda): Likewise.
9525 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9527 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9528 pointer. Don't assert that global structures are in use.
9530 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9532 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9533 via opts pointer. Don't assert that global structures are in use.
9535 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9537 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9538 (munix=93): Use Var.
9539 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9540 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9541 * config/pa/pa-opts.h: New.
9542 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9543 (pa_handle_option): Don't assert that global structures are in
9544 use. Access target_flags via opts pointer. Don't handle
9545 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9547 (pa_option_override): Handle deferred OPT_mfixed_range_.
9549 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9551 * config/mn10300/mn10300-opts.h: New.
9552 * config/mn10300/mn10300.c (mn10300_processor,
9553 mn10300_tune_string): Remove.
9554 (mn10300_handle_option): Don't assert that global structures are
9555 in use. Access mn10300_processor via opts pointer. Don't handle
9557 * config/mn10300/mn10300.h (enum processor_type): Move to
9559 (mn10300_processor): Remove.
9560 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9561 HeaderInclude entry.
9562 (mn10300_processor): New Variable entry.
9565 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9567 * config/microblaze/microblaze.c: Don't include opts.h.
9568 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9569 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9570 (mno-clearbss): Use Var and Warn.
9572 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9574 * config/m32r/m32r-opts.h: New.
9575 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9576 (m32r_handle_option): Don't assert that global structures are in
9577 use. Access target_flags and m32r_cache_flush_func via opts
9578 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9579 OPT_mno_flush_trap here.
9580 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9581 include of m32r-opts.h.
9582 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9583 HeaderInclude entry.
9584 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9585 (mmodel=): Use Enum and Var.
9586 (m32r_model): New Enum and EnumValue entries.
9587 (mno-flush-trap): Use Var.
9588 (msdata=): Use Enum and Var.
9589 (m32r_sdata): New Enum and EnumValue entries.
9591 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9593 * config/m32c/m32c.c: Don't include opts.h.
9594 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9595 m32c_handle_option): Remove.
9596 (m32c_option_override): Check global_options_set.x_target_memregs
9597 instead of target_memregs_set.
9598 * config/m32c/m32c.h (target_memregs): Remove.
9599 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9602 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9604 * config/iq2000/iq2000-opts.h: New.
9605 * config/iq2000/iq2000.c: Don't include opts.h.
9606 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9607 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9608 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9609 HeaderInclude entry.
9610 (iq2000_tune): New Variable entry.
9611 (march=): Add comment. Use Enum.
9612 (iq2000_arch): New Enum and EnumValue entries.
9613 (mcpu=): Use Enum and Var.
9614 (iq2000_tune): New Enum and EnumValue entries.
9616 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9618 * config/ia64/ia64-opts.h: New.
9619 * config/ia64/ia64.c (ia64_tune): Remove.
9620 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9622 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9623 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9624 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9625 HeaderInclude entry.
9626 (ia64_tune): New Variable entry.
9627 (mfixed-range=): Use Defer and Var.
9628 (mtune=): Use Enum and Var.
9629 (ia64_tune): New Enum and EnumValue entries.
9631 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9633 * config/frv/frv-opts.h: New.
9634 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9636 (frv_cpu_type): Remove.
9637 * config/frv/frv.c: Don't include opts.h.
9638 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9639 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9640 (frv_cpu_type): New Variable entry.
9641 (frv_cpu): New Enum and EnumValue entries.
9643 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9645 * config/cris/cris.c (cris_handle_option): Access target_flags via
9646 opts pointer. Don't assert that global structures are in use.
9647 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9648 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9650 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9652 * config/bfin/bfin-opts.h: New.
9653 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9654 bfin_si_revision, bfin_workarounds): Remove.
9655 (bfin_cpus): Make static const.
9656 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9657 not bfin_lib_id_given.
9658 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9659 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9660 pointer. Use error_at. Don't assert that global structures are in use.
9661 * config/bfin/bfin.h: Include bfin-opts.h.
9662 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9663 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9664 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9665 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9668 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9670 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9671 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9672 or -msoft-float here.
9673 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9674 -msoft-float and -mhard-float.
9675 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9676 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9678 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9680 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9681 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9683 (LIBGCC_SPEC): Don't handle -msoft-float.
9684 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9686 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9688 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9689 -mfloat-abi=*, not -msoft-float and -mhard-float.
9690 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9692 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9693 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9694 mhard-float and msoft-float.
9695 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9696 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9697 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9698 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9700 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9701 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9703 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9705 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9708 2011-03-22 Richard Henderson <rth@redhat.com>
9710 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9711 TARGET_ABI_WINDOWS_NT.
9712 (alpha_output_function_end_prologue): Likewise.
9713 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9714 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9715 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9716 (trap, *movsi_nt_vms): Likewise.
9717 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9718 (*tablejump_osf_nt_internal): Remove.
9719 * config/alpha/predicates.md (input_operand): Only test Pmode.
9721 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9723 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9724 via opts pointer. Use error_at. Don't assert that global
9725 structures are in use.
9727 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9729 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9730 (ix86_handle_option): Access ix86_isa_flags and
9731 ix86_isa_flags_explicit via opts pointer. Don't assert that
9732 global structures are in use.
9733 (ix86_function_specific_save, ix86_function_specific_restore):
9734 Update ix86_isa_flags_explicit field name.
9735 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9736 (ix86_isa_flags_explicit): Rename TargetSave entry to
9737 x_ix86_isa_flags_explicit.
9739 2011-03-22 Richard Henderson <rth@redhat.com>
9741 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9742 (alpha_option_override, direct_return): Likewise.
9743 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9744 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9745 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9746 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9747 (alpha_expand_epilogue, alpha_end_function): Likewise.
9748 (alpha_init_libfuncs): Likewise.
9749 (struct machine_function): Remove unicosmk members.
9750 (print_operand) ['t']: Remove.
9751 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9752 unicosmk_output_module_name, unicosmk_output_common,
9753 current_section_align, unicosmk_output_text_section_asm_op,
9754 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9755 unicosmk_section_type_flags, unicosmk_unique_section,
9756 unicosmk_asm_named_section, unicosmk_insert_attributes,
9757 unicosmk_output_align, unicosmk_defer_case_vector,
9758 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9759 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9760 unicosmk_output_ssib, unicosmk_add_call_info_word,
9761 unicosmk_extern_head, unicosmk_output_default_externs,
9762 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9763 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9764 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9765 * config/alpha/alpha-protos.h: Update.
9766 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9767 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9768 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9769 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9770 (*mulsi_se, mulvsi3): Likewise.
9771 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9772 (*divmodsi_internal, call, call_value, realign): Likewise.
9773 (moddi3, umoddi3): Likewise; remove duplicate expander.
9774 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9775 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9776 (*movdi_nofix): Remove r/U alternative.
9777 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9778 * config/alpha/constraints.md ("U"): Remove.
9779 * config/alpha/predicates.md (call_operand"): Don't test
9780 TARGET_ABI_UNICOSMK.
9782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9784 * target.def (handle_option): Take gcc_options and
9785 cl_decoded_option pointers and location_t.
9786 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9787 * doc/tm.texi: Regenerate.
9788 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9789 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9790 * lto-opts.c (lto_reissue_options): Generate option structure for
9791 targetm.handle_option call.
9792 * opts.c (target_handle_option): Update call to
9793 targetm.handle_option. Remove assertions about values now passed
9795 * targhooks.c (default_target_handle_option): New.
9796 * targhooks.h (default_target_handle_option): Declare.
9797 * config/alpha/alpha.c: Include opts.h.
9798 (alpha_handle_option): Update to new hook interface.
9799 * config/arm/arm.c: Include opts.h.
9800 (arm_handle_option): Update to new hook interface.
9801 * config/arm/t-arm (arm.o): Update dependencies.
9802 * config/bfin/bfin.c: Include opts.h.
9803 (bfin_handle_option): Update to new hook interface.
9804 * config/cris/cris.c: Include opts.h.
9805 (cris_handle_option): Update to new hook interface.
9806 * config/frv/frv.c: Include opts.h.
9807 (frv_handle_option): Update to new hook interface.
9808 * config/i386/i386.c: Include opts.h.
9809 (ix86_handle_option): Update to new hook interface.
9810 (ix86_valid_target_attribute_inner_p): Generate option structure
9811 for call to ix86_handle_option.
9812 * config/i386/t-i386 (i386.o): Update dependencies.
9813 * config/ia64/ia64.c: Include opts.h.
9814 (ia64_handle_option): Update to new hook interface.
9815 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9816 * config/iq2000/iq2000.c: Include opts.h.
9817 (iq2000_handle_option): Update to new hook interface.
9818 * config/m32c/m32c.c: Include opts.h.
9819 (m32c_handle_option): Update to new hook interface.
9820 * config/m32r/m32r.c: Include opts.h.
9821 (m32r_handle_option): Update to new hook interface.
9822 * config/m68k/m68k.c: Include opts.h.
9823 (m68k_handle_option): Update to new hook interface.
9824 * config/mep/mep.c: Include opts.h.
9825 (mep_handle_option): Update to new hook interface.
9826 * config/microblaze/microblaze.c: Include opts.h.
9827 (microblaze_handle_option): Update to new hook interface.
9828 * config/mips/mips.c: Include opts.h.
9829 (mips_handle_option): Update to new hook interface.
9830 * config/mn10300/mn10300.c: Include opts.h.
9831 (mn10300_handle_option): Update to new hook interface.
9832 * config/pa/pa.c: Include opts.h.
9833 (pa_handle_option): Update to new hook interface.
9834 * config/pdp11/pdp11.c: Include opts.h.
9835 (pdp11_handle_option): Update to new hook interface.
9836 * config/rs6000/rs6000.c: Include opts.h.
9837 (rs6000_handle_option): Update to new hook interface.
9838 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9839 * config/rx/rx.c: Include opts.h.
9840 (rx_handle_option): Update to new hook interface.
9841 * config/s390/s390.c: Include opts.h.
9842 (s390_handle_option): Update to new hook interface.
9843 * config/score/score.c: Include opts.h.
9844 (score_handle_option): Update to new hook interface.
9845 * config/sh/sh.c: Include opts.h.
9846 (sh_handle_option): Update to new hook interface.
9847 * config/sparc/sparc.c: Include opts.h.
9848 (sparc_handle_option): Update to new hook interface.
9849 * config/v850/v850.c: Include opts.h.
9850 (v850_handle_option): Update to new hook interface.
9852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9854 * gcc.c (driver_unknown_option_callback): Only permit and save
9855 unknown -Wno- options.
9856 (driver_wrong_lang_callback): Save options directly instead of via
9857 driver_unknown_option_callback.
9859 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9861 * combine.c (simplify_set): Try harder to find the best CC mode when
9862 simplifying a nested COMPARE on the RHS.
9864 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9866 * config/alpha/gnu.h: Remove.
9867 * config/arc: Remove directory.
9868 * config/arm/netbsd.h: Remove.
9869 * config/arm/t-pe: Remove.
9870 * config/crx: Remove directory.
9871 * config/i386/netbsd.h: Remove.
9872 * config/m68hc11: Remove directory.
9873 * config/m68k/uclinux-oldabi.h: Remove.
9874 * config/mcore/mcore-pe.h: Remove.
9875 * config/mcore/t-mcore-pe: Remove.
9876 * config/netbsd-aout.h: Remove.
9877 * config/rs6000/gnu.h: Remove.
9878 * config/sh/sh-symbian.h: Remove.
9879 * config/sh/symbian-base.c: Remove.
9880 * config/sh/symbian-c.c: Remove.
9881 * config/sh/symbian-cxx.c: Remove.
9882 * config/sh/symbian-post.h: Remove.
9883 * config/sh/symbian-pre.h: Remove.
9884 * config/sh/t-symbian: Remove.
9885 * config/svr3.h: Remove.
9886 * config/vax/netbsd.h: Remove.
9887 * config.build: Don't handle i[34567]86-*-pe.
9888 * config.gcc: Remove handling of deprecations for most deprecated
9890 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9891 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9892 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9893 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9894 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9895 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9897 * config.host: Don't handle i[34567]86-*-pe.
9898 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9899 (ASM_SPEC32): Don't handle -mcall-gnu.
9900 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9902 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9903 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9904 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9905 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9906 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9907 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9908 conditional on SYMBIAN.
9909 * configure.ac: Don't handle powerpc*-*-gnu*.
9910 * configure: Regenerate.
9911 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9912 * doc/install-old.texi (m6811, m6812): Don't mention.
9913 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9914 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9915 (m68k-uclinuxoldabi): Don't mention.
9916 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9918 (-mcall-gnu): Remove.
9919 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9920 families): Remove constraint documentation.
9922 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9924 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9925 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9926 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9928 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9931 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9932 vector when peeking at the next token for vector, don't expand the
9935 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9937 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9938 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9939 * config/avr/avr.c (init_cumulative_args)
9940 (avr_function_arg_advance): Use it.
9941 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9943 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9944 (avr_function_ok_for_sibcall): ...this new function.
9945 (avr_lookup_function_attribute1): New static Function.
9946 (avr_naked_function_p, interrupt_function_p)
9947 (signal_function_p, avr_OS_task_function_p)
9948 (avr_OS_main_function_p): Use it.
9949 * config/avr/avr.md ("sibcall", "sibcall_value")
9950 ("sibcall_epilogue"): New expander.
9951 ("*call_insn", "*call_value_insn"): New insn.
9952 ("call_insn", "call_value_insn"): Remove
9953 ("call", "call_value", "epilogue"): Change expander to handle
9956 2011-03-21 Nick Clifton <nickc@redhat.com>
9958 * doc/invoke.texi (Overall Options): Move closing brace to end of
9960 (Optimization Options): Add missing @gol.
9961 (Directory Options): Likewise.
9962 (i386 and x86-64 Options): Likewise.
9963 (RS6000 and PowerPC Options): Likewise.
9964 (i386 and x86-64 Windows Options): Likewise.
9965 (V850 Options): Add text missing from descriptions.
9967 2011-03-22 Richard Henderson <rth@redhat.com>
9969 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9970 (avr_incoming_return_addr_rtx): New.
9971 (emit_push_byte): New.
9972 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9973 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9974 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9975 (emit_pop_byte): New.
9976 (expand_epilogue): Use it. Pop frame pointer by bytes.
9977 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9978 (INCOMING_RETURN_ADDR_RTX): New.
9979 (INCOMING_FRAME_SP_OFFSET): New.
9980 (ARG_POINTER_CFA_OFFSET): New.
9981 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9982 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9985 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9987 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9989 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9990 (FUNCTION_ARG_ADVANCE): Likewise.
9991 * tm.texi.in: Change references to them to hook references.
9992 * tm.texi: Regenerate.
9993 * targhooks.c (default_function_arg): Eliminate check for target
9995 (default_function_incoming_arg): Likewise.
9996 (default_function_arg_advance): Likewise.
9997 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9998 (function_arg_advance): Likewise.
9999 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10001 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10003 * tree.c (build_call_1): New function.
10004 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10006 2011-03-22 Richard Guenther <rguenther@suse.de>
10008 PR tree-optimization/48228
10009 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10010 for single-arg PHIs.
10012 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10014 PR rtl-optimization/48143
10015 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10016 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10017 sse2_cvtps2pd): Likewise.
10019 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10021 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10023 2011-03-22 Richard Guenther <rguenther@suse.de>
10025 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10026 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10027 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10028 and REALIGN_LOAD_EXPR.
10029 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10030 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10031 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10032 DOT_PROD_EXPR case ...
10033 (expand_expr_real_2): ... here.
10034 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10035 and REALIGN_LOAD_EXPR.
10036 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10037 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10038 (vect_create_epilog_for_reduction): Likewise.
10039 (vectorizable_reduction): Likewise.
10040 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10041 * tree-vect-stmts.c (vectorizable_load): Likewise.
10043 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10045 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10047 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10049 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10050 handling for PLTOFF/GOTOFF.
10052 2011-03-22 Nick Clifton <nickc@redhat.com>
10054 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10055 trailing backslash from the end of the macro definition.
10057 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10059 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10062 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10064 * expr.h (prepare_operand): Move to...
10065 * optabs.h (prepare_operand): ...here and change the insn code
10066 parameter from "int" to "enum insn_code".
10067 (insn_operand_matches): Declare.
10068 * expr.c (init_expr_target): Use insn_operand_matches.
10069 (compress_float_constant): Likewise.
10070 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10071 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10072 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10073 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10075 (gen_cond_trap): Likewise.
10076 (prepare_operand): Likewise. Change icode to an insn_code.
10077 (insn_operand_matches): New function.
10078 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10079 * reload1.c (gen_reload): Likewise.
10080 * targhooks.c (default_secondary_reload): Likewise.
10082 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10084 * config/alpha/alpha.md (unspec): New define_c_enum.
10087 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10090 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10091 between a call and its CALL_ARG_LOCATION note.
10093 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10095 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10097 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10101 * c-common.c (shorten_compare): If primopN is first sign-extended
10102 to opN and then zero-extended to result type, set primopN to opN.
10104 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10106 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10107 for barrier handlers.
10109 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10111 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10112 UNSPEC constants to be in the unspec enumeration, and redefine
10113 all UNSPECV constants to be in the unspecv enumeration, so that
10114 dumps print which unspec/unspec_volatile this is.
10115 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10116 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10117 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10118 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10119 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10121 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10122 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10123 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10124 * config/rs6000/sync.md (isync, lwsync): Ditto.
10126 2011-03-21 Richard Guenther <rguenther@suse.de>
10128 * params.def (lto-min-partition): Fix typo.
10130 2011-03-21 Richard Guenther <rguenther@suse.de>
10133 * c-decl.c (grokdeclarator): Drop to the main variant only
10134 for array types. Drop flag_gen_aux_info check.
10136 2011-03-21 Richard Guenther <rguenther@suse.de>
10138 PR translation/47911
10139 * params.def (lto-partitions): Fix typo.
10140 (lto-min-partition): Fix wording.
10142 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10144 * config/rs6000/t-freebsd: Remove duplication from file.
10146 2011-03-21 Richard Guenther <rguenther@suse.de>
10148 PR middle-end/47661
10149 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10151 2011-03-21 Richard Guenther <rguenther@suse.de>
10154 * params.def (lto-partitions): Require at least 1 partition.
10156 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10158 * gthr-solaris.h: Remove.
10159 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10160 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10161 (LIB_SPEC): Likewise.
10162 * config/sol2.opt (threads): Remove.
10163 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10164 (sparc*-*-solaris2*): Likewise.
10165 * configure.ac (enable_threads): Enable solaris support.
10166 * configure: Regenerate.
10167 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10168 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10171 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10173 * config.gcc: Obsolete *-*-solaris2.8*.
10174 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10176 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10179 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10180 reference. Solaris 8 perl works.
10182 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10185 * doc/install.texi (Prerequisites): Move jar etc. up.
10186 Explain support library version requirements.
10188 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10191 * doc/install.texi (Prerequisites): Move Perl to build
10192 requirements. Always necessary on Solaris 2 with Sun ld.
10194 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10196 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10198 (Specific, i?86-*-solaris2.[89]): Likewise.
10199 (Specific, i?86-*-solaris2.10): Likewise.
10200 (Specific, mips-sgi-irix6): Likewise.
10201 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10202 Update for binutils 2.21.
10204 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10206 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10207 Allow -fuse-linker-plugin for non-default plugin linker.
10208 * configure: Regenerate.
10210 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10213 * gengtype.c (files_rules): Added rule for cp/parser.h.
10215 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10218 * config/s390/s390.c (s390_delegitimize_address): Don't call
10219 lowpart_subreg if orig_x has BLKmode.
10221 2011-03-21 Kai Tietz <ktietz@redhat.com>
10224 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10225 * tree.h (attribute_spec): Add new member affects_type_identity.
10226 * attribs.c (empty_attribute_table): Adjust attribute_spec
10228 * config/alpha/alpha.c: Likewise.
10229 * config/arc/arc.c: Likewise.
10230 * config/arm/arm.c: Likewise.
10231 * config/avr/avr.c: Likewise.
10232 * config/bfin/bfin.c: Likewise.
10233 * config/crx/crx.c: Likewise.
10234 * config/darwin.h: Likewise.
10235 * config/h8300/h8300.c: Likewise.
10236 * config/i386/cygming.h: Likewise.
10237 * config/i386/i386.c: Likewise.
10238 * config/ia64/ia64.c: Likewise.
10239 * config/m32c/m32c.c: Likewise.
10240 * config/m32r/m32r.c: Likewise.
10241 * config/m68hc11/m68hc11.c: Likewise.
10242 * config/m68k/m68k.c: Likewise.
10243 * config/mcore/mcore.c: Likewise.
10244 * config/mep/mep.c: Likewise.
10245 * config/microblaze/microblaze.c: Likewise.
10246 * config/mips/mips.c: Likewise.
10247 * config/rs6000/rs6000.c: Likewise.
10248 * config/rx/rx.c: Likewise.
10249 * config/sh/sh.c: Likewise.
10250 * config/sol2.h: Likewise.
10251 * config/sparc/sparc.c: Likewise.
10252 * config/spu/spu.c: Likewise.
10253 * config/stormy16/stormy16.c: Likewise.
10254 * config/v850/v850.c: Likewise.
10256 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10258 * simplify-rtx.c (simplify_binary_operation_1): Handle
10259 (xor (and A B) C) case when B and C are both constants.
10261 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10263 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10265 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10268 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10270 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10272 PR rtl-optimization/48156
10273 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10274 assume df and df_lr are not NULL.
10276 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10279 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10280 between a call and its CALL_ARG_LOCATION note.
10282 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10285 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10286 between a call and its corresponding CALL_ARG_LOCATION note.
10288 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10290 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10291 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10292 * haifa-sched.c (setup_ref_regs): Ditto.
10293 * caller-save.c (add_used_regs_1): Ditto.
10294 * dse.c (look_for_hardregs): Ditto.
10295 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10296 * sched-rgn.c (check_live_1): Ditto.
10298 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10300 * c-decl.c (diagnose_mismatched_decls): Give an error for
10301 redefining a typedef with variably modified type.
10303 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10305 * c-decl.c (grokfield): Don't allow typedefs for structures or
10306 unions with no tag by default.
10307 * doc/extend.texi (Unnamed Fields): Update.
10309 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10311 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10312 Rewrite using indirect functions.
10313 (lwp_slwpcb): Ditto.
10314 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10315 (avx_vinsertf128<mode>): Ditto.
10317 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10319 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10322 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10324 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10325 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10327 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10329 PR rtl-optimization/48170
10330 * gcse.c (hoist_code): Remove bogus asserts.
10332 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10334 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10335 computation for prologue/epilogue.
10337 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10339 * Makefile.in (check-consistency): Remove.
10341 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10344 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10345 arange_table_in_use is 0, but either text_section_used or
10346 cold_text_section_used is true. Don't call it if
10347 !info_section_emitted.
10349 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10351 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10352 FUNCTION_VALUE_REGNO_P): Remove.
10353 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10355 * config/avr/avr.c (avr_ret_register): Make static inline.
10356 (avr_function_value_regno_p): New function.
10357 (avr_libcall_value): Make static. Add 'func' argument.
10358 (avr_function_value): Make static. Rename 'func' argument to
10359 'fn_decl_or_type', forward it to avr_libcall_value. Call
10360 avr_ret_register function instead of RET_REGISTER macro.
10361 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10363 2011-03-18 Jason Merrill <jason@redhat.com>
10366 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10368 2011-03-18 Richard Guenther <rguenther@suse.de>
10370 * doc/install.texi (--enable-gold): Remove.
10371 (--with-plugin-ld): Document.
10372 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10374 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10376 PR middle-end/47790
10377 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10378 again after expansion changes.
10380 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10382 * combine.c (try_combine): Do simplification only call of
10383 subst() on i2 even when i1 is present. Update comments.
10385 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10387 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10388 and UNSPEC_PCREL_SYMOFF.
10390 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10392 * config/s390/s390.md: Use define_c_enum for the unspec constant
10395 2011-03-18 Richard Henderson <rth@redhat.com>
10396 Jakub Jelinek <jakub@redhat.com>
10399 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10400 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10402 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10404 PR middle-end/47725
10405 * combine.c (cant_combine_insn_p): Don't check zero/sign
10406 extended hard registers.
10408 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10410 PR middle-end/47725
10411 * combine.c (cant_combine_insn_p): Check zero/sign extended
10414 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10416 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10417 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10418 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10419 Change return type to bool.
10420 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10422 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10425 * var-tracking.c (prepare_call_arguments): If CALL target
10426 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10427 pc instead of looking it up using cselib_lookup and use
10428 Pmode for it if x has VOIDmode.
10429 * dwarf2out.c (gen_subprogram_die): If also both first and
10430 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10433 * function.c (assign_parms): For data.passed_pointer parms
10434 use MEM of data.entry_parm instead of data.entry_parm itself
10435 as DECL_INCOMING_RTL.
10436 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10437 also when passed and declared mode is the same, DECL_RTL
10438 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10441 2011-03-16 Jeff Law <law@redhat.com>
10443 PR rtl-optimization/37273
10444 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10445 handle them like argument loads from stack slots. Do not double
10446 count memory for memory constants and argument loads from stack slots.
10448 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10451 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10453 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10456 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10458 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10461 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10463 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10464 Clear call_arg_locations and call_arg_loc_last always.
10466 PR middle-end/48152
10467 * var-tracking.c (prepare_call_arguments): If argument needs to be
10468 passed by reference, adjust argtype and mode.
10470 2011-03-17 Richard Guenther <rguenther@suse.de>
10472 PR middle-end/48134
10473 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10474 a value make sure to fold the statement.
10476 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10479 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10480 return condition with !cfun->calls_alloca.
10482 2011-03-17 Richard Guenther <rguenther@suse.de>
10485 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10486 origin for decls in other ltrans units.
10487 (input_varpool_node): Likewise.
10489 2011-03-17 Richard Guenther <rguenther@suse.de>
10491 PR middle-end/48165
10492 * tree-object-size.c (compute_object_offset): Properly return
10493 the offset operand of MEM_REFs as sizetype.
10495 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10497 PR rtl-optimization/48141
10498 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10499 * dse.c: Include params.h.
10500 (active_local_stores_len): New variable.
10501 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10503 (record_store, check_mem_read_rtx): Decrease it when removing
10505 (scan_insn): Likewise. Increase it when adding to chain, if it
10506 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10507 set active_local_stores to NULL before the addition.
10508 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10510 PR rtl-optimization/48141
10511 * dse.c (record_store): If no positions are needed in an insn
10512 that cannot be deleted, at least unchain it from active_local_stores.
10514 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10517 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10518 (lookup_type_die_strip_naming_typedef): ... here.
10519 (get_context_die): Use it.
10520 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10521 the anonymous struct named by the naming typedef.
10523 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10526 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10527 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10529 2011-03-16 Jeff Law <law@redhat.com>
10531 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10532 check for operands of conditional. Allow type to be a pointer.
10534 2011-03-16 Richard Guenther <rguenther@suse.de>
10536 PR tree-optimization/48149
10537 * fold-const.c (fold_binary_loc): Fold
10538 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10540 2011-03-16 Richard Guenther <rguenther@suse.de>
10542 PR tree-optimization/26134
10543 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10544 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10545 (non_rewritable_mem_ref_base): Handle complex type component
10546 accesses, constrain offsets for vector and complex extracts
10549 2011-03-16 Richard Guenther <rguenther@suse.de>
10551 PR tree-optimization/48146
10552 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10553 operands avoiding the need for renaming.
10555 2011-03-16 Richard Guenther <rguenther@suse.de>
10557 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10558 constant folding. Move MEM_REF canonicalization first.
10559 Rely on fold_const_aggregate_ref for initializer folding.
10560 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10562 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10564 PR middle-end/48136
10565 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10566 arg0/arg1 or their arguments are always fold converted to matching
10569 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10572 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10575 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10576 Handle in-tree gold.
10577 (ld_vers): Extract binutils version for gold.
10578 (gcc_cv_ld_hidden): Handle gold here.
10579 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10580 * configure: Regenerate.
10581 * config.in: Regenerate.
10582 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10583 -fuse-linker-plugin otherwise.
10584 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10585 (LINK_COMMAND_SPEC): Use it.
10586 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10588 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10590 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10591 * calls.c: Remove debug.h include.
10592 (emit_call_1): Don't call virtual_call_token debug hook.
10593 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10594 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10595 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10596 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10597 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10598 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10599 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10600 dwarf2out_virtual_call): Remove.
10601 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10602 copy_call_info and virtual_call hooks.
10603 (dwarf2out_init): Don't initialize vcall_insn_table,
10604 debug_dcall_section and debug_vcall_section.
10605 (prune_unused_types): Don't mark nodes from dcall_table.
10606 (dwarf2out_finish): Don't output dcall or vcall tables.
10607 * final.c (final_scan_insn): Don't call direct_call or
10608 virtual_call debug hooks.
10609 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10610 virtual_call_token, copy_call_info and virtual_call hooks.
10611 (debug_nothing_uid): Remove prototype.
10612 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10613 copy_call_info and virtual_call hooks.
10614 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10615 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10616 * debug.c (do_nothing_debug_hooks): Likewise.
10617 (debug_nothing_uid): Remove.
10618 * doc/invoke.texi (-fenable-icf-debug): Remove.
10619 * common.opt (-fenable-icf-debug): Likewise.
10621 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10622 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10623 call's MEM. Handle functions returning aggregate through a hidden
10624 first pointer. For virtual calls add clobbered pc to call arguments
10626 * dwarf2out.c (gen_subprogram_die): Emit
10627 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10631 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10632 * rtl.h (ENTRY_VALUE_EXP): Define.
10633 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10634 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10635 * print-rtl.c (print_rtx): Likewise.
10636 * gengtype.c (adjust_field_rtx_def): Likewise.
10637 * var-tracking.c (vt_add_function_parameter): Adjust
10638 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10639 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10640 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10641 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10642 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10644 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10645 Call var_location debug hook even on CALL_INSNs.
10646 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10647 * rtl.def (ENTRY_VALUE): New.
10648 * dwarf2out.c: Include cfglayout.h.
10649 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10650 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10651 (struct call_arg_loc_node): New type.
10652 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10653 tail_call_site_count): New variables.
10654 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10655 DW_TAG_GNU_call_site_parameter.
10656 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10657 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10658 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10659 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10660 and DW_AT_GNU_all_source_call_sites.
10661 (mem_loc_descriptor): Handle ENTRY_VALUE.
10662 (add_src_coords_attributes): Don't add enything if
10663 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10664 (dwarf2out_abstract_function): Save and clear call_arg_location,
10665 call_site_count and tail_call_site_count around dwarf2out_decl call.
10666 (gen_call_site_die): New function.
10667 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10668 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10669 (dwarf2out_function_decl): Clear call_arg_locations,
10670 call_arg_loc_last, set call_site_count and tail_call_site_count
10671 to -1 and free block_map.
10672 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10673 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10674 followed by any real instructions.
10675 (dwarf2out_begin_function): Set call_site_count and
10676 tail_call_site_count to 0.
10677 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10678 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10679 attempt to force a DIE for it and worst case remove the attribute.
10680 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10681 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10683 * var-tracking.c: Include tm_p.h.
10684 (vt_stack_adjustments): For calls call note_register_arguments.
10685 (argument_reg_set): New variable.
10686 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10687 ensure the VALUE is resolved.
10688 (call_arguments): New variable.
10689 (prepare_call_arguments): New function.
10690 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10691 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10692 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10693 always use the best expression.
10694 (vt_expand_loc): Add ignore_cur_loc argument.
10695 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10696 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10697 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10698 note for all calls.
10699 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10700 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10701 argument. Don't call cselib_preserve_only_values and
10702 cselib_reset_table.
10703 (note_register_arguments): New function.
10704 (vt_initialize): Compute argument_reg_set. Call
10705 vt_add_function_parameters before processing basic blocks instead of
10706 afterwards. For calls call prepare_call_arguments before calling
10707 cselib_process_insn.
10708 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10709 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10710 (var-tracking.o): Depend on $(TM_P_H).
10711 * cfglayout.h (insn_scope): New prototype.
10712 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10713 * cfglayout.c (insn_scope): No longer static.
10714 * insn-notes.def (CALL_ARG_LOCATION): New.
10715 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10716 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10717 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10718 nothing for DECL_EXTERNAL BLOCK_VARS.
10720 2011-03-16 Alan Modra <amodra@gmail.com>
10723 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10724 create invalid offset address for vsx splat insn.
10725 * config/rs6000/predicates.md (splat_input_operand): New.
10726 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10728 2011-03-15 Xinliang David Li <davidxl@google.com>
10731 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10732 (normalize_preds): New function.
10733 (is_use_properly_guarded): Normalize def predicates.
10735 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10738 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10739 in the output template.
10741 2011-03-15 Richard Guenther <rguenther@suse.de>
10743 PR middle-end/47650
10744 * tree-pretty-print.c (dump_function_declaration): Properly
10745 dump unprototyped and varargs function types.
10747 2011-03-15 Richard Guenther <rguenther@suse.de>
10749 PR tree-optimization/13954
10750 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10753 2011-03-15 Richard Guenther <rguenther@suse.de>
10755 PR tree-optimization/48037
10756 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10757 selects into BIT_FIELD_REFs.
10758 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10761 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10763 PR tree-optimization/48129
10764 * builtins.c (fold_builtin_snprintf): Convert to type of
10765 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10766 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10768 2011-03-15 Richard Guenther <rguenther@suse.de>
10770 PR tree-optimization/41490
10771 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10772 value but with VUSE.
10773 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10775 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10776 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10777 * tree-tailcall.c (find_tail_calls): Ignore returns.
10779 2011-03-15 Richard Guenther <rguenther@suse.de>
10781 PR middle-end/48031
10782 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10783 or variable-indexed array accesses when in gimple form.
10785 2011-03-15 Richard Guenther <rguenther@suse.de>
10787 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10789 2011-03-15 Alan Modra <amodra@gmail.com>
10792 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10793 presume symbol_refs without a symbol_ref_decl are suitably
10794 aligned, nor other trees we may see here. Handle anchor symbols.
10795 (legitimate_constant_pool_address_p): Comment. Add mode param.
10796 Check cmodel=medium addresses. Adjust all calls.
10797 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10798 creating cmodel=medium optimized access to locals.
10799 * config/rs6000/constraints.md (R): Pass QImode to
10800 legitimate_constant_pool_address_p.
10801 * config/rs6000/predicates.md (input_operand): Pass mode to
10802 legitimate_constant_pool_address_p.
10803 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10806 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10809 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10810 64-bit constants being loaded into registers other than GPRs such
10811 as loading 0 into a VSX register.
10813 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10815 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10817 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10819 PR middle-end/47917
10820 * builtins.c (fold_builtin_snprintf): New function.
10821 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10822 (fold_builtin_4): Likewise.
10824 PR middle-end/38878
10825 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10826 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10827 and C - X == X also strip nops from +/-/p+ operand.
10828 When optimizing -X == C, fold C to arg0's type.
10831 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10832 emit it as add_AT_int instead of add_AT_unsigned.
10834 2011-03-14 Tom Tromey <tromey@redhat.com>
10836 * unwind-dw2.c: Include sys/sdt.h if it exists.
10837 (_Unwind_DebugHook): Use STAP_PROBE2.
10838 * config.in, configure: Rebuild.
10839 * configure.ac: Check for sys/sdt.h.
10841 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10843 * config/i386/i386.md (ROUND_FLOOR): New constant.
10844 (ROUND_CEIL): Ditto.
10845 (ROUND_TRUNC): Ditto.
10846 (ROUND_MXCSR): Ditto.
10847 (ROUND_NO_EXC): Ditto.
10848 (rint<mode>2): Use new defines instead of numerical constants.
10849 (floor<mode>2): Ditto.
10850 (ceil<mode>2): Ditto.
10851 (btrunc<mode>2): Ditto.
10852 * config/i386/i386-builtin-types.def: Define ROUND function type
10854 * config/i386/i386.c (enum ix86_builtins): Add
10855 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10856 (struct builtin_description): Add
10857 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10858 (ix86_expand_sse_round): New static function.
10859 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10861 (ix86_builtin_vectorized_function): Handle
10862 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10864 2011-03-14 Tom Tromey <tromey@redhat.com>
10866 * c-parser.c (c_parser_asm_string_literal): Clear
10867 warn_overlength_strings.
10869 2011-03-14 Tom Tromey <tromey@redhat.com>
10871 * c-parser.c (disable_extension_diagnostics): Save
10872 warn_overlength_strings.
10873 (restore_extension_diagnostics): Restore warn_overlength_strings.
10875 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10877 * BASE-VER: Change to 4.7.0.
10879 2011-03-14 Richard Guenther <rguenther@suse.de>
10881 PR middle-end/48098
10882 * tree.c (build_vector_from_val): Adjust assert to requirements
10885 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10888 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10890 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10892 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10893 terms of target_flags_explicit. Adjust copyright year.
10895 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10896 * config/rs6000/t-freebsd: New file. Add override for
10899 2011-03-13 Chris Demetriou <cgd@google.com>
10901 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10902 (-fno-diagnostics-show-option): this, to reflect current default.
10903 (-Werror=): Update text about -fno-diagnostics-show-option.
10905 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10908 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10909 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10910 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10911 mode is not V2DImode or V2DFmode.
10912 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10913 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10914 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10916 (movdi_internal64): Likewise.
10918 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10920 PR tree-optimization/47127
10921 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10923 (set_cloog_options): Same.
10924 (scop_to_clast): Same.
10925 (print_clast_stmt): Do not call cloog_state_malloc and
10927 (print_generated_program): Same.
10929 * graphite-clast-to-gimple.h (cloog_state): Declared.
10930 (scop_to_clast): Adjust declaration.
10931 * graphite.c (cloog_state): Defined here.
10932 (graphite_initialize): Call cloog_state_malloc.
10933 (graphite_finalize): Call cloog_state_free.
10935 2011-03-11 Jason Merrill <jason@redhat.com>
10937 * attribs.c (lookup_attribute_spec): Take const_tree.
10940 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10942 * config/sparc/sparc.c (sparc_option_override): Use
10943 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10945 2011-03-11 Richard Guenther <rguenther@suse.de>
10947 PR tree-optimization/48067
10948 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10949 multiplication result will be only used once on the target
10952 2011-03-11 Richard Guenther <rguenther@suse.de>
10954 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10956 2011-03-11 Richard Guenther <rguenther@suse.de>
10959 * tree.c (find_decls_types_r): Do not walk types only reachable
10960 from IDENTIFIER_NODEs.
10962 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10964 PR middle-end/48044
10965 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10966 all vnode->force_output nodes as needed.
10968 2011-03-11 Jason Merrill <jason@redhat.com>
10971 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10972 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10974 2011-03-11 Martin Jambor <mjambor@suse.cz>
10976 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10979 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10981 PR tree-optimization/48063
10982 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10983 inline functions called once if !tree_can_inline_p (node->callers).
10985 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10987 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10989 * config/score/score3.c: Delete.
10990 * config/score/score3.h: Delete.
10991 * config/score/mul-div.S: Delete.
10992 * config/score/sfp-machine.h: Add new file.
10993 * config/score/constraints.md: Add new file.
10994 * config/score/t-score-softfp: Add new file.
10995 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
10996 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10997 (score7_extra_constraint): Delete.
10998 (score7_option_override): Remove unused code.
10999 * config/score/score.c: Remove score3 and score5 define and code.
11000 * config/score/score.h: Remove score3 and score5 define and code.
11001 * config/score/score.md: Remove score3 template and unusual insn.
11002 * config/score/score.opt: Remove score3 and score5 options.
11004 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11006 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11007 when _HPUX_SOURCE is defined.
11008 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11010 2011-03-10 Jason Merrill <jason@redhat.com>
11013 * stor-layout.c (layout_type): Don't set structural equality
11014 on arrays of incomplete type.
11015 * tree.c (type_hash_eq): Handle comparing them properly.
11017 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11020 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11021 result mode matches original rtl mode.
11023 2011-03-10 Nick Clifton <nickc@redhat.com>
11025 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11026 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11028 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11030 PR rtl-optimization/47866
11031 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11032 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11033 if target wasn't scalar.
11034 * function.c (assign_stack_temp_for_type): Assert that neither
11035 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11036 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11038 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11040 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11042 * config/s390/s390-protos.h (s390_label_align): New prototype.
11043 * config/s390/s390.c (s390_label_align): New function.
11044 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11046 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11049 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11050 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11051 (output_vec_const_move): Ditto.
11053 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11055 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11056 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11057 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11058 Change 'rclass' argument and result type to reg_class_t.
11059 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11061 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11063 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11064 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11065 (TARGET_MEMORY_MOVE_COST): Define.
11066 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11068 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11071 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11074 PR tree-optimization/48022
11075 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11078 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11081 * var-tracking.c (find_use_val): Return NULL for
11082 cui->sets && cui->store_p BLKmode MEMs.
11084 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11086 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11088 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11089 xstormy16_print_operand_address): Remove.
11090 * config/stormy16/stormy16.c (xstormy16_print_operand,
11091 xstormy16_print_operand_address): Make static.
11092 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11094 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11097 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11098 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11101 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11104 * cfgloopmanip.c (fix_bb_placements): Return immediately
11105 if FROM is BASE_LOOP's header.
11107 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11109 * gimplify.c (gimplify_function_tree): Fix building calls
11110 to __builtin_return_address.
11112 2011-03-07 Alan Modra <amodra@gmail.com>
11114 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11115 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11116 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11117 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11119 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11120 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11121 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11122 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11123 * config/rs6000/rs6000.c
11124 (rs6000_elf_end_indicate_exec_stack): Rename to..
11125 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11126 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11127 (rs6000_file_start): ..here.
11128 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11129 file scope variables.
11130 (call_ABI_of_interest): New function.
11131 (init_cumulative_args): Set above vars when function return value
11132 is a float, vector, or small struct.
11133 (rs6000_function_arg_advance_1): Likewise for function args.
11134 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11135 references float args.
11137 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11139 * doc/cfg.texi: Remove "See" before @ref.
11140 * doc/invoke.texi: Likewise.
11142 2011-03-05 Jason Merrill <jason@redhat.com>
11144 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11146 2011-03-05 Anthony Green <green@moxielogic.com>
11148 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11150 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11152 PR rtl-optimization/47899
11153 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11154 to flow_loop_nested_p when moving the loop upward.
11156 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11159 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11161 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11163 PR tree-optimization/47967
11164 * ipa-cp.c (build_const_val): Return NULL instead of creating
11165 VIEW_CONVERT_EXPR for mismatching sizes.
11166 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11167 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11168 give up on versioning.
11170 2011-03-05 Alan Modra <amodra@gmail.com>
11173 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11174 full cmodel medium/large lo_sum + high addresses.
11176 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11178 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11179 pool references in UNSPEC_LTREL_OFFSET.
11181 2011-03-04 Jan Hubicka <jh@suse.cz>
11184 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11185 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11186 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11188 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11189 cgraph_add_thunk): Add node pointers.
11190 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11191 associated to right node.
11192 (input_node): Update use of cgraph_same_body_alias
11193 and cgraph_add_thunk.
11195 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11197 * config/i386/i386.opt (mprefer-avx128): New flag.
11198 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11199 modes when the flag -mprefer-avx128 is on.
11201 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11203 * dwarf2out.c (compare_loc_operands): Fix address handling.
11205 2011-03-04 Alan Modra <amodra@gmail.com>
11207 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11209 2011-03-04 Richard Guenther <rguenther@suse.de>
11211 PR middle-end/47968
11212 * expmed.c (extract_bit_field_1): Prefer vector modes that
11213 vec_extract patterns can handle.
11215 2011-03-04 Richard Guenther <rguenther@suse.de>
11217 PR middle-end/47975
11218 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11220 2011-03-04 Richard Henderson <rth@redhat.com>
11222 * explow.c (emit_stack_save): Remove 'after' parameter.
11223 (emit_stack_restore): Likewise.
11224 * expr.h: Update to match.
11225 * builtins.c, calls.c, stmt.c: Likewise.
11226 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11227 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11228 * function.c (expand_function_end): Insert the emit_stack_save
11229 sequence before parm_birth_insn instead of after.
11231 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11233 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11234 (ssse3_pmaddubsw128): Ditto.
11235 (ssse3_pmaddubsw): Ditto.
11237 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11239 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11241 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11244 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11245 on TYPE_SIZE_UNIT if it is a DECL.
11248 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11249 first operand is not is_gimple_mem_ref_addr, try to fold it.
11250 If the operand still isn't is_gimple_mem_ref_addr, clear
11253 2011-03-03 Richard Guenther <rguenther@suse.de>
11255 PR middle-end/47283
11256 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11258 (refs_may_alias_p_1): For release branches return true if
11259 we are confused by our input.
11261 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11263 * config/s390/s390.c (s390_function_value): Rename to ...
11264 (s390_function_and_libcall_value): ... this.
11265 (s390_function_value): New function.
11266 (s390_libcall_value): New function.
11267 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11268 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11269 target macro definitions.
11270 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11272 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11274 * config/i386/freebsd64.h (CC1_SPEC): Define.
11275 * config/i386/linux64.h (CC1_SPEC): Define.
11276 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11278 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11280 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11282 * config/stormy16/stormy16.c: Include reload.h.
11283 (xstormy16_memory_move_cost): New function.
11284 (TARGET_MEMORY_MOVE_COST): Define.
11286 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11288 PR rtl-optimization/47925
11289 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11290 with side effects. Remove the more-specific check for volatile asms.
11292 2011-03-02 Alan Modra <amodra@gmail.com>
11295 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11296 toc relative addresses for valid offsets.
11298 2011-03-01 Richard Guenther <rguenther@suse.de>
11300 PR tree-optimization/47890
11301 * tree-vect-loop.c (get_initial_def_for_induction): Set
11302 related stmt properly.
11304 2011-03-01 Richard Guenther <rguenther@suse.de>
11307 * lto-streamer.c (lto_record_common_node): Also register
11308 the canonical type.
11310 2011-03-01 Richard Guenther <rguenther@suse.de>
11313 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11314 Do not stream DECL_ABSTRACT_ORIGIN.
11315 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11316 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11317 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11318 Do not stream DECL_ABSTRACT_ORIGIN.
11319 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11320 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11322 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11324 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11325 FUNCTION_VALUE_REGNO_P): Remove.
11326 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11327 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11328 Add 'outgoing' argument.
11329 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11331 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11332 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11334 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11337 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11338 (lookup_filename): Likewise.
11339 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11341 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11342 Jakub Jelinek <jakub@redhat.com>
11344 PR middle-end/47893
11345 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11346 (assign_stack_local_1): Change last argument type to int.
11347 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11348 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11349 don't record padding space into frame_space_list nor use those areas.
11350 (assign_stack_local): Adjust caller.
11351 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11352 of assign_stack_local, pass 0 as last argument.
11353 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11356 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11359 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11360 Use target address_mode and pointer_mode hooks instead of hardcoded
11361 Pmode and ptr_mode. Handle some simple cases of extending if
11362 POINTERS_EXTEND_UNSIGNED < 0.
11363 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11364 Call convert_debug_memory_address.
11365 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11366 convert_debug_memory_address.
11368 PR middle-end/46790
11369 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11370 * configure: Regenerated.
11371 * config.in: Regenerated.
11372 * varasm.c (default_function_section): Return NULL
11373 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11375 2011-02-28 Martin Jambor <mjambor@suse.cz>
11377 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11378 the description to match the printed values.
11380 2011-02-28 Richard Guenther <rguenther@suse.de>
11382 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11383 of the copied scope tree.
11385 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11387 * doc/extend.texi (Function Attributes): Avoid deeply (and
11388 wrongly) nested tables.
11390 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11392 PR middle-end/47903
11393 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11394 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11395 r isn't op0 nor op1.
11397 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11399 * config/avr/avr.md: Remove magic comment for emacs.
11401 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11404 * config/avr/avr.c (avr_option_override): Use error on bad options.
11405 (avr_help): New function.
11406 (TARGET_HELP): Define.
11408 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11411 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11412 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11414 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11416 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11417 (ARM Options): Ditto.
11418 (i386 and x86-64 Options): Ditto.
11419 (RX Options): Ditto.
11420 (SPARC Options): Ditto.
11422 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11424 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11425 FreeBSD 6 and later. Generally use cpu generic.
11427 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11429 * doc/cpp.texi: Update copyright years.
11431 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11434 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11436 2011-02-25 Jon Beniston <jon@beniston.com>
11439 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11440 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11441 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11442 (lm32_block_move_inline): Add type cast to remove warning.
11443 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11444 (gen_int_relational): Move declarations to start of function.
11446 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11448 PR tree-optimization/45470
11449 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11450 can throw internally only.
11451 * tree-vect-stmts.c (vectorizable_call): Likewise.
11453 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11455 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11456 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11457 * config/stormy16/stormy16-protos.h
11458 (xstormy16_preferred_reload_class): Remove.
11459 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11460 static. Change 'rclass' argument and return type to reg_class_t.
11461 (TARGET_PREFERRED_RELOAD_CLASS,
11462 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11464 2011-02-24 Richard Guenther <rguenther@suse.de>
11466 * lto-streamer-in.c (input_bb): Do not find referenced vars
11467 in debug statements.
11469 2011-02-23 Jason Merrill <jason@redhat.com>
11471 * common.opt (fabi-version): Document v5 and v6.
11473 2011-02-23 Richard Guenther <rguenther@suse.de>
11475 PR tree-optimization/47849
11476 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11478 2011-02-23 Jie Zhang <jie@codesourcery.com>
11480 * opts-common.c (decode_cmdline_option): Print empty string
11481 argument as "" in decoded->orig_option_with_args_text.
11482 * gcc.c (execute): Print empty string argument as ""
11483 in the verbose output.
11484 (do_spec_1): Keep empty string argument.
11486 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11488 * config.gcc: Declare score-* and crx-* obsolete.
11490 2011-02-23 Jie Zhang <jie@codesourcery.com>
11492 PR rtl-optimization/47763
11493 * web.c (web_main): Ignore naked clobber when replacing register.
11495 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11497 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11500 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11503 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11505 2011-02-22 Mike Stump <mikestump@comcast.net>
11507 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11509 * configure: Regenerate.
11511 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11513 PR rtl-optimization/46002
11514 * ira-color.c (update_copy_costs): Change class intersection
11515 test to reg_class_contents[] test of 'hard_regno'.
11517 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11519 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11520 than Driver option.
11521 * config/hpux11.opt (mt): Likewise.
11522 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11523 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11524 * config/vax/elf.opt (mno-asm-pic): Likewise.
11525 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11527 2011-02-21 Mike Stump <mikestump@comcast.net>
11530 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11531 tree so we can get save the type.
11532 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11533 for CFString instead of trying to use past the end of the builtins.
11534 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11535 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11536 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11537 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11538 Rename to darwin_builtin_cfstring.
11539 (darwin_init_cfstring_builtins): Return the built type.
11541 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11544 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11545 (_mm256_insert_epi64): Use _mm_insert_epi64.
11547 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11549 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11550 * config/stormy16/stormy16-protos.h
11551 (xstormy16_mode_dependent_address_p): Remove.
11552 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11553 Make static. Change return type to bool. Change argument type to
11554 const_rtx. Remove dead code.
11555 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11557 2011-02-21 Richard Guenther <rguenther@suse.de>
11560 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11561 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11562 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11564 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11565 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11567 2011-02-20 Richard Guenther <rguenther@suse.de>
11570 * tree.c (free_lang_data_in_decl): Clean builtins from
11571 the TU decl BLOCK_VARS.
11573 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11577 * haifa-sched.c (fix_tick_ready): Skip tick computation
11580 2011-02-19 Richard Guenther <rguenther@suse.de>
11583 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11584 Remove lazy BLOCK_VARS streaming.
11585 (lto_input_ts_block_tree_pointers): Likewise.
11586 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11588 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11590 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11592 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11594 * config/i386/biarch32.h, config/i386/mach.h,
11595 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11597 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11600 * config/i386/i386.md (peephole2 for shift and plus): Use
11601 operands[1] original mode in the first insn.
11603 2011-02-18 Mike Stump <mikestump@comcast.net>
11605 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11607 2011-02-18 Jan Hubicka <jh@suse.cz>
11609 PR middle-end/47788
11610 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11611 to zero when the function is not inlinable at all.
11613 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11615 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11616 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11617 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11618 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11619 * config/pa/t-pa64: Likewise.
11620 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11622 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11625 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11627 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11630 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11632 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11634 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11635 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11636 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11637 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11638 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11639 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11640 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11641 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11642 m32r_legitimate_address_p): New functions.
11643 * config/m32r/constraints.md (constraint "S"): Don't use
11644 STORE_PREINC_PREDEC_P.
11645 (constraint "U"): Don't use LOAD_POSTINC_P.
11647 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11649 PR rtl-optimization/46178
11650 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11651 compute ira_hard_regno_cover_class[].
11653 2011-02-18 Richard Guenther <rguenther@suse.de>
11656 * lto-streamer.h (lto_global_var_decls): Declare.
11657 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11658 statics for global var processing.
11660 2011-02-18 Richard Guenther <rguenther@suse.de>
11662 PR tree-optimization/47737
11663 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11664 edge dominance check.
11666 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11669 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11670 avoid invalid rtx sharing.
11672 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11674 * doc/cpp.texi (Obsolete Features): Add background on the
11675 origin of assertions.
11677 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11679 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11681 * config/darwin.c (output_objc_section_asm_op): Added support for
11683 (is_objc_metadata): New.
11684 (darwin_objc2_section): New.
11685 (darwin_objc1_section): New.
11686 (machopic_select_section): Added support for ABI v1 and v2.
11687 (darwin_emit_objc_zeroed): New.
11688 (darwin_output_aligned_bss): Detect objc metadata and treat it
11690 (darwin_asm_output_aligned_decl_common): Same.
11691 (darwin_asm_output_aligned_decl_local): Same.
11692 * config/darwin-sections.def: Updated for ABI v1 and v2.
11693 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11694 compiling Objective-C code for the NeXT runtime, default to using
11695 ABI version 0 for 32-bit, and version 2 for 64-bit.
11697 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11699 * common.opt (optimize_fast): New Variable.
11700 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11701 instead of local variable ofast.
11703 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11705 * doc/invoke.texi (fobjc-abi-version): Documented.
11706 (fobjc-nilcheck): Documented.
11707 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11710 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11713 * common.opt (export-dynamic): New Driver option.
11714 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11716 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11718 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11720 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11721 Jan Hubicka <jh@suse.cz>
11725 * cfgexpand.c (account_used_vars_for_block): Remove.
11726 (estimated_stack_frame_size): Use referenced vars.
11727 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11728 that were referenced in the original function. Test src_fn
11729 rather than cfun. Drop redundant get_var_ann.
11730 (setup_one_parameter): Drop redundant get_var_ann.
11731 (declare_return_variable): Likewise.
11732 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11733 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11734 * ipa-inline.c (compute_inline_parameters): Do not compute
11735 disregard_inline_limits here.
11736 (compute_inlinable_for_current, pass_inlinable): New.
11737 (pass_inline_parameters): Require PROP_referenced_vars.
11738 * cgraphunit.c (cgraph_process_new_functions): Don't run
11739 compute_inline_parameters explicitly unless function is in SSA form.
11740 (cgraph_analyze_function): Set .disregard_inline_limits.
11741 * tree-sra.c (convert_callers): Compute inliner parameters
11742 only for functions already in SSA form.
11744 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11746 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11747 -mlittle-endian-data.
11749 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11751 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11752 -mno-fpu, not -fpu and -no-fpu.
11753 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11754 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11756 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11759 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11760 input reload with PLUS RTX.
11762 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11764 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11765 of InverseVar(MDMX).
11767 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11769 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11772 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11774 * config/mn10300/mn10300.opt (mno-crt0): New.
11776 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11778 * config/m68k/uclinux.opt (static-libc): New Driver option.
11780 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11782 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11784 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11786 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11787 %{muser-extend-enabled}.
11789 2011-02-16 Richard Guenther <rguenther@suse.de>
11791 PR tree-optimization/47738
11792 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11793 the TODO from tree_predictive_commoning.
11795 2011-02-15 Jeff Law <law@redhat.com>
11798 2011-01-25 Jeff Law <law@redhat.com>
11800 PR rtl-optimization/37273
11801 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11802 handle them like argument loads from stack slots. Do not double
11803 count memory for memory constants and argument loads from stack slots.
11805 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11807 PR middle-end/47725
11808 * combine.c (cant_combine_insn_p): Revert the last change.
11810 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11813 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11814 mode for vector constants. Remove code that checks for TImode.
11816 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11820 * cgraph.h (compute_inline_parameters): Return void.
11821 * ipa-inline.c (compute_inline_parameters): Adjust.
11823 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11827 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11829 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11830 * ipa-inline.c (compute_inline_parameters): Adjust.
11832 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11836 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11837 Adjust all users. Pass FN to...
11838 * tree-flow-inline.h (first_referenced_var): ... this. Add
11840 * ipa-struct-reorg.c: Adjust.
11841 * tree-dfa.c: Adjust.
11842 * tree-into-ssa.c: Adjust.
11843 * tree-sra.c: Adjust.
11844 * tree-ssa-alias.c: Adjust.
11845 * tree-ssa-live.c: Adjust.
11846 * tree-ssa.c: Adjust.
11847 * tree-ssanames.c: Adjust.
11848 * tree-tailcall.c: Adjust.
11850 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11854 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11855 Adjust all callers.
11856 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11857 * tree-flow-inline.h: Adjust.
11858 * gimple-pretty-print.c: Adjust.
11859 * tree-into-ssa.c: Adjust.
11860 * tree-ssa.c: Adjust.
11861 * cfgexpand.c: Adjust.
11863 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11865 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11866 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11867 (EXTRA_CONSTRAINT): Delete.
11868 * config/iq2000/constraints.md: New file.
11869 * config/iq2000/iq2000.md: Include it.
11870 (define_insn ""): Delete.
11871 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11872 unsupported constraint letters from patterns.
11873 (call_value, call_value_internal1): Likewise.
11874 (call_value_multiple_internal1): Likewise.
11876 2011-02-15 Nick Clifton <nickc@redhat.com>
11878 * config/mn10300/mn10300.c: Include tm-constrs.h.
11879 (struct liw_data): New data structure describing an LIW candidate
11881 (extract_bundle): Use struct liw_data. Allow small integer
11882 operands for some instructions.
11883 (check_liw_constraints): Use struct liw_data. Remove swapped
11884 parameter. Add comments describing the checks. Fix bug when
11885 assigning the source of liw1 to the source of liw2.
11886 (liw_candidate): Delete. Code moved into extract_bundle.
11887 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11889 * config/mn10300/predicates.md (liw_operand): New predicate.
11890 Allows registers and small integer constants.
11891 * config/mn10300/constraints.md (O): New constraint. Accetps
11892 integers in the range -8 to +7 inclusive.
11893 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11894 for moving a small integer into a register. Give this alternative
11896 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11897 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11898 using the J,K,L and M constraints,
11899 (liw): Remove SI mode on second operands to allow for HI and QI
11901 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11904 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11906 PR middle-end/47725
11907 * combine.c (cant_combine_insn_p): Check zero/sign extended
11910 2011-02-15 Richard Guenther <rguenther@suse.de>
11912 PR tree-optimization/47743
11913 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11914 for a non-type-compatible VN lookup bail out.
11916 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11918 * config/fr30/constraints.md: New file.
11919 * config/fr30/fr30.md: Include it.
11920 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11921 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11922 (EXTRA_CONSTRAINT): Delete.
11924 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11926 * config/frv/constraints.md: New file.
11927 * config/frv/predicates.md: Include it.
11928 * config/frv/frv.c (reg_class_from_letter): Delete.
11929 (frv_option_override): Don't initialize it.
11930 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11931 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11932 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11933 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11934 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11935 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11936 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11937 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11938 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11939 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11940 (REG_CLASS_FROM_CONSTRAINT): Delete.
11942 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11944 PR middle-end/47581
11945 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11946 if frame size is 0 in a leaf function.
11948 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11951 * config/alpha/host-osf.c: New file.
11952 * config/alpha/x-osf: New file.
11953 * config.host (alpha*-dec-osf*): Use it.
11955 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11957 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11958 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11959 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11960 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11962 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11964 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11966 * config/stormy16/constraints.md: New file.
11967 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11968 Use satisfies_constraint_Q and satisfies_constraint_R.
11969 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11971 (xstormy16_legitiamte_address_p): Declare.
11972 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11973 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11974 (EXTRA_CONSTRAINT): Delete.
11975 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11977 (xstormy16_extra_constraint_p): Delete.
11979 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11981 PR tree-optimization/46494
11982 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11983 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11984 (pass_rtl_loop_done): Add TODO_verify_flow.
11985 * fwprop.c (pass_rtl_fwprop): Likewise.
11986 * modulo-sched.c (pass_sms): Likewise.
11987 * tree-ssa-dom.c (pass_dominator): Likewise.
11988 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11989 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11990 (pass_tree_loop_done): Likewise.
11991 * tree-ssa-pre.c (execute_pre): Likewise.
11992 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11993 * tree-ssa-sink.c (pass_sink_code): Likewise.
11994 * tree-vrp.c (pass_vrp): Likewise.
11996 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11998 * config/v850/constraints.md: New file.
11999 * config/v850/v850.md: Include it.
12000 * config/v850/predicates.md (reg_or_0_operand): Use
12001 satisfies_constraint_G.
12002 (special_symbolref_operand): Use satisfies_constraint_K.
12003 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12004 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12005 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12006 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12007 (EXTRA_CONSTRAINT): Delete.
12008 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12009 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12010 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12012 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12015 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12018 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12020 * config/mcore/constraints.md: New file.
12021 * config/mcore/mcore.md: Include it.
12022 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12023 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12024 (REG_CLASS_FROM_LETTER): Delete.
12025 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12026 insn_const_int_ok_for_constraint.
12027 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12028 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12029 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12030 (EXTRA_CONSTRAINT): Delete.
12032 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12035 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12036 (IS_SIGHANDLER): Define.
12037 (sparc64_is_sighandler): New function, split off from
12038 sparc64_fallback_frame_state.
12039 (sparc_is_sighandler): New function, split off from
12040 sparc_fallback_frame_state.
12041 (sparc64_fallback_frame_state): Merge with ...
12042 (sparc_fallback_frame_state): ... this into ...
12043 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12044 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12045 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12046 stack instead of hardcoded offsets.
12048 2011-02-14 Andriy Gapon <avg@freebsd.org>
12051 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12053 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12055 * configure: Regenerate.
12057 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12060 * gcc.c (asm_options): Correct spec matching --target-help.
12062 2011-02-12 Martin Jambor <mjambor@suse.cz>
12064 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12065 to gimple call error.
12067 2011-02-12 Mike Stump <mikestump@comcast.net>
12069 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12070 comments in backslash regions.
12072 2011-02-12 Mike Stump <mikestump@comcast.net>
12073 Jakub Jelinek <jakub@redhat.com>
12074 Iain Sandoe <iains@gcc.gnu.org>
12077 * dwarf2out.c (output_cfa_loc): When required, apply the
12078 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12079 (output_loc_sequence): Likewise.
12080 (output_loc_operands_raw): Likewise.
12081 (output_loc_sequence_raw): Likewise.
12082 (output_cfa_loc): Likewise.
12083 (output_loc_list): Suppress register number adjustment when
12084 calling output_loc_sequence()
12085 (output_die): Likewise.
12087 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12089 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12091 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12092 xtensa_memory_move_cost): New functions.
12093 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12095 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12098 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12099 in the current directory.
12100 * configure: Rebuilt.
12102 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12104 * config/darwin.c (darwin_override_options): Add a hunk missed
12105 from the commit of r168571. Trim comment line lengths and
12106 correct indents of the preceding block.
12108 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12110 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12113 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12115 * common.opt (nostartfiles): New Driver option.
12117 2011-02-11 Xinliang David Li <davidxl@google.com>
12119 PR tree-optimization/47707
12120 * tree-chrec.c (convert_affine_scev): Keep type precision.
12122 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12124 PR tree-optimization/47420
12125 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12127 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12129 PR rtl-optimization/47614
12130 * rtl.h (check_for_inc_dec): Declare.
12131 * dse.c (check_for_inc_dec): Externalize...
12132 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12133 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12135 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12138 * gcc.c (main): Do not compile inputs if there were errors in
12140 * opts-common.c (read_cmdline_option): Check for wrong language
12141 after other error checks.
12143 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12145 * cgraph.c: Fix comment typos.
12146 * cgraph.h: Likewise.
12147 * cgraphunit.c: Likewise.
12148 * ipa-cp.c: Likewise.
12149 * ipa-inline.c: Likewise.
12150 * ipa-prop.c: Likewise.
12151 * ipa-pure-const.c: Likewise.
12152 * ipa-ref.c: Likewise.
12153 * ipa-reference.c: Likewise.
12155 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12158 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12160 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12163 * doc/sourcebuild.texi (Require Support): Document
12164 dg-require-ascii-locale.
12166 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12168 * doc/lto.texi (Write summary): Fix missing parentheses.
12170 2011-02-10 DJ Delorie <dj@redhat.com>
12172 * config/m32c/m32c.c (m32c_option_override): Disable
12173 -fcombine-stack-adjustments until flag value tracking and compare
12174 optimization can be rewritten.
12176 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12178 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12180 (PROCESSOR_DEFAULT64): Likewise.
12182 2011-02-10 Richard Henderson <rth@redhat.com>
12184 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12185 change from 2011-02-03.
12186 * config/rx/rx.c (flags_from_code): Likewise.
12187 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12188 is valid, n/pz otherwise.
12189 (rx_select_cc_mode): Return CCmode if Y is not zero.
12191 2011-02-10 Richard Guenther <rguenther@suse.de>
12193 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12195 2011-02-10 Richard Guenther <rguenther@suse.de>
12197 PR tree-optimization/47677
12198 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12200 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12203 * combine.c (make_compound_operation): Only change shifts into
12204 multiplication for SCALAR_INT_MODE_P.
12206 2011-02-10 Jie Zhang <jie@codesourcery.com>
12210 2011-02-05 Jie Zhang <jie@codesourcery.com>
12212 * web.c (entry_register): Don't clobber the number of the
12213 first uninitialized reference in used[].
12215 2011-02-09 Richard Guenther <rguenther@suse.de>
12217 PR tree-optimization/47664
12218 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12221 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12225 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12227 (PROCESSOR_DEFAULT64): Same.
12228 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12230 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12232 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12234 2011-02-09 Martin Jambor <mjambor@suse.cz>
12236 PR middle-end/45505
12237 * tree-sra.c (struct access): New flags grp_scalar_read and
12238 grp_scalar_write. Changed description of assignment read and write
12240 (dump_access): Dump new flags, reorder all of them.
12241 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12242 to detect multiple scalar reads.
12243 (analyze_access_subtree): Use the new scalar read write flags instead
12244 of the old flags. Adjusted comments.
12246 2011-02-08 DJ Delorie <dj@redhat.com>
12249 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12252 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12254 * config/m68k/uclinux.opt: New.
12255 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12257 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12259 * config/cris/elf.opt (sim): New Driver option.
12261 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12263 * config/xtensa/elf.opt: New.
12264 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12266 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12268 * config/vax/elf.opt: New.
12269 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12271 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12273 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12275 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12277 * config/gnu-user.opt: New.
12278 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12279 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12280 *-*-uclinux*): Use gnu-user.opt.
12282 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12284 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12285 * config/i386/gnu.h (CPP_SPEC): Likewise.
12287 2011-02-08 Ian Lance Taylor <iant@google.com>
12289 * common.opt (fcx-limited-range): Add SetByCombined flag.
12290 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12291 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12292 (fassociative-math, freciprocal-math): Likewise.
12293 (funsafe-math-optimizations): Likewise.
12294 * opth-gen.awk: Handle SetByCombined.
12295 * optc-gen.awk: Likewise.
12296 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12297 (set_unsafe_math_optimizations_flags): Likewise.
12298 * doc/options.texi (Option properties): Document SetByCombined.
12300 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12302 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12303 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12304 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12305 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12306 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12308 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12310 PR tree-optimization/46834
12311 PR tree-optimization/46994
12312 PR tree-optimization/46995
12313 * graphite-sese-to-poly.c (used_outside_reduction): New.
12314 (detect_commutative_reduction): Call used_outside_reduction.
12315 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12316 translate_scalar_reduction_to_array only when at least one
12317 loop-phi/close-phi tuple has been detected.
12319 2011-02-08 Richard Guenther <rguenther@suse.de>
12321 PR middle-end/47639
12322 * tree-vect-generic.c (expand_vector_operations_1): Update
12324 (expand_vector_operations): ... not here. Cleanup EH info
12325 and the CFG if required.
12327 2011-02-08 Richard Guenther <rguenther@suse.de>
12329 PR tree-optimization/47641
12330 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12331 require type compatibility.
12333 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12335 * gimple-low.c (lower_function_body): Don't remove the location of
12336 the return statement here.
12337 (lower_gimple_return): Do it here instead but only if the return
12338 statement is actually used twice.
12340 2011-02-08 Richard Guenther <rguenther@suse.de>
12342 PR tree-optimization/47632
12343 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12344 unused up_to_stmt parameter, return whether cfg-cleanup is
12345 necessary, remove EH info properly.
12346 (forward_propagate_into_gimple_cond): Adjust caller.
12347 (forward_propagate_into_cond): Likewise.
12348 (forward_propagate_comparison): Likewise.
12349 (tree_ssa_forward_propagate_single_use_vars): Make
12350 forward_propagate_comparison case similar to the two others.
12352 2011-02-08 Nick Clifton <nickc@redhat.com>
12354 * config/mn10300/mn10300.opt (mliw): New command line option.
12355 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12356 (liw_bundling): New automaton.
12357 (liw): New attribute.
12358 (liw_op): New attribute.
12359 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12360 (movsi_internal): Add LIW attributes.
12361 (andsi3): Likewise.
12362 (iorsi3): Likewise.
12363 (xorsi3): Likewise.
12364 (addsi3): Separate register and immediate alternatives.
12365 Add LIW attributes.
12366 (subsi3): Likewise.
12368 (aslsi3): Likewise.
12369 (lshrsi3): Likewise.
12370 (ashrsi3): Likewise.
12371 (liw): New pattern.
12372 * config/mn10300/mn10300.c (liw_op_names): New
12373 (mn10300_print_operand): Handle 'W' operand descriptor.
12374 (extract_bundle): New function.
12375 (check_liw_constraints): New function.
12376 (liw_candidate): New function.
12377 (mn10300_bundle_liw): New function.
12378 (mn10300_reorg): New function.
12379 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12380 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12381 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12382 __LIW__ or __NO_LIW__.
12383 * doc/invoke.texi: Describe the -mliw command line option.
12385 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12387 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12388 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12389 pthread_mutex_unlock): Remove.
12390 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12391 * config/pa/t-pa64: Likewise.
12392 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12393 shared libc if not linking against libpthread.
12394 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12396 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12399 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12400 on 10.6 and later to ensure that we always use the unwinder from
12401 the system. Only add -no_compact_unwind when tarteting darwin
12404 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12407 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12408 (vec_interleave_lowv2sf): Ditto.
12409 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12410 (vec_extract_oddv2sf): Ditto.
12412 2011-02-07 Mike Stump <mikestump@comcast.net>
12415 Add __ieee_divdc3 entry point.
12416 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12418 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12419 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12420 * config/darwin.c (darwin_rename_builtins): Add.
12421 * config/darwin-protos.h (darwin_rename_builtins): Add.
12423 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12426 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12429 2011-02-07 Mike Stump <mikestump@comcast.net>
12431 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12433 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12436 * config/avr/libgcc.S (exit): Move .endfunc
12438 2011-02-07 Richard Guenther <rguenther@suse.de>
12440 PR tree-optimization/47615
12441 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12442 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12443 (run_scc_vn): Initialize it.
12444 (visit_reference_op_load): Use it.
12445 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12447 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12449 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12450 DImode trapping arithmetic libfuncs.
12452 2011-02-07 Richard Guenther <rguenther@suse.de>
12454 PR tree-optimization/47621
12455 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12457 (execute_update_addresses_taken): ... here. Make it more
12458 conservative in what we accept.
12460 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12462 * config/sparc/freebsd.h (ASM_SPEC): Define.
12463 * config/sparc/vxworks.h (ASM_SPEC): Define.
12465 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12467 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12469 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12471 * doc/invoke.texi: Remove reference to compiler internals from
12472 user documentation.
12474 * reg-notes.def: Remove REG_VALUE_PROFILE.
12475 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12477 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12479 PR middle-end/47610
12480 * varasm.c (default_section_type_flags): If decl is NULL,
12481 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12483 2011-02-05 Jie Zhang <jie@codesourcery.com>
12486 * web.c (entry_register): Don't clobber the number of the
12487 first uninitialized reference in used[].
12489 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12491 PR tree-optimization/46194
12492 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12493 (build_classic_dist_vector_1): Do not represent classic distance
12494 vectors when the access functions are variating in different loops.
12496 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12498 * config/mips/iris6.opt: New.
12499 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12501 2011-02-04 Richard Henderson <rth@redhat.com>
12502 Steve Ellcey <sje@cup.hp.com>
12505 * config/ia64/predicates.md (mux1_brcst_element): New.
12506 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12507 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12508 (ia64_unpack_sign): New.
12509 (ia64_expand_unpack): Rewrite using new routines.
12510 (ia64_expand_widen_sum): Ditto.
12511 (ia64_expand_dot_prod_v8qi): Ditto.
12512 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12513 routines, add endian check.
12514 (pmpy2_even): Rename from pmpy2_r, add endian check.
12515 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12516 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12517 (vec_widen_smult_hi_v4hi): Ditto.
12518 (vec_widen_umult_lo_v4hi): Ditto.
12519 (vec_widen_umult_hi_v4hi): Ditto.
12520 (mulv2si3): Change endian checks.
12521 (sdot_prodv4hi): Rewrite with new calls.
12522 (udot_prodv4hi): New.
12523 (vec_pack_ssat_v4hi): Add endian check.
12524 (vec_pack_usat_v4hi): Ditto.
12525 (vec_pack_ssat_v2si): Ditto.
12526 (max1_even): Rename from max1_r, add endian check.
12527 (max1_odd): Rename from max1_l, add endian check.
12528 (*mux1_rev): Format change.
12529 (*mux1_mix): Ditto.
12530 (*mux1_shuf): Ditto.
12531 (*mux1_alt): Ditto.
12532 (*mux1_brcst_v8qi): Use new predicate.
12533 (vec_extract_evenv8qi): Remove endian check.
12534 (vec_extract_oddv8qi): Ditto.
12535 (vec_interleave_lowv4hi): Format change.
12536 (vec_interleave_highv4hi): Ditto.
12537 (mix2_even): Rename from mix2_r, add endian check.
12538 (mix2_odd): Rename from mux2_l, add endian check.
12539 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12540 (vec_extract_evenodd_helper): Format change.
12541 (vec_extract_evenv4hi): Remove endian check.
12542 (vec_extract_oddv4hi): Remove endian check.
12543 (vec_interleave_lowv2si): Format change.
12544 (vec_interleave_highv2si): Format change.
12545 (vec_initv2si): Remove endian check.
12546 (vecinit_v2si): Add endian check.
12547 (reduc_splus_v2sf): Add endian check.
12548 (reduc_smax_v2sf): Ditto.
12549 (reduc_smin_v2sf): Ditto.
12550 (vec_initv2sf): Remove endian check.
12551 (fpack): Add endian check.
12552 (fswap): Add endian check.
12553 (vec_interleave_highv2sf): Add endian check.
12554 (vec_interleave_lowv2sf): Add endian check.
12555 (fmix_lr): Add endian check.
12556 (vec_setv2sf): Format change.
12557 (*vec_extractv2sf_0_be): Use shift to extract operand.
12558 (*vec_extractv2sf_1_be): New.
12559 (vec_pack_trunc_v4hi): Add endian check.
12560 (vec_pack_trunc_v2si): Format change.
12562 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12564 PR inline-asm/23200
12565 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12566 do bb, locus and block comparison and disallow loads if it is not set.
12567 (stmt_is_replaceable_p): New function.
12568 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12570 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12571 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12573 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12575 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12577 * config/rs6000/xilinx.opt: New.
12578 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12580 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12582 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12584 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12586 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12587 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12588 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12589 secondary_reload_info, xtensa_secondary_reload): Remove.
12590 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12591 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12592 (xtensa_preferred_reload_class): Make static. Change return and
12593 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12594 Use CONST_DOUBLE_P predicate.
12595 (xtensa_preferred_output_reload_class): New function.
12596 (xtensa_secondary_reload): Make static.
12598 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12600 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12601 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12602 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12604 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12606 PR middle-end/31490
12607 * output.h (SECTION_RELRO): Define.
12608 (SECTION_MACH_DEP): Adjust.
12609 (get_variable_section): New prototype.
12610 * varpool.c (varpool_finalize_named_section_flags): New function.
12611 (varpool_assemble_pending_decls): Call it.
12612 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12613 * cgraphunit.c (cgraph_output_in_order): Call
12614 varpool_finalize_named_section_flags.
12615 * varasm.c (get_section): Allow section flags conflicts between
12616 relro and read-only sections if the section hasn't been declared yet.
12617 Set SECTION_OVERRIDE after diagnosing section type conflict.
12618 (get_variable_section): No longer static.
12619 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12620 readonly sections that need relocations.
12621 (decl_readonly_section_1): New function.
12622 (decl_readonly_section): Use it.
12625 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12626 Steve Ellcey <sje@cup.hp.com>
12628 PR middle-end/31490
12629 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12630 if section attribute used.
12632 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12634 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12635 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12636 (darwin_init_sections): Remove assertion.
12638 2011-02-03 Nick Clifton <nickc@redhat.com>
12640 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12642 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12643 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12644 instead of "n" and "pz".
12645 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12648 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12651 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12652 fma, expand FMA_EXPR as fma{,f,l} call.
12655 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12656 copy them into a unsigned char variable and pass address of it to
12657 lto_output_data_stream.
12660 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12661 around backend_init_target and lang_dependent_init_target calls.
12662 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12663 (verify_cgraph_node): Don't call set_cfun here. Use
12664 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12665 Set error_found for incorrectly represented calls to thunks.
12667 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12670 PR rtl-optimization/43494
12671 * rtl.h (for_each_inc_dec_fn): New type.
12672 (for_each_inc_dec): Declare.
12673 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12674 (for_each_inc_dec_find_inc_dec): New fn.
12675 (for_each_inc_dec_find_mem): New fn.
12676 (for_each_inc_dec): New fn.
12677 * dse.c (struct insn_size): Remove.
12678 (replace_inc_dec, replace_inc_dec_mem): Remove.
12679 (emit_inc_dec_insn_before): New fn.
12680 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12681 (canon_address): Pass mem modes to cselib_lookup.
12682 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12683 (cselib_lookup_from_insn): Likewise.
12684 (cselib_subst_to_values): Likewise.
12685 * cselib.c (find_slot_memmode): New var.
12686 (cselib_find_slot): New fn. Use it instead of
12687 htab_find_slot_with_hash everywhere.
12688 (entry_and_rtx_equal_p): Use find_slot_memmode.
12689 (autoinc_split): New fn.
12690 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12691 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12692 Deal with autoinc. Special-case recursion into MEMs.
12693 (cselib_hash_rtx): Likewise.
12694 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12695 address and MEM modes.
12696 (cselib_subst_to_values): Add memmode, pass it on.
12698 (cselib_lookup): Add memmode argument, pass it on.
12699 (cselib_lookup_from_insn): Add memmode.
12700 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12701 (struct cselib_record_autoinc_data): New.
12702 (cselib_record_autoinc_cb): New fn.
12703 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12704 mode to cselib_lookup. Reset autoinced REGs here instead of...
12705 (cselib_process_insn): ... here.
12706 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12708 (add_uses): Likewise, also to cselib_subst_to_values.
12709 (add_stores): Likewise.
12710 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12711 cselib_subst_to_values.
12712 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12713 * gcse.c (do_local_cprop): Adjusted.
12714 * postreload.c (reload_cse_simplify_set): Adjusted.
12715 (reload_cse_simplify_operands): Adjusted.
12716 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12718 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12720 PR tree-optimization/45122
12721 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12722 unsafe assumptions when there's more than one loop exit.
12724 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12727 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12728 Document using vector double with the load/store builtins, and
12729 that the load/store builtins always use Altivec instructions.
12731 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12732 to use altivec memory instructions, even on VSX.
12733 (vector_altivec_store_<mode>): Ditto.
12735 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12738 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12739 V2DF, V2DI support to load/store overloaded builtins.
12741 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12742 altivec load/store builtins for V2DF/V2DI types.
12744 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12745 set avoid indexed addresses on power6 if -maltivec.
12746 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12747 vector_altivec_load/vector_altivec_store builtins.
12748 (altivec_expand_st_builtin): Ditto.
12749 (altivec_expand_builtin): Add VSX memory builtins.
12750 (rs6000_init_builtins): Add V2DI types to internal types.
12751 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12752 load/store builtins.
12753 (rs6000_address_for_altivec): Insure memory address is appropriate
12756 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12757 vec_vsx_ld and vec_vsx_st.
12758 (vsx_store_<mode>): Ditto.
12760 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12761 variables to hold long long types for VSX vector memory builtins.
12762 (RS6000_BTI_unsigned_long_long): Ditto.
12763 (long_long_integer_type_internal_node): Ditti.
12764 (long_long_unsigned_type_internal_node): Ditti.
12766 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12767 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12768 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12770 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12772 (vec_vsx_st): Ditto.
12774 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12776 * config/pa/pa-hpux10.opt: New.
12777 * config/hpux11.opt (pthread): New Driver option.
12778 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12779 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12781 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12783 * config/ia64/vms.opt: New.
12784 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12786 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12789 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12790 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12791 generator functions.
12792 (vsx_floatuns<VSi><mode>2): Ditto.
12793 (vsx_fix_trunc<mode><VSi>2): Ditto.
12794 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12796 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12798 * config/i386/djgpp.opt (posix): New Driver option.
12800 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12802 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12803 Move to the unsupported targets list.
12805 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12807 PR rtl-optimization/47525
12808 * df-scan.c: Update copyright years.
12809 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12810 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12812 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12814 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12815 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12816 (ASM_OUTPUT_ASCII): Remove.
12817 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12819 2011-02-02 Jeff Law <law@redhat.com>
12821 PR middle-end/47543
12822 * reload.c (find_reloads_address): Handle reg+d address where both
12823 components are invalid by reloading the entire address.
12825 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12826 Richard Guenther <rguenther@suse.de>
12828 PR tree-optimization/40979
12830 * passes.c (init_optimization_passes): After LIM call copy_prop
12831 and DCE to clean up.
12832 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12834 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12836 PR tree-optimization/47576
12837 PR tree-optimization/47555
12838 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12839 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12840 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12841 * tree-scalar-evolution.c (follow_ssa_edge): Use
12842 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12844 2011-02-02 Richard Guenther <rguenther@suse.de>
12846 PR tree-optimization/47566
12847 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12849 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12853 * tree-inline.c (declare_return_variable): Remove unused caller
12858 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12859 * cfgexpand.c (account_used_vars_for_block): Use them.
12860 * tree-nrv.c (tree_nrv): Likewise.
12861 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12862 (dump_scope_block): Likewise.
12863 (remove_unused_locals): Likewise.
12867 * tree-inline.c (declare_return_variable): Add result decl to
12868 local decls only once.
12869 * gimple-low.c (record_vars_into): Mark newly-created variables
12872 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12878 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12880 (no_real_insns_p, schedule_block, set_priorities): Drop special
12881 treatment of boundary debug insns.
12882 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12883 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12884 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12885 (BOUNDARY_DEBUG_INSN_P): Likewise.
12886 (SCHEDULE_DEBUG_INSN_P): Likewise.
12887 * sched-rgn.c (init_ready_list): Drop special treatment of
12888 boundary debug insns.
12889 * final.c (rest_of_clean_state): Clear notes' BB.
12891 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12893 * config/openbsd.opt (assert=): New Driver option.
12895 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12897 * config/i386/nto.opt: New.
12898 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12900 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12902 * config/i386/netware.opt: New.
12903 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12905 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12907 * config/interix.opt (posix): New Driver option.
12909 2011-02-01 DJ Delorie <dj@redhat.com>
12911 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12913 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12916 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12918 PR tree-optimization/47561
12919 * toplev.c (process_options): Print the Graphite flags. Add
12920 flag_loop_flatten to the list of options requiring Graphite.
12922 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12924 * config/i386/cygming.opt (posix): New Driver option.
12926 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12928 * config/arm/vxworks.opt: New.
12929 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12931 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12933 * config/alpha/elf.opt: New.
12934 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12935 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12937 2011-02-01 Richard Guenther <rguenther@suse.de>
12939 PR tree-optimization/47559
12940 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12941 store-motion on references that can throw.
12943 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12945 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12946 * tree-pass.h (TDF_CSELIB): New macro.
12947 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12948 cselib_lookup): Check for it rather than for TDF_DETAILS.
12950 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12953 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12954 is HOST_BIT_BUCKET.
12956 * opts.c (finish_options): Don't add x_aux_base_name if it is
12959 2011-02-01 Richard Guenther <rguenther@suse.de>
12961 PR tree-optimization/47555
12963 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12965 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12967 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12970 * config/lm32/t-lm32: Add multilib for all CPU options.
12972 2011-02-01 Richard Guenther <rguenther@suse.de>
12974 PR tree-optimization/47541
12975 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12976 sure to have a field at offset zero.
12978 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12980 * config/arc/arc.opt (EB, EL): New Driver options.
12982 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12984 * config/alpha/osf5.opt: New.
12985 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12987 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12989 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12991 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12993 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12994 -floop-interchange.
12995 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12996 is an alias of -floop-interchange and that it requires the
12997 Graphite infrastructure.
12998 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12999 flag_loop_interchange based on the value of flag_tree_loop_linear.
13001 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13002 Richard Guenther <rguenther@suse.de>
13004 PR tree-optimization/47538
13005 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13006 type instead of r1type, except for comparisons. For right
13007 shifts and comparisons punt if there are mismatches in
13008 sizetype vs. non-sizetype types.
13010 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13012 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13015 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13017 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13019 * configure: Regenerate.
13021 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13023 * configure.ac (gcc_cv_ld_static_option): Define.
13024 (gcc_cv_ld_dynamic_option): Define.
13025 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13027 (HAVE_LD_STATIC_DYNAMIC): Update message.
13028 (LD_STATIC_OPTION): Define.
13029 (LD_DYNAMIC_OPTION): Define.
13030 * configure: Regenerate.
13031 * config.in: Regenerate.
13032 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13033 HAVE_LD_STATIC_DYNAMIC]: Use them.
13035 2011-01-31 Nick Clifton <nickc@redhat.com>
13037 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13038 registers inside interrupt handlers if the handler is not a leaf
13041 2011-01-31 Nick Clifton <nickc@redhat.com>
13043 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13044 reg_renumber returning an INVALID_REGNUM.
13046 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13049 * doc/install.texi: Document host options discarded when cross
13050 configuring target libraries.
13052 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13055 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13058 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13060 (no_real_insns_p, schedule_block, set_priorities): Drop special
13061 treatment of boundary debug insns.
13062 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13063 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13064 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13065 (BOUNDARY_DEBUG_INSN_P): Likewise.
13066 (SCHEDULE_DEBUG_INSN_P): Likewise.
13067 * sched-rgn.c (init_ready_list): Drop special treatment of
13068 boundary debug insns.
13069 * final.c (rest_of_clean-state): Clear notes' BB.
13071 2011-01-31 Alan Modra <amodra@gmail.com>
13073 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13074 toc relative expressions as we do in print_operand_address.
13076 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13078 * doc/extend.texi: Follow spelling conventions.
13079 * doc/invoke.texi: Fix a typo.
13081 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13083 * config/hpux11.opt: New.
13084 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13085 ia64*-*-hpux*): Use hpux11.opt.
13087 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13089 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13092 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13094 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13097 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13099 * doc/install.texi (Binaries): Remove outdated reference for
13100 Motorola 68HC11/68HC12 downloads.
13102 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13104 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13107 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13110 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13113 2011-01-28 Ahmad Sharif <asharif@google.com>
13115 * value-prof.c (check_counter): Corrected error message.
13117 2011-01-29 Jie Zhang <jie@codesourcery.com>
13119 * config/arm/arm.c (arm_legitimize_reload_address): New.
13120 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13121 arm_legitimize_reload_address.
13122 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13124 2011-01-28 Ian Lance Taylor <iant@google.com>
13126 * godump.c (go_define): Ignore macros whose definitions include
13127 two adjacent operands.
13129 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13132 * varasm.c (force_const_mem): Store copy of x in desc->constant
13133 instead of x itself.
13134 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13135 itself into REG_EQUAL note.
13137 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13139 * config/freebsd.opt (posix, rdynamic): New Driver options.
13141 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13143 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13144 -Bstatic/-Bdynamic.
13145 * configure: Regenerate.
13147 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13149 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13150 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13152 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13154 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13155 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13156 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13157 (s390_preferred_reload_class): Make static. Change return and
13158 'rclass' argument type to reg_class_t.
13160 2011-01-27 Jan Hubicka <jh@suse.cz>
13162 PR middle-end/46949
13163 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13164 (process_function_and_variable_attributes): Check defined weakrefs.
13166 2011-01-27 Martin Jambor <mjambor@suse.cz>
13168 PR tree-optimization/47228
13169 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13170 build_ref_for_offset.
13172 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13174 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13176 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13178 PR rtl-optimization/46856
13179 * postreload.c (reload_combine_recognize_const_pattern): Do not
13180 separate cc0 setter and user on cc0 targets.
13182 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13185 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13186 passed a VOID_TYPE expression, immediately emit an error and
13187 return error_mark_node.
13189 2011-01-26 Jeff Law <law@redhat.com>
13191 PR rtl-optimization/47464
13192 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13193 rather than may_trap_p as needed.
13195 2011-01-26 DJ Delorie <dj@redhat.com>
13197 PR rtl-optimization/46878
13198 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13199 setter/user dependency as well.
13201 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13203 PR rtl-optimization/44469
13204 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13205 after removing trivially dead basic blocks.
13207 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13209 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13210 * config/frv/frv.h (LINK_SPEC): Likewise.
13211 * config/i386/netware.h (LINK_SPEC): Likewise.
13212 * config/m68k/linux.h (ASM_SPEC): Likewise.
13213 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13214 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13215 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13216 * config/sparc/linux.h (ASM_SPEC): Likewise.
13217 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13218 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13220 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13222 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13223 * config/frv/frv.h (ASM_SPEC): Likewise.
13224 * config/m68k/linux.h (ASM_SPEC): Likewise.
13225 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13226 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13227 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13228 * config/sparc/linux.h (ASM_SPEC): Likewise.
13229 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13230 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13232 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13234 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13235 * config/frv/frv.h (LINK_SPEC): Likewise.
13236 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13238 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13240 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13241 * config/frv/frv.h (ASM_SPEC): Likewise.
13242 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13243 * config/m68k/linux.h (ASM_SPEC): Likewise.
13244 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13245 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13246 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13247 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13248 * config/sparc/linux.h (ASM_SPEC): Likewise.
13249 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13250 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13251 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13253 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13256 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13258 (vec_extract_evenodd_help): Ditto.
13259 (vec_extract_evenv4hi): Ditto.
13260 (vec_extract_oddv4hi): Ditto.
13261 (vec_interleave_lowv2si): Ditto.
13262 (vec_interleave_highv2si): Ditto.
13263 (vec_extract_evenv2si): Ditto.
13264 (vec_extract_oddv2si: Ditto.
13265 (vec_pack_trunc_v2si): Ditto.
13267 2011-01-22 Jan Hubicka <jh@suse.cz>
13270 * cgraph.h (cgraph_local_info): New field can_change_signature.
13271 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13272 signature can change.
13273 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13275 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13276 (cgraph_function_versioning): We can not change signature of functions
13277 that don't allow that.
13278 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13279 (lto_input_node): Likewise.
13280 * ipa-inline.c (compute_inline_parameters): Compute
13281 local.can_change_signature.
13282 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13283 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13284 functions that can not change signature.
13285 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13286 init_cumulative_args): Do not use local calling conventions
13287 for functions that can not change signature.
13289 2011-01-22 Jan Hubicka <jh@suse.cz>
13291 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13293 2011-01-26 Richard Guenther <rguenther@suse.de>
13295 PR tree-optimization/47190
13296 * cgraphunit.c (process_common_attributes): New function.
13297 (process_function_and_variable_attributes): Use it.
13299 2011-01-26 Richard Guenther <rguenther@suse.de>
13302 * cgraphbuild.c (record_eh_tables): Record reference to personality
13305 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13308 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13309 non-debug insns from moving up.
13311 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13314 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13315 t-dlldir{,-x} fragment for build and add it to tmake_file.
13316 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13317 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13318 * config/i386/t-dlldir: New file.
13319 (SHLIB_DLLDIR): Define.
13320 * config/i386/t-dlldir-x: New file.
13321 (SHLIB_DLLDIR): Define.
13322 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13323 (SHLIB_INSTALL): Use it.
13325 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13328 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13329 lower bound of the allowed Thumb-2 coprocessor load/store
13330 index range to -256. Add explaining comment.
13332 2011-01-25 Ian Lance Taylor <iant@google.com>
13334 * godump.c (go_define): Improve lexing of macro expansion to only
13335 accept expressions which match Go spec.
13337 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13340 * tree.c (handle_dll_attribute): Handle it.
13341 * doc/extend.texi (@item dllexport): Mention it.
13342 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13344 2011-01-25 Ian Lance Taylor <iant@google.com>
13346 PR tree-optimization/26854
13347 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13348 (decl_jump_unsafe): Move higher in file, with no other change.
13349 (bind): Set has_jump_unsafe_decl if appropriate.
13350 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13351 (check_earlier_gotos): Likewise.
13352 (c_check_switch_jump_warnings): Likewise.
13354 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13356 * doc/invoke.texi (Warning Options): Add missing hyphen.
13357 (-fprofile-dir): Minor grammatical fixes.
13358 (-fbranch-probabilities): Likewise.
13360 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13364 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13366 (no_real_insns_p, schedule_block, set_priorities): Drop special
13367 treatment of boundary debug insns.
13368 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13369 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13370 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13371 (BOUNDARY_DEBUG_INSN_P): Likewise.
13372 (SCHEDULE_DEBUG_INSN_P): Likewise.
13373 * sched-rgn.c (init_ready_list): Drop special treatment of
13374 boundary debug insns.
13375 * final.c (rest_of_clean-state): Clear notes' BB.
13377 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13379 * Makefile.in (LAMBDA_H): Removed.
13380 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13381 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13382 lambda-trans.o, and tree-loop-linear.o.
13383 (lto-symtab.o): Remove dependence on LAMBDA_H.
13384 (tree-loop-linear.o): Remove rule.
13385 (lambda-mat.o): Same.
13386 (lambda-trans.o): Same.
13387 (lambda-code.o): Same.
13388 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13389 (tree-vect-slp.o): Same.
13390 * hwint.h (gcd): Moved here.
13391 (least_common_multiple): Same.
13392 * lambda-code.c: Removed.
13393 * lambda-mat.c: Removed.
13394 * lambda-trans.c: Removed.
13395 * lambda.h: Removed.
13396 * tree-loop-linear.c: Removed.
13397 * lto-symtab.c: Do not include lambda.h.
13398 * omega.c (gcd): Removed.
13399 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13400 * tree-data-ref.c (print_lambda_vector): Moved here.
13401 (lambda_vector_copy): Same.
13402 (lambda_matrix_copy): Same.
13403 (lambda_matrix_id): Same.
13404 (lambda_vector_first_nz): Same.
13405 (lambda_matrix_row_add): Same.
13406 (lambda_matrix_row_exchange): Same.
13407 (lambda_vector_mult_const): Same.
13408 (lambda_vector_negate): Same.
13409 (lambda_matrix_row_negate): Same.
13410 (lambda_vector_equal): Same.
13411 (lambda_matrix_right_hermite): Same.
13412 * tree-data-ref.h: Do not include lambda.h.
13413 (lambda_vector): Moved here.
13414 (lambda_matrix): Same.
13415 (dependence_level): Same.
13416 (lambda_transform_legal_p): Removed declaration.
13417 (lambda_collect_parameters): Same.
13418 (lambda_compute_access_matrices): Same.
13419 (lambda_vector_gcd): Same.
13420 (lambda_vector_new): Same.
13421 (lambda_vector_clear): Same.
13422 (lambda_vector_lexico_pos): Same.
13423 (lambda_vector_zerop): Same.
13424 (lambda_matrix_new): Same.
13425 * tree-flow.h (least_common_multiple): Removed declaration.
13426 * tree-parloops.c (lambda_trans_matrix): Moved here.
13427 (LTM_MATRIX): Same.
13428 (LTM_ROWSIZE): Same.
13429 (LTM_COLSIZE): Same.
13430 (LTM_DENOMINATOR): Same.
13431 (lambda_trans_matrix_new): Same.
13432 (lambda_matrix_vector_mult): Same.
13433 (lambda_transform_legal_p): Same.
13434 * tree-pass.h (pass_linear_transform): Removed declaration.
13435 * tree-ssa-loop.c (tree_linear_transform): Removed.
13436 (gate_tree_linear_transform): Removed.
13437 (pass_linear_transform): Removed.
13438 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13439 flag_loop_interchange.
13441 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13443 PR tree-optimization/47265
13444 PR tree-optimization/47443
13445 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13446 if name still has some uses.
13448 2011-01-25 Martin Jambor <mjambor@suse.cz>
13450 PR tree-optimization/47382
13451 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13452 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13454 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13456 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13457 sjlj_except_unwind_info.
13459 2011-01-25 Richard Guenther <rguenther@suse.de>
13461 PR tree-optimization/47426
13462 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13463 visible functions results escape.
13465 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13468 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13469 (arm_get_frame_offsets): Use it.
13471 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13472 Jakub Jelinek <jakub@redhat.com>
13474 PR tree-optimization/47271
13475 * tree-if-conv.c (bb_postdominates_preds): New.
13476 (if_convertible_bb_p): Call bb_postdominates_preds.
13477 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13478 (predicate_scalar_phi): Call bb_postdominates_preds.
13480 2011-01-25 Nick Clifton <nickc@redhat.com>
13482 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13483 * config/rx/rx.c (rx_function_value): Likewise.
13484 (rx_promote_function_mode): Likewise.
13485 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13486 in order to make it legitimate.
13487 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13488 make sure that the first operand is the same as the result register.
13489 (addsi3_unspec): Delete.
13490 (subdi3): Do not accept immediate operands.
13491 (subdi3_internal): Likewise.
13493 2011-01-25 Jeff Law <law@redhat.com>
13495 PR rtl-optimization/37273
13496 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13497 handle them like argument loads from stack slots. Do not double
13498 count memory for memory constants and argument loads from stack slots.
13500 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13502 PR tree-optimization/47427
13503 PR tree-optimization/47428
13504 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13505 coalesce if the new root var would be TREE_READONLY.
13507 2011-01-25 Richard Guenther <rguenther@suse.de>
13509 PR middle-end/47414
13510 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13511 correct type for TBAA.
13513 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13515 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13516 (close_phi_written_to_memory): Call for_each_index with
13517 dr_indices_valid_in_loop.
13519 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13521 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13522 when it is initialized.
13524 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13526 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13527 call to graphite_find_data_references_in_stmt.
13528 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13529 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13530 call to graphite_find_data_references_in_stmt.
13531 (analyze_drs_in_stmts): Same.
13532 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13533 in which the scalar analysis of indices is performed.
13534 (create_data_ref): Same. Update call to dr_analyze_indices.
13535 (find_data_references_in_stmt): Update call to create_data_ref.
13536 (graphite_find_data_references_in_stmt): Same.
13537 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13539 (create_data_ref): Same.
13540 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13541 call to create_data_ref.
13543 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13545 * graphite-sese-to-poly.c (build_poly_scop): Move
13546 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13548 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13550 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13551 VAR_DECL, PARM_DECL, and RESULT_DECL.
13553 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13555 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13556 in a reduction PBB.
13557 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13558 that have already been marked as PBB_IS_REDUCTION.
13560 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13562 * graphite-scop-detection.c (same_close_phi_node): New.
13563 (remove_duplicate_close_phi): New.
13564 (make_close_phi_nodes_unique): New.
13565 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13567 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13569 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13570 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13571 of both data references to be the same.
13573 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13575 * graphite-dependences.c (build_lexicographical_constraint): Remove
13576 the gdim parameter.
13577 (build_lexicographical_constraint): Adjust call to
13578 ppl_powerset_is_empty.
13579 (dependence_polyhedron): Same.
13580 (graphite_legal_transform_dr): Same.
13581 (graphite_carried_dependence_level_k): Same.
13582 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13584 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13586 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13588 * graphite-sese-to-poly.c
13589 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13590 (close_phi_written_to_memory): New.
13591 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13594 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13596 * doc/install.texi: Update the expected version number of PPL to 0.11.
13597 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13598 #if PPL_VERSION_MINOR < 11.
13600 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13602 * graphite-dependences.c: Include graphite-cloog-util.h.
13603 (new_poly_ddr): Inlined into dependence_polyhedron.
13604 (free_poly_ddr): Moved close by new_poly_ddr.
13605 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13606 Early return NULL when ppl_powerset_is_empty returns true.
13607 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13608 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13609 (graphite_legal_transform_dr): Call new_poly_ddr.
13610 (graphite_carried_dependence_level_k): Same.
13611 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13612 (dot_transformed_deps_stmt_1): Removed.
13613 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13614 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13615 (dot_deps_1): Call dot_deps_2.
13616 * Makefile.in (graphite-dependences.o): Add missing dependence on
13617 graphite-cloog-util.h.
13619 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13621 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13622 (build_lexicographical_constraint): Same.
13623 (dependence_polyhedron_1): Same.
13624 (graphite_legal_transform_dr): Same.
13625 (graphite_carried_dependence_level_k): Same.
13626 * graphite-ppl.c (ppl_powerset_is_empty): New.
13627 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13628 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13632 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13633 the "a followed by b" relation and document it.
13635 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13637 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13638 iteration when the bag of constraints is empty.
13640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13642 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13644 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13646 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13647 nest and two loop depths as parameters.
13648 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13649 lst_perfect_nestify.
13651 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13653 * graphite-dependences.c (print_pddr): Call
13654 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13658 * graphite-ppl.c (debug_gmp_value): New.
13659 * graphite-ppl.h (debug_gmp_value): Declared.
13661 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13663 * doc/install.texi: Document availability of cloog-0.16.
13665 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13667 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13668 invalid postdominance info.
13670 2011-01-24 Jan Hubicka <jh@suse.cz>
13673 * doc/extend.texi (weak pragma): Drop claim that it must
13674 appear before definition.
13675 * varasm.c (merge_weak, declare_weak): Only sanity check
13676 that DECL is not output at a time it is declared weak.
13678 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13680 * machmode.def: Fixed comments.
13682 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13684 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13686 2011-01-24 Paul Koning <ni1d@arrl.net>
13688 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13691 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13694 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13695 (block_info): Add scanned and prev.
13696 (move_or_delete_vzeroupper_2): Return if the basic block
13697 has been scanned and the upper 128bit state is unchanged
13698 from the last scan.
13699 (move_or_delete_vzeroupper_1): Return true if the exit
13701 (move_or_delete_vzeroupper): Visit basic blocks using the
13702 work-list based algorithm based on vt_find_locations in
13705 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13707 2011-01-24 Nick Clifton <nickc@redhat.com>
13709 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13710 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13711 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13712 then define __v850e1__.
13713 * doc/invoke.texi: Document -mv850es.
13715 2011-01-24 Richard Henderson <rth@redhat.com>
13717 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13718 compound unordered comparisons.
13719 * config/rx/rx.c (rx_split_fp_compare): Remove.
13720 * config/rx/rx-protos.h: Update.
13721 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13722 (cbranchsf4): Don't call rx_split_fp_compare.
13723 (*cbranchsf4): Use rx_split_cbranch.
13724 (*cmpsf): Don't accept "i" constraint.
13725 (*conditional_branch): Only valid after reload.
13726 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13728 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13731 * config/rs6000/altivec.md (vector constant splitters): Add
13732 support for creating vector single precision constants if -mvsx is
13733 used and we would create the constant using Altivec primitives.
13735 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13736 Richard Sandiford <rdsandiford@googlemail.com>
13738 PR rtl-optimization/47166
13739 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13740 mechanism for PRE_MODIFY and POST_MODIFY.
13741 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13744 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13746 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13748 2011-01-22 Jan Hubicka <jh@suse.cz>
13751 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13753 2011-01-22 Jan Hubicka <jh@suse.cz>
13755 PR tree-optimization/43884
13757 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13758 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13760 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13762 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13763 * config/s390/s390.c (s390_register_move_cost,
13764 s390_memory_move_cost): New.
13765 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13767 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13769 PR middle-end/47401
13770 * except.c (sjlj_assign_call_site_values): Move setting the
13771 crtl->uses_eh_lsda flag to ...
13772 (sjlj_mark_call_sites): ... here.
13773 (sjlj_emit_function_enter): Support NULL dispatch label.
13774 (sjlj_build_landing_pads): In a function with no landing pads
13775 that still has must-not-throw regions, generate code to register
13776 a personality function with empty LSDA.
13778 2011-01-21 Richard Henderson <rth@redhat.com>
13780 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13782 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13784 * compare-elim.c: New file.
13785 * Makefile.in (OBJS-common): Add it.
13786 (compare-elim.o): New.
13787 * common.opt (fcompare-elim): New.
13788 * opts.c (default_options_table): Add OPT_fcompare_elim.
13789 * tree-pass.h (pass_compare_elim_after_reload): New.
13790 * passes.c (init_optimization_passes): Add it.
13791 * recog.h: Protect against re-inclusion.
13792 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13793 * doc/invoke.texi (-fcompare-elim): Document it.
13794 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13795 * doc/tm.texi: Rebuild.
13797 2011-01-22 Nick Clifton <nickc@redhat.com>
13799 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13800 rx_split_fp_compare.
13802 2011-01-22 Nick Clifton <nickc@redhat.com>
13804 * config/rx/rx.md (UNSPEC_CONST): New.
13805 (deallocate_and_return): Wrap the amount popped off the stack in
13806 an UNSPEC_CONST in order to stop it being rejected by
13807 -mmax-constant-size.
13808 (pop_and_return): Add a "(return)" rtx.
13809 (call): Drop the immediate operand.
13810 (call_internal): Likewise.
13811 (call_value): Likewise.
13812 (call_value_internal): Likewise.
13813 (sibcall_internal): Likewise.
13814 (sibcall_value_internal): Likewise.
13815 (sibcall): Likewise. Generate an explicit call using
13817 (sibcall_value): Likewise.
13818 (mov<>): FAIL if a constant operand is not legitimate.
13819 (addsi3_unpsec): New pattern.
13821 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13822 (ok_for_max_constant): New function.
13823 (gen_safe_add): New function.
13824 (rx_expand_prologue): Use gen_safe_add.
13825 (rx_expand_epilogue): Likewise.
13826 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13829 2011-01-21 Jeff Law <law@redhat.com>
13831 PR tree-optimization/47053
13832 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13833 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13834 statements are deleted.
13835 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13836 is nonempty, then purge dead edges and cleanup the CFG.
13838 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13841 Temporarily revert:
13842 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13844 * tree-dfa.c (create_var_ann): Mark variable as used.
13846 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13848 PR middle-end/45566
13849 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13850 notes from other section in hot/cold partitioning even if
13851 last_action is -3. Increment call_site_base.
13853 PR rtl-optimization/47366
13854 * fwprop.c (forward_propagate_into): Return bool. If
13855 any changes are made, -fnon-call-exceptions is used and
13856 REG_EH_REGION note is present, call purge_dead_edges
13857 and return true if it purged anything.
13858 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13859 any EH edges were purged.
13861 2011-01-21 Jeff Law <law@redhat.com>
13863 PR rtl-optimization/41619
13864 * caller-save.c (setup_save_areas): Break out code to determine
13865 which hard regs are live across calls by examining the reload chains
13866 so that it is always used.
13867 Eliminate code which checked REG_N_CALLS_CROSSED.
13869 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13871 PR tree-optimization/47355
13872 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13873 NOP has non-debug uses beyond PHIs in new_bb.
13875 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13878 * cfgexpand.c (account_used_vars_for_block): Only account vars
13879 that are annotated as used.
13880 (estimated_stack_frame_size): Don't set TREE_USED.
13881 * tree-dfa.c (create_var_ann): Mark variable as used.
13883 2011-01-21 Richard Guenther <rguenther@suse.de>
13885 PR middle-end/47395
13886 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13888 2011-01-21 Richard Guenther <rguenther@suse.de>
13890 PR tree-optimization/47365
13891 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13892 (vn_reference_lookup_pieces): Adjust.
13893 (vn_reference_lookup): Likewise.
13894 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13895 (vn_reference_lookup_3): Only look through kills if in
13896 VN_WALKREWRITE mode.
13897 (vn_reference_lookup_pieces): Adjust.
13898 (vn_reference_lookup): Likewise.
13899 (visit_reference_op_load): Likewise.
13900 (visit_reference_op_store): Likewise.
13901 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13902 (compute_avail): Likewise.
13903 (eliminate): Likewise.
13905 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13907 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13908 DECL_IGNORED_P non-reg vars if they are used.
13910 PR tree-optimization/47391
13911 * varpool.c (const_value_known_p): Return false if
13914 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13917 * config/i386/i386.c (ix86_local_alignment): Handle
13918 case for va_list_type_node is nil.
13919 (ix86_canonical_va_list_type): Likewise.
13921 2011-01-21 Alan Modra <amodra@gmail.com>
13923 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13924 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13926 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13928 * config/arm/arm.md (define_attr type): Rename f_load
13929 and f_store to f_fpa_load and f_fpa_store. Update.
13930 (write_conflict): Deal with rename fallout.
13931 (*push_fp_multi): Likewise.
13932 * config/arm/fpa.md (f_load): Use f_fpa_load.
13933 (f_store): Use f_fpa_store.
13934 (*movsf_fpa): Likewise.
13935 (*movdf_fpa): Likewise.
13936 (*movxf_fpa): Likewise.
13937 (*thumb2_movsf_fpa): Likewise.
13938 (*thumb2_movdf_fpa): Likewise.
13939 (*thumb2_movxf_fpa): Likewise.
13940 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13941 f_loadd and f_stored.
13942 (*thumb2_movdi_vfp): Likewise.
13943 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13944 (*thumb2_movsi_vfp): Likewise.
13945 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13946 Use f_loads instead of f_load.
13947 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13949 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13951 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13952 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13953 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13954 (xtensa_mode_dependent_address_p): New function.
13955 (constantpool_address_p): Make static. Change return type to bool.
13956 Change argument type to const_rtx. Use CONST_INT_P predicate.
13958 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13961 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13963 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13966 * cfgexpand.c (expand_debug_expr): Instead of generating
13967 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13970 2011-01-20 Richard Guenther <rguenther@suse.de>
13972 PR middle-end/47370
13973 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13974 the pointer operand of MEM_REFs.
13976 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13978 PR tree-optimization/46130
13979 * ipa-split.c (consider_split): If return_bb contains non-virtual
13980 PHIs other than for retval or if split_function would not adjust it,
13983 2011-01-20 Richard Guenther <rguenther@suse.de>
13985 PR tree-optimization/47167
13986 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13987 Revert previous change, only avoid enumeral type changes.
13989 2011-01-19 Mike Stump <mikestump@comcast.net>
13991 * doc/tm.texi.in (BRANCH_COST): Englishify.
13992 * doc/tm.texi (BRANCH_COST): Likewise.
13994 2011-01-19 Dodji Seketeli <dodji@redhat.com>
13997 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
13998 (gen_scheduled_generic_parms_dies): New functions.
13999 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14000 generation for the end of CU compilation.
14001 (dwarf2out_finish): Generate template parameters DIEs here.
14003 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14006 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14007 debug bind stmt on merge edges.
14009 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14013 * function.c (instantiate_expr): Instantiate incoming rtl of
14014 implicit arguments, and recurse on VALUE_EXPRs.
14015 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14016 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14018 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14020 * c-parser.c (c_parser_for_statement): Initialize
14021 collection_expression.
14023 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14025 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14027 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14029 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14030 (LINK_SHLIB_SPEC): Don't use %(link_path).
14031 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14033 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14035 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14036 (NO_SHARED_LIB_SUPPORT): Remove.
14037 (LINK_SHLIB_SPEC): Remove one conditional definition.
14039 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14041 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14043 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14044 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14045 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14046 %{call_shared} and conditionals on these options not being passed.
14047 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14050 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14052 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14055 * ipa-split.c: Spelling fixes.
14057 2011-01-19 Richard Henderson <rth@redhat.com>
14059 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14060 (*mulsi3): Likewise.
14062 * longlong.h [__mn10300__] (count_leading_zeros): New.
14063 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14064 [__mn10300__] (add_ssaaaa, subddmmss): New.
14065 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14066 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14068 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14070 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14072 2011-01-19 Richard Henderson <rth@redhat.com>
14074 * config/mn10300/mn10300.md (addsi3_flags): New.
14075 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14076 (subsi3_flags, subc_internal, subdi3): New.
14077 (subdi3_internal, *subdi3_degenerate): New.
14078 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14080 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14081 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14082 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14083 * config/mn10300/mn10300-protos.h: Update.
14084 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14085 (return_ret): Likewise. Rename from return_internal_regs.
14086 (return_internal): Remove.
14088 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14089 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14090 (mn10300_legitimate_constant_p): Likewise.
14091 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14092 (mn10300_frame_size): New.
14093 (mn10300_expand_prologue): Use it.
14094 (mn10300_expand_epilogue): Likewise.
14095 (mn10300_initial_offset): Likewise.
14096 * config/mn10300/mn10300-protos.h: Update.
14097 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14098 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14099 (prologue, epilogue, return_internal): Tidy output code.
14100 (mn10300_store_multiple_operation, return): Likewise.
14101 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14102 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14103 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14104 (load_pic, am33_load_pic): New.
14105 (mn10300_load_pic0, mn10300_load_pic1): New.
14107 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14108 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14109 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14110 (cc_flags_for_mode, cc_flags_for_code): New.
14111 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14112 overflow flag is not valid. Validate that the flags we need
14113 for the comparison are valid.
14114 (mn10300_output_cmp): Remove.
14115 (mn10300_output_add): New.
14116 (mn10300_select_cc_mode): Use cc_flags_for_code.
14117 (mn10300_split_cbranch): New.
14118 (mn10300_match_ccmode): New.
14119 (mn10300_split_and_operand_count): New.
14120 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14122 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14123 (addsi3): ... here. Use mn10300_output_add.
14124 (*addsi3_flags): New.
14125 (*am33_subsi3, *mn10300_subsi3): Merge...
14126 (subsi3): ... here. Use attribute isa.
14127 (*subsi3_flags): New.
14128 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14130 (*am33_andsi3, *mn10300_andsi3): Merge...
14131 (andsi3): ... here.
14132 (*andsi3_flags): New.
14133 (andsi3 splitters): New.
14134 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14135 (iorsi3): ... here.
14136 (*iorsi3_flags): New.
14137 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14138 (xorsi3): ... here.
14139 (*xorsi3_flags): New.
14140 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14141 (one_cmplsi2): ... here.
14142 (*one_cmplsi2_flags): New.
14143 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14144 instead of "dax" in constraints. Use mn10300_split_cbranch.
14145 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14146 use matching constraints to eliminate a self-comparison.
14147 (*integer_conditional_branch): Rename from integer_conditional_branch.
14148 Use int_mode_flags to match CC_REG.
14149 (*cbranchsi4_btst, *btstsi): New.
14150 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14151 mn10300_split_cbranch.
14152 (*am33_cmpsf): Rename from am33_cmpsf.
14153 (*float_conditional_branch): Rename from float_conditional_branch.
14154 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14155 (zero_extendqisi2): ... here.
14156 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14157 (zero_extendhisi2): ... here.
14158 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14159 (extendqisi2): ... here.
14160 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14161 (extendhisi2): ... here.
14162 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14163 (ashlsi3): ... here.
14164 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14165 (lshrsi3): ... here.
14166 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14167 (ashrsi3): ... here.
14168 (consecutive add peephole): Remove.
14169 * config/mn10300/predicates.md (label_ref_operand): New.
14170 (int_mode_flags): New.
14171 (CCZN_comparison_operator): New.
14173 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14174 (throughput_42_latency_43): New reservation.
14175 (mulsidi3, umulsidi3): New expanders.
14176 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14177 the MDR register to allocation; separately allocate the low and
14178 high parts of the DImode result.
14179 (umulsidi3_internal): Similarly.
14180 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14181 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14182 (udivsi3, umodsi3): Remove.
14183 (udivmodsi4, divmodsi4): New expanders.
14184 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14185 (*divmodsi4): Simiarly.
14186 (ext_internal): New.
14188 * config/mn10300/constraints.md ("z"): New constraint.
14189 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14190 (FIXED_REGISTERS): Don't fix MDR.
14191 (CALL_USED_REGSITERS): Reformat nicely.
14192 (REG_ALLOC_ORDER): Add MDR.
14193 (enum regclass): Add MDR_REGS.
14194 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14195 (IRA_COVER_CLASSES): Add MDR_REGS.
14196 (REGNO_REG_CLASS): Handle MDR_REG.
14197 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14198 (mn10300_register_move_cost): Likewise.
14199 * config/mn10300/mn10300.md (MDR_REG): New.
14200 (*movsi_internal): Handle moves to/from MDR_REGS.
14202 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14204 (mn10300_secondary_reload): Tidy combination reload classes.
14205 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14206 addresses for AM33. Allow symbolic offsets for reg+imm.
14207 (mn10300_regno_in_class_p): New.
14208 (mn10300_legitimize_reload_address): New.
14209 * config/mn10300/mn10300.h (enum reg_class): Remove
14210 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14211 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14212 SP_OR_GENERAL_REGS.
14213 (REG_CLASS_NAMES): Update to match.
14214 (REG_CLASS_CONTENTS): Likewise.
14215 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14216 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14217 (REGNO_IN_RANGE_P): Remove.
14218 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14219 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14220 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14221 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14222 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14223 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14224 (REGNO_GENERAL_P): New.
14225 (HAVE_POST_MODIFY_DISP): New.
14226 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14227 (LEGITIMIZE_RELOAD_ADDRESS): New.
14228 * config/mn10300/mn10300-protos.h: Update.
14230 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14231 DATA_REGS for AM33 stack-pointer destination.
14232 (mn10300_preferred_output_reload_class): Likewise.
14233 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14234 into a form appropriate for ...
14235 (TARGET_SECONDARY_RELOAD): New.
14236 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14237 * config/mn10300/mn10300-protos.h: Update.
14238 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14239 reload_insi; use the "A" constraint for the scratch; handle AM33
14240 moves of sp to non-address registers.
14242 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14243 (*movqi_internal): ... here.
14244 (*am33_movhi, *mn10300_movhi): Merge into...
14245 (*movhi_internal): ... here.
14246 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14247 as the source/destination of moves from/to SP.
14248 (movsf): Only allow for AM33-2.
14249 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14250 any integer constant constraint. Only allow for AM33-2. Tidy
14251 all of the alternative outputs.
14252 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14253 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14255 (udivsi3, umodsi3): New patterns for MN103 only.
14257 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14259 * doc/tm.texi.in: Spell out that a lack of register class unions
14261 * doc/tm.texi: Regenerate.
14263 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14265 PR rtl-optimization/47337
14266 * dce.c (check_argument_store): New function.
14267 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14269 PR tree-optimization/47290
14270 * tree-eh.c (infinite_empty_loop_p): New function.
14271 (cleanup_empty_eh): Use it.
14273 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14276 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14277 (a64_expand_widen_sum): Ditto.
14278 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14279 (vec_extract_evenodd_help): Ditto.
14280 (vec_extract_evenv4hi): Ditto.
14281 (vec_extract_oddv4hi): Ditto.
14282 (vec_extract_evenv2si): Ditto.
14283 (vec_extract_oddv2si): Ditto.
14284 (vec_extract_evenv2sf): Ditto.
14285 (vec_extract_oddv2sf): Ditto.
14286 (vec_pack_trunc_v4hi: Ditto.
14287 (vec_pack_trunc_v2si): Ditto.
14288 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14289 (vec_interleave_highv8qi): Ditto.
14291 (vec_extract_oddv8qi): Ditto.
14292 (vec_interleave_lowv4hi): Ditto.
14293 (vec_interleave_highv4hi): Ditto.
14294 (vec_interleave_lowv2si): Ditto.
14295 (vec_interleave_highv2si): Ditto.
14297 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14299 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14300 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14301 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14302 (pa_c_mode_for_suffix): New.
14303 (TARGET_EXPAND_BUILTIN): Define.
14304 (TARGET_C_MODE_FOR_SUFFIX): Define.
14305 (pa_builtins): Define.
14306 (pa_init_builtins): Register __float128 type and init new support
14308 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14309 * config/pa/quadlib.c (_U_Qfcopysign): New.
14311 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14313 PR middle-end/46894
14314 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14315 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14318 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14320 PR tree-optimization/47179
14321 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14322 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14324 2011-01-18 Richard Guenther <rguenther@suse.de>
14326 PR rtl-optimization/47216
14327 * emit-rtl.c: Include tree-flow.h.
14328 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14329 of replicating it with different semantics.
14330 * Makefile.in (emit-rtl.o): Adjust.
14332 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14334 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14335 (cortex_a9_dp): Handle neon types correctly.
14337 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14339 PR rtl-optimization/47299
14340 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14341 subtarget. Use normal multiplication if both operands are constants.
14342 * expmed.c (expand_widening_mult): Don't try to optimize constant
14343 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14346 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14348 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14349 spacing after 'e.g.', typos, comma, hyphenation.
14351 2011-01-17 Richard Henderson <rth@redhat.com>
14353 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14354 (rx_restricted_mem_operand): New.
14355 (rx_shift_operand): Use register_operand.
14356 (rx_source_operand, rx_compare_operand): Likewise.
14357 * config/rx/rx.md (addsi3_flags): New expander.
14358 (adddi3): Rewrite as expander.
14359 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14360 (subsi3_flags): New expander.
14361 (subdi3): Rewrite as expander.
14362 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14364 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14365 (rx_init_builtins): Remove sat builtin.
14366 (rx_expand_builtin): Likewise.
14367 * config/rx/rx.md (ssaddsi3): New.
14368 (*sat): Rename from sat. Represent the CC_REG input.
14370 * config/rx/predicates.md (rshift_operator): New.
14371 * config/rx/rx.c (rx_expand_insv): Remove.
14372 * config/rx/rx-protos.h: Update.
14373 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14374 operand to the canonical position.
14375 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14376 (*bitclr, *bitclr_in_memory): Similarly.
14377 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14378 (insv): Retain the zero_extract in the expansion.
14380 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14381 (bswaphi2, bitinvert, revw): Likewise.
14383 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14384 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14385 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14386 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14387 (bitset, bitset_in_memory): Likewise.
14388 (bitinvert, bitinvert_in_memory): Likewise.
14389 (bitclr, bitclr_in_memory): Likewise.
14390 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14391 (rx_strend, rx_cmpstrn): Likewise.
14392 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14393 (bitop peep2 patterns): Remove.
14395 * config/rx/rx.c (rx_match_ccmode): New.
14396 * config/rx/rx-protos.h: Update.
14397 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14398 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14399 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14400 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14401 (fix_truncsfsi2, floatsisf2): Likewise.
14402 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14403 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14404 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14405 (*subsi3_flags, *xorsi3_flags): New.
14407 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14409 * config/rx/rx.c (rx_print_operand): Remove workaround for
14410 unsplit comparison operations.
14412 * config/rx/rx.md (movsicc): Split after reload.
14413 (*movsicc): Merge *movsieq and *movsine via match_operator.
14414 (*stcc): New pattern.
14416 * config/rx/rx.c (rx_float_compare_mode): Remove.
14417 * config/rx/rx.h (rx_float_compare_mode): Remove.
14418 * config/rx/rx.md (cstoresi4): Split after reload.
14419 (*sccc): New pattern.
14421 * config/rx/predicates.md (label_ref_operand): New.
14422 (rx_z_comparison_operator): New.
14423 (rx_zs_comparison_operator): New.
14424 (rx_fp_comparison_operator): New.
14425 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14426 Validate that the flags are set properly for the comparison.
14427 (rx_gen_cond_branch_template): Remove.
14428 (rx_cc_modes_compatible): Remove.
14429 (mode_from_flags): New.
14430 (flags_from_code): Rename from flags_needed_for_conditional.
14431 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14432 (rx_select_cc_mode): Likewise.
14433 (rx_split_fp_compare): New.
14434 (rx_split_cbranch): New.
14435 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14436 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14437 (*cbranchsf4): Similarly.
14438 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14439 match_operator and rx_split_cbranch.
14440 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14441 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14442 (*cmpsi): Rename from cmpsi.
14443 (*tstsi): Rename from tstsi.
14444 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14445 (*conditional_branch): Rename from conditional_branch.
14446 (*reveresed_conditional_branch): Remove.
14447 (b<code>): Remove expander.
14448 * config/rx/rx-protos.h: Update.
14450 * config/rx/rx.c (rx_compare_redundant): Remove.
14451 * config/rx/rx.md (cmpsi): Don't use it.
14452 * config/rx/rx-protos.h: Update.
14454 * config/rx/rx-modes.def (CC_F): New mode.
14455 * config/rx/rx.c (rx_select_cc_mode): New.
14456 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14457 * config/rx/rx-protos.h: Update.
14459 2011-01-17 Richard Henderson <rth@redhat.com>
14461 * except.c (dump_eh_tree): Fix stray ; after for statement.
14463 2011-01-17 Richard Guenther <rguenther@suse.de>
14465 PR tree-optimization/47313
14466 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14467 handling before copying the body. Properly deal with
14468 by-reference result in SSA form.
14470 2011-01-17 Ian Lance Taylor <iant@google.com>
14473 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14474 (struct_value_alias_set): Don't define.
14475 (sparc_option_override): Don't set sparc_sr_alias_set and
14476 struct_value_alias_set.
14477 (save_or_restore_regs): Use gen_frame_mem rather than calling
14479 (sparc_struct_value_rtx): Likewise.
14481 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14484 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14485 (_mm_maskstore_pd): Likewise.
14486 (_mm_maskload_ps): Likewise.
14487 (_mm_maskstore_ps): Likewise.
14488 (_mm256_maskload_pd): Change mask to __m256i.
14489 (_mm256_maskstore_pd): Likewise.
14490 (_mm256_maskload_ps): Likewise.
14491 (_mm256_maskstore_ps): Likewise.
14493 * config/i386/i386-builtin-types.def: Updated.
14494 (ix86_expand_special_args_builtin): Likewise.
14496 * config/i386/i386.c (bdesc_special_args): Update
14497 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14498 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14499 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14500 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14502 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14503 Use <avxpermvecmode> on mask register.
14504 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14506 2011-01-17 Olivier Hainque <hainque@adacore.com>
14507 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14508 Eric Botcazou <ebotcazou@adacore.com>
14511 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14512 if <= USHRT_MAX in 32-bit mode.
14514 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14516 * doc/install.texi (Configuration, Specific): Wrap long
14517 lines in examples. Allow line wrapping in long options
14518 and URLs where beneficial for PDF output.
14520 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14522 * config/mips/mips.c (mips_classify_symbol): Don't return
14523 SYMBOL_PC_RELATIVE for nonlocal labels.
14525 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14527 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14529 2011-01-15 Jan Hubicka <jh@suse.cz>
14531 PR tree-optimization/47276
14532 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14533 declarations as needed.
14535 2011-01-15 Martin Jambor <mjambor@suse.cz>
14537 * common.opt (fdevirtualize): New flag.
14538 * doc/invoke.texi (Option Summary): Document it.
14539 * opts.c (default_options_table): Add devirtualize flag.
14540 * ipa-prop.c (detect_type_change): Return immediately if
14541 devirtualize flag is not set.
14542 (detect_type_change_ssa): Likewise.
14543 (compute_known_type_jump_func): Likewise.
14544 (ipa_analyze_virtual_call_uses): Likewise.
14546 2011-01-14 Martin Jambor <mjambor@suse.cz>
14548 PR tree-optimization/45934
14549 PR tree-optimization/46302
14550 * ipa-prop.c (type_change_info): New type.
14551 (stmt_may_be_vtbl_ptr_store): New function.
14552 (check_stmt_for_type_change): Likewise.
14553 (detect_type_change): Likewise.
14554 (detect_type_change_ssa): Likewise.
14555 (compute_complex_assign_jump_func): Check for dynamic type change.
14556 (compute_complex_ancestor_jump_func): Likewise.
14557 (compute_known_type_jump_func): Likewise.
14558 (compute_scalar_jump_functions): Likewise.
14559 (ipa_analyze_virtual_call_uses): Likewise.
14560 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14562 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14564 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14565 * config/i386/i386.opt (msse5): New Alias.
14567 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14569 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14570 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14571 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14572 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14574 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14576 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14578 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14579 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14580 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14581 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14583 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14585 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14587 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14589 2011-01-14 Mike Stump <mikestump@comcast.net>
14591 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14592 * config/fr30/fr30.md: Likweise
14593 (movsi_push): Likewise.
14594 (movsi_pop): Likewise.
14595 (enter_func): Likewise.
14596 * config/moxie/moxie.md (movsi_push): Likewise.
14597 (movsi_pop): Likewise.
14599 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14601 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14602 %{no_archive} %{exact_version}.
14603 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14604 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14605 %{no_archive} %{exact_version}.
14606 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14607 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14608 * config/mips/vxworks.h: Likewise.
14610 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14612 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14614 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14616 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14617 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14619 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14621 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14624 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14626 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14628 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14629 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14631 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14632 Don't handle -shlib.
14634 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14636 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14637 (CC1_SPEC): Don't handle -profile.
14639 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14641 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14642 * config/mips/mips.h (CC1_SPEC): Likewise.
14644 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14646 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14647 * config/mips/mips.h (CC1_SPEC): Likewise.
14649 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14651 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14652 * config/m32r/linux.h (LINK_SPEC): Likewise.
14653 * config/mips/linux.h (LINK_SPEC): Likewise.
14654 * config/mips/linux64.h (LINK_SPEC): Likewise.
14655 * config/sparc/linux.h (LINK_SPEC): Likewise.
14656 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14657 LINK_SPEC): Likewise.
14658 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14660 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14662 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14664 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14666 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14668 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14669 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14671 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14673 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14675 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14677 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14678 supports -Bstatic/-Bdynamic.
14679 * configure: Regenerate.
14681 2011-01-14 Jan Hubicka <jh@suse.cz>
14682 Jack Howarth <howarth@bromo.med.uc.edu>
14685 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14686 when checking debug_info_level. Test write_symbols instead of
14687 debug_hooks->var_location when setting flag_var_tracking_uninit.
14689 2011-01-14 Richard Guenther <rguenther@suse.de>
14691 PR tree-optimization/47179
14692 * target.def (ref_may_alias_errno): New target hook.
14693 * targhooks.h (default_ref_may_alias_errno): Declare.
14694 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14695 (default_ref_may_alias_errno): New function.
14696 * target.h (struct ao_ref_s): Declare.
14697 * tree-ssa-alias.c: Include target.h.
14698 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14699 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14700 (targhooks.o): Likewise.
14701 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14702 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14704 2011-01-14 Richard Guenther <rguenther@suse.de>
14706 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14708 2011-01-14 Richard Guenther <rguenther@suse.de>
14710 PR tree-optimization/47280
14711 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14712 return CFG changes.
14713 (tree_ssa_forward_propagate_single_use_vars): Deal with
14714 CFG changes from associate_plusminus.
14716 2011-01-14 Richard Guenther <rguenther@suse.de>
14718 PR middle-end/47281
14720 2011-01-11 Richard Guenther <rguenther@suse.de>
14722 PR tree-optimization/46076
14723 * tree-ssa.c (useless_type_conversion_p): Conversions from
14724 unprototyped to empty argument list function types are useless.
14726 2011-01-14 Richard Guenther <rguenther@suse.de>
14728 PR tree-optimization/47286
14729 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14731 2011-01-14 Martin Jambor <mjambor@suse.cz>
14733 PR middle-end/46823
14734 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14736 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14738 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14739 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14740 * config/xtensa/xtensa.c (xtensa_libcall_value,
14741 xtensa_function_value_regno_p): New functions.
14742 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14744 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14747 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14749 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14750 New function prototype.
14751 * config/i386/winnt.c (i386_pe_assemble_visibility):
14752 Warn only if attribute was specified by user.
14754 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14757 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14759 (floatunsdidf2_fcfidu): Ditto.
14761 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14763 * config/s390/s390.c (print_operand_address): Replace 'error' with
14764 'output_operand_lossage'.
14765 (print_operand): Likewise.
14767 2011-01-13 Jeff Law <law@redhat.com>
14769 PR rtl-optimization/39077
14770 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14771 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14772 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14773 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14774 * gcse.c (prune_insertions_deletions): New function.
14775 (compute_pre_data): Use it.
14777 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14780 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14782 (prune_unused_types_mark): Use it.
14784 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14786 PR rtl-optimization/45352
14787 * sel-sched.c: Update copyright years.
14788 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14789 in the advancing loop when we have issued issue_rate insns.
14791 2011-01-12 Richard Henderson <rth@redhat.com>
14793 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14794 (TARGET_MD_ASM_CLOBBERS): New.
14796 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14797 (TARGET_DELEGITIMIZE_ADDRESS): New.
14799 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14800 (clzsi2, *bsch): New patterns.
14802 * config/mn10300/mn10300.md (INT): New mode iterator.
14803 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14805 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14806 flag_split_wide_types.
14808 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14809 (mn10300_trampoline_init): Rewrite without a template, an immediate
14810 load and a direct branch.
14811 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14813 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14815 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14816 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14817 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14818 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14820 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14823 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14826 2011-01-12 Jan Hubicka <jh@suse.cz>
14829 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14830 (PLUGIN_COND_CLOSE): New macro.
14831 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14833 2011-01-12 Richard Guenther <rguenther@suse.de>
14836 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14837 register variables in a MEM_REF.
14839 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14841 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14842 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14843 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14844 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14845 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14846 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14847 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14848 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14849 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14850 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14851 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14852 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14853 * config/gnu-user.h: New. Copied from linux.h.
14854 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14855 GNU_USER_TARGET_STARTFILE_SPEC.
14856 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14857 GNU_USER_TARGET_ENDFILE_SPEC.
14858 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14859 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14860 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14861 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14862 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14863 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14864 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14865 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14866 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14867 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14868 * config/arm/linux-eabi.h (CC1_SPEC): Use
14869 GNU_USER_TARGET_CC1_SPEC.
14870 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14871 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14872 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14873 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14874 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14875 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14876 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14877 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14879 2011-01-12 Richard Guenther <rguenther@suse.de>
14882 * doc/invoke.texi (ffast-math): Document it is turned on
14885 2011-01-12 Jan Hubicka <jh@suse.cz>
14887 PR tree-optimization/47233
14888 * opts.c (common_handle_option): Disable ipa-reference with profile
14891 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14893 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14896 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14898 * c-parser.c (c_lex_one_token): Updated and reindented some
14899 comments. No changes in code.
14901 2011-01-11 Ian Lance Taylor <iant@google.com>
14903 * godump.c (go_output_var): Don't output the variable if there is
14904 already a type with the same name.
14906 2011-01-11 Ian Lance Taylor <iant@google.com>
14908 * godump.c (go_format_type): Don't generate float80.
14910 2011-01-11 Richard Henderson <rth@redhat.com>
14912 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14913 declaration. Rewrite for both speed and size.
14914 (mn10300_address_cost_1): Remove.
14915 (mn10300_register_move_cost): New.
14916 (mn10300_memory_move_cost): New.
14917 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14918 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14919 extensions, shifts, BSWAP, CLZ.
14920 (mn10300_wide_const_load_uses_clr): Remove.
14921 (TARGET_REGISTER_MOVE_COST): New.
14922 (TARGET_MEMORY_MOVE_COST): New.
14923 * config/mn10300/mn10300-protos.h: Update.
14924 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14926 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14927 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14928 * config/mn10300/mn10300-protos.h: Update.
14929 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14930 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14931 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14932 (*test_int_bitfield, *test_byte_bitfield): Remove.
14933 (*bit_test, *subreg_bit_test): Remove.
14934 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14936 * config/mn10300/constraints.md ("c"): Rename from "A".
14937 ("A", "D"): New constraint letters.
14938 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14939 (fmssf4, fnmasf4, fnmssf4): Likewise.
14941 * config/mn10300/mn10300.md (isa): New attribute.
14942 (enabled): New attribute.
14944 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14945 (abssf2, negsf2): Define only for hardware fp.
14946 (sqrtsf2): Reformat.
14947 (addsf3, subsf3, mulsf3): Merge expander and insn.
14949 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14950 (DEBUGGER_AUTO_OFFSET): Remove.
14951 (DEBUGGER_ARG_OFFSET): Remove.
14953 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14954 Emit register stores with the same offsets as the hardware.
14955 (mn10300_store_multiple_operation): Don't check that the register
14956 save offsets are monotonic.
14957 * config/mn10300/mn10300-protos.h: Update.
14959 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14961 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14962 in terms of the value on the stack, not the MDR register.
14964 2011-01-11 Jan Hubicka <jh@suse.cz>
14968 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14969 (symbol_alias_set_destroy, symbol_alias_set_contains,
14970 propagate_aliases_backward): Declare.
14971 * lto-streamer-out.c (struct sets): New sturcture.
14972 (trivally_defined_alias): New function.
14973 (output_alias_pair_p): Rewrite.
14974 (output_unreferenced_globals): Fix output of alias pairs.
14975 (produce_symtab): Likewise.
14976 * ipa.c (function_and_variable_visibility): Set weak alias destination
14978 * varasm.c (symbol_alias_set_t): Remove.
14979 (symbol_alias_set_destroy): Export.
14980 (propagate_aliases_forward, propagate_aliases_backward): New functions
14982 (compute_visible_aliases): ... this one; remove.
14983 (trivially_visible_alias): New
14984 (trivially_defined_alias): New.
14985 (remove_unreachable_alias_pairs): Rewrite.
14986 (finish_aliases_1): Reorganize code checking if alias is defined.
14987 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14990 2011-01-11 Richard Guenther <rguenther@suse.de>
14992 PR tree-optimization/46076
14993 * tree-ssa.c (useless_type_conversion_p): Conversions from
14994 unprototyped to empty argument list function types are useless.
14996 2011-01-11 Richard Guenther <rguenther@suse.de>
14998 PR middle-end/45235
14999 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15000 volatile MEMs as MEM_READONLY_P.
15002 2011-01-11 Richard Guenther <rguenther@suse.de>
15004 PR tree-optimization/47239
15005 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15007 2011-01-11 Jeff Law <law@redhat.com>
15009 PR tree-optimization/47086
15010 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15011 IVs from statements that might throw.
15013 2011-01-10 Jan Hubicka <jh@suse.cz>
15016 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15018 2011-01-10 Jan Hubicka <jh@suse.cz>
15021 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15022 when correcting profile.
15024 2011-01-10 Jan Hubicka <jh@suse.cz>
15027 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15028 DECL_FINI_PRIORITY.
15029 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15030 Restore DECL_FINI_PRIORITY.
15032 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15034 * doc/gimple.texi: Fix quoting of multi-word return values in
15035 @deftypefn statements. Ensure presence of return value. Wrap
15036 overlong @deftypefn lines.
15037 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15038 descriptions of removed functions.
15039 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15040 of multi-word return value in @deftypefn statement.
15042 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15044 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15045 (Conditional Expressions, Logical Operators)
15046 (Statement and operand traversals): Do not indent smallexample
15047 code. Fix duplicate function argument in example.
15049 2011-01-10 Jeff Law <law@redhat.com>
15051 PR tree-optimization/47141
15052 * ipa-split.c (split_function): Handle case where we are
15053 returning a value and the return block has a virtual operand phi.
15055 2011-01-10 Jan Hubicka <jh@suse.cz>
15057 PR tree-optimization/47234
15058 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15059 (pass_feedback_split_functions): Declare.
15060 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15062 * ipa-split.c (gate_split_functions): Update comments; disable
15063 split-functions for profile_arc_flag and branch_probabilities.
15064 (gate_feedback_split_functions): New function.
15065 (execute_feedback_split_functions): New function.
15066 (pass_feedback_split_functions): New global var.
15068 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15071 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15072 calling gimple_call_set_cannot_inline.
15074 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15076 * config/darwin-sections.def: Remove unused section.
15078 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15081 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15083 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15086 * c-parser.c (c_parser_declaration_or_fndef): Improved
15089 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15091 * config/i386/winnt.c (i386_pe_start_function): Make sure
15092 to switch back to function's section.
15094 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15098 * plugin.c: Move include of dlfcn.h from here...
15099 * system.h: ... to here.
15101 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15103 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15105 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15106 two extra empty pages in PDF output.
15108 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15111 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15112 for error recovery purposes behave as if it was not specified so
15113 that the default type is usd.
15115 2011-01-07 Jan Hubicka <jh@suse.cz>
15117 PR tree-optmization/46469
15118 * ipa.c (function_and_variable_visibility): Clear needed flags on
15119 nodes with external decls; handle weakrefs merging correctly.
15121 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15123 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15126 2011-01-07 Jan Hubicka <jh@suse.cz>
15128 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15129 and no longer claim that gold is required for linker plugin.
15130 * configure: Regenerate.
15131 * gcc.c (PLUGIN_COND): New macro.
15132 (LINK_COMMAND_SPEC): Use it.
15133 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15134 * config.in (HAVE_LTO_PLUGIN): New.
15135 * configure.ac (--with-lto-plugin): New parameter; autodetect
15138 2011-01-07 Jan Hubicka <jh@suse.cz>
15140 PR tree-optimization/46367
15141 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15142 when we can update original.
15143 (cgraph_mark_inline_edge): Sanity check.
15144 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15146 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15148 * config/spu/spu.h (ASM_COMMENT_START): Define.
15150 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15153 * gcc.c (%>S): New.
15154 (SWITCH_KEEP_FOR_GCC): Likewise.
15155 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15156 (do_spec_1): Handle "%>".
15158 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15160 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15163 * config/i386/i386.c (ix86_delegitimize_address): If
15164 simplify_gen_subreg fails, return orig_x.
15167 * value-prof.c (gimple_stringop_fixed_value): Handle
15168 lhs of the call properly.
15170 2011-01-07 Jan Hubicka <jh@suse.cz>
15173 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15175 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15177 * target.def (function_switched_text_sections): New hook.
15178 * doc/tm.texi: Regenerated.
15179 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15180 * final.c (default_function_switched_text_sections): New.
15181 (final_scan_insn): Call function_switched_text_sections when a
15182 mid-function section change occurs.
15183 * output.h (default_function_switched_text_sections): Declare.
15184 * config/darwin-protos.h (darwin_function_switched_text_sections):
15186 * config/darwin.c (darwin_function_switched_text_sections): New.
15187 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15189 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15191 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15192 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15193 the secondary code fragment when outputting for DWARF == 2.
15195 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15197 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15198 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15200 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15201 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15203 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15206 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15207 when it is not empty.
15209 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15212 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15213 (case ${target}): Add btver1.
15214 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15215 -march=native recognize btver1 processors.
15216 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15217 btver1 def_and_undef
15218 * config/i386/i386.c (struct processor_costs btver1_cost): New
15220 (m_BTVER1): New definition.
15221 (m_AMD_MULTIPLE): Includes m_BTVER1.
15222 (initial_ix86_tune_features): Add btver1 tune.
15223 (processor_target_table): Add btver1 entry.
15224 (static const char *const cpu_names): Add btver1 entry.
15225 (software_prefetching_beneficial_p): Add btver1.
15226 (ix86_option_override_internal): Add btver1 instruction sets.
15227 (ix86_issue_rate): Add btver1.
15228 (ix86_adjust_cost): Add btver1.
15229 * config/i386/i386.h (TARGET_BTVER1): New definition.
15230 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15231 (enum processor_type): Add PROCESSOR_BTVER1.
15232 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15234 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15237 * config/i386/i386.c (legitimize_tls_address)
15238 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15239 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15240 (tls_initial_exec_64_sun): New pattern.
15242 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15244 * doc/invoke.texi (Overall Options): Improve wording and markup
15245 of the description of -wrapper.
15247 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15249 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15250 rdynamic, threads): New Driver options.
15252 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15255 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15256 if coming from .tdata.
15257 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15259 2011-01-06 Jan Hubicka <jh@suse.cz>
15262 * collect2.c (main): Do not enable LTOmode when plugin is active.
15264 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15267 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15268 --version output if supported.
15269 * configure: Regenerate.
15271 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15273 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15276 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15279 * c-convert.c (convert): When converting a complex expression
15280 other than COMPLEX_EXPR to a different complex type, ensure
15281 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15282 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15283 when converting COMPLEX_TYPE.
15285 2011-01-06 Ira Rosen <irar@il.ibm.com>
15287 PR tree-optimization/47139
15288 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15289 only the last reduction value is used outside the loop. Update
15292 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15294 * config/rtems.opt: New.
15295 * config.gcc (*-*-rtems*): Use rtems.opt.
15297 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15299 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15300 processors do not support 3DNow instructions.
15302 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15304 * config/spu/spu.c (spu_option_override): Set parameter
15305 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15307 2011-01-05 Jan Hubicka <jh@suse.cz>
15309 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15310 at the command line.
15312 2011-01-05 Martin Jambor <mjambor@suse.cz>
15315 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15316 deltas on streamed outgoing edges.
15317 (output_node_opt_summary): Output info for outgoing edges only when
15318 the node is in new parameter set.
15319 (output_cgraph_opt_summary): New parameter set, passed to the two
15320 aforementioned functions. Update its forward declaration and its
15323 2011-01-05 Tom Tromey <tromey@redhat.com>
15325 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15326 operator to c_finish_omp_atomic.
15327 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15328 (build_unary_op): Update.
15329 (build_modify_expr): Update.
15330 (build_asm_expr): Update.
15332 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15334 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15335 newly inserted insns.
15336 (pad_bb): Likewise.
15337 (spu_emit_branch_hint): Likewise.
15338 (insert_hbrp_for_ilb_runout): Likewise.
15339 (spu_machine_dependent_reorg): Call df_finish_pass after
15340 schedule_insns returns.
15342 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15344 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15346 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15348 PR tree-optimization/47005
15349 * tree-sra.c (struct access): Add 'non_addressable' bit.
15350 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15351 (decide_one_param_reduction): Return 0 if the parameter is passed by
15352 reference and one of the accesses in the group is non_addressable.
15354 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15356 PR tree-optimization/47056
15357 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15358 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15359 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15361 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15363 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15364 initializer. Skip view conversions from aggregate types.
15366 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15369 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15371 2011-01-04 Philipp Thomas <pth@suse.de>
15373 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15376 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15378 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15379 on empty epilogue sequences.
15381 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15383 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15384 non-static): New Driver options.
15386 2011-01-04 Jie Zhang <jie@codesourcery.com>
15389 * gcc.c (default_compilers[]): Set combinable field to 0
15390 for all assembly languages.
15392 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15394 * config/mips/loongson3a.md: New file.
15395 * config/mips/mips.md: Include loongson3a.md.
15396 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15399 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15401 PR middle-end/47017
15402 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15403 instead of convert_memory_address_addr_space on the base expression.
15405 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15407 * config/spu/spu.c (spu_option_override): Update error text
15408 for bad -march= / -mtune= values.
15410 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15412 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15413 if branch-hint optimization will be performed.
15415 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15417 PR tree-optimization/47148
15418 * ipa-split.c (split_function): Convert arguments to
15419 DECL_ARG_TYPE if possible.
15421 PR tree-optimization/47155
15422 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15423 when computing uns.
15425 PR rtl-optimization/47157
15426 * combine.c (try_combine): If undobuf.other_insn becomes
15427 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15428 and set *new_direct_jump_p too.
15430 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15432 PR tree-optimization/47021
15433 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15435 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15437 * gcc.c (process_command): Update copyright notice dates.
15438 * gcov.c (print_version): Likewise.
15439 * gcov-dump.c (print_version): Likewise.
15440 * mips-tfile.c (main): Likewise.
15441 * mips-tdump.c (main): Likewise.
15443 2011-01-03 Martin Jambor <mjambor@suse.cz>
15445 PR tree-optimization/46801
15446 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15447 aggregate fields start at byte boundary instead of the bit-field flag.
15449 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15452 * gcc.c (main): Revert revision 168407.
15454 2011-01-03 Martin Jambor <mjambor@suse.cz>
15456 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15458 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15460 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15461 vector optab to expand vector/scalar shift, update gimple to vector.
15463 2011-01-03 Martin Jambor <mjambor@suse.cz>
15465 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15468 2011-01-03 Martin Jambor <mjambor@suse.cz>
15470 PR tree-optimization/46984
15471 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15473 (cgraph_create_indirect_edge): Fixed line length.
15474 (cgraph_indirect_call_info): Declare.
15475 (cgraph_make_edge_direct) Update declaration.
15476 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15477 (cgraph_create_indirect_edge): Use it.
15478 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15480 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15481 the new thunk_delta representation.
15482 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15484 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15485 (ipa_read_indirect_edge_info): Likewise.
15486 * lto-cgraph.c (output_edge_opt_summary): New function.
15487 (output_node_opt_summary): Call it on all outgoing edges.
15488 (input_edge_opt_summary): New function.
15489 (input_node_opt_summary): Call it on all outgoing edges.
15491 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15494 * gcc.c (main): Don't check have_o when settting combine_inputs.
15496 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15498 * regrename.c: Add general comment describing the pass.
15499 (struct du_head): Remove 'length' field.
15500 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15501 (regrename_optimize): Do not sort chains. Rework comments, add others.
15502 Force renaming to the preferred class (if any) in the first pass and do
15503 not consider registers that belong to it in the second pass.
15504 (create_new_chain): Do not set 'length' field.
15505 (scan_rtx_reg): Likewise.
15507 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15509 PR tree-optimization/47140
15510 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15511 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15512 to bit_value_binop.
15514 PR rtl-optimization/47028
15515 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15516 parm_birth_insn instead of at the beginning of first bb.
15518 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15520 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15521 Remove the word "see" before "@pxref".
15522 * doc/rtl.texi: Remove the word "see" before "@pxref".
15524 2011-01-01 Jan Hubicka <jh@suse.cz>
15526 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15529 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15532 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15535 Copyright (C) 2011 Free Software Foundation, Inc.
15537 Copying and distribution of this file, with or without modification,
15538 are permitted in any medium without royalty provided the copyright
15539 notice and this notice are preserved.