1 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
4 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5 "register_operand" check and replace q_regs_operand with
6 QIreg_operand in "type" calculation.
7 (*movqi_extv_1): Likewise.
8 (*movqi_extzv_2_rex64): Likewise.
9 (*movqi_extzv_2): Likewise.
11 * config/i386/predicates.md (QIreg_operand): New.
13 2011-05-25 Richard Guenther <rguenther@suse.de>
15 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
16 type-based offset disambiguation, streamline MEM_REF and
17 TARGET_MEM_REF handling.
19 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
21 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
22 (bdesc_special_args): Add pause intrinsic.
24 * config/i386/i386.md (UNSPEC_PAUSE): New.
27 * config/i386/ia32intrin.h (__pause): Likewise.
29 * doc/extend.texi (X86 Built-in Functions): Add documentation for
32 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34 PR tree-optimization/46728
35 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
36 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
38 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
40 * tree.h (struct tree_exp): Inherit from struct tree_typed.
41 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
44 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
46 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
47 LIBGCC2_GNU_PREFIX is defined.
49 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
50 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
51 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
52 __clz_tab): Define using __N.
53 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
54 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
55 * target.def (libfunc_gnu_prefix): New hook.
56 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
57 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
58 * doc/tm.texi: Regenerate.
59 * system.h (LIBGCC2_GNU_PREFIX): Poison.
60 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
62 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
63 (init_optabs): Likewise for the bswap libfuncs.
64 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
66 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
67 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
68 * libgcc-std.ver: Remove.
69 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
70 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
72 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
73 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
74 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
75 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
76 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
77 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
78 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
79 * config/fixed-bit.h (FIXED_OP): Define differently depending on
80 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
81 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
83 2011-05-25 Jan Hubicka <jh@suse.cz>
85 * lto-streamer-out.c (output_record_start): Use lto_output_enum
86 (lto_output_tree): Use output_record_start.
87 * lto-streamer-in.c (input_record_start): Use lto_input_enum
88 (lto_get_pickled_tree): Use input_record_start.
89 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
90 (lto_value_range_error): New function.
91 * lto-streamer.h (lto_value_range_error): Declare.
92 (lto_output_int_in_range, lto_input_int_in_range): New functions.
93 (lto_output_enum, lto_input_enum): New macros.
95 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
97 * common.opt (flag_stack_usage_info): New variable.
98 (-Wstack-usage): New option.
99 * doc/invoke.texi (Warning options): Document -Wstack-usage.
100 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
101 <OPT_fstack_usage>: Likewise.
102 * toplev.c (output_stack_usage): Handle -Wstack-usage.
103 * calls.c (expand_call): Test flag_stack_usage_info variable instead
105 (emit_library_call_value_1): Likewise.
106 * explow.c (allocate_dynamic_stack_space): Likewise.
107 * function.c (instantiate_virtual_regs ): Likewise.
108 (prepare_function_start): Likewise.
109 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
110 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
111 * config/arm/arm.c (arm_expand_prologue): Likewise.
112 (thumb1_expand_prologue): Likewise.
113 * config/avr/avr.c (expand_prologue): Likewise.
114 * config/i386/i386.c (ix86_expand_prologue): Likewise.
115 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
116 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
117 * config/mips/mips.c (mips_expand_prologue): Likewise.
118 * config/pa/pa.c (hppa_expand_prologue): Likewise.
119 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
120 * config/s390/s390.c (s390_emit_prologue): Likewise.
121 * config/sh/sh.c (sh_expand_prologue): Likewise.
122 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
123 * config/spu/spu.c (spu_expand_prologue): Likewise.
125 2011-05-25 Richard Guenther <rguenther@suse.de>
127 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
128 (gimple_canonical_types_compatible_p): Likewise.
130 2011-05-25 Jan Hubicka <jh@suse.cz>
133 * ipa.c (function_and_variable_visibility): Only add to same
134 comdat group list if DECL_ONE_ONLY.
136 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
138 PR rtl-optimization/49014
139 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
141 2011-05-25 Jakub Jelinek <jakub@redhat.com>
144 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
146 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
148 PR rtl-optimization/48757
149 * ira-build.c (loop_with_eh_edge_p): Rename to
150 loop_with_complex_edge_p, check edges on complexity, make function
152 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
155 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
157 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
158 force flag_ira_share_save_slots to 0.
160 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
162 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
163 (vt_initialize): Set PROLOGUE_BB unconditionally.
164 Add block comment about CFA_BASE_RTX machinery.
165 Reset FP_CFA_OFFSET to -1 on all invalid paths.
166 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
168 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
171 * c-parser.c (c_parser_objc_class_instance_variables): More robust
172 parsing of syntax error in ObjC instance variable lists. In
173 particular, avoid an infinite loop if there is a stray ']'.
174 Updated error message.
176 2011-05-24 Ian Lance Taylor <iant@google.com>
178 * godump.c (go_define): Don't accept a string immediately after
181 2011-05-24 Ian Lance Taylor <iant@google.com>
183 * godump.c (struct godump_container): Add invalid_hash field.
184 (go_format_type): Return false if type is found in invalid_hash.
185 (go_output_typedef): Add invalid type to invalid_hash.
186 (go_finish): Create and delete invalid_hash.
188 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
190 PR tree-optimization/46728
191 * tree-ssa-math-opts.c (powi_table): New.
192 (powi_lookup_cost): New.
194 (powi_as_mults_1): New.
195 (powi_as_mults): New.
196 (gimple_expand_builtin_powi): New.
197 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
198 (gate_cse_sincos): Remove sincos/cexp restriction.
200 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
203 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
205 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
206 * mips-tdump.c: Likewise.
208 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
211 * config/i386/driver-i386.c (host_detect_local_cpu): Always
212 add -mno-XXX. Handle FMA.
214 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
216 PR rtl-optimization/48633
217 * ira-build.c (loop_with_eh_edge_p): New function.
218 (mark_loops_for_removal): Use it.
220 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
222 PR rtl-optimization/48971
223 * ira.c (setup_pressure_classes): Don't check register move cost
224 for classes with one registers. Don't add pressure class if there
225 is a pressure class with the same available hard registers.
226 Check contains_reg_of_mode. Fix a typo in collecting
227 temp_hard_regset. Ignore hard registers not belonging to a class.
229 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
232 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
234 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
235 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
237 PR gcov-profile/48845
238 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
240 2011-05-24 Richard Guenther <rguenther@suse.de>
242 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
243 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
244 (gimple_types_compatible_p_1): Adjust.
245 (iterative_hash_canonical_type): Do not bother about complete vs.
247 (gimple_canonical_types_compatible_p): Likewise.
249 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
251 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
253 2011-05-24 Richard Guenther <rguenther@suse.de>
256 * gimple.c (gimple_register_canonical_type): Revert
258 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
259 does not for a tree for the case where it matters. Cache
260 pointer-type alias-sets.
262 2011-05-24 Joseph Myers <joseph@codesourcery.com>
264 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
265 (OBJS): Remove options.o, opts-common.o and prefix.o.
266 (OBJS-libcommon-target): New.
267 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
268 (BACKEND): Include libcommon-target.a.
269 (MOSTLYCLEANFILES): Include libcommon-target.a.
270 (libcommon-target.a): New.
271 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
274 2011-05-23 Joseph Myers <joseph@codesourcery.com>
276 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
277 parts of output shared with the driver.
278 * optc-gen.awk: Don't generate parts of output not shared with the
280 * opth-gen.awk: Remove GCC_DRIVER conditionals.
281 * doc/options.texi (SourcerInclude): Mention options-save.c.
282 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
283 (OBJS): Add options-save.o.
284 (options-save.c, options-save.o): New.
285 (options.o): Update dependencies.
286 (gcc-options.o): Remove.
287 (mostlyclean): Remove options-save.c.
289 2011-05-23 Jakub Jelinek <jakub@redhat.com>
292 * dbxout.c: Include cgraph.h.
293 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
294 and without value expr, return NULL if no varpool node exists for
295 it or if it is not needed.
296 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
299 * c-decl.c (start_decl): Convert expr to void_type_node.
301 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
303 PR rtl-optimization/48826
304 * emit-rtl.c (try_split): When splitting a call that is followed
305 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
307 2011-05-23 Jakub Jelinek <jakub@redhat.com>
309 * cfgexpand.c (expand_debug_expr): For unused non-addressable
310 parameters passed in memory prefer using DECL_INCOMING_RTL over
311 the pseudos it will be copied into.
313 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
316 * config/i386/i386.c (ix86_option_override_internal): Save the
317 initial options after checking vzeroupper.
319 2011-05-23 David Li <davidxl@google.com>
321 PR tree-optimization/48988
322 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
323 Initialize has_valid_pred for each pred chain.
325 2011-05-23 Richard Guenther <rguenther@suse.de>
327 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
328 (iterative_hash_gimple_type): Always hash type names.
330 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
332 * c-typeck.c (build_function_call_vec): Tweak call to
333 check_function_arguments.
335 2011-05-23 Richard Guenther <rguenther@suse.de>
337 PR tree-optimization/49115
338 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
339 is not necessarily carried out, do not claim it kills the ref.
340 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
342 2011-05-23 Richard Guenther <rguenther@suse.de>
345 * builtins.c (fold_builtin_memory_op): Be less restrictive about
346 what pointer types we accept for folding.
348 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
350 * gthr-gnat.c: Remove.
351 * gthr-gnat.h: Remove.
352 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
353 * config/t-freebsd (LIB2ADDEH): Likewise.
354 * config/t-linux (LIB2ADDEH): Likewise.
355 * config/t-sol2 (LIB2ADDEH): Likewise.
356 * config/ia64/t-vms (LIB2ADDEH): Likewise.
357 * configure.ac (target_thread_file): Remove gnat handling.
358 * configure: Regenerate.
359 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
361 2011-05-23 Tristan Gingold <gingold@adacore.com>
362 Eric Botcazou <ebotcazou@adacore.com>
364 * gcov.c (create_file_names): If no object directory is specified,
365 keep the directory of the file.
367 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
370 * configure: Regenerate.
372 2011-05-23 Jakub Jelinek <jakub@redhat.com>
375 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
376 failed and the comparison has a single bit signed type, use
377 constm1_rtx instead of const1_rtx for true value.
378 (do_store_flag): If ops->type is single bit signed type, disable
379 signel bit test optimization and pass -1 instead of 1 as last
380 parameter to emit_store_flag_force.
382 2011-05-23 Tom de Vries <tom@codesourcery.com>
385 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
387 (infer_loop_bounds_from_undefined): Use new function.
389 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
391 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
392 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
393 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
395 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
397 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
399 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
400 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
403 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
405 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
407 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
409 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
410 UNSPEC_MOVE_PIC pattern.
412 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
414 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
415 (sparc-*-rtems*): Likewise.
416 (sparc64-*-elf*): Likewise.
417 (sparc64-*-rtems*): Likewise.
418 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
419 * config/sparc/t-crtin: New file.
420 * config/sparc/t-sol2 (crti.o): Delete rule.
422 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
423 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
424 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
425 (ENDFILE_SPEC): Add crtn.o.
427 2011-05-22 Tom de Vries <tom@codesourcery.com>
430 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
431 CODE_CONTAINS_STRUCT (TS_COMMON).
433 2011-05-22 Jakub Jelinek <jakub@redhat.com>
436 * expmed.c (extract_fixed_bit_field): Test whether target can be used
437 only after deciding which mode to use.
439 2011-05-22 Tom de Vries <tom@codesourcery.com>
442 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
443 for call to get_shiftadd_cost.
445 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
448 * config/i386/cpuid.h (bit_MMXEXT): New define.
450 2011-05-22 Nick Clifton <nickc@redhat.com>
452 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
453 initialisation of non-existant args[2] element. Use args[] array
454 not arg[] array to pass arguments to build_function_type_list.
456 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
458 PR tree-optimization/49087
459 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
461 2011-05-21 Jason Merrill <jason@redhat.com>
464 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
465 static storage duration.
467 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
469 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
472 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
474 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
475 false if there are call-saved registers here...
476 (sparc_can_use_return_insn_p): ...but here instead.
477 (save_or_restore_regs): Fix thinko.
478 (sparc_expand_prologue): Use current_function_is_leaf.
479 (sparc_frame_pointer_required): Likewise.
481 2011-05-21 Nick Clifton <nickc@redhat.com>
484 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
486 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
488 * gengtype.c (walk_type): Implemented "atomic" GTY option.
489 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
491 2011-05-21 Joseph Myers <joseph@codesourcery.com>
493 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
494 * optc-gen.awk: Move common code to opt-read.awk.
495 * opth-gen.awk: Likewise.
496 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
498 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
500 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
502 2011-05-20 Tom de Vries <tom@codesourcery.com>
505 * tree-ssa-loop-ivopts.c: Include expmed.h.
506 (get_shiftadd_cost): New function.
507 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
509 2011-05-20 Jakub Jelinek <jakub@redhat.com>
512 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
513 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
515 2011-05-20 Joseph Myers <joseph@codesourcery.com>
517 * Makefile.in: Update comment referring to $(OBJS-common).
519 2011-05-20 Ian Lance Taylor <iant@google.com>
521 * godump.c (go_output_typedef): Put enum constants in the macro
522 hash table to avoid duplicate Go const definitions.
524 2011-05-20 Joseph Myers <joseph@codesourcery.com>
526 * Makefile.in (LIBDEPS): Add libcommon.a.
528 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
529 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
530 pretty-print.o and version.o.
531 (OBJS-libcommon): New.
532 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
533 (BACKEND): Add libcommon.a.
534 (MOSTLYCLEANFILES): Likewise.
536 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
537 (cpp$(exeext)): Likewise.
538 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
539 pretty-print.o and input.o.
540 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
541 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
543 (mips-tfile): Don't explicitly use version.o.
544 (mips-tdump): Likewise.
545 (gcov.o): Depend on $(DIAGNOSTIC_H).
546 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
547 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
548 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
549 * gcov-dump.c: Include intl.h and diagnostic.h.
550 (main): Initialize diagnostics.
551 * gcov.c: Include diagnostic.h.
553 (main): Initialize diagnostics.
554 * lto-wrapper.c: Include diagnostic.h.
555 (main): Initialize diagnostics.
557 2011-05-20 Michael Matz <matz@suse.de>
559 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
561 2011-05-20 Michael Matz <matz@suse.de>
562 Richard Guenther <rguenther@suse.de>
564 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
565 use lto_streamer_cache_append directly instead of returning a VEC.
566 (preload_common_node): Remove.
567 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
569 (lto_streamer_cache_create): Call lto_preload_common_nodes.
571 2011-05-20 Richard Guenther <rguenther@suse.de>
573 PR tree-optimization/49079
574 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
575 MEM_REFs correctly for the trailing array access detection.
576 Special case constants the same way as decls for overall size
579 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
581 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
584 2011-05-20 Jakub Jelinek <jakub@redhat.com>
586 PR tree-optimization/49073
587 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
588 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
589 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
591 2011-05-20 Richard Guenther <rguenther@suse.de>
594 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
595 of pointer types the same way the middle-end does.
597 2011-05-20 Richard Guenther <rguenther@suse.de>
599 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
600 or pointer-to chains. Delay all fixup to uniquify_nodes.
602 2011-05-19 Quentin Neill <quentin.neill@amd.com>
604 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
605 (fma4_fmaddsub): Likewise
607 2011-05-19 Jan Hubicka <jh@suse.cz>
609 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
610 (GIMPLE_TYPE_PAIR_SIZE): New macro.
611 (type_pair_cache): New static var.
612 (lookup_type_pair): Use fixed sized custom hash; make inline.
613 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
614 calls of lookup_type_pair.
615 (print_gimple_types_stats): Remove cache stats.
616 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
619 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
621 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
622 when TARGET_RDRND is active.
623 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
624 Generate dummy SImode target register when target is NULL.
626 2011-05-19 Joseph Myers <joseph@codesourcery.com>
628 * config/arm/arm-fpus.def: New.
629 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
631 * config/arm/arm-tables.opt: Regenerate.
632 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
633 (arm_option_override): Don't decode FPU name to string here.
634 * config/arm/arm.opt (mfpu=): Use Enum.
635 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
638 2011-05-19 Joseph Myers <joseph@codesourcery.com>
640 * collect2.c: Include diagnostic.h.
641 (fatal_perror, fatal, error, fancy_abort): Remove.
642 (main): Set progname. Call xmalloc_set_program_name and
643 diagnostic_initialize.
644 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
645 scan_libraries, resolve_lib_name): Call fatal_error instead of
646 fatal and fatal_perror.
647 * collect2.h (error, fatal, fatal_perror): Don't declare.
648 * tlink.c: Include diagnostic-core.h.
649 (recompile_files): Call fatal_error instead of fatal_perror.
650 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
651 pretty-print.o and input.o.
652 (collect2.o, tlink.o): Update dependencies.
654 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
656 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
658 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
661 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
662 COMDAT group syntax, both SPARC and x86 variants.
663 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
664 * configure: Regenerate.
665 * config/sol2.h (TARGET_SOLARIS): Define.
666 (PUSHSECTION_FORMAT): Remove.
667 (SECTION_NAME_FORMAT): Define.
668 * config/sol2.c: Include hashtab.h.
669 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
670 expansion, using SECTION_NAME_FORMAT.
671 (solaris_comdat_htab): New variable.
672 (struct comdat_entry): Define.
673 (comdat_hash): New function.
674 (comdat_eq): New function.
675 (solaris_elf_asm_comdat_section): New function.
676 (solaris_define_comdat_signature): New function.
677 (solaris_code_end): New function.
678 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
679 (solaris_code_end): Declare.
680 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
681 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
683 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
684 Remove ATTRIBUTE_UNUSED.
685 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
686 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
687 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
688 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
689 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
690 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
691 (PUSHSECTION_FORMAT): Remove.
692 (SECTION_NAME_FORMAT): Redefine.
694 2011-05-19 Kai Tietz <ktietz@redhat.com>
696 * tree-cfg.c (verify_gimple_assign_binary): Barf on
697 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
698 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
700 2011-05-19 Anatoly Sokolov <aesok@post.ru>
701 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
703 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
705 2011-05-19 Richard Guenther <rguenther@suse.de>
708 * tree-object-size.c (addr_object_size): If the pointed-to
709 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
711 2011-05-19 Richard Guenther <rguenther@suse.de>
713 * gimple.c (gimple_types_compatible_p_1): Compare names of
714 the types themselves.
715 (iterative_hash_gimple_type): And hash them that way.
716 (gimple_register_type_1): If we register a main variant properly
717 initialize the leader to ourselves.
719 2011-05-19 Tom de Vries <tom@codesourcery.com>
722 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
723 get_loop_invariant_expr_id.
724 (get_loop_invariant_expr_id): Use get_expr_id.
725 (parm_decl_cost): New function.
726 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
727 Improve bound cost estimation. Use different inv_expr_id for elim and
730 2011-05-19 Tom de Vries <tom@codesourcery.com>
733 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
736 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
739 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
740 Properly handle load cast.
742 2011-05-18 Jakub Jelinek <jakub@redhat.com>
744 PR tree-optimization/49039
745 * tree-vrp.c (extract_range_from_binary_expr): For
746 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
747 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
749 2011-05-18 Tom de Vries <tom@codesourcery.com>
752 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
754 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
756 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
757 (*tls_global_dynamic_64): Ditto.
758 (*tls_local_dynamic_base_32_gnu): Ditto.
759 (*tls_local_dynamic_base_64): Ditto.
760 (tls_initial_exec_64_sun): Ditto.
762 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
764 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
765 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
767 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
768 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
769 * config/bfin/bfin.c (bfin_cpus): Add bf592.
770 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
771 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
772 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
773 * config/bfin/elf.h (LIB_SPEC): Add bf592.
775 2011-05-18 Joseph Myers <joseph@codesourcery.com>
777 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
778 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
779 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
780 target_thread_pointer, arm_structure_size_boundary, struct
781 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
782 struct abi_name, arm_all_abis): Remove.
783 (arm_option_override) Don't process most enumerated option values here.
784 Don't process target_fpe_name here. Work with integer not string for
785 structure size boundary; use separate diagnostics for each case.
786 * config/arm/arm.h (enum float_abi_type, enum
787 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
789 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
790 arm_structure_size_boundary): Remove.
791 * config/arm/arm.opt (mabi=): Use Enum and Init.
792 (arm_abi_type): New Enum and EnumValue entries.
793 (mfloat-abi=): Use Enum and Init.
794 (float_abi_type): New Enum and EnumValue entries.
795 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
796 (mfp16-format=): Use Enum and Init.
797 (arm_fp16_format_type): New Enum and EnumValue entries.
798 (mstructure-size-boundary=): Use UInteger and Init.
799 (mtp=): Use Enum and Init.
800 (arm_tp_type): New Enum and EnumValue entries.
802 2011-05-18 Richard Guenther <rguenther@suse.de>
804 PR tree-optimization/49018
805 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
806 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
807 gimple_has_side_effects.
809 2011-05-18 Richard Guenther <rguenther@suse.de>
811 * gimple.c (gimple_register_type_1): New function, split out from ...
812 (gimple_register_type): ... here. Avoid infinite recursion.
814 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
816 PR tree-optimization/41881
817 * tree-vectorizer.h (struct _loop_vec_info): Add new field
818 reduction_chains along with a macro for its access.
819 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
820 (destroy_loop_vec_info): Free reduction chains.
821 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
822 (vect_is_slp_reduction): New function.
823 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
824 (vect_create_epilog_for_reduction): Support SLP reduction chains.
825 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
826 definition types for reduction chains.
827 (vect_supported_load_permutation_p): Don't allow permutations for
829 (vect_analyze_slp_instance): Support reduction chains.
830 (vect_analyze_slp): Try to build SLP instance from reduction chains.
831 (vect_get_constant_vectors): Handle reduction chains.
832 (vect_schedule_slp_instance): Mark the first statement of the
833 reduction chain as reduction.
835 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
837 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
838 names for group elements access.
839 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
840 reduction chains as well. Remove data reference and interleaving
841 related words from the fields names.
842 * tree-vect-loop.c (vect_transform_loop): Use new names for group
844 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
845 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
846 vect_update_interleaving_chain, vect_same_range_drs,
847 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
848 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
849 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
850 vect_analyze_group_access, vect_analyze_data_ref_access,
851 vect_create_data_ref_ptr, vect_transform_strided_load,
852 vect_record_strided_load_vectors): Likewise.
853 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
854 vect_model_load_cost, vectorizable_store, vectorizable_load,
855 vect_remove_stores, new_stmt_vec_info): Likewise.
856 * tree-vect-slp.c (vect_build_slp_tree,
857 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
859 2011-05-18 Richard Guenther <rguenther@suse.de>
862 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
863 operand verification.
864 (verify_gimple_assign_binary): Likewise.
865 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
866 to non-1-precision BOOLEAN_TYPEs.
868 2011-05-18 Tom de Vries <tom@codesourcery.com>
871 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
873 2011-05-18 Jakub Jelinek <jakub@redhat.com>
875 PR tree-optimization/49000
876 * tree-ssa.c (execute_update_addresses_taken): Call
877 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
878 be rewritten and decl has been marked for renaming, reset
881 2011-05-17 Joseph Myers <joseph@codesourcery.com>
883 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
884 enum_opts_set when testing if attributes have set -mfpmath=.
886 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
888 * config/mips/mips.c (mips_handle_option): Remove unused variable.
890 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
892 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
894 * tree-inline.c (maybe_inline_call_in_expr): Initialize
895 id.transform_lang_insert_block with NULL.
897 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
899 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
900 (output_fp_compare): Change args 3 and 4 to bool.
901 (ix86_expand_call): Change arg 6 to bool.
902 (ix86_attr_length_immediate_default): Change arg 2 to bool.
903 (ix86_attr_length_vex_default): Change arg 3 to bool.
904 * config/i386/i386.md: Update all uses.
905 * config/i386/i386.c: Ditto.
906 (ix86_flags_dependent): Change return type to bool.
908 2011-05-17 Richard Guenther <rguenther@suse.de>
910 * gimple.c (type_hash_pair_compare): Fix comparison.
912 2011-05-17 Richard Guenther <rguenther@suse.de>
914 * gimple.c (iterative_hash_gimple_type): Simplify singleton
915 case some more, fix final hash value of the non-singleton case.
917 2011-05-17 Richard Guenther <rguenther@suse.de>
921 2011-05-16 Richard Guenther <rguenther@suse.de>
923 * gimple.c (gimple_types_compatible_p_1): Use names of the
924 type itself, not its main variant.
925 (iterative_hash_gimple_type): Likewise.
927 2011-05-17 Richard Guenther <rguenther@suse.de>
929 * gimple.c (gimple_register_canonical_type): Use the main-variant
930 leader for computing the canonical type.
932 2011-05-17 Nick Clifton <nickc@redhat.com>
934 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
937 * config/rx/rx.md: Add peephole to remove redundant extensions
939 (bitset_in_memory): Use rx_restricted_mem_operand.
940 (bitinvert_in_memory): Likewise.
941 (bitclr_in_memory): Likewise.
943 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
944 Nick Clifton <nickc@redhat.com>
946 * config/rx/rx.md: Add peepholes to match a register move followed
947 by a comparison of the moved register. Replace these with an
948 addition of zero that does both actions in one instruction.
950 2011-05-17 Jakub Jelinek <jakub@redhat.com>
953 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
954 predicate to allow CONST_INT.
955 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
957 2011-05-16 Joseph Myers <joseph@codesourcery.com>
959 * opts-common.c (opt_enum_arg_to_value): New.
960 * opts.h (opt_enum_arg_to_value): Declare.
961 * config/i386/i386.opt (fpmath): Remove.
962 (mfpmath=): Use Enum, Init and Save.
963 (fpmath_unit): New Enum and EnumValue entries.
964 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
965 name for function fpmath state.
966 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
967 * config/i386/i386.c: Include diagnostic.h.
968 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
969 (ix86_target_string): Take enum fpmath_unit value instead of string.
970 (ix86_debug_options): Update call to ix86_target_string.
971 (ix86_option_override_internal): Don't process fpmath strings here.
972 (x86_function_specific_save, ix86_function_specific_restore):
973 Don't handle fpmath state specially.
974 (ix86_function_specific_print): Pass fpmath state to
975 ix86_target_string instead of printing in this function.
976 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
977 Handle enum attributes.
978 (IX86_ATTR_ENUM, ix86_opt_enum): New.
979 (ix86_valid_target_attribute_tree): Update option_strings
980 handling. Handle fpmath as enum option.
981 (ix86_can_inline_p): Update field names for function fpmath state.
982 (ix86_expand_builtin): Update call to ix86_target_string.
983 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
984 (ix86_fpmath): Remove.
985 * config/i386/t-i386 (i386.o): Update dependencies.
987 2011-05-16 Joseph Myers <joseph@codesourcery.com>
989 PR preprocessor/48677
990 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
991 from decoded_options[0], not from itself.
993 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
995 * config/i386/constraints.md (z): New constraint.
996 * config/i386/i386.c (c): New mode attribute.
997 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
998 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
999 constraint for operand 0.
1000 (*call_vzeroupper): Ditto.
1001 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1002 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1003 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1004 Use "lzm" constraint for operand 0.
1005 (*call_pop_vzeroupper): Ditto.
1006 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1007 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1008 constraint for operand 0.
1009 (*sibcall_vzeroupper): Ditto.
1010 (*sibcall_rex64_ms_sysv): Ditto.
1011 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1012 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1013 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1014 (*sibcall_pop_vzeroupper): Ditto.
1015 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1016 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1017 mode iterator. Use "<c>zm" constraint for operand 1.
1018 (*call_value_vzeroupper): Ditto.
1019 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1021 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1022 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1023 *call_value_pop_1. Use "lzm" constraint for operand 1.
1024 (*call_value_pop_vzeroupper): Ditto.
1025 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1026 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1027 mode iterator. Use "Uz" constraint for operand 1.
1028 (*sibcall_value_vzeroupper): Ditto.
1029 (*sibcall_value_rex64_ms_sysv): Ditto.
1030 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1031 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1032 constraint for operand 1.
1033 (*sibcall_value_pop_vzeroupper): Ditto.
1034 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1035 and "z" constraint for operand 2.
1036 (*tls_global_dynamic_32_gnu): Ditto.
1037 (*tls_local_dynamic_base_32_gnu): Ditto.
1038 (*tls_local_dynamic_base_64): Ditto.
1039 (*tls_local_dynamic_32_once): Ditto.
1040 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1042 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1044 2011-05-16 Richard Guenther <rguenther@suse.de>
1046 * gimple.c (gimple_types_compatible_p_1): Use names of the
1047 type itself, not its main variant.
1048 (iterative_hash_gimple_type): Likewise.
1050 2011-05-16 Richard Guenther <rguenther@suse.de>
1052 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1053 always visit pointer target and function result and argument types.
1055 2011-05-16 Jason Merrill <jason@redhat.com>
1058 * tree-inline.c (copy_statement_list): Put back recursion.
1060 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1064 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1065 * config/avr/avr.md ("*ior<mode>qi.byte0",
1066 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1068 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1071 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1072 register is needed for a function argument.
1074 2011-05-16 Richard Guenther <rguenther@suse.de>
1076 * gimple.c (struct type_hash_pair): New type.
1077 (type_hash_pair_compare): New function.
1078 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1080 2011-05-16 Revital Eres <revital.eres@linaro.org>
1082 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1084 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1086 * config/i386/i386.md (floating point move splitters): Fix
1087 usage of standard_80387_constant_p.
1088 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1090 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1092 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1094 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1096 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1097 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1098 (tree_ssa_lim_finalize): Likewise.
1100 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1102 * config/i386/constraint.md (Yd, Yx): New register constraints.
1103 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1104 Yd conditional register constraint.
1105 (*movtf_internal): Use standard_sse_constant_opcode.
1106 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1107 Yx conditional register constraint.
1108 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1109 Yd conditional register constraint. Use standard_sse_constant_p to
1110 check for valid SSE constants and call standard_sse_constant_opcode to
1112 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1113 constants and call standard_sse_constant_opcode to output SSE insn.
1114 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1115 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1116 optimize_size is set.
1117 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1119 2011-05-14 Tobias Burnus <burnus@net-b.de>
1121 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1123 2011-05-13 Martin Jambor <mjambor@suse.cz>
1125 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1126 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1127 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1128 (evaluate_conditions_for_ipcp_clone): Removed.
1129 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1130 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1131 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1133 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1135 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1136 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1137 lieu of MAY_HAVE_DEBUG_STMTS.
1138 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1139 debug statements if !MAY_HAVE_DEBUG_STMTS.
1141 2011-05-13 Martin Thuresson <martint@google.com>
1143 PR gcov-profile/47793
1144 * libgcov.c (gcov_exit): Support relative profile paths.
1145 * doc/invoke.texi (-fprofile-dir): Update for above change.
1147 2011-05-13 Richard Guenther <rguenther@suse.de>
1149 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1150 type-pair caching, do not compare hashes.
1152 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1155 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1156 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1158 2011-05-13 Kai Tietz <ktietz@redhat.com>
1160 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1161 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1162 compatible type for TRUTH_NOT_EXPR.
1164 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1166 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1167 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1168 can_create_pseudo_p ().
1170 2011-05-13 Richard Guenther <rguenther@suse.de>
1173 * gimple.c (iterative_hash_gimple_type): Revert change in
1174 pointer target and function result and argument hashing.
1176 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1178 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1179 (*movxf_internal_nointeger): Ditto.
1180 (*movdf_internal_rex64): Ditto.
1181 (*movdf_internal): Ditto.
1182 (*movdf_internal_nointeger): Ditto.
1183 (*movsf_internal): Ditto.
1184 (sincos splitters): Use can_create_pseudo ().
1186 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1188 * config/i386/i386-opts.h: New.
1189 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1190 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1191 ix86_section_threshold): Remove.
1192 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1193 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1195 (ix86_option_override_internal): Don't decode strings for options
1196 other than -march=, -mtune= and -mfpmath=. Don't allow for
1197 __attribute__ uses in remaining diagnostics for options with
1198 string arguments. Don't check for integer arguments being negative.
1199 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1200 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1201 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1202 ix86_branch_cost, ix86_section_threshold): Remove.
1203 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1205 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1207 (masm=): Use Enum and Init.
1208 (asm_dialect): New Enum and EnumValue entries.
1209 (mbranch-cost=): Use UInteger.
1210 (mlarge-data-threshold=): Use UInteger and Init.
1211 (mcmodel=): Use Enum and Init.
1212 (cmodel): New Enum and EnumValue entries.
1213 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1214 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1215 mregparm=): Use UInteger.
1216 (mstringop-strategy=): Use Enum and Init.
1217 (stringop_alg): New Enum and EnumValue entries.
1218 (mtls-dialect=): Use Enum and Init.
1219 (tls_dialect): New Enum and EnumValue entries.
1220 (mabi=): Use Enum and Init.
1221 (calling_abi): New Enum and EnumValue entries.
1222 (mveclibabi=): Use Enum and Init.
1223 (ix86_veclibabi): New Enum and EnumValue entries.
1225 2011-05-13 Nick Clifton <nickc@redhat.com>
1227 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1228 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1230 2011-05-13 Kai Tietz <ktietz@redhat.com>
1233 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1234 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1235 (gimple_boolify): Check for cast for boolean_type_node instead for
1238 2011-05-13 Richard Guenther <rguenther@suse.de>
1240 PR tree-optimization/48172
1241 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1242 multiplying by number of iterations for equal step.
1243 (vect_create_cond_for_alias_checks): Likewise.
1245 2011-05-13 Andreas Schwab <schwab@redhat.com>
1247 * configure.ac: Use AS_HELP_STRING throughout.
1248 * configure: Regenerate.
1250 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1252 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1253 (ix86_emit_restore_regs_using_mov): Likewise.
1254 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1256 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1258 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1259 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1260 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1261 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1262 RTX_OK_FOR_OLO10_P): ...here.
1263 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1266 2011-05-12 Kai Tietz <ktietz@redhat.com>
1268 * gimplify.c (gimple_boolify): Re-boolify expression
1269 arguments even if expression type is of kind BOOLEAN_TYPE.
1270 (gimplify_boolean_expr): Removed.
1271 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1272 and XOR. Additional take care that we keep expression's type.
1273 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1274 of TRUTH_AND|OR|XOR_EXPR.
1276 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1278 PR tree-optimization/48975
1279 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1280 on all bbs here and free and clear ifc_bbs at the end.
1282 2011-05-12 Richard Guenther <rguenther@suse.de>
1284 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1285 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1286 until after simple checks.
1287 (gimple_types_compatible_p): Likewise.
1288 (iterative_hash_gimple_type): Always hash pointer targets
1289 and function return and argument types.
1290 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1291 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1292 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1293 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1294 completely in the simple compare section.
1295 (gimple_register_canonical_type): Query the cache again after
1298 2011-05-12 Richard Guenther <rguenther@suse.de>
1300 PR tree-optimization/48172
1301 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1302 the number of iterations from the segment size calculation.
1303 (vect_create_cond_for_alias_checks): Adjust.
1305 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1308 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1309 if validate_subreg fails.
1311 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1313 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1314 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1317 2011-05-12 DJ Delorie <dj@redhat.com>
1319 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1320 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1321 created builtin into rx_builtins array.
1322 (rx_builtin_decl): New function.
1323 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1325 2011-05-12 DJ Delorie <dj@redhat.com>
1326 Nick Clifton <nickc@redhat.com>
1328 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1329 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1330 (rx_is_legitimate_address): Add pre-decrement and post-increment
1331 addressing in HImode and QImode. Fix test for out of range
1333 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1334 (rx_align_for_label): Test label before extracting its usage count.
1335 (rx_adjust_insn_lengths): Fix selection of insn codes.
1336 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1338 2011-05-11 Jason Merrill <jason@redhat.com>
1340 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1342 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1344 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1345 reindent the subsequent block.
1347 2011-05-11 Satoru Takabayashi <satorux@google.com>
1348 Paul Pluzhnikov <ppluzhnikov@google.com>
1350 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1351 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1352 * config.in: Add LINKER_HASH_STYLE.
1353 * configure.ac: Add --with-linker-hash-style.
1354 * configure: Regenerate.
1356 2011-05-11 Richard Guenther <rguenther@suse.de>
1359 * gimple.c (iterative_hash_canonical_type): Fix typo.
1361 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1363 * config/i386/i386.c (legitimize_tls_address)
1364 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1365 expanders directly for TARGET_GNU2_TLS. Determine pic and
1366 __tls_get_addr symbol reference here. Update call to
1367 gen_tls_global_dynamic_{32,64} for added arguments.
1368 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1369 expanders directly for TARGET_GNU2_TLS. Determine
1370 __tls_get_addr symbol reference here. Update call to
1371 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1372 unique UNSPEC REG_EQUIV to libcall block.
1373 (ix86_tls_get_addr): Declare static.
1374 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1375 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1376 Do not determine pic and __tls_get_addr symbol reference here. Do not
1377 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1378 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1379 (tls_global_dynamic_64): Add operand 2. Do not determine
1380 __tls_get_addr symbol reference here. Do not call
1381 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1382 (tls_local_dynamic_base64): Ditto for operand 1.
1384 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1386 * function.c (expand_function_start): Initialize stack_check_probe_note
1387 only if the generic stack checking mechanism is used.
1389 2011-05-11 Richard Guenther <rguenther@suse.de>
1391 PR tree-optimization/15256
1392 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1393 (A & B) | C, combine (A op CST1) op CST2.
1394 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1395 visit assigns that have uses.
1397 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1399 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1400 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1401 (unpack_ts_type_common_value_fields): ...this. Update comment.
1402 (unpack_value_fields): Adjust for renaming.
1403 (lto_input_ts_type_tree_pointers): Split into...
1404 (lto_input_ts_type_common_tree_pointer): ...this and...
1405 (lto_input_ts_type_non_common_tree_pointers): ...this.
1406 (lto_input_tree_pointers): Adjust for above split.
1407 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1408 (pack_ts_type_common_value_fields): ...this. Update comment.
1409 (lto_output_ts_type_tree_pointers): Split into...
1410 (lto_output_ts_type_common_tree_pointers): ...this and...
1411 (lto_output_ts_type_non_common_tree_pointers): ...this.
1412 (lto_output_tree_pointers): Adjust for above split.
1413 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1414 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1415 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1416 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1418 (struct tree_type): Split into...
1419 (struct tree_type_common: ...this and...
1420 (struct tree_type_with_lang_specific): ...this and...
1421 (struct tree_type_non_common): ...this. Adjust accessor macros
1423 (TYPE_VALUES_RAW): Define.
1424 (union tree_node): Update for above changes.
1425 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1427 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1428 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1429 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1430 * treestructu.def (TS_TYPE): Remove.
1431 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1434 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1437 * tree-ssa.c (reset_debug_uses): New function.
1438 * tree-flow.h (reset_debug_uses): New prototype.
1439 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1440 * tree-loop-distribution.c (generate_loops_for_partition): Call
1441 reset_debug_uses on the stmts that will be removed. Keep around
1442 all debug stmts, don't count them as bits in partition bitmap.
1443 (generate_builtin): Don't count debug stmts or labels as bits in
1446 2011-05-11 Richard Guenther <rguenther@suse.de>
1448 * gimple.c (gimple_type_hash_1): Merge with ...
1449 (gimple_type_hash): ... this.
1450 (gtc_visit): Remove mode parameter and simplify accordingly.
1451 (gimple_types_compatible_p_1): Likewise.
1452 (gimple_types_compatible_p): Likewise.
1453 (iterative_hash_gimple_type): Likewise.
1455 (gimple_type_eq): Adjust.
1457 2011-05-11 Revital Eres <revital.eres@linaro.org>
1459 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1460 enters the branch create an anti edge in the opposite direction
1461 to prevent the creation of reg-moves.
1462 * modulo-sched.c: Adjust comment to reflect the fact we are
1463 scheduling closing branch.
1464 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1465 (stage_count): New field in struct partial_schedule.
1466 (calculate_stage_count): New function.
1467 (normalize_sched_times): Rename to reset_sched_times and handle
1468 incrementing the sched time of the nodes by a constant value
1469 passed as parameter.
1470 (duplicate_insns_of_cycles): Skip closing branch.
1471 (sms_schedule_by_order): Schedule closing branch.
1472 (ps_insn_find_column): Handle closing branch.
1473 (sms_schedule): Call reset_sched_times and adjust the code to
1474 support scheduling of the closing branch.
1475 (ps_insert_empty_row): Update calls to normalize_sched_times
1476 and rotate_partial_schedule functions.
1478 2011-05-11 Richard Guenther <rguenther@suse.de>
1481 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1483 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1485 * opts.c (finish_options): Move warning settings from process_options.
1486 * toplev.c (process_options): Move warning settings to finish_options.
1488 2011-05-11 Richard Guenther <rguenther@suse.de>
1490 PR tree-optimization/18041
1491 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1492 (simplify_bitwise_binary): ... this. Handle operand conversions
1493 by applying them to the result instead.
1494 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1496 2011-05-11 Richard Guenther <rguenther@suse.de>
1498 * gimple.c (gimple_canonical_types_compatible_p): Split out
1499 from gimple_types_compatible_p and friends. Do not recurse
1500 to pointed-to types.
1501 (gimple_canonical_type_eq): Use it.
1502 (iterative_hash_canonical_type): Split out from
1503 iterative_hash_gimple_type and friends. Do not recurse
1504 to pointed-to types.
1505 (gimple_canonical_type_hash): Use it, allocate the hash here.
1507 2011-05-11 Revital Eres <revital.eres@linaro.org>
1509 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1512 2011-05-11 Revital Eres <revital.eres@linaro.org>
1514 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1515 instead of PREV_INSN.
1517 2011-05-11 Revital Eres <revital.eres@linaro.org>
1519 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1520 * loop-doloop.c (doloop_condition_get): Likewise.
1521 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1523 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1525 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1527 * tree.def (CASE_LABEL_EXPR): Add an operand.
1528 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1530 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1532 * c-decl.c (c_override_global_bindings_to_false): Remove.
1533 (global_bindings_p): Don't check
1534 c_override_global_bindings_to_false.
1535 * c-tree.h (c_override_global_bindings_to_false): Remove.
1536 * c-typeck.c (composite_type): Don't set
1537 c_override_global_bindings_to_false.
1539 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1541 PR target/48857, 48495
1542 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1544 (VSX_MOVE_MODE): Ditto.
1545 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1546 VSX vector types. Add V2DImode.
1547 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1548 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1549 (MODES_TIEABLE_P): Ditto.
1551 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1552 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1554 (init_cumulative_args): Ditto.
1555 (rs6000_function_arg_boundary): Ditto.
1556 (rs6000_function_arg_advance_1): Ditto.
1557 (rs6000_function_arg): Ditto.
1558 (rs6000_function_ok_for_sibcall): Ditto.
1559 (emit_frame_save): Ditto.
1560 (rs6000_function_value): Ditto.
1561 (rs6000_libcall_value): Ditto.
1563 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1565 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1566 i386/darwin-lib.h to $libgcc_tm_file.
1567 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1569 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1571 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1573 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1575 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1576 * config/rs6000/rs6000-tables.opt: New file (generated).
1577 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1578 rs6000/rs6000-tables.opt to extra_options.
1579 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1580 * config/rs6000/rs6000.c (rs6000_select): Remove.
1581 (processor_target_table): Move contents to rs6000-cpus.def.
1582 (darwin_rs6000_override_options): Check
1583 global_options_set.x_rs6000_cpu_index instead of
1584 rs6000_select[1].string.
1585 (rs6000_option_override_internal): Likewise.
1586 (rs6000_handle_option): Don't assert that global structures are in
1587 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1588 (rs6000_default_cpu): New variable.
1589 (rs6000_file_start): Set it instead of local default_cpu. Check
1590 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1591 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1592 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1593 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1594 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1595 rs6000_select): Remove.
1596 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1598 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1599 * config/rs6000/t-rs6000
1600 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1601 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1602 global_options_set.x_rs6000_cpu_index instead of
1603 rs6000_select[1].string.
1604 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1605 global_options_set.x_rs6000_cpu_index instead of
1606 rs6000_select[1].string.
1608 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1610 * config.gcc (libgcc_tm_file): Define instead of including files
1611 from ../../libgcc/config/ in tm_file.
1612 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1613 * configure: Regenerate.
1614 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1615 libgcc_tm.h, cs-libgcc_tm.h): New.
1616 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1617 (clean): Remove libgcc_tm.h.
1618 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1619 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1620 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1622 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1625 * config/avr/avr.c (avr_ret_register): Return unsigned int
1627 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1628 it to avr_libcall_value.
1629 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1631 (avr_expand_binop_builtin): Ditto.
1632 (avr_expand_unop_builtin): Ditto.
1634 2011-05-10 DJ Delorie <dj@redhat.com>
1636 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1637 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1638 * config/rx/rx.c (rx_align_for_label): Add label and
1639 uses_threshold parameters. Do not align when the label is not
1641 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1643 2011-05-10 Richard Guenther <rguenther@suse.de>
1645 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1646 a series of conversions and apply foldings similar to what
1648 (tree_ssa_forward_propagate_single_use_vars): Call it.
1650 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1652 PR tree-optimization/48611
1653 PR tree-optimization/48794
1654 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1655 referenced from RESX or EH_DISPATCH arguments.
1658 * dfp.c (decimal_to_decnumber): Handle conversion from
1659 dconst{1,2,m1,half}.
1661 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1663 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1664 for !flag_prefer_avx128.
1665 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1667 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1669 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1670 (fold_ternary_loc): Use expr_location_or.
1672 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1675 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1676 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1677 Pmode and mem_mode is not VOIDmode.
1679 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1681 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1682 TYPE_QUAL_RESTRICT): Convert to enum.
1684 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1686 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1687 (const_pow2_1_to_8_operand): Ditto.
1688 (const_pow2_1_to_128_operand): Ditto.
1689 (const_pow2_1_to_32768_operand): Ditto.
1690 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1691 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1692 in insn constraint to check integer value of operand 3.
1693 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1695 (PINSR_MODE): New mode iterator.
1696 (sse2p4_1): New mode attribute.
1697 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1698 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1699 iterator. Use const_int_operand instead of
1700 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1701 exact_log2 in insn constraint to check integer value of operand 3.
1703 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1705 * config/i386/sse.md (blendbits): Remove mode attribute.
1706 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1707 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1708 Check integer value of operand 3 in insn constraint.
1710 2011-05-09 Richard Guenther <rguenther@suse.de>
1712 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1714 (lto_symtab_merge): Likewise. Do not register types here.
1715 (lto_symtab_merge_decls_2): Likewise.
1716 (lto_symtab_merge_decls_1): Likewise.
1717 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1718 * gimple.c (enum gtc_mode): Declare.
1719 (gimple_types_compatible_p): Make static.
1721 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1723 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1724 temporary register to match Pmode.
1726 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1728 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1729 and *vec_concatv4si_1_avx.
1731 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1733 PR rtl-optimization/48927
1734 * ira-conflicts.c (commutative_constraint_p): Use
1735 recog_data.alternative_enabled_p to disable alternatives where
1736 "enabled" attribute is false.
1737 (get_dup_num): Ditto.
1738 * ira-lives.c (single_reg_class): Ditto.
1739 (ira_implicitly_set_insn_hard_regs): Ditto.
1741 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1743 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1744 (dataflow_set_preserve_mem_locs): Likewise.
1746 2011-05-09 Philipp Thomas <pth@suse.de>
1748 * config/mep/mep.c (mep_validate_vliw): Syntax description
1749 should not be translated.
1751 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1753 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1754 * config/mips/mips-tables.opt: New file (generated).
1755 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1756 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1757 MIPS_ARCH_OPTION_NATIVE): Define.
1758 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1760 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1761 mips_parse_cpu): Remove.
1762 (mips_cpu_info_from_opt, mips_default_arch): New.
1763 (mips_handle_option): Don't assert that global structures are in
1764 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1765 (mips_option_override): Use new variables and functions to set
1766 state of these options. Use strcmp to check for individual CPU names.
1767 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1769 * config/mips/mips.opt (march=): Use ToLower and Enum.
1770 (mips): Use ToLower, Enum and Var.
1771 (mtune=): Use ToLower and Enum.
1772 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1774 2011-05-08 Jan Hubicka <jh@suse.cz>
1776 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1777 Arrange type pairs to be UID ordered.
1778 (gimple_lookup_type_leader): Make inline.
1780 2011-05-09 Nick Clifton <nickc@redhat.com>
1783 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1787 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1790 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1792 * combine.c (simplify_comparison): Abstract out parts into...
1793 (simplify_compare_const): ... new function.
1794 (try_combine): Generalize parallel arithmetic/compare combining
1795 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1797 2011-05-08 Jan Hubicka <jh@suse.cz>
1799 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1800 (cgraph_create_virtual_clone): Call hooks once virtual clone
1802 * cgraph.h (cgraph_clone_node): Update prototype.
1803 * ipa-cp.c (ipcp_estimate_growth): Use
1804 estimate_ipcp_clone_size_and_time.
1805 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1806 * lto-cgraph.c (input_node): Update.
1807 * ipa-inline.c (recursive_inlining): Update.
1808 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1809 (evaluate_conditions_for_known_args): Break out from ...
1810 (evaluate_conditions_for_edge): ... here.
1811 (evaluate_conditions_for_ipcp_clone): New function.
1812 (inline_node_duplication_hook): Update clone summary based
1814 (estimate_callee_size_and_time): Rename to ...
1815 (estimate_node_size_and_time): take NODE instead of EDGE;
1816 take POSSIBLE_TRUTHS as argument.
1817 (estimate_callee_size_and_time): Update.
1818 (estimate_ipcp_clone_size_and_time): New function.
1819 (do_estimate_edge_time): Update.
1821 2011-05-08 Richard Guenther <rguenther@suse.de>
1825 * expmed.c (expand_shift_1): Compute adjusted constant shift
1828 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1830 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1832 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1834 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1836 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1838 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1840 2011-05-07 Jan Hubicka <jh@suse.cz>
1842 * ipa-inline-transform.c (inline_call): Account when program size
1844 * ipa-inline.c (relative_time_benefit): New function.
1845 (edge_badness): Reorganize to be power 2 based; fix thinko when
1846 computing badness for negative growth; update comments to match
1847 reality; better dumps.
1849 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1851 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1852 type to bool and adjust comment.
1853 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1854 (fold_mathfn_compare): Remove calls to global_bindings_p.
1855 (fold_inf_compare): Likewise.
1856 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1857 * c-tree.h (global_bindings_p): Adjust prototype.
1858 * c-decl.c (global_bindings_p): Return bool and simplify.
1860 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1862 PR tree-optimization/48837
1863 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1864 when accumulator transformation is performed.
1866 2011-05-06 Jan Hubicka <jh@suse.cz>
1868 * i386.h (ix86_tune_indices): Add
1869 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1870 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1871 * i386.c (initial_ix86_tune_features): Add
1872 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1873 (software_prefetching_beneficial_p): Remove predicate.
1874 (ix86_option_override_internal): Use new macro.
1876 2011-05-06 Jan Hubicka <jh@suse.cz>
1878 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1880 2011-05-06 Jan Hubicka <jh@suse.cz>
1882 * cgraph.c (cgraph_add_thunk): Create real function node instead
1883 of alias node; finalize it and mark needed/reachale; arrange visibility
1884 to be right and add it into the corresponding same comdat group list.
1885 (dump_cgraph_node): Dump thunks.
1886 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1887 cgraph_function_with_gimple_body_p,
1888 cgraph_first_function_with_gimple_body,
1889 cgraph_next_function_with_gimple_body): New functions.
1890 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1892 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1893 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1894 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1895 devirtualization when optimizing.
1896 (verify_cgraph_node): Verify thunks.
1897 (cgraph_analyze_function): Analyze thunks.
1898 (cgraph_mark_functions_to_output): Output thunks only in combination
1899 with function they are assigned to.
1900 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1901 alias into normal node.
1902 (assemble_thunks): New functoin.
1903 (cgraph_expand_function): Use it.
1904 * lto-cgraph.c (lto_output_node): Stream thunks.
1905 (input_overwrite_node): Stream in thunks.
1906 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1907 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1908 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1909 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1910 (inline_analyze_function): Do not care about thunk jump functions.
1911 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1912 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1913 cgraph_function_with_gimple_body_p.
1914 * passes.c (do_per_function_toporder): Use
1915 cgraph_function_with_gimple_body_p.
1916 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1917 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1918 (function_called_by_processed_nodes_p): Likewise.
1920 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1922 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1923 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1925 (mabi=): Replace with separate entries for mabi=altivec,
1926 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1927 mabi=ieeelongdouble and mabi=ibmlongdouble.
1928 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1929 check for -mabi=spe without SPE ABI support here.
1930 (rs6000_handle_option): Replace OPT_mabi_ handling with
1931 OPT_mabi_altivec and OPT_mabi_spe handling.
1933 2011-05-06 Cary Coutant <ccoutant@google.com>
1935 * dwarf2out.c (contains_subprogram_definition): New function.
1936 (should_move_die_to_comdat): Call it.
1938 2011-05-06 Jeff Law <law@redhat.com>
1940 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1941 remove_ctrl_stmt_and_useless_edges.
1942 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1943 (fixup_template_block, thread_single_edge): Likewise.
1944 (mark_threaded_blocks): Use THREAD_TARGET.
1946 2011-05-06 Alan Modra <amodra@gmail.com>
1949 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1950 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1952 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1954 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1955 constraint modifier to "r".
1957 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1959 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1960 fall through for OPT_mcmodel_.
1962 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1964 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1966 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
1968 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1971 * config/arm/arm.opt (marm): Document it.
1972 (mthumb): Reject negative variant.
1974 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
1977 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1978 Fix typo in "ccvt" variable name.
1980 2011-05-06 Tristan Gingold <gingold@adacore.com>
1983 * config/vms/vms-ar.c (main): Remove cwd variable.
1985 2011-05-06 Jakub Jelinek <jakub@redhat.com>
1988 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1990 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1992 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1993 * gimplify.c (gimplify_switch_expr): Likewise.
1994 * omp-low.c (expand_omp_sections): Likewise.
1995 * tree-eh.c (lower_try_finally_switch): Likewise.
1996 (lower_eh_dispatch): Likewise.
1997 * tree.h (build_case_label): Declare.
1998 * tree.c (build_case_label): Define.
2000 2011-05-05 Jason Merrill <jason@redhat.com>
2003 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2004 (copy_statement_list): Don't recurse.
2005 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2008 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2010 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2011 through from -mfpu= handling.
2012 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2014 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2016 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2019 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2021 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2023 (hppa[12]*-*-hpux11*): Ditto.
2024 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2025 * config/ia64/hpux-unix2003.h: New.
2026 * config/pa/pa-hpux1131.opt: New.
2027 * config/pa/pa-hpux1131.h: New.
2028 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2029 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2030 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2032 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2035 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2036 instead of mode as 3rd argument to recursive call.
2037 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2038 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2040 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2041 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2042 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2043 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2045 2011-05-05 Julian Brown <julian@codesourcery.com>
2047 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2048 parenthesis in D-register case.
2050 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2052 * opt-functions.awk (var_type_struct): Handle Enum options.
2053 * optc-gen.awk: Don't check range of variables of character type.
2054 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2055 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2056 rs6000_sdata_name, rs6000_explicit_options): Remove.
2057 (rs6000_option_override_internal): Check for -malign-power here.
2058 Use global_options_set instead of rs6000_explicit_options.
2059 (rs6000_parse_fpu_option): Remove.
2060 (rs6000_handle_option): Access variables via opts and opts_set
2061 pointers. Use error_at and warning_at. Add fall-through
2062 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2063 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2064 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2065 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2066 here. Don't use rs6000_parse_fpu_option.
2067 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2068 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2069 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2071 (mspe): Use Var and Save.
2072 (mtraceback=): Use Enum and Var.
2073 (rs6000_traceback_type): New Enum and EnumValue entries.
2074 (mfloat-gprs=): Use Enum, Var and Save.
2075 (rs6000_float_gprs): New Enum and EnumValue entries.
2076 (mlong-double-): use Var and Save.
2077 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2078 (malign-): Use Enum and Var.
2079 (rs6000_alignment_flags): New Enum and EnumValue entries.
2081 (fpu_type_t): New Enum and EnumValue entries.
2082 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2083 global_options_set instead of rs6000_explicit_options.
2084 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2085 global_options_set instead of rs6000_explicit_options.
2086 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2087 global_options_set instead of rs6000_explicit_options.
2088 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2089 global_options_set instead of rs6000_explicit_options.
2090 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2091 global_options_set instead of rs6000_explicit_options.
2092 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2093 global_options_set instead of rs6000_explicit_options.
2094 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2096 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2097 global_options_set instead of rs6000_explicit_options.
2098 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2099 (rs6000_cmodel): New Enum and EnumValue entries.
2100 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2101 global_options_set instead of rs6000_explicit_options.
2102 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2103 (mtls-size=): Use Enum and Var.
2104 (rs6000_tls_size): New Enum and EnumValue entries.
2106 2011-05-05 Michael Matz <matz@suse.de>
2108 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2109 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2110 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2111 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2112 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2113 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2114 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2115 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2116 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2117 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2118 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2119 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2120 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2121 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2122 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2123 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2125 2011-05-05 Richard Guenther <rguenther@suse.de>
2127 * expmed.c (expand_variable_shift): Rename to ...
2128 (expand_shift_1): ... this. Take an expanded shift amount.
2129 For rotates recurse directly not building trees for the shift amount.
2130 (expand_variable_shift): Wrap around expand_shift_1.
2131 (expand_shift): Adjust.
2133 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2135 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2137 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2139 * tree.h (get_pending_sizes): Remove prototype.
2140 (put_pending_size): Likewise.
2141 (put_pending_sizes): Likewise.
2142 * stor-layout.c (pending_sizes): Delete.
2143 (get_pending_sizes): Likewise.
2144 (put_pending_size): Likewise.
2145 (put_pending_sizes): Likewise.
2146 (variable_size): Do not call put_pending_size and tidy up.
2147 * function.h (struct function): Remove dont_save_pending_sizes_p.
2148 * lto-streamer-in.c (input_function): Do not stream it.
2149 * lto-streamer-out.c (output_function): Likewise.
2150 * tree-inline.c (initialize_cfun): Do not copy it.
2151 * c-decl.c (store_parm_decls): Do not set it.
2152 * omp-low.c (create_task_copyfn): Likewise.
2153 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2155 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2157 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2159 (*movdf_internal): Ditto.
2160 (*movdf_internal_nointeger): Ditto.
2161 (*movsf_internal): Ditto.
2163 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2165 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2166 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2167 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2168 (c_variable_size): Remove.
2169 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2170 call put_pending_sizes.
2171 (get_parm_info): Add parameter expr. Use it to set
2172 arg_info->pending_sizes.
2173 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2175 * c-parser.c (c_parser_parms_declarator): Update call to
2176 c_parser_parms_list_declarator.
2177 (c_parser_parms_list_declarator): Take parameter expr. Update
2178 call to push_parm_decl. Update recursive call. Don't call
2179 get_pending_sizes. Update calls to get_parm_info.
2180 (c_parser_objc_method_definition): Update calls to
2181 c_parser_objc_method_decl and objc_start_method_definition.
2182 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2183 (c_parser_objc_method_decl): Add parameter expr. Update call to
2185 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2186 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2187 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2189 2011-05-05 Michael Hope <michael.hope@linaro.org>
2192 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2195 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2197 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2198 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2199 (spu_output_mi_thunk): New function.
2201 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2203 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2204 targetm.asm_out.print_operand.
2205 * config/sol2.c: Include target.h.
2207 2011-05-04 Jan Hubicka <jh@suse.cz>
2209 * ipa-inline.c (reset_edge_caches): New function.
2210 (update_caller_keys): Add check_inlinablity_for; do not
2211 reset edge caches; remove now unnecesary loop.
2212 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2213 (update_all_callee_keys): Likewise.
2214 (inline_small_functions): Sanity check cache; update code
2217 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2219 PR rtl-optimization/47612
2220 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2221 as the last insn of the sequence to be moved.
2223 2011-05-04 Tobias Burnus <burnus@net-b.de>
2226 * doc/invoke.texi (Ofast): Document that it
2227 enables Fortran's -fno-protect-parens.
2229 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2231 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2233 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2235 * stor-layout.c (variable_size): Do not issue errors.
2237 2011-05-04 Richard Guenther <rguenther@suse.de>
2239 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2240 for array-ref indices.
2241 (tree_coverage_counter_addr): Likewise.
2242 (build_fn_info_type): Use size_int for index types.
2243 (build_gcov_info): Likewise.
2245 2011-05-04 Richard Guenther <rguenther@suse.de>
2247 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2249 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2250 for constructor indices.
2251 (push_init_level): Likewise.
2253 2011-05-04 Richard Guenther <rguenther@suse.de>
2255 * explow.c (promote_mode): Move variable declarations before code.
2257 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2259 * tree.h (build_function_type_array): Declare.
2260 (build_varargs_function_type_array): Declare.
2261 (build_function_type_vec, build_varargs_function_type_vec): Define.
2262 * tree.c (build_function_type_array_1): New function.
2263 (build_function_type_array): New function.
2264 (build_varargs_function_type_array): New function.
2266 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2268 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2269 before setting STMT_VINFO_TYPE.
2271 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2273 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2274 instead of spu_pass_by_reference.
2276 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2278 * calls.c (emit_library_call_value_1): Invoke
2279 promote_function_mode hook on libcall arguments.
2280 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2281 argument being NULL.
2282 * targhooks.c (default_promote_function_mode): Lisewise.
2283 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2284 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2286 * doc/tm.texi: Document that TYPE argument might be NULL.
2288 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2290 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2292 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2295 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2297 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2299 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2300 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2302 * mips-tfile.c: ... here.
2303 Don't include coretypes.h, tm.h, filenames.h.
2304 (saber_stop): Remove definition and all calls.
2305 [__SABER__]: Remove.
2306 (__LINE__): Remove default.
2307 (Size_t, Ptrdiff_t): Remove definitions.
2308 Replace by size_t, ptrdiff_t.
2309 [!MIPS_DEBUGGING_INFO]: Remove.
2310 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2311 (progname): Add const.
2313 Replace all uses by static.
2314 (ALIGN_SYMTABLE_OFFSET): Remove default.
2315 * mips-tdump.c: Don't include coretypes.h, tm.h.
2316 Remove !MIPS_IS_STAB guard.
2317 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2318 $(TM_H), filenames.h dependencies.
2319 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2321 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2324 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2325 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2327 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2330 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2331 account and save/restore RETS.
2332 (PROFILE_BEFORE_PROLOGUE): Define.
2333 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2334 the push insn to use predecrement.
2336 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2339 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2341 2011-05-04 Nick Clifton <nickc@redhat.com>
2343 * config/mn10300/mn10300.c: Include cfgloop.h.
2345 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2346 Lcc or a FLcc insn into the instruction stream.
2347 (mn10300_block_contains_call): New function. Returns true if the
2348 given basic block contains a CALL insn.
2349 (mn10300_loop_contains_call_insn): New function. Returns true if
2350 the given loop contains a CALL insn.
2351 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2352 to use the SETLB and Lcc or FLcc insns.
2353 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2354 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2355 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2356 disable the SETLB optimization.
2357 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2358 __SETLB__ or __NO_SETLB__.
2359 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2360 (movsf_internal): Handle MDR register.
2361 (cmpsi): Make visible.
2362 (setlb): New pattern.
2364 (FLcc): New pattern.
2366 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2369 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2370 for reg<->xmm moves.
2371 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2372 (vec_concatv2di_rex64_sse): Ditto.
2373 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2374 (*vec_extractv2di_1_rex64): Ditto.
2377 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2379 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2381 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2383 2011-05-04 Richard Guenther <rguenther@suse.de>
2385 * tree.h (int_const_binop): Remove notrunc argument.
2386 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2387 create integer constants that are properly truncated.
2388 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2389 (const_binop): Remove zero notrunc argument to int_const_binop.
2390 (size_binop_loc): Likewise.
2391 (fold_div_compare): Likewise.
2392 (maybe_canonicalize_comparison_1): Likewise.
2393 (fold_comparison): Likewise.
2394 (fold_binary_loc): Likewise.
2395 (multiple_of_p): Likewise.
2396 * expr.c (store_constructor): Likewise.
2397 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2398 (maybe_fold_stmt_addition): Likewise.
2399 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2400 * stor-layout.c (layout_type): Likewise.
2401 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2402 * tree-sra.c (build_ref_for_offset): Likewise.
2403 (build_user_friendly_ref_for_offset): Likewise.
2404 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2405 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2406 * tree-ssa-loop-niter.c (inverse): Likewise.
2407 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2408 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2409 * tree-switch-conversion.c (check_range): Likewise.
2410 (build_constructors): Likewise.
2411 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2412 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2413 (extract_range_from_assert): Likewise.
2414 (vrp_int_const_binop): Likewise.
2415 (extract_range_from_binary_expr): Likewise.
2416 (extract_range_from_unary_expr): Likewise.
2417 (check_array_ref): Likewise.
2418 (find_case_label_range): Likewise.
2419 (simplify_div_or_mod_using_ranges): Likewise.
2420 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2421 comparing case labels for merging.
2423 2011-05-03 Mark Wielaard <mjw@redhat.com>
2425 * dwarf2out.c (debug_str_hash_forced): Removed.
2426 (gen_label_for_indirect_string): Removed.
2427 (get_debug_string_label): Removed.
2428 (AT_string_form): Generate label directly.
2429 (output_indirect_string): Test indirect_string_node for
2430 DW_FORM_strp instead of checking label and refcount.
2431 (prune_indirect_string): Removed.
2432 (prune_unused_types): Don't check debug_str_hash_forced or
2433 call prune_indirect_string.
2435 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2438 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2440 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2444 * combine.c (try_combine): Skip debug insns at m_split tests.
2446 2011-04-26 Mark Wielaard <mjw@redhat.com>
2449 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2450 when info_section_emitted.
2452 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2454 * config/mips/mips-opts.h: New.
2455 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2457 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2458 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2459 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2461 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2463 (mips_abi, mips_code_readable): Don't declare.
2464 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2465 (mabi=): Use Enum and Var.
2466 (mips_abi): New Enum and EnumValue entries.
2467 (mcode-readable=): Use Enum and Var.
2468 (mips_code_readable_setting): New Enum and EnumValue entries.
2469 (mr10k-cache-barrier=): Use Enum and Var.
2470 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2472 2011-05-03 Jan Hubicka <jh@suse.cz>
2474 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2475 replace hash by pointer map.
2476 (cgraph_node_set_element_def, cgraph_node_set_element,
2477 const_cgraph_node_set_element, varpool_node_set_element_def,
2478 varpool_node_set_element, const_varpool_node_set_element): Remove.
2479 (free_cgraph_node_set, free_varpool_node_set): New function.
2480 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2481 * tree-emutls.c: Free varpool node set.
2482 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2483 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2484 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2485 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2486 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2487 Move here from ipa.c; implement using pointer_map
2488 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2489 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2490 debug_cgraph_node_set, varpool_node_set_new,
2491 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2492 dump_varpool_node_set, debug_varpool_node_set):
2493 Move to ipa-uitls.c.
2494 * passes.c (ipa_write_summaries): Update.
2496 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2498 From Mike Frysinger:
2499 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2500 bf542/bf544/bf547/bf548/bf549.
2502 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2504 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2506 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2509 * config/bfin/bfin.md (MOVCC): New mode_macro.
2510 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2511 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2512 comments from generated assembly.
2514 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2517 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2518 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2519 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2520 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2521 * config/bfin/lib1funcs.asm (___muldi3): New function.
2523 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2525 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2526 build_function_type_list instead of build_function_type.
2527 Rearrange initialization of `args' to do so.
2529 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2531 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2532 instead of build_function_type.
2534 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2536 * config/rs6000/rs6000.c (spe_init_builtins): Call
2537 build_function_type_list instead of build_function_type.
2538 (paired_init_builtins, altivec_init_builtins): Likewise.
2539 (builtin_function_type): Likewise.
2541 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2543 * config/sh/sh.c (sh_media_init_builtins): Call
2544 build_function_type_list instead of build_function_type.
2546 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2548 * config/sparc/sparc.c (sparc_file_end): Call
2549 build_function_type_list instead of build_function_type.
2551 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2553 * config/alpha/alpha.c (alpha_init_builtins): Call
2554 build_function_type_list instead of build_function_type.
2556 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2558 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2559 build_function_type_list instead of build_function_type.
2561 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2563 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2564 build_function_type_list instead of build_function_type.
2565 Delete `endlink' variable.
2567 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2569 * config/avr/avr.c (avr_init_builtins): Call
2570 build_function_type_list instead of build_function_type.
2572 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2574 * config/picochip/picochip.c (picochip_init_builtins): Call
2575 build_function_type_list instead of build_function_type.
2576 Delete `endlink' variable.
2578 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2580 * config/bfin/bfin.c (bfin_init_builtins): Call
2581 build_function_type_list instead of build_function_type.
2583 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2586 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2587 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2589 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2592 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2593 libbffastfp overrides libgcc when -mfast-fp.
2595 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2597 Originally from Bernd Schmidt
2598 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2599 * config/bfin/bfin.c (override_options): Test it and error if
2602 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2604 Originally From Bernd Schmidt
2605 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2608 2011-05-03 Jeff Law <law@redhat.com>
2610 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2611 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2612 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2613 than accessing AUX field directly. Free the AUX field before
2615 (thread_block, thread_through_loop_header): Likewise.
2616 (thread_single_edge, mark_threaded_blocks): Likewise.
2617 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2618 (register_jump_thread): Do not attempt to thread to a NULL edge.
2620 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2622 * function.c (init_function_start): Call decide_function_section.
2623 * varasm.c (decide_function_section): New function.
2624 (assemble_start_function): When not using
2625 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2626 or first_function_block_is_cold.
2627 * rtl.h (decide_function_section): Declare.
2629 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2630 Jakub Jelinek <jakub@redhat.com>
2633 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2634 only succeed if req_mode is the same as set_mode.
2636 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2638 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2639 * genemit.c (gen_exp): Handle RETURN.
2640 * emit-rtl.c (verify_rtx_sharing): Likewise.
2641 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2642 * rtl.c (copy_rtx): RETURN is shared.
2643 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2645 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2646 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2647 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2648 * config/cris/cris.c (cris_expand_return): Likewise.
2649 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2650 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2651 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2652 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2653 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2655 * config/v850/v850.c (expand_epilogue): Likewise.
2656 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2657 * config/arm/arm.md (epilogue): Likewise.
2658 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2659 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2660 variable to ret_reg.
2662 2011-05-03 Richard Guenther <rguenther@suse.de>
2665 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2666 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2667 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2669 2011-05-03 Richard Guenther <rguenther@suse.de>
2671 * c-decl.c (grokdeclarator): Instead of looking at
2672 TREE_OVERFLOW check if the constant fits in the index type.
2674 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2676 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2677 (vec_store_lanes<mode><mode>): Likewise.
2679 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2681 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2682 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2683 convert_optab_index values.
2684 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2685 * genopinit.c (optabs): Initialize the new optabs.
2686 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2687 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2688 (expand_STORE_LANES): New functions.
2689 * tree.h (build_array_type_nelts): Declare.
2690 * tree.c (build_array_type_nelts): New function.
2691 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2692 (vect_model_load_cost): Likewise.
2693 (vect_store_lanes_supported, vect_load_lanes_supported)
2694 (vect_record_strided_load_vectors): Declare.
2695 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2696 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2697 (vect_transform_strided_load): Split out statement recording into...
2698 (vect_record_strided_load_vectors): ...this new function.
2699 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2700 (write_vector_array, create_array_ref): New functions.
2701 (vect_model_store_cost): Add store_lanes_p argument.
2702 (vect_model_load_cost): Add load_lanes_p argument.
2703 (vectorizable_store): Try to use store-lanes functions for
2705 (vectorizable_load): Likewise load-lanes and loads.
2706 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2707 to vect_model_store_cost.
2708 (vect_build_slp_tree): Likewise vect_model_load_cost.
2710 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2712 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2713 * hooks.c (hook_bool_mode_uhwi_false): New function.
2714 * target.def (array_mode_supported_p): New hook.
2715 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2716 * doc/tm.texi: Regenerate.
2717 * stor-layout.c (mode_for_array): New function.
2718 (layout_type): Use it.
2719 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2720 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2722 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2725 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2726 for -fstack-check if the size to allocate is negative.
2728 2011-05-02 Lawrence Crowl <crowl@google.com>
2730 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2731 (timevar_cond_start): New for starting a timer only when it is not
2733 (timevar_cond_stop): New for stopping a timer when it was not already
2736 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2737 (timevar_cond_start): New as above.
2738 (timevar_cond_stop): New as above.
2740 * timevar.def: Add start/stop timers for compiler phases,
2741 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2742 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2743 and TV_PHASE_FINALIZE.
2744 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2745 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2746 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2747 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2748 Make unused TV_OVERLOAD into a start/stop timer.
2750 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2751 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2752 to indicate that they are start/stop timers.
2754 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2755 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2756 Move initialization to do_compile.
2757 (do_compile): Add initialization from above.
2758 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2760 * c-decl.c (c_write_global_declarations): Add start/stop of
2761 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2763 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2764 or TV_PARSE_INLINE, as appropriate.
2765 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2766 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2768 2011-05-02 Jason Merrill <jason@redhat.com>
2771 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2773 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2776 * c-decl.c (finish_decl): Only create a composite if the types are
2779 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2781 * config/fr30/fr30-protos.h (Mmode): Don't define.
2782 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2783 definition where used.
2784 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2785 define. Expand definitions where used.
2786 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2787 Expand definitions where used.
2788 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2789 rx_function_arg, rx_function_arg_advance,
2790 rx_function_arg_boundary): Expand definitions of those macros.
2791 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2792 definition where used.
2794 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2796 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2798 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2799 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2800 with *movv2sf_internal_rex64_avx.
2801 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2802 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2803 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2804 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2805 "vex" in "prefix" attribute calculation.
2806 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2808 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2811 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2812 inputs match the output.
2814 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2817 * config/m68k/m68k.c (m68k_expand_prologue): Set
2818 current_function_static_stack_size.
2820 2011-05-02 Jan Hubicka <jh@suse.cz>
2822 * lto-streamer.c (lto_streamer_cache_insert_1,
2823 lto_streamer_cache_lookup, lto_streamer_cache_create,
2824 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2825 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2827 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2829 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2830 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2831 config/m68k/t-opts: New files.
2832 * config/m68k/m68k-tables.opt: New file (generated).
2833 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2834 extra_options and m68k/t-opts to tmake_file.
2835 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2836 (all_isas): Initialize using m68k-isas.def.
2837 (all_microarchs): Initialize using m68k-microarchs.def.
2838 (m68k_find_selection): Remove.
2839 (m68k_handle_option): Don't assert that global structures are in
2840 use. Use error_at. Access variables via opts pointer. Don't
2841 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2842 directly for -m68020-40 and -m68020-60.
2843 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2844 m68k_tune_entry here.
2845 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2847 (m68k_library_id_string): Remove declaration.
2848 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2849 (m68k_library_id_string): New Variable.
2850 (march=, mcpu=, mtune=): Use Enum and Var.
2852 2011-05-02 Richard Guenther <rguenther@suse.de>
2854 * varasm.c (output_constructor_regular_field): Compute zero-based
2855 index with double-ints. Make sure to ICE instead of producing
2857 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2858 in asserts. Properly use a signed type.
2860 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2862 * config/i386/sse.md (V): New mode iterator.
2863 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2865 (V_256): Rename from AVX256MODE.
2866 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2867 condition to all users.
2869 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2870 condition to all users.
2871 (VF_128): Make V4SF mode unconditional.
2872 (VF_256): Rename from AVX256MODEF2P.
2873 (VI4F_128): Rename from SSEMODE4S.
2874 (VI8F_128): Rename from SSEMODE2D.
2875 (VI4F_256): Rename from AVX256MODE8P.
2876 (VI8F_256): Rename from AVX256MODE4P.
2877 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2878 (ssescalarmodesuffix): Remove SF and DF modes.
2879 (SSEMODE124): Remove.
2880 (SSEMODE1248): Ditto.
2881 (SSEMODEF2P): Ditto.
2882 (AVXMODEF2P): Ditto.
2883 (AVXMODEFDP): Ditto.
2884 (AVXMODEFSP): Ditto.
2885 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2887 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2889 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2890 xop_pcmov_<mode>256. Use V mode iterator.
2892 Adjust RTX patterns globally for renamed mode attributes.
2894 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2896 * haifa-sched.c (sched_emit_insn): Emit insn before first
2897 non-scheduled insn. Inform back-end about new insn. Add
2898 new insn to scheduled_insns list.
2900 2011-05-02 Richard Guenther <rguenther@suse.de>
2902 PR tree-optimization/48822
2903 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2904 (process_scc): Indicate which iteration we start.
2906 2011-05-02 Jan Hubicka <jh@suse.cz>
2908 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2909 (lto_section_overrun): New.
2910 * lto-section-out.c (append_block): Rename to ...
2911 (lto_append_block): ... this one; export.
2912 (lto_output_1_stream): Move lto lto-streamer.h
2913 (lto_output_data_stream): Update.
2914 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2915 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2918 2011-05-02 Richard Guenther <rguenther@suse.de>
2920 * tree.c (tree_code_counts): New global array.
2921 (record_node_allocation_statistics): Count individual tree codes.
2922 (dump_tree_statistics): Dump individual code stats.
2924 2011-05-01 Jan Hubicka <jh@suse.cz>
2926 * ipa-inline.c (caller_growth_limits): Fix thinko when
2927 looking for largest stack frame.
2928 * ipa-inline.h (dump_inline_summary): Declare.
2929 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2931 (dump_inline_summary): Export.
2932 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2934 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2936 * reginfo.c (memory_move_cost): Change rclass argument type form
2937 'enum reg_class' to reg_class_t.
2938 * reload.h (memory_move_cost): Update prototype.
2939 * postreload.c reload_cse_simplify_set): Change type dclass var to
2941 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2943 (ira_allocate_and_set_costs): Change aclass argument type form
2944 'enum reg_class' to reg_class_t.
2945 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
2946 Change aclass argument type to reg_class_t.
2947 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2949 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2950 memory_move_cost call.
2952 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2953 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2954 Change type tmp var to reg_class_t.
2956 2011-04-30 Jan Hubicka <jh@suse.cz>
2958 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2959 inlining into function with flatten attribute.
2960 (want_inline_small_function_p): Be more realistic about inlining
2961 cold calls where callee size grows.
2963 2011-04-30 Jan Hubicka <jh@suse.cz>
2965 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2968 2011-04-30 Anatoly Sokolov <aesok@post.ru>
2970 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2971 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2972 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2973 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2974 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2975 (print_operand): Rename to...
2976 (sparc_print_operand): ...this. Make static. Adjust
2977 sparc_print_operand function call.
2978 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2981 2011-04-30 Jan Hubicka <jh@suse.cz>
2984 * ipa-inline.c (early_inliner): Disable when doing late
2985 addition of function.
2987 2011-04-30 Jakub Jelinek <jakub@redhat.com>
2989 * dwarf2out.c (get_address_mode): New inline.
2990 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2991 if not dwarf_strict emit
2992 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2993 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2994 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2995 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2996 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2997 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2998 mem_loc_descriptor callers.
2999 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3000 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3001 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3002 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3003 (base_types): New variable.
3004 (get_base_type_offset, calc_base_type_die_sizes,
3005 base_type_for_mode, mark_base_types, base_type_cmp,
3006 move_marked_base_types): New functions.
3007 (calc_die_sizes): Assert that die_offset is 0 or equal to
3009 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3010 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3011 callers. If not dwarf_strict, call mem_loc_descriptor even for
3012 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3013 (gen_subprogram_die): Don't give up on call site parameters
3014 with non-integral or large integral modes. Adjust
3015 mem_loc_descriptor callers.
3016 (prune_unused_types): Call prune_unused_types_mark on base_types
3018 (resolve_addr): Call mark_base_types.
3019 (dwarf2out_finish): Call move_marked_base_types.
3021 PR tree-optimization/48809
3022 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3024 (gen_inbound_check): Don't compute index_expr - range_min in utype
3025 again, instead reuse SSA_NAME initialized in build_arrays.
3026 Remove two useless gsi_for_stmt calls.
3028 2011-04-29 Jeff Law <law@redhat.com>
3030 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3032 2011-04-29 Martin Jambor <mjambor@suse.cz>
3034 * cgraph.h (cgraph_postorder): Remove declaration.
3035 * ipa-utils.h (ipa_free_postorder_info): Declare.
3036 (ipa_reverse_postorder): Likewise.
3037 * cgraphunit.c: Include ipa-utils.h.
3038 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3039 * ipa-inline.c: Include ipa-utils.h.
3040 (ipa_inline): Update call to ipa_reverse_postorder.
3041 * ipa-pure-const.c (propagate_pure_const): Update call to
3042 ipa_reduced_postorder and ipa_print_order. Call
3043 ipa_free_postorder_info to clean up.
3044 (propagate_nothrow): Likewise.
3045 * ipa-reference.c (propagate): Removed a useless call to
3046 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3047 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3048 * ipa.c: Include ipa-utils.h.
3049 (ipa_profile): Update call to ipa_reverse_postorder.
3050 (cgraph_postorder): Moved to...
3051 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3052 (ipa_utils_print_order): Renamed to ipa_print_order.
3053 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3055 (ipa_free_postorder_info): New function.
3056 * passes.c: Include ipa-utils.h.
3057 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3058 (ipa_write_summaries): Likewise.
3059 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3060 (cgraphunit.o): Likewise.
3062 (ipa-inline.o): Likewise.
3064 2011-04-29 Jan Hubicka <jh@suse.cz>
3066 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3067 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3068 * ipa-inline.h (clause_t): Turn into unsigned int.
3069 * ipa-inline-analysis.c (add_clause): Do more simplification.
3070 (and_predicates): Shortcut more cases.
3071 (predicates_equal_p): Move forward; check that clauses are properly
3073 (or_predicates): Shortcut more cases.
3074 (edge_execution_predicate): Rewrite as...
3075 (set_cond_stmt_execution_predicate): ... this function; handle
3076 __builtin_constant_p.
3077 (set_switch_stmt_execution_predicate): New .
3078 (compute_bb_predicates): New.
3079 (will_be_nonconstant_predicate): Update TODO.
3080 (estimate_function_body_sizes): Use compute_bb_predicates
3081 and free them later, always try to estimate if stmt is constant.
3082 (estimate_time_after_inlining, estimate_size_after_inlining):
3083 Gracefully handle optimized out edges.
3084 (read_predicate): Fix off by one error.
3086 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3088 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3090 2011-04-27 Xinliang David Li <davidxl@google.com>
3092 * tree-profile.c (init_ic_make_global_vars): Set
3093 tls attribute on ic vars.
3094 * coverage.c (coverage_end_function): Initialize
3095 function_list with zero.
3097 2011-04-29 Richard Guenther <rguenther@suse.de>
3099 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3100 for the type of the result.
3101 (fold_builtin_isascii): Likewise.
3102 (fold_builtin_toascii): Use integer_type_node where appropriate.
3103 (fold_builtin_logb): Likewise.
3104 (fold_builtin_frexp): Likewise.
3105 (fold_builtin_strstr): Likewise.
3106 (fold_builtin_strpbrk): Likewise.
3107 (fold_builtin_fputs): Likewise.
3108 (fold_builtin_sprintf): Likewise.
3109 (fold_builtin_snprintf): Likewise.
3110 (fold_builtin_printf): Likewise.
3111 (do_mpfr_remquo): Use a proper type for the assigned constant.
3112 (do_mpfr_lgamma_r): Likewise.
3113 * dwarf2out.c (resolve_one_addr): Use size_int.
3114 * except.c (init_eh): Likewise.
3115 (assign_filter_values): Use integer_type_node for filter values.
3116 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3118 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3119 for EH region numbers.
3120 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3121 for the shift amount.
3123 2011-04-29 Richard Guenther <rguenther@suse.de>
3125 * expr.h (expand_shift): Rename to ...
3126 (expand_variable_shift): ... this.
3127 (expand_shift): Take a constant shift amount.
3128 * expmed.c (expand_shift): Rename to ...
3129 (expand_variable_shift): ... this.
3130 (expand_shift): New wrapper around expand_variable_shift.
3131 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3132 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3133 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3134 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3135 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3136 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3137 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3138 emit_store_flag_1, emit_store_flag): Likewise.
3139 * builtins.c (expand_builtin_signbit): Likewise.
3140 * calls.c (load_register_parameters): Likewise.
3141 * function.c (assign_parm_setup_block): Likewise.
3142 * lower-subreg.c (resolve_shift_zext): Likewise.
3143 * optabs.c (widen_bswap, expand_abs_nojump,
3144 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3145 * spu/spu.c (spu_expand_extv): Likewise.
3146 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3148 2011-04-29 Richard Guenther <rguenther@suse.de>
3150 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3151 for the remapped region number.
3152 * predict.c (build_predict_expr): Use integer_type_node for the
3154 * fold-const.c (fold_binary_loc): Use integer_type_node for
3155 the shift amount. Use a proper type for the PLUS_EXPR operand.
3157 2011-04-29 Michael Matz <matz@suse.de>
3159 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3160 other trees that just builtins.
3161 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3163 2011-04-29 Richard Guenther <rguenther@suse.de>
3165 * tree-nested.c (get_trampoline_type): Use size_int.
3166 (get_nl_goto_field): Likewise.
3167 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3169 (lower_eh_constructs_2): Likewise.
3170 (lower_resx): Likewise.
3171 (lower_eh_dispatch): Likewise.
3172 * tree-mudflap.c (mf_build_string): Use size_int.
3173 (mudflap_register_call): Use integer_type_node for the flag.
3174 (mudflap_enqueue_constant): Use size_int.
3175 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3176 instead of rebuilding it.
3178 2011-04-29 Richard Guenther <rguenther@suse.de>
3180 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3181 Handle OBJ_TYPE_REF.
3182 (find_func_aliases_for_call): Use it more consistently.
3184 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3186 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3187 (rank_for_schedule): Use it.
3188 (schedule_block): Set it.
3190 2011-04-28 David Li <davidxl@google.com>
3192 * tree.c (crc32_string): Use crc32_byte.
3193 (crc32_byte): New function.
3194 * tree.h (crc32_byte): New function.
3195 * gcov.c (read_graph_file): Handle new cfg_cksum.
3196 (read_count_file): Ditto.
3197 * profile.c (instrument_values): Ditto.
3198 (get_exec_counts): Ditto.
3199 (read_profile_edge_counts): Ditto.
3200 (compute_branch_probabilities): Ditto.
3201 (compute_value_histograms): Ditto.
3202 (branch_prob): Ditto.
3203 (end_branch_prob): Ditto.
3204 * coverage.c (read_counts_file): Ditto.
3205 (get_coverage_counts): Ditto.
3206 (tree_coverage_counter_addr): Ditto.
3207 (coverage_checksum_string): Ditto.
3208 (coverage_begin_output): Ditto.
3209 (coverage_end_function): Ditto.
3210 (build_fn_info_type): Ditto.
3211 (build_fn_info_value): Ditto.
3212 * libgcov.c (gcov_exit): Ditto.
3213 * gcov-dump.c (tag_function): Ditto.
3214 (compute_checksum): Remove.
3216 2011-04-29 Alan Modra <amodra@gmail.com>
3218 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3219 unspec plus offset. Tidy macho code.
3221 2011-04-29 Martin Jambor <mjambor@suse.cz>
3223 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3224 node instead of a decl. Update all callers.
3225 * cgraph.h: Update declaration.
3227 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3229 PR tree-optimization/48765
3230 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3231 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3232 to indicate if loop aware SLP is being used. Scan the statements
3233 and update the vectorization factor according to the type of
3234 vectorization before statement analysis.
3235 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3236 pass it to vect_analyze_loop_operations.
3237 (vectorizable_reduction): Set number of copies to 1 in case of pure
3239 * tree-vect-stmts.c (vectorizable_conversion,
3240 vectorizable_assignment, vectorizable_shift,
3241 vectorizable_operation, vectorizable_type_demotion,
3242 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3244 (vectorizable_condition): Move the check that it is not SLP
3245 vectorization before the number of copies check.
3246 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3247 to vectorize the loop using SLP.
3249 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3252 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3255 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3257 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3258 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3259 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3260 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3261 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3263 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3264 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3265 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3266 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3267 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3268 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3270 * config/i386/linux.h (REG_NAME): Don't define.
3271 * config/i386/linux64.h (REG_NAME): Don't define.
3272 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3273 Undefine before defining.
3275 2011-04-28 Jan Hubicka <jh@suse.cz>
3277 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3278 nonconstant_names array.
3279 (estimate_function_body_sizes): Build nonconstant_names array; handle
3280 BUILT_IN_CONSTANT_P.
3282 2011-04-28 Richard Guenther <rguenther@suse.de>
3286 2011-04-28 Richard Guenther <rguenther@suse.de>
3288 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3289 as late as possible.
3291 2011-04-28 Richard Guenther <rguenther@suse.de>
3293 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3294 (debug_constraint): Do it here.
3295 (dump_constraints): And here.
3296 (rewrite_constraints): And here.
3297 (dump_constraint_edge): Remove.
3298 (dump_constraint_graph): Rewrite to produce DOT output.
3299 (solve_constraints): Build succ graph as late as possible.
3300 Dump constraint graphs before and after solving.
3302 2011-04-28 Richard Guenther <rguenther@suse.de>
3304 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3305 New function split out from ...
3306 (find_func_aliases): ... here. Call it.
3307 (find_func_aliases_for_call): Likewise.
3309 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3311 * internal-fn.h (internal_fn_name_array): Declare.
3312 (internal_fn_flags_array): Likewise.
3314 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3316 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3317 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3319 (ssemodefsuffix): Remove.
3320 (ssevecmodesuffix): New mode attribute.
3321 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3322 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3323 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3324 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3325 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3326 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3327 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3328 ssemodesuffix mode attribute.
3329 (float splitters): Use ssevecmodesuffix mode attribute.
3330 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3331 (sseinsmode): Rename from avxvecmode.
3332 (avxsizesuffix): Rename from avxmodesuffix.
3333 (sseintvecmode): Rename from avxpermvecmode.
3334 (ssedoublevecmode): Rename from ssedoublesizemode.
3335 (ssehalfvecmode): Rename from avxhalfvecmode.
3336 (ssescalarmode): Rename from avxscalarmode.
3337 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3338 templates for ssemodesuffix mode attribute.
3339 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3342 Adjust RTX patterns globally for renamed mode attributes.
3344 2011-04-27 Jan Hubcika <jh@suse.cz>
3346 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3347 * ipa-inline-analysis.c: Include alloc-pool.h.
3348 (edge_predicate_pool): New.
3349 (trye_predicate_p): New function
3350 (false_predicate_p): New function.
3351 (add_clause): Sanity check that false clauses are "optimized";
3352 never add clauses to predicate that is already known to be false.
3353 (and_predicate): Use flase_predicate_p.
3354 (evaulate_predicate): Rename to ...
3355 (evaluate_predicate): ... this one; update all callers; assert
3356 that false is not listed among possible truths.
3357 (dump_predicate): Use true_predicate_p.
3358 (account_size_time): Use false_predicate_p.
3359 (evaulate_conditions_for_edge): Rename to ...
3360 (evaluate_conditions_for_edge) ... this one.
3361 (edge_set_predicate): New function.
3362 (inline_edge_duplication_hook): Duplicate edge predicates.
3363 (inline_edge_removal_hook): Free edge predicates.
3364 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3365 (dump_inline_summary): Update.
3366 (estimate_function_body_sizes): Set edge predicates.
3367 (estimate_calls_size_and_time): Handle predicates.
3368 (estimate_callee_size_and_time): Update.
3369 (remap_predicate): Add toplev_predicate; update comment.
3370 (remap_edge_predicates): New function.
3371 (inline_merge_summary): Compute toplev predicate; update.
3372 (read_predicate): New function.
3373 (read_inline_edge_summary): Use it.
3374 (inline_read_section): Likewise.
3375 (write_predicate): New function.
3376 (write_inline_edge_summary): Use it.
3377 (inline_write_summary): Likewise.
3378 (inline_free_summary): Free alloc pool and edge summary vec.
3380 2011-04-27 Richard Guenther <rguenther@suse.de>
3382 * tree-ssa-structalias.c (changed_count): Remove.
3383 (changed): Use a bitmap.
3384 (unify_nodes): Adjust.
3385 (do_sd_constraint): Likewise.
3386 (do_ds_constraint): Likewise.
3387 (do_complex_constraint): Likewise.
3388 (solve_graph): Likewise.
3390 2011-04-27 Jan Hubicka <jh@suse.cz>
3392 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3394 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3396 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3397 (avx_vperm2f128_*_operand): Ditto.
3398 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3399 Use avx_vpermilp_parallel in insn condition.
3400 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3401 Use avx_vperm2f128_parallel in insn condition.
3403 2011-04-27 Richard Guenther <rguenther@suse.de>
3405 * Makefile.in (tree-ssa-structalias.o): Remove
3406 gt-tree-ssa-structalias.h dependency.
3407 (GTFILES): Remove tree-ssa-structalias.c.
3408 * tree.c (allocate_decl_uid): New function.
3409 (make_node_stat): Use it.
3410 (copy_node_stat): Likewise.
3411 * tree.h (allocate_decl_uid): Declare.
3412 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3413 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3414 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3415 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3416 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3417 (struct heapvar_map): Likewise.
3418 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3419 heapvar_insert): Likewise.
3420 (make_heapvar_for): Rename to ...
3421 (make_heapvar): ... this. Simplify.
3422 (fake_var_decl_obstack): New global var.
3423 (build_fake_var_decl): New function.
3424 (make_constraint_from_heapvar): Adjust.
3425 (handle_lhs_call): Likewise.
3426 (create_function_info_for): Likewise.
3427 (intra_create_variable_infos): Likewise.
3428 (init_alias_vars): Allocate fake_var_decl_obstack.
3429 (init_alias_heapvars, delete_alias_heapvars): Remove.
3430 (compute_points_to_sets): Do not call init_alias_heapvars.
3431 (ipa_pta_execute): Likewise.
3432 (delete_points_to_sets): Free fake_var_decl_obstack.
3434 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3436 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3437 (si_from_UTItype, si_to_UTItype): New functions.
3438 (__udivmodti4): Use them to implement type-punning.
3439 * config/spu/multi3.c (union qword_TItype): New data type.
3440 (si_from_TItype, si_to_TItype): New functions.
3441 (__multi3): Use them to implement type-punning.
3443 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3445 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3447 2011-04-27 Jan Hubicka <jh@suse.cz>
3449 * ipa-prop.c (function_insertion_hook_holder): New holder.
3450 (ipa_add_new_function): New function.
3451 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3452 Register/deregister holder.
3454 2011-04-27 Richard Guenther <rguenther@suse.de>
3456 PR tree-optimization/48772
3457 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3459 2011-04-27 Richard Guenther <rguenther@suse.de>
3461 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3462 TARGET_MEM_REF handling.
3464 2011-04-27 Nick Clifton <nickc@redhat.com>
3466 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3467 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3468 (REG_CLASS_NAMES): Likewise.
3469 (REG_CLASS_CONTENTS): Likewise.
3470 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3471 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3472 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3473 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3474 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3475 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3476 duplicate register classes.
3477 (frv_class_likely_spilled_p): Likewise.
3478 (frv_register_move_cost): Likewise.
3480 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3481 end of the regno_reg_class array.
3483 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3486 * c-typeck.c (build_binary_op): Don't wrap arguments if
3487 int_operands is true.
3489 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3492 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3493 targetm.calls.must_pass_in_stack for void type.
3495 2011-04-26 Jan Hubicka <jh@suse.cz>
3497 * cgraphbuild.c (build_cgraph_edges): Update call
3498 of cgraph_create_edge and cgraph_create_indirect_edge.
3499 * cgraph.c (cgraph_create_edge_including_clones,
3500 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3501 cgraph_update_edges_for_call_stmt_node): Do not take nest
3502 argument; do not initialize call_stmt_size/time.
3503 (dump_cgraph_node): Do not dump nest.
3504 (cgraph_clone_edge): Do not take loop_nest argument;
3505 do not propagate it; do not clone call_stmt_size/time.
3506 (cgraph_clone_node): Likewise.
3507 (cgraph_create_virtual_clone): Update.
3508 * cgraph.h (struct cgraph_edge): Remove
3509 call_stmt_size/call_stmt_time/loop_nest.
3510 (cgraph_create_edge, cgraph_create_indirect_edge,
3511 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3513 * tree-emutls.c (gen_emutls_addr): Update.
3514 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3515 loop_nest; handle indirect calls, too.
3516 (clone_inlined_nodes): Do not care about updating inline summaries.
3517 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3518 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3519 stream call_stmt_size/call_stmt_time/loop_nest.
3520 * ipa-inline.c (edge_badness): Update.
3521 (ipa_inline): dump summaries after inlining.
3522 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3524 (inline_edge_summary): New function.
3525 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3526 (inline_edge_removal_hook): Handle edge summaries.
3527 (inline_edge_duplication_hook): New hook.
3528 (inline_summary_alloc): Alloc hooks.
3529 (initialize_growth_caches): Do not register removal hooks.
3530 (free_growth_caches); Do not free removal hook.
3531 (dump_inline_edge_summary): New function.
3532 (dump_inline_summary): Use it.
3533 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3534 (inline_update_callee_summaries): New function.
3535 (inline_merge_summary): Use it.
3536 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3537 (read_inline_edge_summary): New function.
3538 (inline_read_section): Use it.
3539 (write_inline_edge_summary): New function.
3540 (inline_write_summary): Use it.
3541 (inline_free_summary): Free edge new holders.
3542 * tree-inline.c (copy_bb): Update.
3544 2011-04-26 Jason Merrill <jason@redhat.com>
3546 * tree-eh.c (lower_try_finally_switch): Create the label along with
3547 the CASE_LABEL_EXPR.
3549 2011-04-26 David S. Miller <davem@davemloft.net>
3550 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3552 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3553 * configure: Regenerate.
3555 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3558 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3560 (VEC_reduc): New code iterator and splitters for vector reduction.
3561 (VEC_reduc_name): Ditto.
3562 (VEC_reduc_rtx): Ditto.
3563 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3564 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3566 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3567 support for extracting SF on VSX.
3569 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3570 generating xscvspdp.
3571 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3572 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3573 double add, minimum, maximum vector reduction.
3574 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3575 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3576 optimize double vector reduction.
3577 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3579 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3581 * config/fr30/fr30.h (inhibit_libc): Don't define.
3582 * config/m32r/m32r-protos.h: Correct comment.
3583 * config/v850/v850.h (GHS_default_section_names,
3584 GHS_current_section_names): Use tree, not union tree_node *.
3586 2011-04-26 Xinliang David Li <davidxl@google.com>
3588 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3589 * c-family/c-opts.c (c_common_handle_option): Set
3590 warn_maybe_uninitialized.
3591 * opts.c (common_handle_option): Ditto.
3592 * common.opt: New option.
3593 * tree-ssa.c (warn_uninit): Add one more parameter.
3594 (warn_uninitialized_var): Pass warning code.
3595 * tree-flow.h: Interface change.
3598 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3600 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3601 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3602 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3604 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3606 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3607 * config/mips/mips.opt (mmips-tfile): Remove.
3609 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3610 mips-tdump reference to ...
3611 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3612 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3613 reference by Tru64 UNIX.
3615 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3618 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3619 is error_mark_node, set value to NULL.
3621 PR tree-optimization/48734
3622 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3623 if return value from maybe_fold_*_comparsions isn't something
3624 the code is prepared to handle.
3626 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3628 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3630 (ext_QIreg_nomode_operands): Remove.
3631 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3635 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3637 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3639 2011-04-26 Richard Guenther <rguenther@suse.de>
3641 * c-typeck.c (build_unary_op): Do not expand array-refs via
3642 pointer arithmetic. Only adjust qualifiers for function types.
3644 2011-04-26 Richard Guenther <rguenther@suse.de>
3647 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3648 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3649 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3650 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3652 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3654 * doc/extend.texi: Document __underlying_type.
3656 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3658 * config/rs6000/titan.md (automata_option "progress"): Remove.
3660 2011-04-25 Jeff Law <law@redhat.com>
3662 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3664 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3666 * system.h (ENUM_BITFIELD): Remove.
3668 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3669 Eric Botcazou <ebotcazou@adacore.com>
3671 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3672 for STORE_FLAG_VALUE==-1 case.
3674 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3677 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3678 LEGITIMATE_PIC_OPERAND_P.
3680 2011-04-24 Jan Hubicka <jh@suse.cz>
3682 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3684 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3685 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3686 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3687 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3688 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3689 Sanity check predicate length.
3690 (remap_predicate): Likewise; sanity check jump functions.
3691 (inline_read_section, inline_write_summary): Sanity check
3694 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3697 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3698 __is_literal_type, and __is_trivial; update throughout about
3699 possibly cv-qualified void types.
3701 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3703 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3704 testsuite and make it version agnostic.
3706 2011-04-22 Jan Hubicka <jh@suse.cz>
3708 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3710 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3713 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3714 to VOID_TYPE even around MODIFY_EXPR.
3716 2011-04-22 Mike Stump <mikestump@comcast.net>
3718 * gensupport.c (read_md_rtx): Fix typo in comment.
3719 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3722 2011-04-22 Jan Hubicka <jh@suse.cz>
3724 * gengtype.c (open_base_files): Add ipa-inline.h include.
3725 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3726 ipa-prop.c; update all uses.
3727 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3728 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3729 merge summary of inlined function into former caller.
3730 * ipa-inline.c (max_benefit): Remove.
3731 (edge_badness): Compensate for removal of benefits.
3732 (update_caller_keys): Use
3733 reset_node_growth_cache/reset_edge_growth_cache.
3734 (update_callee_keys): Likewise.
3735 (update_all_callee_keys): Likewise.
3736 (inline_small_functions): Do not collect max_benefit; do not reset
3737 estimated_growth; call free_growth_caches and initialize_growth_caches.
3738 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3739 struct size_time_entry): New structures.
3740 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3741 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3742 and estimated_growth.
3743 (edge_growth_cache_entry): New structure.
3744 (node_growth_cache, edge_growth_cache): New global vars.
3745 (estimate_growth): Turn into inline.
3746 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3747 initialize_growth_caches, free_growth_caches): Declare.
3748 (estimate_edge_growth): Rewrite.
3749 (estimate_edge_time): Implement as inline cache lookup.
3750 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3752 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3753 (NUM_CONDITIONS): New constant.
3754 (predicate_conditions): New enum.
3755 (IS_NOT_CONSTANT): New constant.
3756 (edge_removal_hook_holder): New var.
3757 (node_growth_cache, edge_growth_cache): New global vars.
3758 (true_predicate, single_cond_predicate, false_predicate,
3759 not_inlined_predicate, add_condition, add_clause, and_predicates,
3760 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3761 dump_clause, dump_predicate, account_size_time,
3762 evaulate_conditions_for_edge): New functions.
3763 (inline_summary_alloc): Move to heap.
3764 (inline_node_removal_hook): Clear condition and entry vectors.
3765 (inline_edge_removal_hook): New function.
3766 (initialize_growth_caches, free_growth_caches): New function.
3767 (dump_inline_summary): Update.
3768 (edge_execution_predicate): New function.
3769 (will_be_nonconstant_predicate): New function.
3770 (estimate_function_body_sizes): Compute BB and constantness predicates.
3771 (compute_inline_parameters): Do not clear estimated_growth.
3772 (estimate_edge_size_and_time): New function.
3773 (estimate_calls_size_and_time): New function.
3774 (estimate_callee_size_and_time): New function.
3775 (remap_predicate): New function.
3776 (inline_merge_summary): New function.
3777 (do_estimate_edge_time): New function based on...
3778 (estimate_edge_time): ... this one.
3779 (do_estimate_edge_growth): New function.
3780 (do_estimate_growth): New function based on....
3781 (estimate_growth): ... this one.
3782 (inline_analyze_function): Analyze after deciding on jump functions.
3783 (inline_read_section): New function.
3784 (inline_read_summary): Use it.
3785 (inline_write_summary): Write all the new data.
3786 * ipa-prop.c (ipa_get_param_decl_index): Export.
3787 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3788 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3790 (ipa_get_lattice): Move here from ipa-cp.c
3791 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3792 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3793 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3794 cgraph_edge_inlinable_p): Remove.
3795 * cgraphunit.c: Include ipainline.h
3796 (cgraph_process_new_functions): Update call of
3797 compute_inline_parameters.
3799 2011-04-22 Richard Guenther <rguenther@suse.de>
3801 * tree.c (build_int_cst): Properly create canonicalized integer
3803 (build_int_cst_type): Remove scary comments.
3805 2011-04-22 Xinliang David Li <davidxl@google.com>
3807 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3808 by default when -Wno-error is not specified.
3809 * opts-global.c (decode_options): Remove call to
3810 control_warning_options.
3812 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3814 PR tree-optimization/48717
3815 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3816 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3818 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3820 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3821 definition where used.
3823 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3826 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3827 TREE_STATIC variables declared inside of some OpenMP construct.
3829 2011-04-22 Martin Jambor <mjambor@suse.cz>
3832 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3834 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3837 * c-typeck.c (pop_init_level): Do not warn about initializing
3840 2011-04-22 Alan Modra <amodra@gmail.com>
3842 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3843 when returning call_cookie.
3844 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3845 pointers, to functions with no more vector args than the current
3846 function, and some non-local calls for ABI_V4.
3847 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3848 sibcall_nonlocal_aix64): Combine to ..
3849 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3850 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3851 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3852 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3853 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3855 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3856 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3857 sibcall_value_symbolic_64): Delete.
3859 2011-04-21 Xinliang David Li <davidxl@google.com>
3861 * cgraph.h: Remove pid.
3862 * cgraph.c: Remove pid.
3863 * value-prof.c (init_node_map): New function.
3864 (del_node_map): New function.
3865 (find_func_by_funcdef_no): New function.
3866 (gimple_ic_transform): Call new function.
3867 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3868 * function.c (get_last_funcdef_no): New function.
3869 * function.h (get_last_funcdef_no): New function.
3870 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3871 to libgcov function.
3872 (tree-profiling): Call node map init and delete function.
3874 2011-04-21 Ian Lance Taylor <iant@google.com>
3876 * godump.c (go_format_type): Use exported Go name for anonymous
3879 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3881 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3882 Call builtin_function_type_list instead of builtin_function_type.
3883 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3885 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3887 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3888 build_function_type_list instead of build_function_type.
3889 Delete variable `endlink'.
3891 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3893 * config/s390/s390.c (s390_init_builtins): Call
3894 build_function_type_list instead of build_function_type.
3896 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3898 * config/ia64/ia64.c (ia64_init_builtins): Call
3899 build_function_type_list instead of builtin_function_type.
3901 2011-04-21 Easwaran Raman <eraman@google.com>
3903 * cfgexpand.c (stack_var): Remove OFFSET...
3904 (add_stack_var): ...and its reference here...
3905 (expand_stack_vars): ...and here.
3906 (stack_var_cmp): Sort by descending order of size.
3907 (partition_stack_vars): Change heuristic.
3908 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3909 (dump_stack_var_partition): Add newline after each partition.
3911 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3912 Jeff Law <law@redhat.com>
3914 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3915 * gengtype.c (matching_file_name_substitute): Likewise.
3917 2011-04-21 Richard Guenther <rguenther@suse.de>
3920 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3922 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3924 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3926 2011-04-21 Richard Guenther <rguenther@suse.de>
3928 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3931 2011-04-21 Richard Guenther <rguenther@suse.de>
3933 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3934 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3935 Use DECL_P, not SSA_VAR_P.
3936 (ptr_derefs_may_alias_p): Likewise.
3937 (ptr_deref_may_alias_ref_p_1): Likewise.
3938 (decl_refs_may_alias_p): Likewise.
3939 (refs_may_alias_p_1): Likewise.
3940 (ref_maybe_used_by_call_p_1): Likewise.
3941 (call_may_clobber_ref_p_1): Likewise.
3942 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3943 are either MEM_REF or TARGET_MEM_REF.
3944 (indirect_refs_may_alias_p): Likewise.
3945 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3946 for MEM_EXPR of indirect calls.
3948 2011-04-21 Tristan Gingold <gingold@adacore.com>
3950 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3951 (dst_file_info_struct): Remove flen field.
3952 (lookup_filename): Remove code that set flen field.
3954 2011-04-21 Tristan Gingold <gingold@adacore.com>
3956 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3958 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
3961 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3962 vec_extract and vec_concat for non-SSE4_1 targets.
3964 2011-04-21 Richard Guenther <rguenther@suse.de>
3966 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3969 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3971 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3973 (FILE): Don't undefine.
3975 2011-04-21 Joseph Myers <joseph@codesourcery.com>
3977 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3979 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3981 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
3982 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
3983 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3985 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3986 definitions where used.
3987 * config/microblaze/microblaze.h (struct microblaze_args): Use
3988 rtx, not struct rtx_def *.
3989 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3991 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3992 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
3993 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3994 not struct rtx_def *.
3995 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3997 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3999 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4001 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4003 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4004 operand_equal_p to compare DR_BASE_ADDRESSes.
4005 (vect_check_interleaving): Likewise.
4007 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4010 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4011 for all Neon struct constants.
4013 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4015 * target.def (legitimate_constant_p): New hook.
4016 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4017 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4018 * doc/tm.texi: Regenerate.
4019 * hooks.h (hook_bool_mode_rtx_true): Declare.
4020 * hooks.c (hook_bool_mode_rtx_true): Define.
4021 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4022 * calls.c (precompute_register_parameters): Replace uses of
4023 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4024 (emit_library_call_value_1): Likewise.
4025 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4026 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4027 * ira-costs.c (scan_one_insn): Likewise.
4028 * recog.c (general_operand, immediate_operand): Likewise.
4029 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4030 * reload1.c (init_eliminable_invariants): Likewise.
4032 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4034 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4035 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4037 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4038 * config/alpha/predicates.md (input_operand): Update call to
4039 alpha_legitimate_constant_p.
4041 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4042 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4043 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4044 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4045 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4046 (arm_legitimate_constant_p): New functions.
4047 (arm_cannot_force_const_mem): Make static.
4049 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4051 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4052 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4053 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4054 instead of bfin_legitimate_constant_p.
4055 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4056 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4058 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4060 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4062 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4063 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4064 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4065 (frv_legitimate_constant_p): Make static. Add a mode argument.
4067 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4068 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4069 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4071 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4072 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4073 * config/i386/i386.c (legitimate_constant_p): Rename to...
4074 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4076 (ix86_cannot_force_const_mem): Update accordingly.
4077 (ix86_legitimate_address_p): Likewise.
4078 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4079 * config/i386/i386.md: Update commentary.
4081 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4082 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4083 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4084 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4086 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4088 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4089 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4090 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4091 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4093 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4094 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4095 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4097 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4098 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4099 (m32r_legitimate_constant_p): New function.
4101 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4102 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4103 LEGITIMATE_CONSTANT_P.
4104 (LEGITIMATE_CONSTANT_P): Delete.
4105 * config/m68k/m68k.c (m68k_expand_prologue): Call
4106 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4107 (m68k_legitimate_constant_p): New function.
4108 * config/m68k/m68k.md: Update comments.
4110 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4111 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4112 (mcore_legitimate_constant_p): New function.
4114 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4115 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4116 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4117 Add a mode argument.
4118 (mep_legitimate_address): Update accordingly.
4119 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4121 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4123 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4124 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4125 static. Check OP's mode for VOIDmode.
4126 (microblaze_legitimate_constant_p): New function.
4127 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4129 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4130 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4131 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4132 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4133 * config/mips/predicates.md: Update comments.
4135 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4136 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4137 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4138 (mmix_legitimate_constant_p): Make static, return a bool, and take
4140 (mmix_print_operand_address): Update accordingly.
4142 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4144 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4145 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4146 static. Add a mode argument.
4147 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4149 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4151 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4152 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4153 (pa_legitimate_constant_p): New function.
4155 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4157 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4158 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4159 (pdp11_legitimate_constant_p): New function.
4161 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4162 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4163 (rs6000_legitimate_constant_p): New function.
4165 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4166 (rx_legitimate_constant_p): ...this.
4167 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4168 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4169 (rx_legitimate_constant_p): ...this.
4170 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4171 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4173 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4174 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4175 * config/s390/s390.c (legitimate_constant_p): Rename to...
4176 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4177 and add a mode argument.
4178 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4180 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4182 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4183 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4184 (sh_legitimate_constant_p): New function.
4186 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4187 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4188 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4189 (legitimate_constant_p): Rename to...
4190 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4192 (constant_address_p): Update accordingly.
4194 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4195 argument and return a bool.
4196 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4197 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4198 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4199 (spu_rtx_costs): Update accordingly.
4200 * config/spu/predicates.md (vec_imm_operand): Likewise.
4202 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4204 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4205 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4206 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4208 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4209 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4210 * config/vax/vax.c (legitimate_constant_p): Likewise.
4212 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4213 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4214 (xtensa_legitimate_constant_p): New function.
4216 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4218 * target.def (cannot_force_const_mem): Add a mode argument.
4219 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4220 * doc/tm.texi: Regenerate.
4221 * hooks.h (hook_bool_mode_rtx_false): Declare.
4222 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4223 (hook_bool_mode_const_rtx_true): Likewise.
4224 (hook_bool_mode_rtx_false): New function.
4225 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4226 to be non-VOID. Update call to cannot_force_const_mem.
4227 (find_reloads): Update accordingly.
4228 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4229 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4231 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4232 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4233 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4234 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4235 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4236 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4237 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4238 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4239 (m68k_cannot_force_const_mem): ...this new function.
4240 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4242 (mips_const_insns, mips_legitimize_const_move): Update calls.
4243 (mips_secondary_reload_class): Likewise.
4244 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4245 (pa_cannot_force_const_mem): ...this new function.
4246 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4247 (rs6000_cannot_force_const_mem): ...this new function.
4248 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4250 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4251 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4253 (xtensa_cannot_force_const_mem): ...this new function.
4255 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4257 * config/mips/mips.c (mips16_build_function_stub): Call
4258 build_function_type_list instead of build_function_type.
4259 (mips16_build_call_stub): Likewise.
4261 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4263 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4264 instead of build_function_type.
4266 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4268 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4269 instead of build_function_type.
4271 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4274 * config/i386/i386.md (insv): Change operand 0 constraint to
4275 "register_operand". Change operand 1 and 2 constraint to
4276 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4277 * config/i386/sse.md (sse4_1_pinsrb): Export.
4278 (sse2_pinsrw): Ditto.
4279 (sse4_1_pinsrd): Ditto.
4280 (sse4_1_pinsrq): Ditto.
4281 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4282 * config/i386/i386.c (ix86_expand_pinsr): New.
4284 2011-04-20 Easwaran Raman <eraman@google.com>
4286 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4287 containing union type only with -fstrict-aliasing.
4289 2011-04-20 Jim Meyering <meyering@redhat.com>
4291 Remove useless if-before-free tests.
4292 * calls.c (expand_call, save_area): Likewise.
4293 * cfgcleanup.c (try_forward_edges): Likewise.
4294 * collect2.c (collect_execute): Likewise.
4295 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4296 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4297 * coverage.c (coverage_checksum_string): Likewise.
4298 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4299 * cselib.c (cselib_init): Likewise.
4300 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4301 (df_set_clean_cfg): Likewise.
4302 * function.c (free_after_compilation): Likewise.
4303 * gcc.c (do_spec_1, main): Likewise.
4304 * gcov.c (create_file_names): Likewise.
4305 * gensupport.c (identify_predicable_attribute): Likewise.
4306 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4307 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4308 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4309 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4310 * ipa-pure-const.c (local_pure_const): Likewise.
4311 * ipa-reference.c (propagate): Likewise.
4312 * ira-costs.c (free_ira_costs): Likewise.
4313 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4314 * matrix-reorg.c (mat_free): Likewise.
4315 * prefix.c (get_key_value): Likewise.
4316 * profile.c (compute_value_histograms): Likewise.
4317 * reload1.c (free_reg_equiv): Likewise.
4318 * sched-deps.c (free_deps): Likewise.
4319 * sel-sched-ir.c (fence_clear): Likewise.
4320 * sese.c (set_rename, if_region_set_false_region): Likewise.
4321 * tree-data-ref.c (free_rdg): Likewise.
4322 * tree-eh.c (lower_try_finally): Likewise.
4323 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4324 * tree-ssa-live.c (delete_var_map): Likewise.
4325 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4326 * tree-ssa-pre.c (phi_trans_add): Likewise.
4328 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4330 PR tree-optimization/48611
4331 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4332 beyond ERT_MUST_NOT_THROW region.
4334 2011-04-20 Catherine Moore <clm@codesourcery.com>
4336 * config/mips/mips.opt (mfix-24k): New.
4337 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4338 * config/mips/mips.md (length): Increase by 4 for stores if
4340 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4341 all noreorder if fixing 24K errata.
4342 * doc/invoke.texi: Document mfix-24k.
4344 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4346 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4347 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4349 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4351 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4352 (const_ok_for_op): ... to here.
4354 2011-04-20 Kai Tietz <ktietz@redhat.com>
4356 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4357 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4359 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4361 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4363 2011-04-20 Richard Guenther <rguenther@suse.de>
4365 PR tree-optimization/47892
4366 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4369 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4371 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4373 2011-04-20 Tristan Gingold <gingold@adacore.com>
4375 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4377 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4381 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4382 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4383 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4384 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4385 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4387 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4390 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4391 (avr_asm_named_section, avr_asm_output_aligned_common,
4392 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4393 New functions to update...
4394 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4395 (avr_asm_init_sections): Overwrite section callbacks for
4396 data_section, bss_section.
4397 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4399 (avr_file_end): ...here.
4401 2011-04-20 Richard Guenther <rguenther@suse.de>
4404 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4405 objects and types here. Adjust for their offset before comparing.
4407 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4409 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4412 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4414 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4415 (GIMPLE_H): Include $(INTERNAL_FN_H).
4416 (OBJS-common): Add internal-fn.o.
4417 (internal-fn.o): New rule.
4418 * internal-fn.def: New file.
4419 * internal-fn.h: Likewise.
4420 * internal-fn.c: Likewise.
4421 * gimple.h: Include internal-fn.h.
4422 (GF_CALL_INTERNAL): New gf_mask.
4423 (gimple_statement_call): Put fntype into a union with a new
4425 (gimple_build_call_internal): Declare.
4426 (gimple_build_call_internal_vec): Likewise.
4427 (gimple_call_same_target_p): Likewise.
4428 (gimple_call_internal_p): New function.
4429 (gimple_call_internal_fn): Likewise.
4430 (gimple_call_fntype): Return null for internal calls.
4431 (gimple_call_set_fntype): Assert that the function is not internal.
4432 (gimple_call_set_fn): Likewise.
4433 (gimple_call_set_fndecl): Likewise.
4434 (gimple_call_set_internal_fn): New function.
4435 (gimple_call_addr_fndecl): Handle null functions.
4436 (gimple_call_return_type): Likewise null types.
4437 * gimple.c (gimple_build_call_internal_1): New function.
4438 (gimple_build_call_internal): Likewise.
4439 (gimple_build_call_internal_vec): Likewise.
4440 (gimple_call_same_target_p): Likewise.
4441 (gimple_call_flags): Handle calls to internal functions.
4442 (gimple_call_fnspec): New function.
4443 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4444 (gimple_has_side_effects): Handle null functions.
4445 (gimple_rhs_has_side_effects): Likewise.
4446 (gimple_call_copy_skip_args): Handle calls to internal functions.
4447 * cfgexpand.c (expand_call_stmt): Likewise.
4448 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4449 * gimple-fold.c (gimple_fold_call): Handle null functions.
4450 (gimple_fold_stmt_to_constant_1): Don't fold
4451 calls to internal functions.
4452 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4454 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4455 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4456 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4457 (do_warn_unused_result): Likewise.
4458 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4459 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4460 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4461 the target of a call.
4462 (initialize_hash_element): Update accordingly.
4463 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4464 (iterative_hash_hashable_expr): Handle calls to internal functions.
4465 (print_expr_hash_elt): Likewise.
4466 * tree-ssa-pre.c (can_value_number_call): Likewise.
4467 (eliminate): Handle null functions.
4468 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4469 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4470 (find_func_aliases): Likewise.
4471 * value-prof.c (gimple_ic_transform): Likewise.
4472 (gimple_indirect_call_to_profile): Likewise.
4473 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4474 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4476 2011-04-19 Jan Hubicka <jh@suse.cz>
4478 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4479 * ipa-inline.c (inline_small_functions): Compute summaries first,
4480 populate heap later.
4482 2011-04-19 Jan Hubicka <jh@suse.cz>
4484 * cgraph.h (save_inline_function_body): Remove.
4485 * ipa-inline-transform.c: New file, broke out of...
4486 * ipa-inline.c: ... this one; Update toplevel comment.
4487 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4489 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4490 (cgraph_mark_inline_edge): Rename to inline_call; move to
4491 ipa-inline-transform.c.
4492 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4493 move to ipa-inline-transform.c
4494 (recursive_inlining, inline_small_functions, flatten_function,
4495 ipa_inline, inline_always_inline_functions,
4496 early_inline_small_functions): Update.
4497 (inline_transform): Move to ipa-inline-transform.c.
4498 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4500 * Makefile.in (ipa-inline-transform.o): New file.
4501 * cgraphunit.c (save_inline_function_body): Move to
4502 ipa-inline-transform.c
4504 2011-04-19 DJ Delorie <dj@redhat.com>
4506 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4507 registers if we already know there aren't any.
4508 (m32c_emit_epilogue): Don't emit a barrier here.
4509 (m32c_emit_eh_epilogue): Likewise.
4510 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4511 operands at expand time.
4512 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4514 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4515 duplicates. Provide aliases instead.
4516 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4517 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4520 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4522 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4523 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4524 (general_or_i64_p, sparc_register_move_cost): New function.
4526 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4528 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4529 Add lynx, mipssde. Sort table.
4531 2011-04-19 Xinliang David Li <davidxl@google.com>
4533 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4536 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4539 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4540 is a SUBREG with non-MODE_INT mode inside of it.
4542 2011-04-19 Martin Jambor <mjambor@suse.cz>
4544 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4545 also according to actual contants.
4546 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4547 (gimple_fold_call): Use it.
4548 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4550 2011-04-19 Martin Jambor <mjambor@suse.cz>
4552 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4553 non-pointer assignments.
4555 2011-04-19 Martin Jambor <mjambor@suse.cz>
4557 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4558 account anc_offset and otr_type from the indirect edge info.
4559 * ipa-prop.c (get_ancestor_addr_info): New function.
4560 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4561 get_ancestor_addr_info, call it.
4562 (ipa_note_param_call): Do not initialize information about polymorphic
4563 calls, return the indirect call graph edge. Remove the last
4564 parameter, adjust all callers.
4565 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4566 parameters. Initialize polymorphic information in the indirect edge.
4568 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4571 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4572 the types if they have different enumeration identifiers.
4574 2011-04-19 Jan Hubicka <jh@suse.cz>
4576 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4577 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4578 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4579 (optimize_function_for_size_p) ... here.
4581 2011-04-19 Richard Guenther <rguenther@suse.de>
4584 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4587 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4589 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4590 if DECL_NO_INLINE_WARNING_P is set on the function.
4592 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4595 * reload1.c (inc_for_reload): Return void. All callers changed.
4596 (emit_input_reload_insns): Don't try to delete previous output
4597 reloads to a register, or record spill_reg_store for autoincs.
4599 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4601 * gengtype.h: Updated copyright year.
4602 (struct input_file_st): Add inpisplugin field.
4603 (type_fileloc): New function.
4605 (write_typed_struct_alloc_def): Add gcc_assert.
4606 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4607 (write_typed_alloc_defns): Don't output for plugin files.
4608 (input_file_by_name): Clear inpisplugin field.
4609 (main): Set inpisplugin field for plugin files.
4611 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4613 * gengtype-state.c (string_eq): New.
4614 (read_state): Use string_eq instead of strcmp when creating the
4617 2011-04-19 Wei Guozhi <carrot@google.com>
4620 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4621 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4623 * config/arm/constraints.md (Uu): New constraint.
4624 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4626 2011-04-19 Tristan Gingold <gingold@adacore.com>
4628 * config.gcc (-*-*-*vms): Added.
4629 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4631 * config/vms/vms-ld.c: New file.
4632 * config/vms/vms-ar.c: New file.
4633 * config/vms/t-vmsnative: New file.
4635 2011-04-18 Xinliang David Li <davidxl@google.com>
4637 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4639 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4642 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4643 if TREE_TYPE (v) is non-NULL.
4645 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4646 gimple_get_virt_mehtod_for_binfo.
4647 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4648 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4650 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4652 2011-04-18 Michael Matz <matz@suse.de>
4653 Steve Ellcey <sje@cup.hp.com>
4655 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4656 use its mode as source mode if it isn't VOIDmode.
4658 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4660 * doc/passes.texi: Fill crossref nodes.
4662 2011-04-18 Jim Meyering <meyering@redhat.com>
4664 Fix doubled-word typos in comments and strings
4665 * config/alpha/vms-unwind.h: s/for for/for/
4666 * config/arm/unwind-arm.h: Likewise.
4667 * config/microblaze/microblaze.c: Likewise.
4668 * config/sh/constraints.md: s/in in/in/
4669 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4671 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4673 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4674 (AVX_FLOAT_MODE_P): Ditto.
4675 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4676 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4677 (AVX_VEC_FLOAT_MODE_P): Ditto.
4678 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4679 (UNSPEC_MASKSTORE): Ditto.
4680 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4681 Merge from <sse>_movmsk<ssemodesuffix> and
4682 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4683 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4685 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4686 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4687 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4689 2011-04-18 Jan Hubicka <jh@suse.cz>
4691 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4693 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4694 (want_inline_function_called_once_p): Break out the logic from
4696 (edge_badness): Ensure that profile is not misupdated.
4697 (lookup_recursive_calls): Prioritize by call frequencies.
4698 (inline_small_functions): Move program size estimates here;
4699 actually process whole queue even when unit growth has been
4700 met. (to properly compute inline_failed reasons and for the
4701 case unit size decrease.) Revisit comments on recursive inlining.
4702 (ipa_inline): Remove unit summary code; first inline hot calls
4703 of functions called once, cold calls next.
4704 (order, nnodes): Remove unused variables.
4705 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4706 (GTFILES): Remove ipa-inline.c
4707 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4709 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4711 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4713 2011-04-18 Jie Zhang <jie@codesourcery.com>
4714 Richard Earnshaw <rearnsha@arm.com>
4716 * arm.c (neon_builtin_type_bits): Remove.
4717 (typedef enum neon_builtin_mode): New.
4718 (T_MAX): Don't define.
4719 (typedef enum neon_builtin_datum): Remove bits, codes[],
4720 num_vars and base_fcode. Add mode, code and fcode.
4721 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4722 VAR10): Change accordingly.
4723 (neon_builtin_data[]): Change accordingly
4724 (arm_init_neon_builtins): Change accordingly.
4725 (neon_builtin_compare): Remove.
4726 (locate_neon_builtin_icode): Remove.
4727 (arm_expand_neon_builtin): Change accordingly.
4729 * arm.h (enum arm_builtins): Move to ...
4730 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4732 * arm.c (arm_builtin_decl): Declare.
4733 (TARGET_BUILTIN_DECL): Define.
4734 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4735 (arm_builtin_decls[]): New.
4736 (arm_init_neon_builtins): Store builtin declarations in
4737 arm_builtin_decls[].
4738 (arm_init_tls_builtins): Likewise.
4739 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4740 (arm_builtin_decl): New.
4742 2011-04-18 Richard Guenther <rguenther@suse.de>
4744 * tree.c (upper_bound_in_type): Build properly canonicalized
4746 (lower_bound_in_type): Likewise.
4748 2011-04-18 Richard Guenther <rguenther@suse.de>
4750 * gimple.h (gimple_call_addr_fndecl): New function.
4751 (gimple_call_fndecl): Use it.
4752 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4754 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4755 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4757 2011-04-18 Richard Guenther <rguenther@suse.de>
4760 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4762 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4765 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4766 DECL_IN_CONSTANT_POOL without RTL.
4768 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4769 Ira Rosen <ira.rosen@linaro.org>
4772 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4773 to match neon_vzip/vuzp/vtrn_internal.
4774 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4775 outputs explicitly dependent on both inputs.
4776 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4778 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4780 PR tree-optimization/48616
4781 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4782 whether the shift is by scalar or vector based on whether all SLP
4783 scalar stmts have the same rhs.
4785 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4787 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4790 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4792 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4795 2011-04-17 Jan Hubicka <jh@suse.cz>
4797 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4798 * cgrpahunit.c (cgraph_finalize_function): Do not set
4799 finalized_by_frontend.
4800 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4801 finalized_by_frontend.
4803 2011-04-17 Jan Hubicka <jh@suse.cz>
4805 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4806 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4807 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4808 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4810 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4812 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4814 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4817 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4818 is non-null before accessing it.
4819 (input_cgraph): Remove trailing spaces.
4821 2011-04-17 Revital Eres <revital.eres@linaro.org>
4823 * params.def (sms-min-sc): New param flag.
4824 * modulo-sched.c (sms_schedule): Use it.
4825 * doc/invoke.texi (sms-min-sc): Document it.
4827 2011-04-17 Jan Hubicka <jh@suse.cz>
4829 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4830 present, also set gimple_call_set_cannot_inline.
4831 * ipa-inline.c: Update toplevel comment.
4833 (cgraph_clone_inlined_nodes): Fix linebreaks.
4834 (cgraph_check_inline_limits): Restructure to ...
4835 (caller_growth_limits): ... this one; be more tolerant
4836 on growth in nested inline chains; add explanatory comment;
4837 fix stack accounting thinko introduced by previous patch.
4838 (cgraph_default_inline_p): Remove.
4839 (report_inline_failed_reason): New function.
4840 (can_inline_edge_p): New function.
4841 (can_early_inline_edge_p): New function.
4842 (leaf_node_p): Move upwards in file.
4843 (want_early_inline_function_p): New function.
4844 (want_inline_small_function_p): New function.
4845 (want_inline_self_recursive_call_p): New function.
4846 (cgraph_edge_badness): Rename to ...
4847 (edge_badness) ... this one; fix linebreaks.
4848 (update_edge_key): Update call of edge_baddness; add
4849 detailed dump about queue updates.
4850 (update_caller_keys): Use can_inline_edge_p and
4851 want_inline_small_function_p.
4852 (cgraph_decide_recursive_inlining): Rename to...
4853 (recursive_inlining): Use can_inline_edge_p and
4854 want_inline_self_recursive_call_p; simplify and remove no longer
4856 (cgraph_set_inline_failed): Remove.
4857 (add_new_edges_to_heap): Use can_inline_edge_p and
4858 want_inline_small_function_p.
4859 (cgraph_decide_inlining_of_small_functions): Rename to ...
4860 (inline_small_functions): ... this one; cleanup; use
4861 can/want predicates; cleanup debug ouput; work edges till fibheap
4862 is exhausted and do not stop once unit growth is reached; remove
4863 later loop processing remaining edges.
4864 (cgraph_flatten): Rename to ...
4865 (flatten_function): ... this one; use can_inline_edge_p
4866 and can_early_inline_edge_p predicates.
4867 (cgraph_decide_inlining): Rename to ...
4868 (ipa_inline): ... this one; remove unreachable nodes before
4869 inlining functions called once; simplify the pass.
4870 (cgraph_perform_always_inlining): Rename to ...
4871 (inline_always_inline_functions): ... this one; use
4872 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4873 (cgraph_decide_inlining_incrementally): Rename to ...
4874 (early_inline_small_functions): ... this one; simplify
4875 using new predicates; cleanup; make dumps prettier.
4876 (cgraph_early_inlining): Rename to ...
4877 (early_inliner): newer inline regular functions into always-inlines;
4878 fix updating of call stmt summaries.
4879 (pass_early_inline): Update for new names.
4880 (inline_transform): Fix formating.
4881 (gate_cgraph_decide_inlining): Rename to ...
4882 (pass_ipa_inline): ... this one.
4883 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4884 * ipa-inline-analysis.c (dump_inline_summary): Update.
4885 (compute_inline_parameters): Do not compute disregard_inline_limits;
4886 look for mismatching arguments.
4887 (estimate_growth): Fix handlig of non-trivial self recursion.
4888 (inline_read_summary): Do not read info->disregard_inline_limits.
4889 (inline_write_summary): Do not write info->disregard_inline_limits.
4890 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4891 and move all checks into can_inline_edge_p predicate; re-enable code
4892 comparing optimization levels.
4893 (expand_call_inline): Do not test inline_forbidden_into_p.
4894 * Makefile.in (ipa-inline.o): Update arguments.
4896 2011-04-17 Revital Eres <revital.eres@linaro.org>
4898 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4900 2011-04-17 Revital Eres <revital.eres@linaro.org>
4902 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4904 2011-04-17 Michael Matz <matz@suse.de>
4906 PR tree-optimization/48622
4908 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4909 in same order as they're written.
4911 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4913 * config/pa/predicates.md: Reorganize and simplify predicates.
4914 Eliminate duplicate code checks.
4915 (arith_operand): Rename to arith14_operand
4916 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4917 * config/pa/pa.md: Use renamed operands.
4918 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4919 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4920 arith11_operand, adddi3_operand, indexed_memory_operand,
4921 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4922 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4923 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4924 move_dest_operand, move_src_operand, prefetch_cc_operand,
4925 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4926 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4927 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4928 div_operand, int5_operand, movb_comparison_operator,
4929 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4930 arith_double_operand, ireg_operand, lhs_lshift_operand,
4931 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4932 integer_store_memory_operand): Likewise.
4933 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4934 (integer_store_memory_operand, read_only_operand,
4935 function_label_operand, borx_reg_operand,
4936 non_hard_reg_operand): Likewise.
4937 (eq_neq_comparison_operator): Delete unused operator.
4938 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4939 function_label_operand.
4940 (emit_move_sequence): Likewise.
4942 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
4944 * config/i386/sse.md (sseunpackmode): New mode attribute.
4945 (ssepackmode): Ditto.
4946 (vec_pack_trunc_<mode>): Macroize expander from
4947 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4948 (vec_unpacks_lo_<mode>): Macroize expander from
4949 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4950 (vec_unpacks_hi_<mode>): Macroize expander from
4951 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4952 (vec_unpacku_lo_<mode>): Macroize expander from
4953 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4954 (vec_unpacku_hi_<mode>): Macroize expander from
4955 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4956 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4957 ix86_expand_sse4_unpack.
4958 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4960 2011-04-16 Jan Hubicka <jh@suse.cz>
4962 * cgraphbuild.c: Include ipa-inline.h.
4963 (reset_inline_failed): Use initialize_inline_failed.
4964 * cgraph.c: Include ipa-inline.h.
4965 (cgraph_create_node_1): Do not initialize estimated_growth.
4966 (initialize_inline_failed): More to ipa-inline-analysis.c
4967 (dump_cgraph_node): Do not dump inline flags.
4968 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4969 and disregard_inline_limits flags.
4970 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4971 time, size, estimated_growth.
4972 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4974 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4975 DECL_DISREGARD_INLINE_LIMITS.
4976 (cgraph_analyze_function): Do not initialize
4977 node->local.disregard_inline_limits.
4978 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4979 inlinable, versionable and disregard_inline_limits.
4980 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
4981 cgraph_check_inline_limits, cgraph_default_inline_p,
4982 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4983 add_new_edges_to_heap): Update.
4984 (cgraph_decide_inlining_of_small_function): Update; set
4985 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
4986 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4987 cgraph_decide_inlining_incrementally): Update.
4988 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4989 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4990 time, size and estimated_growth parameters.
4991 (estimate_edge_growth): Update.
4992 (initialize_inline_failed): Declare.
4993 * ipa-split.c: Include ipa-inline.h
4994 (execute_split_functions): Update.
4995 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4996 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4997 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4998 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4999 estimated_growth to INT_MIN.
5000 (inline_node_duplication_hook): Likewise.
5001 (dump_inline_summary): Dump new fields.
5002 (compute_inline_parameters): Update.
5003 (estimate_edge_time, estimate_time_after_inlining,
5004 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5005 inline_write_summary):
5006 (initialize_inline_failed): Move here from cgraph.c.
5007 * tree-sra.c: Include ipa-inline.h.
5008 (ipa_sra_preliminary_function_checks): Update.
5009 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5012 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5014 * config/i386/sse.md (V16): New mode iterator.
5016 (AVXMODEQI, AVXMODEDI): Remove.
5017 (sse2, sse3): New mode attribute.
5018 (mov<mode>): Use V16 mode iterator.
5019 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5020 (push<mode>1): Use V16 mode iterator.
5021 (movmisalign<mode>): Ditto.
5022 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5023 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5024 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5025 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5026 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5027 avx_movdqu<avxmodesuffix>.
5028 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5029 *avx_movdqu<avxmodesuffix>.
5030 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5031 avx_lddqu<avxmodesuffix>.
5032 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5033 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5034 avx_movnt<AVXMODEDI:mode>.
5035 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5036 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5038 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5041 * haifa-sched.c (prune_ready_list, schedule_block): Use
5042 sched_pressure_p rather than flag_sched_pressure.
5044 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5046 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5047 cgraph_get_node instead of cgraph_get_create_node.
5049 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5051 * cfgexpand.c (expand_debug_expr): Use
5052 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5054 2011-04-15 Michael Matz <matz@suse.de>
5056 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5057 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5058 * function.c (gimplify_parameters): Ditto.
5059 * gimplify.c (gimplify_vla_decl): Ditto.
5061 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5062 (gimple_call_set_alloca_for_var): New inline function.
5063 (gimple_call_alloca_for_var_p): Ditto.
5064 * gimple.c (gimple_build_call_from_tree): Remember
5065 CALL_ALLOCA_FOR_VAR_P state.
5066 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5068 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5069 calls if they were for VLA objects.
5071 2011-04-15 Martin Jambor <mjambor@suse.cz>
5073 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5076 2011-04-15 Martin Jambor <mjambor@suse.cz>
5079 * tree-emutls.c (lower_emutls_function_body): Call
5080 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5083 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5085 * c-decl.c (detect_field_duplicates): Call
5086 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5088 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5090 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5091 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5092 * ipa-pure-const.c (check_stmt): Call it.
5093 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5095 2011-04-15 Richard Guenther <rguenther@suse.de>
5097 PR tree-optimization/48290
5098 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5099 Properly decide inhibiting propagation based on the valueized
5100 operand. Do loop-closed SSA form preserving here ...
5101 (init_copy_prop): ... not here.
5103 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5106 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5107 (*ieee_smax<mode>3): Likewise.
5109 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5111 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5112 Replace match_operand with match_dup for the third operand in
5115 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5117 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5118 to track processing of conditionals. Update all callers.
5119 (try_combine, simplify_if_then_else): Update.
5121 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5123 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5126 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5128 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5129 instead of match_operand for operand 3.
5131 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5133 * recog.h (insn_operand_data): Add an "allows_mem" field.
5134 * genoutput.c (output_operand_data): Initialize it.
5135 * optabs.c (maybe_legitimize_operand_same_code): New function.
5136 (maybe_legitimize_operand): Use it when matching the original
5139 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5141 * gimplify.c: Fix issues in comments throughout.
5142 (voidify_wrapper_expr): Fix long line.
5143 (build_stack_save_restore): Likewise.
5144 (gimplify_loop_expr): Likewise.
5145 (gimplify_compound_lval): Likewise.
5146 (gimplify_init_ctor_eval): Likewise.
5147 (gimplify_modify_expr_rhs): Likewise.
5148 (omp_notice_threadprivate_variable): Likewise.
5150 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5152 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5153 original one if this is not a builtin function.
5155 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5158 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5159 offset it as needed based on top 2 bits in operands[3], change
5160 MEM mode to SFmode and mask those 2 bits away from operands[3].
5162 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5164 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5165 change from objc_declare_protocols() to objc_declare_protocol().
5167 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5169 * config/i386/sse.md (sse4_1): New mode attribute.
5170 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5171 avx_blend<ssemodesuffix><avxmodesuffix> and
5172 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5173 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5174 avx_blendv<ssemodesuffix><avxmodesuffix> and
5175 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5176 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5177 avx_dp<ssemodesuffix><avxmodesuffix> and
5178 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5179 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5180 (sse4_1_packusdw): Merge with *avx_packusdw.
5181 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5182 (sse4_1_pblendw): Merge with *avx_pblendw.
5183 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5184 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5185 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5187 (sse4_1_round<ssescalarmodesuffix>): Merge with
5188 *avx_round<ssescalarmodesuffix>.
5189 (aesenc): Merge with *avx_aesenc.
5190 (aesenclast): Merge with *avx_aesenclast.
5191 (aesdec): Merge with *avx_aesdec.
5192 (aesdeclast): Merge with *avx_aesdeclast.
5193 (pclmulqdq): Merge with *pclmulqdq.
5194 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5196 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5198 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5201 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5202 (align_local_variable): This. Update DECL_ALIGN.
5203 (add_stack_var): Updated.
5204 (expand_one_stack_var): Likewise.
5206 2011-04-14 Richard Guenther <rguenther@suse.de>
5208 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5210 (dse_initialize_block_local_data, dse_leave_block,
5211 record_voperand_set, get_stmt_uid): Likewise.
5212 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5213 (dse_optimize_stmt): Remove voperand set handling code.
5214 Simplify and improve to handle any kind of killing stmt.
5215 (dse_record_phi): Remove.
5216 (dse_enter_block): Simplify.
5217 (tree_ssa_dse): Likewise.
5218 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5220 2011-04-14 Jan Hubicka <jh@suse.cz>
5222 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5223 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5224 (cgraph_local_info): Remove inline_summary.
5225 * ipa-cp.c: Include ipa-inline.h.
5226 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5227 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5229 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5230 (input_overwrite_node): Do not set inline summary.
5231 (input_node): Do not stream inline summary.
5232 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5233 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5234 growth; we do not have inline parameters computed for that anyway.
5235 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5236 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5237 (inline_summary_t): New type and VECtor.
5238 (debug_inline_summary, dump_inline_summaries): Declare.
5239 (inline_summary): Use VOCtor.
5240 (estimate_edge_growth): Kill hack computing call stmt size directly.
5241 * lto-section-in.c (lto_section_name): Add inline section.
5242 * ipa-inline-analysis.c: Include lto-streamer.h
5243 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5244 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5245 (inline_summary_vec): Define.
5246 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5247 dump_inline_summaries): New functions.
5248 (estimate_function_body_sizes): Properly compute size/time of outgoing
5250 (compute_inline_parameters): Alloc inline_summary; do not compute
5251 size/time of incomming calls.
5252 (estimate_edge_time): Avoid missing time summary hack.
5253 (inline_read_summary): Read inline summary info.
5254 (inline_write_summary): Write inline summary info.
5255 (inline_free_summary): Free all hooks and inline summary vector.
5256 * lto-streamer.h: Add LTO_section_inline_summary section.
5257 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5258 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5260 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5262 * tree-vectorizer.h (vect_strided_store_supported): Add a
5263 HOST_WIDE_INT argument.
5264 (vect_strided_load_supported): Likewise.
5265 (vect_permute_store_chain): Return void.
5266 (vect_transform_strided_load): Likewise.
5267 (vect_permute_load_chain): Delete.
5268 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5269 count argument. Check that the count is a power of two.
5270 (vect_strided_load_supported): Likewise.
5271 (vect_permute_store_chain): Return void. Update after above changes.
5272 Assert that the access is supported.
5273 (vect_permute_load_chain): Likewise.
5274 (vect_transform_strided_load): Return void.
5275 * tree-vect-stmts.c (vectorizable_store): Update calls after
5276 above interface changes.
5277 (vectorizable_load): Likewise.
5278 (vect_analyze_stmt): Don't check for strided powers of two here.
5280 2011-04-14 Richard Guenther <rguenther@suse.de>
5282 PR tree-optimization/48590
5283 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5284 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5285 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5286 BUILT_IN_STACK_SAVE.
5287 * tree-ssa-dce.c (propagate_necessity): Handle
5288 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5290 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5292 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5295 2011-04-14 Richard Guenther <rguenther@suse.de>
5297 * tree.h (get_object_alignment_1): Declare.
5298 * builtins.c (get_object_alignment_1): Split out worker from ...
5299 (get_object_alignment): ... here.
5300 * fold-const.c (get_pointer_modulus_and_residue): Use
5301 get_object_alignment_1.
5303 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5305 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5307 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5308 parameter. Generalise code to handle arrays as well as vectors.
5309 (vect_setup_realignment): Update accordingly.
5310 * tree-vect-stmts.c (vectorizable_store): Likewise.
5311 (vectorizable_load): Likewise.
5313 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5315 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5316 within the per-copy loop.
5318 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5320 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5323 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5325 * doc/options.texi (Negative): Explicitly mention that the
5326 Negative chain must be circular.
5328 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5330 * function.h (block_chainon): Declare.
5331 * function.c (block_chainon): Define.
5333 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5334 Eric Weddington <eric.weddington@atmel.com>
5335 Georg-Johann Lay <avr@gjlay.de>
5337 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5339 (avr_init_builtins, avr_expand_builtin,
5340 avr_expand_delay_cycles, avr_expand_unop_builtin,
5341 avr_expand_binop_builtin ): New functions.
5342 (avr_builtin_id): New enum
5343 (struct avr_builtin_description): New struct
5344 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5345 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5347 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5348 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5349 UNSPECV_DELAY_CYCLES): new enumeration values
5350 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5351 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5352 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5353 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5354 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5355 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5356 "fmulsu"): New insns
5358 * config/avr/avr-c.c: fix line endings
5359 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5360 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5361 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5362 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5363 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5365 * doc/extend.texi (AVR Built-in Functions): New node
5366 (Target Builtins): Add documentation of AVR
5369 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5372 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5373 alone. Error if non-const data has attribute progmem.
5375 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5377 * tree.h (struct tree_constructor): Include tree_typed instead of
5379 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5380 TS_TYPED instead of TS_COMMON.
5382 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5384 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5385 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5386 (sse2_psadbw): Merge with *avx_psadbw.
5387 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5388 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5389 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5390 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5391 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5392 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5393 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5394 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5395 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5396 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5397 (ssse3_palignrti): Merge with *avx_palignrti.
5399 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5401 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5402 * tree-ssanames.c (fini_ssanames): VEC_free it.
5403 (make_ssa_name_fn): Update for VECness of free_ssanames.
5404 (release_ssa_name, release_dead_ssa_names): Likewise.
5405 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5407 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5408 TS_TYPED instead of TS_COMMON.
5410 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5412 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5413 statistics_counter_event.
5414 * tree-ssa-copyrename.c (stats): Define.
5415 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5416 statistics_counter_event.
5417 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5418 (bswap_stats, widen_mul_stats): Define.
5419 (insert_reciprocals): Increment rdivs_inserted.
5420 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5421 rfuncs_inserted. Add calls to statistics_counter_event.
5422 (execute_cse_sincos_1): Increment inserted.
5423 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5424 statistics_counter_event.
5425 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5426 of bswap_stats. Add calls to statistics_counter_event.
5427 (convert_mult_to_widen): Increment widen_mults_inserted.
5428 (convert_plusminus_to_widen): Increment maccs_inserted.
5429 (convert_mult_to_fma): Increment fmas_inserted.
5430 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5431 calls to statistics_counter_event.
5433 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5435 PR rtl-optimization/48455
5436 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5437 `temp_costs->mem_cost'.
5439 2011-04-13 Jan Hubicka <jh@suse.cz>
5441 * ipa-inline.h: New file.
5442 * ipa-inline-analysis.c: New file. Broken out of ...
5443 * ipa-inline.c: ... this file; update toplevel comment;
5444 include ipa-inline.h
5445 (inline_summary): Move to ipa-inline.h
5446 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5447 ipa-inline-analysis.c.
5448 (cgraph_estimate_time_after_inlining): Rename to
5449 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5450 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5451 to estimate_edge_growth.
5452 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5453 rename to estimate_size_after_inlining.
5454 (cgraph_mark_inline_edge): Update for new naming convention.
5455 (cgraph_check_inline_limits): Likewise.
5456 (cgraph_edge_badness): Likewise.
5457 (cgraph_decide_recursive_inlining): Likewise.
5458 (cgraph_decide_inlining_of_small_functions): Likewise.
5459 (cgraph_decide_inlining_incrementally): Likewise.
5460 (cgraph_estimate_growth): Rename to estimate_growth; move to
5461 ipa-inline-analysis.c.
5462 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5463 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5464 (compute_inline_parameters): Likewise.
5465 (compute_inline_parameters_for_current): Likewise.
5466 (pass_inline_parameters): Likewise.
5467 (inline_indirect_intraprocedural_analysis): Likewise.
5468 (analyze_function): Rename to inline_analyze_function; likewise.
5469 (add_new_function): Move to ipa-inline-analysis.c.
5470 (inline_generate_summary): Likewise.
5471 (inline_read_summary): Likewise.
5472 (inline_write_summary): Likewise.
5473 * Makefile.in (ipa-inline-analysis.c): New file.
5475 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5477 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5478 * configure: Regenerate.
5480 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5482 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5483 instead of tree_common.
5484 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5486 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5487 TS_TYPED rather than TS_COMMON.
5488 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5490 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5493 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5494 r20 around calls of __tablejump_elpm__
5496 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5499 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5501 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5503 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5505 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5506 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5507 (cfi_vec): New typedef.
5508 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5509 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5510 (cie_cfi_vec): New static variable.
5511 (cie_cfi_head): Delete.
5512 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5513 declaration changed. Use vector rather than list operations.
5514 (new_cfi): Don't initialize the dw_cfi_next field.
5515 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5516 rather than list operations.
5517 (lookup_cfa): Use vector rather than list operations.
5518 (output_cfis): New argument upto. Accept a cfi_vec rather than
5519 a dw_cfi_ref list head as argument. All callers changed.
5520 Iterate over the vector using upto as a maximum index.
5521 (output_all_cfis): New static function.
5522 (output_fde): Use vector rather than list operations. Use the
5523 new upto argument for output_cfis rather than manipulating a
5525 (dwarf2out_begin_prologue): Change initializations to match
5527 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5528 from the vector length rather than searching for the end of a list.
5529 Use output_all_cfis.
5530 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5532 2011-04-13 Nick Clifton <nickc@redhat.com>
5534 * config/rx/rx.md (movmemsi): Do not use this pattern when
5535 volatile pointers are involved.
5537 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5539 * config/i386/sse.md (pinsrbits): Remove.
5540 (sse2_packsswb): Merge with *avx_packsswb.
5541 (sse2_packssdw): Merge with *avx_packssdw.
5542 (sse2_packuswb): Merge with *avx_packuswb.
5543 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5544 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5545 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5546 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5547 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5548 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5549 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5550 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5551 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5552 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5553 (sse2_loadld): Merge with *avx_loadld.
5554 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5555 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5556 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5557 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5558 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5560 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5562 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5564 * print-tree.c (print_node): Likewise.
5565 * tree-inline.c (copy_tree_r): Likewise.
5566 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5567 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5568 instead of TS_COMMON.
5569 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5570 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5571 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5572 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5573 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5575 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5577 (TREE_CHAIN): Check for a TS_COMMON structure.
5578 (TREE_TYPE): Check for a TS_TYPED structure.
5580 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5582 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5583 cgraph_get_create_node instead of cgraph_node.
5585 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5587 * c-parser.c (c_parser_initelt): Updated call to
5588 objc_build_message_expr.
5589 (c_parser_postfix_expression): Likewise.
5591 2011-04-12 Kai Tietz <ktietz@redhat.com>
5593 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5594 MASK_MS_BITFIELD_LAYOUT bit.
5596 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5598 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5599 assert it is always true.
5600 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5603 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5605 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5606 compiling Objective-C to be more efficient.
5608 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5610 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5613 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5615 * recog.h, genoutput.c, optabs.c: Revert last patch.
5617 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5620 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5622 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5624 * recog.h (insn_operand_data): Add an "allows_mem" field.
5625 * genoutput.c (output_operand_data): Initialize it.
5626 * optabs.c (maybe_legitimize_operand_same_code): New function.
5627 (maybe_legitimize_operand): Use it when matching the original
5630 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5632 * genpreds.c (process_define_predicate): Move most processing
5633 to gensupport.c. Continue to validate the expression.
5634 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5635 (process_define_predicate): Move processing to gensupport.c.
5636 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5637 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5638 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5640 (valid_predicate_name_p): New function, split out from old
5641 genpreds.c:process_define_predicate.
5642 (process_define_predicate): New function, combining code from
5643 old genpreds.c and genrecog.c functions.
5644 (process_rtx): Call it for DEFINE_PREDICATE and
5645 DEFINE_SPECIAL_PREDICATE.
5647 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5649 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5650 size of a '%A' memory reference.
5651 (T_DREG, T_QREG): New neon_builtin_type_bits.
5652 (arm_init_neon_builtins): Assert that the load and store operands
5653 are neon_struct_operands.
5654 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5655 (NEON_ARG_MEMORY): New builtin_arg.
5656 (neon_dereference_pointer): New function.
5657 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5658 Handle NEON_ARG_MEMORY.
5659 (arm_expand_neon_builtin): Update after above interface changes.
5660 Use NEON_ARG_MEMORY for loads and stores.
5661 * config/arm/predicates.md (neon_struct_operand): New predicate.
5662 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5663 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5664 (V_four_elem): Tweak formatting.
5665 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5666 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5667 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5668 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5669 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5670 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5671 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5672 Use %A in the output template.
5673 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5674 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5675 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5676 the width of the memory access. Remove post-increment.
5677 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5679 2011-04-12 Nick Clifton <nickc@redhat.com>
5681 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5682 instruction for interrupt handlers if the target is the basic V850
5684 (expand_epilogue): Likewise.
5686 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5688 PR rtl-optimization/48549
5689 * combine.c (propagate_for_debug): Also stop after BB_END of
5690 this_basic_block. Process LAST and just stop processing after it.
5691 (combine_instructions): If last_combined_insn has been deleted,
5692 set last_combined_insn to its PREV_INSN.
5694 2011-04-12 Richard Guenther <rguenther@suse.de>
5696 PR tree-optimization/46076
5697 * gimple.h (struct gimple_statement_call): Add fntype field.
5698 (gimple_call_fntype): Adjust.
5699 (gimple_call_set_fntype): New function.
5700 * gimple.c (gimple_build_call_1): Set the call function type.
5701 * gimplify.c (gimplify_call_expr): Preserve the function
5702 type the frontend used for the call.
5703 (gimplify_modify_expr): Likewise.
5704 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5706 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5708 * tree-ssa.c (useless_type_conversion_p): Function pointer
5709 conversions are useless.
5711 2011-04-12 Martin Jambor <mjambor@suse.cz>
5713 * cgraph.h (cgraph_node): Remove function declaration.
5714 (cgraph_create_node): Declare.
5715 (cgraph_get_create_node): Likewise.
5716 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5717 Updated all callers.
5718 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5719 the decl does not already exist. Call cgraph_get_create_node instead
5721 (cgraph_get_create_node): New function.
5722 (cgraph_same_body_alias): Update comment.
5723 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5724 assert it does not return NULL.
5725 (cgraph_update_edges_for_call_stmt): Likewise.
5726 (cgraph_clone_edge): Likewise.
5727 (cgraph_create_virtual_clone): Likewise.
5728 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5729 instead of cgraph_node.
5730 (cgraph_add_new_function): Call cgraph_create_node or
5731 cgraph_get_create_node instead of cgraph_node.
5732 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5733 instead of cgraph_node.
5734 (record_eh_tables): Likewise.
5735 (mark_address): Likewise.
5736 (mark_load): Likewise.
5737 (build_cgraph_edges): Call cgraph_get_create_node instead
5739 (rebuild_cgraph_edges): Likewise.
5740 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5741 instead of cgraph_node.
5742 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5744 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5745 cgraph_create_node instead of cgraph_node.
5746 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5748 * lto-cgraph.c (input_node): Likewise.
5749 * lto-streamer-in.c (input_function): Likewise.
5750 * varasm.c (mark_decl_referenced): Likewise.
5751 (assemble_alias): Likewise.
5753 2011-04-12 Martin Jambor <mjambor@suse.cz>
5755 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5756 instead of cgraph_node and assert it does not return NULL.
5757 * lto-streamer-in.c (lto_read_body): Likewise.
5758 * omp-low.c (new_omp_context): Likewise.
5759 (create_task_copyfn): Likewise.
5760 * tree-emutls.c (lower_emutls_function_body): Likewise.
5761 * matrix-reorg.c (transform_allocation_sites): Likewise.
5763 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5766 * c-typeck.c (build_asm_expr): Error out on attempts to use
5767 void type outputs or inputs for constraints that allow reg or
5770 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5771 Richard Earnshaw <rearnsha@arm.com>
5774 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5775 to use sign-magnitude offsets. Reject unsupported unaligned
5776 cases. Add detailed description in comments.
5777 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5778 condition from TARGET_32BIT to TARGET_ARM.
5780 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5782 * tree.h (struct typed_tree): New.
5783 (struct tree_common): Include it instead of tree_base.
5784 (TREE_TYPE): Update for new location of type field.
5785 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5786 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5787 (union tree_node): Add typed field.
5788 * treestruct.def (TS_TYPED): New.
5789 * lto-streamer.c (check_handled_ts_structures): Handle it.
5790 * tree.c (MARK_TS_TYPED): New macro.
5791 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5793 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5795 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5796 (force_nonfallthru): Do not alter the loop nest if no basic block
5799 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5801 * config/i386/sse.md (VI): New mode iterator.
5803 (AVX256MODEI): Ditto.
5804 (AVXMODEF4P): Ditto.
5805 (avxvecpsmode): Ditto.
5806 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5807 (sse2_andnot<mode>3): New expander.
5808 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5809 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5810 (<any_logic:code><mode>3): Use VI mode iterator.
5811 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5812 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5813 (*andnottf3): Handle AVX three-operand constraints.
5814 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5816 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5817 Robert Millan <rmh@gnu.org>
5819 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5820 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5821 GNU_USER_DYNAMIC_LINKER64): Define.
5822 (REG_NAME): Don't undefine.
5823 (MD_UNWIND_SUPPORT): Undefine.
5824 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5825 (REG_NAME): Don't undefine.
5826 (MD_UNWIND_SUPPORT): Undefine.
5827 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5829 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5831 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5832 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5834 2011-04-11 Xinliang David Li <davidxl@google.com>
5836 * value-profile.c (check_ic_target): New function.
5837 (gimple_ic_transform): Sanity check indirect call target.
5838 * gimple-low.c (gimple_check_call_args): Interface change.
5839 (gimple_check_call_matching_types): New function.
5840 * tree-inline.c (tree_can_inline_p): Call new function.
5842 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5844 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5845 tree-pretty-print.h & realmpfr.h.
5847 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5850 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5851 (setup_allocno_and_important_classes): Ditto.
5853 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5855 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5856 GNU_USER_DYNAMIC_LINKER.
5857 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5858 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5859 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5860 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5861 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5862 GNU_USER_TARGET_OS_CPP_BUILTINS.
5863 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5864 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5865 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5866 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5867 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5868 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5869 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5870 GNU_USER_TARGET_OS_CPP_BUILTINS.
5871 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5872 GNU_USER_DYNAMIC_LINKER.
5873 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5874 GNU_USER_TARGET_OS_CPP_BUILTINS.
5875 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5876 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5877 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5878 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5879 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5880 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5881 GNU_USER_DYNAMIC_LINKER64): Remove.
5882 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5883 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5884 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5885 GNU_USER_DYNAMIC_LINKER.
5886 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5887 GNU_USER_TARGET_OS_CPP_BUILTINS.
5888 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5889 GNU_USER_TARGET_OS_CPP_BUILTINS.
5890 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5891 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5892 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5893 GNU_USER_TARGET_OS_CPP_BUILTINS.
5894 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5895 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5896 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5897 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5898 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5899 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5900 GNU_USER_DYNAMIC_LINKER.
5901 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5902 GNU_USER_TARGET_OS_CPP_BUILTINS.
5903 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5904 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5905 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5906 GNU_USER_DYNAMIC_LINKER.
5907 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5908 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5909 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5910 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5911 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5912 GNU_USER_DYNAMIC_LINKER.
5913 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5914 GNU_USER_DYNAMIC_LINKERN32.
5915 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5916 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5917 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5918 GNU_USER_DYNAMIC_LINKER32.
5919 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5920 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5921 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5922 GNU_USER_DYNAMIC_LINKER.
5923 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5924 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5925 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5926 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5927 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5928 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5929 GNU_USER_DYNAMIC_LINKER32.
5930 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5931 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5932 GNU_USER_DYNAMIC_LINKER.
5933 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5934 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5935 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5936 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5937 GNU_USER_DYNAMIC_LINKER64.
5938 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5939 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5940 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5941 GNU_USER_DYNAMIC_LINKER.
5942 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5943 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5944 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5945 GNU_USER_DYNAMIC_LINKER.
5946 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5947 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5948 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5949 GNU_USER_DYNAMIC_LINKER32.
5950 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5951 GNU_USER_DYNAMIC_LINKER64.
5952 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5953 GNU_USER_DYNAMIC_LINKER64.
5954 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5955 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5956 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5957 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5958 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5960 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5962 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5963 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5964 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5965 GNU_USER_DYNAMIC_LINKER.
5966 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5967 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5968 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5969 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5970 GNU_USER_DYNAMIC_LINKER64.
5971 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5972 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5973 GNU_USER_LINK_EMULATION.
5974 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5975 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5976 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5977 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5978 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5979 CPP_SPEC, CC1_SPEC): Remove.
5980 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5981 (GNU_USER_DYNAMIC_LINKER): Define.
5982 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5983 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5984 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5985 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5986 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5987 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5988 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5989 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5990 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5991 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5992 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5993 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5994 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5995 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5996 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5997 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5998 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5999 GNU_USER_DYNAMIC_LINKER.
6000 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6001 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6002 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6003 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6004 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6005 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6006 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6007 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6008 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6009 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6011 2011-04-11 Kai Tietz <ktietz@redhat.com>
6015 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6016 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6018 (ix86_is_msabi_thiscall): Removed.
6019 (ix86_is_type_thiscall): Likewise.
6020 (ix86_get_callcvt): New function.
6021 (ix86_comp_type_attributes): Simplify check.
6022 (ix86_function_regparm): Use ix86_get_callcvt for calling
6023 convention attribute checks.
6024 (ix86_return_pops_args): Likewise.
6025 (ix86_static_chain): Likewise.
6026 (x86_this_parameter): Likewise.
6027 (x86_output_mi_thunk): Likewise.
6028 (ix86_function_type_abi): Optimize check for types without attributes.
6029 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6030 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6031 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6033 (IX86_BASE_CALLCVT): Helper macro.
6034 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6035 Use ix86_get_callcvt for calling convention attribute checks and avoid
6036 symbol-decoration for stdcall in TARGET_RTD case.
6037 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6039 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6042 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6044 * config/i386/sse.md (VI_128): New mode iterator.
6045 (VI12_128): Rename from SSEMODE12.
6046 (VI14_128): Rename from SSEMODE14.
6047 (VI124_128): New mode iterator.
6048 (VI24_128): Rename from SSEMODE248.
6049 (VI248_128): Rename from SSEMODE248.
6050 (SSEMODE124C8): Remove.
6051 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6052 (*sse2_<plusminus_insn><mode>3): Merge with
6053 *avx_<plusminus_insn><mode>3.
6054 (*mulv8hi3): Merge with *avx_mulv8hi3.
6055 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6056 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6057 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6058 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6059 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6060 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6061 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6062 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6063 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6064 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6065 (*<smaxmin:code>v8hi3): Ditto.
6066 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6067 (*<smaxmin:code>v16qi3): Ditto.
6068 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6069 (*sse2_eq<mode>3): Ditto.
6070 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6071 (*sse2_gt<mode>3): Ditto.
6072 (vcondv2di): Split out of vcond<mode>.
6073 (vconduv2di): Split out of vcondu<mode>.
6075 2011-04-11 Richard Guenther <rguenther@suse.de>
6077 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6078 before calling tree_low_cst.
6080 2011-04-11 Richard Guenther <rguenther@suse.de>
6082 * stor-layout.c (layout_type): Compute all array index size operations
6083 in the original type.
6084 (initialize_sizetypes): Add comment.
6085 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6087 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6089 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6091 2011-04-11 Martin Jambor <mjambor@suse.cz>
6093 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6094 of cgraph_node, handle NULL return value.
6095 (cgraph_global_info): Likewise.
6096 (cgraph_rtl_info): Likewise.
6097 * tree-inline.c (estimate_num_insns): Likewise.
6098 * gimplify.c (unshare_body): Likewise.
6099 (unvisit_body): Likewise.
6100 (gimplify_body): Likewise.
6101 * predict.c (optimize_function_for_size_p): Likewise.
6102 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6103 (call_may_clobber_ref_p_1): Likewise.
6104 * varasm.c (function_section_1): Likewise.
6105 (assemble_start_function): Likewise.
6107 2011-04-11 Martin Jambor <mjambor@suse.cz>
6109 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6111 * final.c (rest_of_clean_state): Likewise.
6112 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6113 * passes.c (pass_init_dump_file): Likewise.
6114 (execute_all_ipa_transforms): Likewise.
6115 (function_called_by_processed_nodes_p): Likewise.
6116 * predict.c (maybe_hot_frequency_p): Likewise.
6117 (probably_never_executed_bb_p): Likewise.
6118 (compute_function_frequency): Likewise.
6119 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6120 (unnest_nesting_tree_1): Likewise.
6121 (lower_nested_functions): Likewise.
6122 * tree-optimize.c (execute_fixup_cfg): Likewise.
6123 (tree_rest_of_compilation): Likewise.
6124 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6125 * tree-sra.c (ipa_early_sra): Likewise.
6126 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6127 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6128 * ipa.c (record_cdtor_fn): Likewise.
6129 * ipa-inline.c (cgraph_early_inlining): Likewise.
6130 (compute_inline_parameters_for_current): Likewise.
6131 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6132 * ipa-pure-const.c (local_pure_const): Likewise.
6133 * ipa-split.c (split_function): Likewise.
6134 (execute_split_functions): Likewise.
6135 * cgraphbuild.c (build_cgraph_edges): Likewise.
6136 (rebuild_cgraph_edges): Likewise.
6137 (cgraph_rebuild_references): Likewise.
6138 (remove_cgraph_callee_edges): Likewise.
6139 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6140 (verify_cgraph_node): Likewise.
6141 (cgraph_analyze_functions): Likewise.
6142 (cgraph_preserve_function_body_p): Likewise.
6143 (save_inline_function_body): Likewise.
6144 (save_inline_function_body): Likewise.
6145 * tree-inline.c (copy_bb): Likewise.
6146 (optimize_inline_calls): Likewise.
6148 2011-04-11 Martin Jambor <mjambor@suse.cz>
6150 PR tree-optimization/48195
6151 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6152 ipa_check_create_edge_args.
6153 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6154 ipa_check_create_edge_args.
6155 * ipa-inline.c (inline_generate_summary): Do not call
6156 ipa_check_create_node_params and ipa_check_create_edge_args.
6157 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6158 ipa_check_create_edge_args.
6160 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6162 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6164 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6165 * function.c (record_hard_reg_sets): Likewise.
6166 * ira.c (compute_regs_asm_clobbered): Likewise.
6167 * sched-deps.c (sched_analyze_1): Likewise.
6168 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6170 2011-04-09 Xinliang David Li <davidxl@google.com>
6172 PR tree-optimization/PR48484
6173 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6174 has_valid_pred lazily
6176 2011-04-09 Duncan Sands <baldrick@free.fr>
6178 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6180 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6182 * combine.c (combine_validate_cost): Adjust comments. Set registered
6183 cost of I0 to zero at the end, if any.
6185 2011-04-08 Xinliang David Li <davidxl@google.com>
6187 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6188 to insane profile data.
6190 2011-04-08 Xinliang David Li <davidxl@google.com>
6192 * ipa-cp.c (ipcp_update_profiling): Correct
6193 negative scale factor due to insane profile data.
6195 2011-04-08 Xinliang David Li <davidxl@google.com>
6197 * final.c (dump_basic_block_info): New function.
6198 (final): Dump basic block.
6199 (final_scan_insn): Remove old dump.
6201 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6204 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6207 2011-04-08 Michael Matz <matz@suse.de>
6210 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6212 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6213 * rtl.h (rebuild_jump_labels_chain): Declare.
6214 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6215 insns inserted on edges.
6217 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6219 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6220 * config/arm/arm-arches.def: New.
6221 * config/arm/arm-opts.h: New.
6222 * config/arm/genopt.sh: New.
6223 * config/arm/arm-tables.opt: New (generated).
6224 * config/arm/arm.c (arm_handle_option, arm_target_help,
6225 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6226 (all_architectures): Get most table contents from arm-arches.def.
6227 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6228 arm_selected_tune here.
6229 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6230 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6231 (march=, mcpu=, mtune=): Use Enum and Var.
6232 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6233 (arm.o): Update dependencies.
6235 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6237 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6239 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6240 (write_typed_alloc_defns): Likewise.
6241 (main): Calls write_typed_alloc_defns with output_header.
6243 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6246 * ira-color.c (setup_profitable_hard_regs): Add comments.
6247 Don't take prohibited hard regs into account.
6248 (setup_conflict_profitable_regs): Rename to
6249 get_conflict_profitable_regs.
6250 (check_hard_reg_p): Check prohibited hard regs.
6252 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6254 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6255 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6256 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6258 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6261 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6262 move from floating point to shift amount register.
6263 (emit_move_sequence): Remove secondary reload support for floating
6264 point to shift amount amount register copies.
6265 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6266 amount register copies.
6267 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6268 register, return false if mode isn't a scalar integer mode.
6269 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6271 2011-04-08 Richard Guenther <rguenther@suse.de>
6273 * gimple.c (gimple_call_flags): Remove kludge.
6275 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6277 * sel-sched.c (sel_region_init): Move call to
6278 sel_setup_region_sched_flags after setup_current_loop_nest.
6280 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6282 PR rtl-optimization/48272
6283 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6284 init_insn_reg_pressure_info. Adjust a caller.
6285 * sched-int.h (init_insn_reg_pressure_info): Declare.
6286 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6287 when sched-pressure is enabled.
6289 2011-04-08 Richard Guenther <rguenther@suse.de>
6291 * gimple.c (gimple_set_modified): Do not queue calls to
6292 MODIFIED_NORETURN_CALLS here ...
6293 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6295 2011-04-08 Richard Guenther <rguenther@suse.de>
6298 * toplev.c (lang_dependent_init): Do not open asm_out_file
6299 in WPA mode, nor perform debug machinery initialization.
6300 (finalize): Do not unlink asm_out_file in WPA mode.
6302 2011-04-08 Richard Guenther <rguenther@suse.de>
6304 * gimple.h (gimple_call_fntype): New function.
6305 (gimple_call_return_type): Use it.
6306 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6307 * gimple-low.c (gimple_check_call_args): Likewise.
6308 * gimple.c (gimple_call_flags): Likewise.
6309 (gimple_call_arg_flags): Likewise.
6310 (gimple_call_return_flags): Likewise.
6311 * tree-cfg.c (verify_gimple_call): Likewise.
6312 (do_warn_unused_result): Likewise.
6313 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6314 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6316 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6318 PR rtl-optimization/48235
6319 * sel-sched.c (code_motion_process_successors): Recompute the last
6320 insn in basic block if control flow changed.
6321 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6322 Update condition for ilist_remove.
6324 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6326 PR rtl-optimization/48302
6327 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6328 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6329 it to record added preheader blocks.
6330 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6331 on to sel_add_loop_preheaders.
6332 (sel_region_init): Move call to setup_current_loop_nest after
6335 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6338 * cfgloop.h (loop_has_exit_edges): New helper.
6339 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6341 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6342 that have no exit edges.
6344 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6346 PR rtl-optimization/48442
6347 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6348 all callers. Adjust assert.
6350 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6352 PR tree-optimization/48377
6353 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6354 is_packed to true even for types with smaller TYPE_ALIGN than
6357 2011-04-08 Richard Guenther <rguenther@suse.de>
6360 * doc/tm.texi: Re-generate.
6362 2011-04-08 Wei Guozhi <carrot@google.com>
6365 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6366 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6367 * config/arm/arm.md (*push_multi): Change the length computation to
6370 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6372 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6373 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6374 * doc/tm.texi: Regenerate.
6375 * system.h (ASM_OUTPUT_BSS): Poison.
6376 * varasm.c (asm_output_bss): Remove function.
6377 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6379 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6380 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6381 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6382 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6384 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6386 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6388 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6390 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6392 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6395 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6397 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6398 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6399 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6401 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6402 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6403 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6404 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6405 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6406 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6407 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6408 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6409 options. Don't map other m68k options manually. Don't handle
6410 old-style options as canonical.
6411 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6412 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6414 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6416 * basic-block.h (force_nonfallthru): Move to...
6417 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6418 (force_nonfallthru): ...here.
6419 * cfghooks.c (force_nonfallthru): New function.
6420 * cfgrtl.c (force_nonfallthru): Rename into...
6421 (rtl_force_nonfallthru): ...this.
6422 (commit_one_edge_insertion): Do not set AUX field.
6423 (commit_edge_insertions): Do not discover new basic blocks.
6424 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6425 (cfg_layout_rtl_cfg_hooks): Likewise.
6426 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6427 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6428 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6430 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6432 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6435 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6437 * config/i386/sse.md: Update copyright year.
6438 (avxcvtvecmode): Remove.
6439 (sse_movhlps): Merge with *avx_movhlps.
6440 (sse_movlhps): Merge with *avx_movlhps.
6441 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6442 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6443 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6444 (sse_loadhps): Merge with *avx_loadhps.
6445 (sse_storelps): Merge with *avx_storelps.
6446 (sse_loadlps): Merge with *avx_loadlps.
6447 (sse_movss): Merge with *avx_movss.
6448 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6449 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6450 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6451 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6452 (vec_set<mode>_0): Ditto.
6453 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6454 (sse4_1_insertps): Merge with *avx_insertps.
6455 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6456 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6457 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6458 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6459 (sse2_storehpd): Merge with *avx_storehpd.
6460 (sse2_loadhpd): Merge with *avx_loadhpd.
6461 (sse2_loadlpd): Merge with *avx_loadlpd.
6462 (sse2_movsd): Merge with *avx_movsd.
6463 (*vec_concatv2df): Merge with *vec_concatv2df.
6465 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6468 * combine.c (combine_instructions): Add last_combined_insn,
6469 update it if insn is after it, pass it to all try_combine calls.
6470 (try_combine): Add last_combined_insn parameter, pass it instead of
6471 i3 to propagate_for_debug.
6473 2011-04-07 Nick Clifton <nickc@redhat.com>
6475 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6476 to handle MDR <-> data register transfers.
6477 (movhi_internal): Likewise.
6479 2011-04-07 Alan Modra <amodra@gmail.com>
6481 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6482 previous stack info.
6484 2011-04-07 Tom de Vries <tom@codesourcery.com>
6487 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6488 flow_find_cross_jump. Swap variables to implement backward replacement.
6489 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6491 2011-04-07 Tom de Vries <tom@codesourcery.com>
6494 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6495 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6497 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6498 src1 or src2. Redirect edges to the last basic block. Update
6499 frequency and count on multiple basic blocks in case of fallthru.
6501 2011-04-07 Tom de Vries <tom@codesourcery.com>
6504 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6506 (old_insns_match_p): Change return type. Replace return false/true
6507 with return dir_none/dir_both. Use can_replace_by.
6508 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6509 direction from dir_p. Register replacement direction in dir, last_dir
6510 and afterlast_dir. Handle new return type of old_insns_match_p using
6511 merge_dir. Return replacement direction in dir_p.
6512 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6513 return type of old_insns_match_p.
6514 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6515 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6516 flow_find_cross_jump.
6517 * basic-block.h (enum replace_direction): New type.
6518 (flow_find_cross_jump): Add parameter to declaration.
6520 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6522 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6523 (AVXMODEDCVTPS2DQ): Ditto.
6524 (VEC_FLOAT_MODE): Ditto.
6525 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6526 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6527 (<any_logic:code><mode>3): Use VF mode iterator.
6528 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6529 Use VF mode iterator.
6530 (copysign<mode>3): Use VF mode iterator.
6531 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6532 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6533 (*<any_logic:code><MODEF:mode>3): Merge with
6534 *avx_<any_logic:code><MODEF:mode>3.
6535 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6536 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6537 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6538 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6539 (sse2_cvtdq2ps): Use %v modifier.
6540 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6541 (avx_cvtps2dq<avxmodesuffix>): Remove.
6542 (sse2_cvtps2dq): Use %v modifier.
6543 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6544 (avx_cvttps2dq<avxmodesuffix>): Remove.
6545 (sse2_cvttps2dq): Use %v modifier.
6546 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6547 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6548 (sse2_cvtsd2siq): Fix insn template.
6549 (sse2_cvtsd2siq_2): Ditto.
6550 (sse2_cvttsd2siq): Ditto.
6551 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6552 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6554 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6556 * gcov-io.c: Use GCC Runtime Library Exception.
6558 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6561 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6562 as base_reg whatever register reg has been eliminated to, instead
6563 of hardcoding STACK_POINTER_REGNUM.
6565 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6567 * doc/tm.texi.in: Document C target hooks as separate from general
6569 * doc/tm.texi: Regenerate.
6570 * genhooks.c (struct hook_desc): Add docname field.
6571 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6573 (hook_array): Include c-target.def.
6574 (emit_documentation): Use docname field in output.
6575 (emit_init_macros): Take docname argument. Only emit definitions
6576 for hooks matching docname.
6577 (main): Expect additional arguments in all cases. Pass argument
6578 to emit_init_macros.
6579 * target.def: Move initial macro definitions and comments to
6580 target-hooks-macros.h.
6581 (gcc_targetcm): Move to c-family/c-target.def.
6582 * target.h (targetcm): Move declaration to c-family/c-target.h.
6583 * targhooks.c (default_handle_c_option): Move to
6585 * targhooks.h (default_handle_c_option): Move declaration to
6586 c-family/c-common.h.
6587 * target-hooks-macros.h: New file.
6588 * config.gcc (target_has_targetcm): Define and use to add to
6589 c_target_objs and cxx_target_objs.
6590 * config/default-c.c: New file.
6591 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6592 of target.h and target-def.h.
6593 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6594 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6595 darwin_check_cfstring_format_arg): Make static.
6596 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6597 TARGET_STRING_OBJECT_REF_TYPE_P,
6598 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6599 * config/darwin-protos.h (darwin_objc_construct_string,
6600 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6602 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6603 TARGET_STRING_OBJECT_REF_TYPE_P,
6604 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6605 * config/t-darwin (darwin-c.o): Update dependencies.
6606 * system.h (TARGET_HAS_TARGETCM): Poison.
6607 * Makefile.in (TARGET_H): Update.
6608 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6609 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6610 (default-c.o): New target.
6611 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6612 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6613 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6615 (build/genhooks.o): Update dependencies.
6617 2011-04-06 Richard Guenther <rguenther@suse.de>
6619 * ipa-inline.c (enum inlining_mode): Remove.
6620 (cgraph_flatten): Use some other token.
6621 (cgraph_edge_early_inlinable_p): New function, split out from ...
6622 (cgraph_perform_always_inlining): New function, split out from ...
6623 (cgraph_decide_inlining_incrementally): ... here.
6624 (cgraph_mark_inline_edge): Adjust.
6625 (cgraph_early_inlining): Re-structure.
6626 (pass_early_inline): Require SSA form.
6628 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6629 Julian Brown <julian@codesourcery.com>
6630 Mark Shinwell <shinwell@codesourcery.com>
6632 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6633 LO_REGS only for Thumb-1.
6634 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6635 be used in short instructions when optimising for size on Thumb-2.
6637 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6639 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6640 associated with user returns to be preserved.
6642 2011-04-06 Tristan Gingold <gingold@adacore.com>
6644 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6645 symbol_queue_size, DBXOUT_DECR_NESTING,
6646 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6647 if XCOFF_DEBUGGING_INFO.
6649 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6651 * config/i386/i386.md (attribute isa): New.
6652 (attribute enabled): New.
6653 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6654 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6655 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6656 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6657 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6658 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6659 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6660 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6662 * config/i386/sse.md (VF): New mode iterator.
6666 (SSEMODEF4): Remove.
6667 (attribute sse): Handle V8SF and V4DF modes.
6668 (<absneg:code><mode>2): Use VF mode iterator.
6669 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6671 (<plusminus_insn><mode>3): Use VF mode iterator.
6672 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6673 Use VF mode iterator.
6674 (<sse>_vm<plusminus_insn><mode>3): Merge with
6675 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6676 (mul<mode>3): Use VF mode iterator.
6677 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6678 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6680 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6681 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6682 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6683 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6685 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6686 Use VF1 mode iterator.
6687 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6688 (sqrt<VF2:mode>2): New expander.
6689 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6690 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6691 and sqrtv2df2. Use VF mode iterator.
6692 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6694 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6695 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6696 Use VF1 mode iterator.
6697 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6698 (<smaxmin:code><mode>3): Use VF mode iterator.
6699 (*<smaxmin:code><mode>3_finite): Merge with
6700 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6701 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6702 (<sse>_vm<smaxmin:code><mode>2): Merge with
6703 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6704 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6706 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6708 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6709 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6710 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6711 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6712 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6714 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6715 Use VF_128 mode iterator.
6716 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6718 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6719 VF_128 mode iterator.
6720 (vcond<mode>): Use VF mode iterator.
6721 * config/i386/predicates.md (sse_comparison_operator): Merge with
6722 avx_comparison_float_operator. Do not declare as special_predicate.
6723 * config/i386/i386.c (struct builtin_description): Update for renamed
6725 (ix86_expand_args_builtin): Ditto.
6726 (ix86_expand_sse_compare_mask): Ditto.
6728 2011-04-06 Richard Guenther <rguenther@suse.de>
6730 * tree-inline.c (estimate_num_insns): For calls simply account
6731 for all passed arguments and a used return value.
6733 2011-04-06 Richard Guenther <rguenther@suse.de>
6735 PR tree-optimization/47663
6736 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6737 call_stmt_time fields.
6738 (cgraph_edge_inlinable_p): Declare.
6739 (cgraph_edge_recursive_p): New inline function.
6740 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6741 (cgraph_clone_edge): Copy it.
6742 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6743 Account for call stmt time.
6744 (cgraph_estimate_time_after_inlining): Take edge argument.
6745 (cgraph_estimate_edge_growth): Account call stmt size.
6746 (cgraph_estimate_size_after_inlining): Take edge argument.
6747 (cgraph_mark_inline_edge): Adjust.
6748 (cgraph_check_inline_limits): Likewise.
6749 (cgraph_recursive_inlining_p): Remove.
6750 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6751 (cgraph_decide_recursive_inlining): Take edge argument and
6753 (cgraph_decide_inlining_of_small_functions): Do not avoid
6754 diags for recursive inlining here.
6755 (cgraph_flatten): Adjust.
6756 (cgraph_decide_inlining_incrementally): Likewise.
6757 (estimate_function_body_sizes): Remove call cost handling.
6758 (compute_inline_parameters): Initialize caller edge call costs.
6759 (cgraph_estimate_edge_growth): New function.
6760 (cgraph_estimate_growth): Use it.
6761 (cgraph_edge_badness): Likewise.
6762 (cgraph_check_inline_limits): Take an edge argument.
6763 (cgraph_decide_inlining_of_small_functions): Adjust.
6764 (cgraph_decide_inlining): Likewise.
6765 * tree-inline.c (estimate_num_insns): Only account for call
6766 return value if it is used.
6767 (expand_call_inline): Avoid diagnostics on recursive inline
6769 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6770 (input_edge): Input edge call costs.
6772 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6774 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6776 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6778 * doc/invoke.texi (Spec Files): Fix typo.
6780 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6782 * profile.c (branch_prob): Move declaration of local variable. Remove
6783 obsolete ??? comment. Expand the location explicitly instead of using
6784 the LOCATION_FILE and LOCATION_LINE macros.
6786 2011-04-06 Wei Guozhi <carrot@google.com>
6789 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6790 (arm_cond_branch): Likewise.
6791 (arm_cond_branch_reversed): Likewise.
6792 (arm_jump): Likewise.
6793 (push_multi): Likewise.
6794 * config/arm/constraints.md (Py): New constraint.
6796 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6799 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6801 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6802 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6803 #ifdef DBX_DEBUGGING_INFO.
6805 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6808 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6809 if old and new states differ.
6811 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6813 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6814 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6815 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6816 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6817 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6819 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6820 ColdFire options to -mcpu= options.
6822 2011-04-05 Jeff Law <law@redhat.com>
6824 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6825 check if BB is a successor of LOOP->header and return
6826 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6828 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6830 * cprop.c (struct reg_use): Remove.
6831 (reg_use_table): Make an array of RTX.
6832 (find_used_regs, constprop_register, local_cprop_pass,
6833 bypass_block): Simplify users of reg_use_table.
6834 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6835 on one of the uses found by find_used_regs.
6837 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6840 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6843 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6845 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6847 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6849 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6852 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6854 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6856 * combine.c: Include obstack.h.
6857 (struct insn_link): Define.
6858 (uid_log_links): Adjust type.
6859 (FOR_EACH_LOG_LINK): New macro.
6860 (insn_link_obstack): Declare.
6861 (alloc_insn_link): Define.
6862 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6863 type of link variables.
6864 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6865 (try_combine, record_promoted_values, distribute_notes): Likewise.
6866 (distribute_links): Likewise. Tweak prototype.
6867 (clear_log_links): Delete.
6868 (adjust_for_new_dest): Call alloc_insn_link.
6869 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6871 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6873 * gcse.c (modify_mem_list): Convert to an array of VECs.
6874 (canon_modify_mem_list, compute_transp): Tweak formatting.
6875 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6876 (load_killed_in_block_p): Likewise.
6877 (record_last_mem_set_info): Likewise.
6878 (clear_modify_mem_tables): Likewise.
6880 2011-04-05 Tom de Vries <tom@codesourcery.com>
6883 * function.c (emit_use_return_register_into_block): Only define if
6886 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6888 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6890 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6892 * config/rx/rx-opts.h: New.
6893 * config/rx/rx.c (rx_cpu_type): Remove.
6894 (rx_handle_option): Don't assert that global structures are in
6895 use. Access variables via opts pointer. Defer most handling of
6896 OPT_mint_register_. Use error_at.
6897 (rx_option_override): Handle deferred OPT_mint_register_ here.
6898 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6899 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6900 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6901 (rx_cpu_types): New Enum and EnumValue entries.
6902 (mint-register=): Use Defer and use Var accordingly.
6904 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6906 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6907 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6908 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6910 (debug_free_queue, debug_nesting, symbol_queue_index):
6912 * dbxout.c: ...to here. Make static.
6914 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6916 * gcse.c (modify_pair): Define. Define a VEC of it.
6917 (canon_modify_mem_list): Convert to an array of VECs.
6918 (free_insn_expr_list_list): Delete.
6919 (clear_modify_mem_tables): Call VEC_free instead.
6920 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6921 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6922 (canon_list_insert, compute_transp): Likewise.
6924 2011-04-05 Tom de Vries <tom@codesourcery.com>
6927 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6930 2011-04-05 Tom de Vries <tom@codesourcery.com>
6933 * function.c (emit_use_return_register_into_block): New function.
6934 (thread_prologue_and_epilogue_insns): Use
6935 emit_use_return_register_into_block.
6937 2011-04-05 Tom de Vries <tom@codesourcery.com>
6940 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6943 2011-04-05 Tom de Vries <tom@codesourcery.com>
6945 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6947 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6949 * config/arm/arm.md (define_constants for unspec): Replace with
6951 (define_constants for unspecv): Replace with define_c_enum.
6952 * config/arm/neon.md (define_constants for unspec): Replace with
6955 2011-04-04 Richard Henderson <rth@redhat.com>
6958 * dwarf2out.c (output_line_info): Always emit line info from
6959 at least one section.
6960 (dwarf2out_init): Create text_section_line_info here ...
6961 (set_cur_line_info_table): ... not here.
6963 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
6966 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
6969 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
6971 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6973 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6974 (expr_equiv_p): Remove.
6975 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6976 (hash_scan_set): Update call to insert_set_in_table.
6977 (dump_hash_table): Dump <dest, src> pair.
6978 (lookup_set): Simplify. Lookup <dest, src> pair.
6979 (compute_transp): Remove, fold heavily simplified code into...
6980 (compute_local_properties): ...here. Expect COMP and TRANSP
6982 (find_avail_set): Take set directly from struct expr.
6983 (find_bypass-set): Likewise.
6984 (bypass_block): Likewise.
6985 (cprop_insn): Likewise. Remove redundant INSN_P test.
6987 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6988 checks on form of COND from find_implicit_sets to here.
6989 (find_implicit_sets): Cleanup control flow. Split critical edges
6990 if it exposes implicit sets. Allocate/resize implicit_sets as
6992 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6993 changed something. Run df_analyze after find_implicit_sets if any
6994 edges were split. Do not allocate implicit_sets here.
6996 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6997 (gcse_obstack): Renamed to cprop_obstack.
6998 (GNEW, GNEWVEC, GNEWVAR): Remove.
7000 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7001 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7002 (gcse_alloc): Likewise, and rename to cprop_alloc.
7003 (alloc_gcse_men, free_gcse_mem): Remove.
7004 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7005 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7006 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7008 * cprop.c (oprs_not_set_p): Remove.
7009 (mark_set, mark_clobber): Remove.
7010 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7011 (reg_not_set_p): New function.
7012 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7013 (cprop_insn): Likewise.
7014 (cprop_jump): Use FOR_EACH_EDGE.
7016 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7019 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7020 (rank_for_schedule): Use scheduled_insns vector instead of
7021 last_scheduled_insn.
7022 (ok_for_early_queue_removal): Likewise.
7023 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7025 (choose_ready): Likewise.
7026 (commit_schedule): Use VEC_iterate.
7027 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7028 a dbg_cnt, use it and ensure the first insn is in the ready list.
7029 (haifa_sched_init): Allocate scheduled_insns.
7030 (sched_extend_ready_list): Don't allocate it; reserve space.
7031 (haifa_sched_finish): Free it.
7033 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7035 * optc-gen.awk: Always remove type from Variable entry before
7036 recording in var_seen.
7038 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7040 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7041 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7042 call to tidy_fallthru_edges.
7044 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7046 * doc/options.texi (ToLower): Document.
7047 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7048 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7049 * opts.h (cl_option): Add cl_tolower field.
7050 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7051 arguments with lowercase strings.
7052 * config/rx/rx.opt (mcpu=): Add ToLower.
7053 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7056 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7058 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7060 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7062 * config/vax/vax.c: Include reload.h.
7064 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7066 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7067 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7068 (sparc_preferred_reload_class): New function.
7070 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7073 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7074 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7076 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7078 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7079 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7081 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7083 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7084 (ASM_OUTPUT_ALIGNED_BSS): Define.
7086 2011-04-03 Michael Matz <matz@suse.de>
7088 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7089 and next_slot members.
7090 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7091 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7092 (lto_streamer_cache_append): Declare.
7093 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7094 unsigned index, remove offset parameter, ensure that we append
7095 or update existing entries.
7096 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7097 parameter, update next_slot for append.
7098 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7100 (lto_streamer_cache_insert_at): Likewise.
7101 (lto_streamer_cache_append): New function.
7102 (lto_streamer_cache_lookup): Use unsigned index.
7103 (lto_streamer_cache_get): Likewise.
7104 (lto_record_common_node): Don't test tree_node_can_be_shared.
7105 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7106 (lto_streamer_cache_delete): Don't free offsets member.
7107 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7108 (lto_output_string_with_length): Use lto_output_data_stream.
7109 (lto_output_tree_header): Remove ix parameter, don't write it.
7110 (lto_output_builtin_tree): Likewise.
7111 (lto_write_tree): Adjust callers to above, don't track and write
7112 offset, write unsigned index.
7113 (output_unreferenced_globals): Don't emit all global vars.
7114 (write_global_references): Use unsigned indices.
7115 (lto_output_decl_state_refs): Likewise.
7116 (write_symbol): Likewise.
7117 * lto-streamer-in.c (lto_input_chain): Move earlier.
7118 (input_function): Use unsigned index.
7119 (input_alias_pairs): Don't read and then ignore all global vars.
7120 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7121 don't pass it back, use lto_streamer_cache_append.
7122 (lto_register_var_decl_in_symtab): Use unsigned index.
7123 (lto_register_function_decl_in_symtab): Likewise.
7124 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7126 (lto_get_builtin_tree): Don't read index, use
7127 lto_streamer_cache_append.
7128 (lto_read_tree): Adjust call to lto_materialize_tree.
7130 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7131 don't use function calls in arguments to MIN.
7133 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7136 * gimple.c (gimple_type_leader_entry): Mark deletable.
7138 2011-04-03 Alan Modra <amodra@gmail.com>
7140 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7142 2011-04-03 Michael Matz <matz@suse.de>
7144 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7146 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7148 2011-04-03 Michael Matz <matz@suse.de>
7150 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7151 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7152 without function context.
7153 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7154 current_function_decl and cfun.
7156 2011-04-03 Michael Matz <matz@suse.de>
7158 * tree.c (decl_init_priority_insert): Don't create entry for
7160 (decl_fini_priority_insert): Ditto.
7161 (fields_compatible_p, find_compatible_field): Remove.
7162 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7163 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7165 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7167 * combine.c (try_combine): Remove useless local variable.
7169 2011-04-03 Richard Guenther <rguenther@suse.de>
7170 Ira Rosen <ira.rosen@linaro.org>
7172 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7173 non-variable offsets and compare the remaining bases of the two
7174 accesses instead of looking for exact same data-ref.
7176 2011-04-02 Kai Tietz <ktietz@redhat.com>
7179 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7181 * i386.c (ix86_is_msabi_thiscall): New helper function.
7182 (ix86_is_type_thiscall): New helper function.
7183 (ix86_comp_type_attributes): Handle thiscall for method-functions
7185 (init_cumulative_args): Likewise.
7186 (find_drap_reg): Likewise.
7187 (ix86_static_chain): Likewise.
7188 (x86_this_parameter): Likewise.
7189 (x86_output_mi_thunk): Likewise.
7191 2011-04-01 Olivier Hainque <hainque@adacore.com>
7192 Nicolas Setton <setton@adacore.com>
7193 Eric Botcazou <ebotcazou@adacore.com>
7195 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7196 (add_gnat_descriptive_type_attribute): New function.
7197 (gen_array_type_die): Call it.
7198 (gen_enumeration_type_die): Likewise.
7199 (gen_struct_or_union_type_die): Likewise.
7200 (modified_type_die): Likewise.
7201 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7202 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7203 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7205 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7208 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7209 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7212 2011-03-17 Richard Guenther <rguenther@suse.de>
7215 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7216 origin for decls in other ltrans units.
7217 (input_varpool_node): Likewise.
7219 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7222 * expr.c (expand_assignment): Handle all possibilities
7223 if TO_RTX is CONCAT.
7224 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7225 (store_split_bit_field): If SUBREG_REG (op0) or
7226 op0 itself has smaller mode than word, return it
7227 for offset 0 and const0_rtx for out-of-bounds stores.
7228 If word is const0_rtx, skip it.
7230 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7232 * config/h8300/h8300.c (print_operand_address): Rename to...
7233 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7234 Call h8300_print_operand and h8300_print_operand_address instead of
7235 print_operand and print_operand_address. Declare.
7236 (print_operand): Renake to...
7237 (h8300_print_operand): ...this. Make static. Adjust comments.
7238 Call h8300_print_operand instead of print_operand. Declare.
7239 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7240 (h8300_register_move_cost): Likewise.
7241 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7242 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7243 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7244 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7245 * config/h8300/h8300-protos.h (print_operand): Delete.
7246 (print_operand_address): Delete.
7248 2011-04-01 Richard Henderson <rth@redhat.com>
7251 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7252 in strict mode before dwarf4. Re-order tests to early out
7253 before switching sections.
7255 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7257 * config/h8300/constraints.md: New file.
7258 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7259 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7260 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7261 * config/h8300/predicates.md (bit_operand): Likewise.
7262 (incdec_operand): Use satisfies_constraint_M and
7263 satisfies_constraint_O. Don't use C code block.
7264 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7265 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7266 (compute_mov_length): Use satisfies_constraint_G.
7267 (fix_bit_operand): Use satisfies_constraint_U.
7268 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7269 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7270 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7271 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7272 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7273 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7274 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7275 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7276 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7277 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7278 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7279 (EXTRA_MEMORY_CONSTRAINT): Delete.
7281 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7282 Michael Meissner <meissner@linux.vnet.ibm.com>
7285 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7286 operands, as per the specifications.
7288 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7289 (vec_extract_evenv4sf): Ditto.
7290 (vec_extract_evenv8hi): Ditto.
7291 (vec_extract_evenv16qi): Ditto.
7292 (vec_extract_oddv4si): Ditto.
7294 2011-03-31 Mark Wielaard <mjw@redhat.com>
7296 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7297 high_pc attribute if the CU has no associated code. Only output
7298 DW_AT_entry_pc for CU if not generating strict dwarf and
7301 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7303 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7304 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7306 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7307 * final.c (final_start_function): Call the new function rather
7308 than using a NULL argument for dwarf2out_frame_debug.
7310 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7311 that contains the prologue.
7313 * haifa-sched.c (queue_insn): New arg REASON. All callers
7314 changed. Print it in debugging output.
7316 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7318 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7319 Split most of the code into...
7320 (begin_move_insn): ... here. New function.
7321 (ebb_sched_info): Add a pointer to it.
7322 * haifa-sched.c (scheduled_insns): New static variable.
7323 (sched_extend_ready_list): Allocate it.
7324 (schedule_block): Use it to record the order of scheduled insns.
7325 Perform RTL changes to move insns only after all scheduling
7326 decisions have been made.
7327 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7328 begin_move_insn field.
7329 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7330 * sched-int.h (struct haifa_sched_info): Remove second argument
7331 from begin_schedule_ready hook. Add new member begin_move_insn.
7332 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7333 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7335 * haifa-sched.c (prune_ready_list): New function, broken out of
7337 (schedule_block): Use it.
7339 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7341 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7343 2011-04-01 Kai Tietz <ktietz@redhat.com>
7345 * config.gcc (*-*-mingw*): Allow as option the
7346 posix threading model.
7347 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7348 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7350 (CPP_SPEC): Add pthread/no-pthread handling.
7351 (LIB_SPEC): Likewise.
7352 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7353 (LIB_SPEC): Likewise.
7354 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7355 flag to pass -pthread option for shared libgcc build.
7356 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7357 for shared libgcc build.
7358 * config/i386/t-mingw-pthread: New file.
7359 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7360 New define to enable use of library pthread by default.
7361 * config/i386/mingw.opt (pthread): New driver option.
7362 (no-pthread): New driver option.
7363 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7364 * config/i386/mingw-w64.opt: Likewise.
7366 2011-04-01 Gary Funck <gary@intrepid.com>
7368 * c-decl.c (grokdeclarator): Fix formatting.
7370 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7372 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7373 instead of n_operands.
7374 (set_storage_via_setmem): Likewise.
7375 * optabs.c (maybe_gen_insn): Likewise.
7376 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7377 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7378 (mips_expand_builtin_direct): Likewise.
7379 * config/spu/spu.c (expand_builtin_args): Likewise.
7381 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7383 * recog.h (insn_data_d): Add n_generator_args.
7384 * genoutput.c (data): Likewise.
7385 (output_insn_data): Print it.
7386 (max_opno, num_dups): Delete.
7387 (scan_operands): Just fill in "d->operand[...]".
7388 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7390 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7392 * gensupport.h (pattern_stats): New structure.
7393 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7394 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7395 (max_operand_1, max_operand_vec): Delete.
7396 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7398 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7400 * emit-rtl.c (emit_pattern_after_setloc): New function.
7401 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7402 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7403 (emit_pattern_after): New function.
7404 (emit_insn_after, emit_jump_insn_after): Call it.
7405 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7406 (emit_pattern_before_setloc): New function.
7407 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7408 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7410 (emit_pattern_before): New function.
7411 (emit_insn_before, emit_jump_insn_before): Call it.
7412 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7414 2011-03-31 Richard Henderson <rth@redhat.com>
7416 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7417 (dw_separate_line_info_entry): Remove.
7418 (enum dw_line_info_opcode): New.
7419 (dw_line_info_entry): Use it.
7420 (dw_line_info_table, dw_line_info_table_p): New.
7421 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7422 (line_info_table, line_info_label_num): Remove.
7423 (line_info_table_in_use): Remove.
7424 (separate_line_info_table): Remove.
7425 (separate_line_info_table_allocated): Remove.
7426 (separate_line_info_table_in_use): Remove.
7427 (LINE_INFO_TABLE_INCREMENT): Remove.
7428 (line_info_label_num): New.
7429 (cur_line_info_table): New.
7430 (text_section_line_info, cold_text_section_line_info): New.
7431 (separate_line_info): New.
7432 (SEPARATE_LINE_CODE_LABEL): Remove.
7433 (print_dwarf_line_table): Remove.
7434 (debug_dwarf): Don't dump it.
7435 (output_one_line_info_table): New.
7436 (output_line_info): Use it.
7437 (new_line_info_table): New.
7438 (set_cur_line_info_table): New.
7439 (dwarf2out_switch_text_section): Use it.
7440 (dwarf2out_begin_function): Likewise.
7441 (push_dw_line_info_entry): New.
7442 (dwarf2out_source_line): Rewrite for new line info tables.
7443 (dwarf2out_init): Remove dead initailizations.
7445 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7447 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7449 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7450 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7451 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7452 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7453 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7454 * opt-functions.awk (flag_init, switch_bit_fields): New.
7455 (switch_flags): Don't handle flags moved to bit-fields. Don't
7456 generate CL_MISSING_OK or CL_SAVE.
7457 * optc-gen.awk: Update to generate bit-field output as well as
7459 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7460 bit-field instead of CL_REJECT_DRIVER flag.
7461 * opts-common.c (generate_canonical_option,
7462 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7463 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7464 instead of CL_REJECT_NEGATIVE flag.
7465 * toplev.c (print_switch_values): Use cl_report bit-field instead
7468 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7470 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7471 a zero minimum index only if it is redundant.
7473 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7475 PR rtl-optimization/48381
7476 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7477 instead of ira_class_hard_reg_index for calculating conflicting
7480 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7482 * cprop.c: Clean up hash table building.
7483 (reg_avail_info): Remove.
7484 (oprs_available_p): Remove.
7485 (record_last_reg_set_info): Remove.
7486 (record_last_set_info): Remove.
7487 (reg_available_p): New function.
7488 (gcse_constant_p): Do not treat unfolded conditions as constants.
7489 (make_set_regs_unavailable): New function.
7490 (hash_scan_set): Simplify with new reg_available_p.
7491 (compute_hash_table_work): Traverse insns stream only once.
7492 Do not compute reg_avail_info. Traverse insns in reverse order.
7493 Record implicit sets after recording explicit sets from the block.
7495 2011-03-31 Michael Matz <matz@suse.de>
7497 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7499 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7501 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7502 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7503 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7504 (h8300_mode_dependent_address_p): New function.
7505 (h8300_get_index): Make static.
7507 2011-03-31 Jeff Law <law@redhat.com>
7509 * reload1.c (elimination_effects): Fix typo in recent change.
7511 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7512 typo potentially leading to null pointer dereference.
7514 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7515 (setup_save_areas): Corresponding changes to avoid useless
7518 * jump.c (reversed_comparison_code_parts): Avoid successive return
7519 statements when REVERSE_CONDITION is defined.
7521 * expr.c (expand_assignment): Avoid useless assignments.
7522 (expand_expr_real_1): Likewise.
7523 (expand_expr_real_2): Avoid useless statements.
7525 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7527 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7529 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7532 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7534 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7537 * doc/tm.texi.in (TARGET_VERSION): Remove.
7538 * doc/tm.texi: Regenerate.
7539 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7540 * collect2.c (main): Don't use TARGET_VERSION.
7541 * mips-tdump.c (main): Don't use TARGET_VERSION.
7542 * mips-tfile.c (main): Don't use TARGET_VERSION.
7543 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7544 * config/rs6000/vxworksae.h: Remove.
7545 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7546 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7547 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7548 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7549 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7550 * config/arm/arm.h (TARGET_VERSION): Remove.
7551 * config/arm/coff.h (TARGET_VERSION): Remove.
7552 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7553 * config/arm/elf.h (TARGET_VERSION): Remove.
7554 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7555 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7556 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7557 * config/arm/pe.h (TARGET_VERSION): Remove.
7558 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7559 * config/arm/semi.h (TARGET_VERSION): Remove.
7560 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7561 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7562 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7563 * config/avr/avr.h (TARGET_VERSION): Remove.
7564 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7565 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7566 * config/frv/frv.h (TARGET_VERSION): Remove.
7567 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7568 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7569 * config/i386/darwin.h (TARGET_VERSION): Remove.
7570 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7571 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7572 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7573 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7574 * config/i386/gnu.h (TARGET_VERSION): Remove.
7575 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7576 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7577 * config/i386/linux.h (TARGET_VERSION): Remove.
7578 * config/i386/linux64.h (TARGET_VERSION): Remove.
7579 * config/i386/lynx.h (TARGET_VERSION): Remove.
7580 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7581 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7582 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7583 * config/i386/netware.h (TARGET_VERSION): Remove.
7584 * config/i386/nto.h (TARGET_VERSION): Remove.
7585 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7586 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7587 * config/ia64/elf.h (TARGET_VERSION): Remove.
7588 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7589 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7590 * config/ia64/linux.h (TARGET_VERSION): Remove.
7591 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7592 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7593 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7594 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7595 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7596 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7597 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7598 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7599 * config/m68k/linux.h (TARGET_VERSION): Remove.
7600 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7601 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7602 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7603 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7604 * config/mep/mep.h (TARGET_VERSION): Remove.
7605 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7606 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7607 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7608 * config/mips/linux.h (TARGET_VERSION): Remove.
7609 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7610 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7611 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7612 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7613 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7614 * config/pa/pa.h (TARGET_VERSION): Remove.
7615 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7616 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7617 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7618 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7619 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7620 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7621 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7622 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7623 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7624 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7625 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7626 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7627 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7628 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7629 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7630 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7631 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7632 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7633 * config/s390/linux.h (TARGET_VERSION): Remove.
7634 * config/s390/s390.h (TARGET_VERSION): Remove.
7635 * config/s390/tpf.h (TARGET_VERSION): Remove.
7636 * config/score/score.h (TARGET_VERSION): Remove.
7637 * config/sh/linux.h (TARGET_VERSION): Remove.
7638 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7639 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7640 * config/sh/sh.h (TARGET_VERSION): Remove.
7641 * config/sh/sh64.h (TARGET_VERSION): Remove.
7642 * config/sh/superh.h (TARGET_VERSION): Remove.
7643 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7644 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7645 * config/sparc/linux.h (TARGET_VERSION): Remove.
7646 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7647 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7648 TARGET_NAME32, TARGET_NAME): Remove.
7649 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7650 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7651 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7652 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7653 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7654 * config/spu/spu.h (TARGET_VERSION): Remove.
7655 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7656 * config/v850/v850.h (TARGET_VERSION): Remove.
7657 * config/vax/linux.h (TARGET_VERSION): Remove.
7658 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7659 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7660 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7662 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7665 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7666 frame-related from frame-unrelated adjustments to the stack pointer.
7668 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7670 * common.opt (fdebug-types-section): Move earlier.
7671 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7673 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7675 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7678 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7680 * tree.h (CASE_CHAIN): Define.
7681 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7682 (gimple_redirect_edge_and_branch): Likewise.
7684 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7687 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7690 2011-03-30 Jeff Law <law@redhat.com>
7692 * PR bootstrap/48371
7693 * reload1.c (reload): Fix botch in last change.
7695 * reload.h (struct reload): Fix typo introduced in last change.
7697 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7699 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7700 Undocumented. Remove help text.
7701 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7704 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7706 * doc/options.texi (NegativeAlias): Document.
7707 (Alias): Mention NegativeAlias.
7708 * opt-functions.awk: Handle NegativeAlias.
7709 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7710 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7711 * opts.h (CL_NEGATIVE_ALIAS): Define.
7712 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7713 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7715 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7717 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7718 mno-spe and mno-isel instead of mspe=no and -misel=no.
7720 2011-03-29 Mark Wielaard <mjw@redhat.com>
7722 * common.opt (fdebug-types-section): New flag.
7723 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7724 * dwarf2out.c (use_debug_types): New define.
7725 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7726 (print_die): Guard output of type unit signatures using
7728 (build_abbrev_table): Replace assert of dwarf_version >= 4
7729 with assert on use_debug_types.
7730 (size_of_die): Likewise.
7731 (unmark_dies): Likewise.
7732 (value_format): Decide AT_ref_external form on use_debug_types.
7733 (output_die): Replace dwarf_version version check guard with
7734 use_debug_types where appropriate.
7735 (modified_type_die): Likewise.
7736 (gen_reference_type_die): Likewise.
7737 (dwarf2out_start_source_file): Likewise.
7738 (dwarf2out_end_source_file): Likewise.
7739 (prune_unused_types_walk_attribs): Likewise.
7740 (dwarf2out_finish): Likewise.
7742 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7744 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7746 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7748 PR rtl-optimization/48332
7749 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7750 mode of input operand N and modeN to its actual mode.
7752 2011-03-30 Jeff Law <law@redhat.com>
7754 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7755 define accessor macro.
7756 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7757 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7758 (reg_equiv_init): Likewise.
7759 (reg_equivs_size): New variable.
7760 (reg_equiv_init_size): Remove.
7761 (allocate_initial_values): Move prototype to here from....
7762 * integrate.h (allocate_initial_values): Remove prototype.
7763 * integrate.c: Include reload.h.
7764 (allocate_initial_values): Corresponding changes.
7765 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7766 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7767 (update_equiv_regs): Corresponding changes.
7768 (ira): Corresponding changes.
7769 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7770 (push_secondary_reload): Corresponding changes.
7771 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7772 (make_memloc, find_reloads_address): Corresponding changes.
7773 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7774 (find_reloads_address_1): Corresponding changes.
7775 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7776 (refers_to_regno_for_reload_p): Corresponding changes.
7777 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7778 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7779 * reload1.c: Include ggc.h.
7780 (grow_reg_equivs): New function.
7781 (replace_pseudos_in, reload): Corresponding changes.
7782 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7783 (eliminate_regs_1, elimination_effects): Corresponding changes.
7784 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7785 (delete_output_reload): Likewise.
7786 * caller-save.c (mark_referenced_regs): Corresponding changes.
7787 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7788 * frv/predicates.md (frv_load_operand): Corresponding changes.
7789 * microblaze/microblaze.c (double_memory_operand): Corresponding
7791 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7792 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7793 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7794 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7795 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7797 * pa/pa.c (emit_move_sequence): Corresponding changes.
7798 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7800 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7803 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7804 structure modes. Don't check neon_vector_mem_operand for
7805 vector or structure modes.
7807 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7808 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7811 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7812 operand 1 and reshuffle the operands to match.
7813 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7815 2011-03-30 Christian Schüler <cschueler@gmx.de>
7818 * config/c.opt (F): Added 'Driver' to -F option.
7821 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7823 * config/darwin.opt: Added '-arch' option.
7825 2011-03-30 Nick Clifton <nickc@redhat.com>
7827 * config/rx/rx.md: Add peepholes and patterns to combine
7828 extending loads and simple arithmetic instructions.
7829 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7830 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7831 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7832 modes to use pre-decrement and post-increment addressing.
7833 (rx_is_restricted_memory_address): Add range checking of REG+INT
7835 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7836 (rx_memory_move_cost): Adjust cost of stores.
7837 (rx_adjust_insn_length): New function.
7839 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7842 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7843 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7844 matching arg00/arg01 types.
7846 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7848 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7849 last_location to UNKNOWN_LOCATION.
7851 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7854 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7857 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7858 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7861 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7863 (sparc_cpu): Likewise.
7864 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7867 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7871 PR rtl-optimization/48345
7872 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7873 hard regs for given mode from profitable regs when doing secondary
7876 2011-03-29 Jeff Law <law@redhat.com>
7879 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7880 do_not_duplicate field.
7881 (lookup_redirection_data): Corresponding changes.
7882 (create_duplicates): Always create a template block.
7883 (redirect_edges): Remove code which reused the original block
7884 when it was going to become unreachable code.
7885 (thread_block): Don't set do_not_duplicate field.
7887 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7889 * lto-opts.c (register_user_option_p, lto_register_user_option):
7890 Make type argument unsigned.
7891 * lto-streamer.h (lto_register_user_option): Make type argument
7893 * opth-gen.awk: Make CL_* macros unsigned.
7894 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7895 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7896 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7897 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7898 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7899 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7900 (find_opt): Make lang_mask argument unsigned.
7902 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7904 PR rtl-optimization/48331
7905 PR rtl-optimization/48334
7906 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7907 for any used algorithm.
7909 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7911 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7914 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7916 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7917 (alpha_option_override): Don't set alpha_sr_alias_set.
7918 (emit_frame_store_1): Use gen_frame_mem rather than calling
7920 (alpha_expand_epilogue): Ditto.
7922 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7924 PR tree-optimization/48290
7925 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7926 vectorization, check that relevant phis in the basic block after
7927 the inner loop are really inner loop's exit phis.
7929 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7932 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7933 (cached_dw_loc_list_def): New structure.
7934 (cached_dw_loc_list): New typedef.
7935 (cached_dw_loc_list_table): New variable.
7936 (cached_dw_loc_list_table_hash): New function.
7937 (cached_dw_loc_list_table_eq): Likewise.
7938 (add_location_or_const_value_attribute): Take a bool cache_p.
7939 Cache the list when the parameter is true.
7940 (gen_formal_parameter_die): Update caller.
7941 (gen_variable_die): Likewise.
7942 (dwarf2out_finish): Likewise.
7943 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7944 while generating debug info for the decl.
7945 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7946 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7947 (resolve_addr): Cache the result of resolving a chain of
7950 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7952 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7953 conflict object hard regset nodes have intersecting hard reg sets.
7955 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7956 after regstat_init_n_sets_and_refs.
7958 * ira.c: Add more comments at the top.
7959 (setup_stack_reg_pressure_class, setup_pressure_classes):
7960 Add comments how we compute the register pressure classes.
7961 (setup_allocno_and_important_classes): Add more comments.
7962 (setup_class_translate_array, reorder_important_classes)
7963 (setup_reg_class_relations): Add comments.
7965 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7968 * ira-color.c: Add 2011 to the Copyright line.
7969 (assign_hard_reg): Add more comments.
7970 (improve_allocation): Ditto.
7972 * ira-costs.c: Add 2011 to the Copyright line.
7973 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7975 (setup_regno_cost_classes_by_mode): Ditto.
7977 Initial patches from ira-improv branch:
7979 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7981 * ira-build.c (ira_create_object): Remove initialization of
7982 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7983 (ira_create_allocno): Remove initialization of
7984 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7985 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7986 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7987 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7988 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7989 Initialize ALLOCNO_ADD_DATA.
7990 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7991 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7993 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7994 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7996 * ira.c (ira_reallocate): Remove.
7997 (setup_pressure_classes): Call
7998 ira_init_register_move_cost_if_necessary. Use
7999 ira_register_move_cost instead of ira_get_register_move_cost.
8000 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8001 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8003 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8004 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8005 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8006 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8007 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8008 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8010 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8011 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8012 (struct allocno_color_data): New.
8013 (allocno_color_data_t): New typedef.
8014 (allocno_color_data): New definition.
8015 (ALLOCNO_COLOR_DATA): New macro.
8016 (struct object_color_data): New.
8017 (object_color_data_t): New typedef.
8018 (object_color_data): New definition.
8019 (OBJECT_COLOR_DATA): New macro.
8020 (update_copy_costs, calculate_allocno_spill_cost): Call
8021 ira_init_register_move_cost_if_necessary. Use
8022 ira_register_move_cost instead of ira_get_register_move_cost.
8023 (move_spill_restore, update_curr_costs): Ditto.
8024 (allocno_spill_priority): Make it inline.
8025 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8026 (struct coalesce_data, coalesce_data_t): New.
8027 (allocno_coalesce_data): New definition.
8028 (ALLOCNO_COALESCE_DATA): New macro.
8029 (merge_allocnos, coalesced_allocno_conflict_p): Use
8030 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8031 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8032 (coalesce_allocnos): Ditto.
8033 (setup_coalesced_allocno_costs_and_nums): Ditto.
8034 (collect_spilled_coalesced_allocnos): Ditto.
8035 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8036 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8037 (coalesce_spill_slots): Ditto.
8038 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8039 free allocno_coalesce_data.
8041 * ira-conflicts.c: Fix formatting.
8042 (process_regs_for_copy): Call
8043 ira_init_register_move_cost_if_necessary. Use
8044 ira_register_move_cost instead of ira_get_register_move_cost.
8045 (build_object_conflicts): Optimize.
8047 * ira-costs.c (record_reg_classes): Optimize. Call
8048 ira_init_register_move_cost_if_necessary. Use
8049 ira_register_move_cost, ira_may_move_in_cost, and
8050 ira_may_move_out_cost instead of ira_get_register_move_cost and
8051 ira_get_may_move_cost.
8052 (record_address_regs): Ditto.
8053 (scan_one_insn): Optimize.
8054 (find_costs_and_classes): Optimize.
8055 (process_bb_node_for_hard_reg_moves): Call
8056 ira_init_register_move_cost_if_necessary. Use
8057 ira_register_move_cost instead of ira_get_register_move_cost.
8059 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8060 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8061 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8062 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8064 (ira_initiate_emit_data, ira_finish_emit_data)
8065 (create_new_allocno): New functions.
8066 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8067 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8068 Use ira_register_move_cost instead of ira_get_register_move_cost.
8070 * ira-int.h: Fix some comments.
8071 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8072 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8073 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8074 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8076 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8077 bitfield after mode. Make hard_regno a short int. Make
8078 hard_regno short. Remove first_coalesced_allocno and
8079 next_coalesced_allocno. Move mem_optimized_dest_p,
8080 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8081 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8082 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8083 temp, colorable_p. Add new member add_data.
8084 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8085 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8086 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8087 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8088 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8089 (ALLOCNO_ADD_DATA): New macro.
8090 (ira_emit_data_t): New typedef.
8091 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8092 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8093 from struct ira_allocno.
8094 (ALLOCNO_EMIT_DATA): New macro.
8095 (ira_allocno_emit_data, allocno_emit_reg): New.
8096 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8097 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8098 (OBJECT_ADD_DATA): New macro.
8099 (ira_reallocate): Remove.
8100 (ira_initiate_emit_data, ira_finish_emit_data): New.
8101 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8102 (ira_init_register_move_cost_if_necessary): New.
8103 (ira_object_conflict_iter_next): Merge into
8104 ira_object_conflict_iter_cond.
8105 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8107 * ira-live.c (process_single_reg_class_operands): Call
8108 ira_init_register_move_cost_if_necessary. Use
8109 ira_register_move_cost instead of ira_get_register_move_cost.
8111 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8113 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8115 * ira-costs.c: Fix formatting.
8116 (cost_classes, cost_classes_num): Remove.
8117 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8118 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8119 (cost_classes_del, cost_classes_htab): New.
8120 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8121 (initiate_regno_cost_classes, setup_cost_classes): New.
8122 (setup_regno_cost_classes_by_aclass): New.
8123 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8124 (record_reg_classes): Use regno_cost_classes instead of
8125 cost_classes. Move checking opposite operand up.
8126 (record_address_regs): Use regno_cost_classes
8127 instead of cost_classes.
8128 (scan_one_insn): Ditto. Use always general register.
8129 (print_allocno_costs): Use regno_cost_classes instead of
8131 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8132 (find_costs_and_classes): Set up cost classes for each registers.
8133 Use also their mode for this. Use regno_cost_classes instead of
8135 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8137 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8138 (ira_costs, ira_set_pseudo_classes): Call
8139 initiate_regno_cost_classes and finish_regno_cost_classes.
8141 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8143 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8145 * target.def (ira_cover_classes): Remove.
8147 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8149 * doc/tm.texi.in: Ditto.
8151 * ira-conflicts.c: Remove mentioning cover classes from the file.
8152 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8153 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8155 * targhooks.c (default_ira_cover_classes): Remove.
8157 * targhooks.h (default_ira_cover_classes): Ditto.
8159 * haifa-sched.c: Remove mentioning cover classes from the file.
8160 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8161 ira_pressure_classes and ira_pressure_classes_num instead of
8162 ira_reg_class_cover_size and ira_reg_class_cover. Use
8163 sched_regno_pressure_class instead of sched_regno_cover_class.
8164 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8165 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8167 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8168 classes from the file.
8169 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8170 (struct object_hard_regs, struct object_hard_regs_node): New.
8171 (struct ira_object): New members profitable_hard_regs,
8172 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8173 (struct ira_allocno): Rename cover_class to aclass. Rename
8174 cover_class_cost and updated_cover_class_cost to class_cost and
8175 updated_class_cost. Remove splay_removed_p and
8176 left_conflict_size. Add new members colorable_p.
8177 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8178 (ALLOCNO_COLORABLE_P): New macro.
8179 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8180 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8181 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8182 (OBJECT_...): Rename parameter C to O.
8183 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8184 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8185 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8186 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8187 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8188 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8189 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8190 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8191 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8192 x_ira_reg_class_subunion.
8193 (ira_max_memory_move_cost, ira_max_register_move_cost)
8194 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8195 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8196 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8197 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8198 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8199 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8200 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8201 (ira_tune_allocno_costs_and_cover_classes): Rename to
8202 ira_tune_allocno_costs.
8203 (ira_debug_hard_regs_forest): New.
8204 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8205 (ira_object_conflict_iter_next): Fix comments.
8206 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8207 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8208 cover_class to aclass.
8209 (ira_allocate_and_accumulate_costs): Ditto.
8210 (ira_allocate_and_set_or_copy_costs): Ditto.
8212 * opts.c (decode_options): Remove ira_cover_class check.
8214 * ira-color.c: Remove mentioning cover classes from the file. Use
8215 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8216 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8217 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8218 (splay-tree.h): Remove include.
8219 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8220 before copy_freq_compare_func.
8221 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8222 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8224 (hard_regs_roots, hard_regs_node_vec): Ditto.
8225 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8226 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8227 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8228 (create_new_object_hard_regs_node): Ditto.
8229 (add_new_object_hard_regs_node_to_forest): Ditto.
8230 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8231 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8233 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8234 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8235 (remove_unused_object_hard_regs_nodes): Ditto.
8236 (enumerate_object_hard_regs_nodes): Ditto.
8237 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8238 (object_hard_regs_subnode_t): Ditto.
8239 (struct object_hard_regs_subnode): Ditto.
8240 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8241 (setup_object_hard_regs_subnode_index): Ditto.
8242 (get_object_hard_regs_subnodes_num): Ditto.
8243 (form_object_hard_regs_nodes_forest): Ditto.
8244 (finish_object_hard_regs_nodes_tree): Ditto.
8245 (finish_object_hard_regs_nodes_forest): Ditto.
8246 (allocnos_have_intersected_live_ranges_p): Rename to
8247 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8248 (pseudos_have_intersected_live_ranges_p): Rename to
8249 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8250 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8251 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8252 (update_copy_costs): Remove assert. Skip cost update if the hard
8253 reg does not belong the class.
8254 (assign_hard_reg): Process only profitable hard regs.
8255 (uncolorable_allocnos_num): Make it scalar.
8256 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8257 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8258 and ira_reg_class_max_nregs.
8259 (bucket_allocno_compare_func): Check frequency first.
8260 (sort_bucket): Add compare function as a parameter.
8261 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8262 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8263 (push_allocno_to_stack): Rewrite for checking new allocno
8265 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8266 (push_only_colorable): Pass new parameter to sort_bucket.
8267 (push_allocno_to_spill): Remove.
8268 (allocno_spill_priority_compare): Make it inline and rewrite.
8269 (splay_tree_allocate, splay_tree_free): Remove.
8270 (allocno_spill_sort_compare): New function.
8271 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8272 build and use splay tree. Choose first allocno in uncolorable
8273 allocno bucket to spill. Remove setting spill cost.
8274 (all_conflicting_hard_regs): Remove.
8275 (setup_allocno_available_regs_num): Check only profitable hard
8276 regs. Print info about hard regs nodes.
8277 (setup_allocno_left_conflicts_size): Remove.
8278 (put_allocno_into_bucket): Don't call
8279 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8280 (improve_allocation): New.
8281 (color_allocnos): Call setup_profitable_hard_regs,
8282 form_object_hard_regs_nodes_forest, improve_allocation,
8283 finish_object_hard_regs_nodes_forest. Setup spill cost.
8284 (print_loop_title): Use pressure classes.
8285 (color_allocnso): Ditto.
8286 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8287 and allocnos_for_spilling.
8288 (ira_sort_regnos_for_alter_reg): Don't setup members
8289 {first,next}_coalesced_allocno.
8290 (color): Remove allocating and freeing removed_splay_allocno_vec.
8291 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8292 prohibited_class_mode_regs.
8294 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8296 (update_allocno_pressure_excess_length): Use pressure classes.
8297 (inc_register_pressure, dec_register_pressure): Check for pressure
8299 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8300 pressure class. Use ira_reg_class_nregs instead of
8301 ira_reg_class_max_nregs.
8302 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8303 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8304 (single_reg_class): Use ira_reg_class_nregs instead of
8305 ira_reg_class_max_nregs.
8306 (process_bb_node_lives): Use pressure classes.
8308 * ira-emit.c: Remove mentioning cover classes from the file. Use
8309 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8310 (change_loop): Use pressure classes.
8311 (modify_move_list): Call ira_set_allocno_class instead of
8312 ira_set_allocno_cover_class.
8314 * ira-build.c: Remove mentioning cover classes from the file. Use
8315 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8316 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8317 ALLOCNO_UPDATED_CLASS_COST instead of
8318 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8319 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8320 (ira_create_allocno): Remove initialization of
8321 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8322 ALLOCNO_COLORABLE_P.
8323 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8324 Update conflict regs for the objects.
8325 (create_cap_allocno): Remove assert. Don't propagate
8326 ALLOCNO_AVAILABLE_REGS_NUM.
8327 (ira_free_allocno_costs): New function.
8328 (finish_allocno): Change a part of code into call of
8329 ira_free_allocno_costs.
8330 (low_pressure_loop_node_p): Use pressure classes.
8331 (object_range_compare_func): Don't compare classes.
8332 (setup_min_max_conflict_allocno_ids): Ditto.
8334 * loop-invariant.c: Remove mentioning cover classes from the file.
8335 Use ira_pressure_classes and ira_pressure_classes_num instead of
8336 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8337 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8338 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8339 Use reg_allocno_class instead of reg_cover_class.
8340 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8341 STACK_REG_COVER_CLASS.
8342 (get_regno_cover_class): Rename to get_regno_pressure_class.
8343 (move_loop_invariants): Initialize and finalize regstat.
8345 * ira.c: Remove mentioning cover classes from the file. Add
8346 comments about coloring without cover classes. Use ALLOCNO_CLASS
8347 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8348 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8349 setup_class_subset_and_memory_move_costs.
8350 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8351 (setup_cover_and_important_classes): Rename to
8352 setup_allocno_and_important_classes.
8353 (setup_class_translate_array): New.
8354 (setup_class_translate): Call it for allocno and pressure classes.
8355 (cover_class_order): Rename to allocno_class_order.
8356 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8357 of ira_class_translate.
8358 (reorder_important_classes): Set up ira_important_class_nums.
8359 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8360 (print_class_cover): Rename to print_classes. Add parameter.
8361 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8362 Print pressure classes too.
8363 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8364 setup_reg_subclasses.
8365 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8366 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8367 (setup_prohibited_class_mode_regs): Use
8368 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8369 (clarify_prohibited_class_mode_regs): New function.
8370 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8371 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8372 (ira_init_once): Initialize them.
8373 (free_register_move_costs): Process them.
8374 (ira_init): Move calls of find_reg_classes and
8375 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8376 Call clarify_prohibited_class_mode_regs.
8377 (ira_no_alloc_reg): Remove.
8378 (too_high_register_pressure_p): Use pressure classes.
8380 * sched-deps.c: Remove mentioning cover classes from the file.
8381 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8382 ira_pressure_classes and ira_pressure_classes_num instead of
8383 ira_reg_class_cover_size and ira_reg_class_cover.
8384 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8385 sched_regno_pressure_class instead of sched_regno_cover_class.
8386 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8387 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8389 * ira.h: Add 2010 to Copyright.
8390 (ira_no_alloc_reg): Remove external.
8391 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8392 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8393 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8394 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8395 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8396 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8397 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8398 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8399 x_ira_no_alloc_regs.
8400 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8401 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8402 ira_allocno_classes_num and ira_allocno_classes.
8403 (ira_class_translate): Rename to ira_allocno_class_translate.
8404 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8405 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8406 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8407 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8408 (ira_no_alloc_regs): New.
8410 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8411 classes from the file. Use ALLOCNO_CLASS instead of
8412 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8413 ALLOCNO_COVER_CLASS_COST.
8414 (regno_cover_class): Rename to regno_aclass.
8415 (record_reg_classes): Use ira_reg_class_subunion instead of
8416 ira_reg_class_union.
8417 (record_address_regs): Check overflow.
8418 (scan_one_insn): Ditto.
8419 (print_allocno_costs): Print total mem cost fore regional allocation.
8420 (print_pseudo_costs): Use REG_N_REFS.
8421 (find_costs_and_classes): Use classes intersected with them on the
8422 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8423 ira_reg_class_union. Use ira_allocno_class_translate and
8424 regno_aclass instead of ira_class_translate and regno_cover_class.
8425 Modify code for finding regno_aclass. Setup preferred classes for
8427 (setup_allocno_cover_class_and_costs): Rename to
8428 setup_allocno_class_and_costs. Use regno_aclass instead of
8429 regno_cover_class. Use ira_set_allocno_class instead of
8430 ira_set_allocno_cover_class.
8431 (init_costs, finish_costs): Use regno_aclass instead of
8433 (ira_costs): Use setup_allocno_class_and_costs instead of
8434 setup_allocno_cover_class_and_costs.
8435 (ira_tune_allocno_costs_and_cover_classes): Rename to
8436 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8437 by processing objects. Use ira_reg_class_max_nregs instead of
8438 ira_reg_class_nregs.
8440 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8442 * sched-int.h: Remove mentioning cover classes from the file.
8443 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8445 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8446 classes from the file.
8447 (struct reg_pref): Rename coverclass into allocnoclass.
8448 (reg_cover_class): Rename to reg_allocno_class.
8450 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8452 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8454 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8456 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8458 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8460 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8462 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8464 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8466 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8468 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8470 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8471 (i386_ira_cover_classes): Ditto.
8473 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8475 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8477 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8479 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8481 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8483 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8485 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8486 (mips_ira_cover_classes): Ditto.
8488 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8490 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8492 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8494 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8496 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8498 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8499 (IRA_COVER_CLASSES_VSX): Ditto.
8501 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8502 (rs6000_ira_cover_classes): Ditto.
8504 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8506 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8508 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8510 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8512 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8514 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8516 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8518 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8520 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8522 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8524 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8527 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8528 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8529 dw_fde_unlikely_section_end_label, cold_in_std_section,
8530 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8531 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8533 (output_fde): Use dw_fde_second_{begin,end} if second is
8534 true, otherwise dw_fde_{begin,end}.
8535 (output_call_frame_info): Test dw_fde_second_begin != NULL
8536 instead of dw_fde_switched_sections.
8537 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8538 fields, initialize new fields. Initialize in_std_section
8539 unconditionally from the first partition.
8540 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8541 dw_fde_second_begin is non-NULL.
8542 (dwarf2out_switch_text_section): Stop initializing removed
8543 dw_fde_struct fields, initialize new fields, initialize
8544 also dw_fde_end here. Set dw_fde_switch_cfi even when
8545 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8546 (struct var_loc_list_def): Add last_before_switch field.
8547 (arange_table, arange_table_allocated, arange_table_in_use,
8548 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8549 (size_of_aranges): Count !in_std_section and !second_in_std_section
8550 hunks in fdes, instead of looking at arange_table_in_use.
8551 (output_aranges): Add aranges_length argument, don't call
8552 size_of_aranges here. Instead of using aranges_table*
8553 emit ranges for fdes when !in_std_section resp.
8554 !second_in_std_section.
8555 (dw_loc_list): Break ranges crossing section switch.
8556 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8557 use dw_fde_second_end instead of dw_fde_end as end of last range.
8558 (gen_subprogram_die): Don't call add_arange. Use
8559 dw_fde_{begin,end} for first partition and if switched
8560 section dw_fde_second_{begin,end} for the second.
8561 (var_location_switch_text_section_1,
8562 var_location_switch_text_section): New functions.
8563 (dwarf2out_begin_function): Initialize cold_text_section even
8564 when function_section () isn't text_section.
8565 (prune_unused_types): Don't walk arange_table.
8566 (dwarf2out_finish): Don't needlessly test
8567 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8568 If info_section_emitted, call size_of_aranges and if it indicates
8569 non-empty .debug_aranges, call output_aranges with the computed
8570 size. Stop using removed dw_fde_struct fields, use
8571 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8575 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8576 create ENTRY_VALUE if incoming or address of incoming's MEM
8578 * dwarf2out.c (mem_loc_descriptor): Don't emit
8579 DW_OP_GNU_entry_value of DW_OP_fbreg.
8580 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8581 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8582 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8583 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8585 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8586 is a REG_P or MEM_P with REG_P address, compute hash directly
8587 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8588 (preserve_only_constants): Don't clear VALUES forwaring
8589 ENTRY_VALUE to some other VALUE.
8591 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8593 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8596 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8598 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8599 block before expanding the statement.
8600 (expand_gimple_stmt_1): Likewise. Set them here...
8601 (expand_gimple_stmt): ...and not here. Tidy.
8602 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8605 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8607 * Makefile.in: New rule for cprop.o.
8608 * gcse.c: Move constant/copy propagation to cprop.c.
8609 (compute_local_properties): Only handle expression tables.
8610 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8611 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8612 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8613 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8614 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8615 compute_cprop_data, find_used_regs, try_replace_reg,
8616 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8617 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8618 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8619 find_bypass_set, reg_killed_on_edge, bypass_block,
8620 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8621 execute_rtl_cprop, pass_rtl_cprop): Move to...
8622 * cprop.c: ...here. New file, constant/copy propagation for RTL
8623 moved from gcse.c to here with minor cleanups in duplicated code.
8625 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8627 * config/i386/i386.c (flag_opts): Fix a typo in
8628 -mavx256-split-unaligned-store.
8630 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8632 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8633 LIBCALL_VALUE): Remove macros.
8634 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8635 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8636 (h8300_function_value, h8300_libcall_value,
8637 h8300_function_value_regno_p): New functions.
8639 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8641 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8643 2011-03-28 Jeff Law <law@redhat.com>
8645 * tree-ssa-threadupdate.c (redirect_edges): Call
8646 create_edge_and_update_destination_phis as needed.
8647 (create_edge_and_update_destination_phis): Accept new BB argument.
8648 All callers updated.
8649 (thread_block): Do not update the profile when threading around
8650 intermediate blocks.
8651 (thread_single_edge): Likewise.
8652 (determine_bb_domination_status): If BB is not a successor of the
8653 loop header, return NONDOMINATING.
8654 (register_jump_thread): Note when we register a jump thread around
8655 an intermediate block.
8656 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8657 (thread_across_edge): Use it.
8659 2011-03-28 Tristan Gingold <gingold@adacore.com>
8661 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8662 when for_return is 2.
8664 2011-03-28 Jeff Law <law@redhat.com>
8666 * var-tracking.c (canonicalize_values_mark): Delete unused
8668 (canonicalize_values_star, set_variable_part): Likewise.
8669 (clobber_variable_part, delete_variable_part): Likewise.
8671 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8673 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8675 2011-03-28 Martin Jambor <mjambor@suse.cz>
8677 * tree-inline.c (expand_call_inline): Do not check that destination
8679 (optimize_inline_calls): Assert that destination node is analyzed.
8680 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8681 not call tree_lowering_passes.
8682 * cgraph.h (cgraph_analyze_function): Declare.
8683 * cgraphunit.c (cgraph_analyze_function): Make public.
8685 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8687 * config/sparc/sparc-opts.h: New.
8688 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8689 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8690 (sparc_option_override): Store processor_type enumeration rather
8691 than string in cpu_default. Remove name and enumeration from
8692 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8693 without using sparc_select. Use target_flags_explicit instead of
8695 * config/sparc/sparc.h (enum processor_type): Move to
8697 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8698 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8699 HeaderInclude entry.
8700 (mcpu=, mtune=): Use Var and Enum.
8701 (sparc_processor_type): New Enum and EnumValue entries.
8703 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8704 Iain Sandoe <iains@gcc.gnu.org>
8707 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8709 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8711 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8712 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8713 Insert new statements at it in lieu of STMT.
8714 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8715 * tree-vect-stmts.c (vectorizable_store): Likewise.
8716 (vectorizable_load): Likewise.
8718 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8720 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8725 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8727 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8728 unaligned 256bit load/store.
8729 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8730 (*avx_movdqu<avxmodesuffix>): Likewise.
8732 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8735 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8736 * config/pa/pa.md (iordi3): Use new predicate in expander.
8739 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8741 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8742 FUNCTION_VALUE_REGNO_P): Remove macros.
8743 * config/mips/mips-protos.h (mips_function_value): Remove.
8744 * config/mips/mips.c (mips_function_value): Rename to...
8745 (mips_function_value_1): ... this. Make static. Handle receiving
8746 the function type in 'fn_decl_or_type' argument.
8747 (mips_function_value, mips_libcall_value,
8748 mips_function_value_regno_p): New function.
8749 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8750 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8752 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8754 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8755 and -mavx256-split-unaligned-store.
8756 (ix86_option_override_internal): Split 32-byte AVX unaligned
8757 load/store by default.
8758 (ix86_avx256_split_vector_move_misalign): New.
8759 (ix86_expand_vector_move_misalign): Use it.
8761 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8762 -mavx256-split-unaligned-store.
8764 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8765 256bit load/store. Generate unaligned store on misaligned memory
8767 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8769 (*avx_movdqu<avxmodesuffix>): Likewise.
8771 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8772 -mavx256-split-unaligned-store.
8774 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8777 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8780 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8782 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8783 opno arguments with an expand_operand. Use create_input_operand.
8784 (mips_prepare_builtin_target): Delete.
8785 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8787 (mips_expand_builtin_direct): Use create_output_operand and
8788 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8789 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8790 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8792 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8794 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8796 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8798 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8800 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8801 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8802 basic blocks and call commit_edge_insertions directly.
8803 (fixup_abnormal_edges): Move from here to...
8804 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8805 on the edges and return whether some have actually been inserted.
8806 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8809 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8811 PR rtl-optimization/48144
8812 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8813 (merge_expr_data): ... here.
8814 (av_set_intersect): Rename to av_set_code_motion_filter.
8815 Update all callers. Call merge_history_vect when an expression
8816 is found in both sets.
8817 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8819 2011-03-26 Alan Modra <amodra@gmail.com>
8821 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8822 cmodel medium addresses.
8823 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8824 64-bit gpr loads and stores.
8825 (rs6000_secondary_reload_ppc64): New function.
8826 * config/rs6000/rs6000-protos.h: Declare it.
8827 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8829 2011-03-26 Alan Modra <amodra@gmail.com>
8832 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8833 GNU Go in traceback table.
8835 2011-03-25 Richard Henderson <rth@redhat.com>
8837 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8838 if there are exactly 6 operands.
8839 (set_storage_via_setmem): Similarly.
8841 2011-03-25 Kai Tietz <ktietz@redhat.com>
8843 * collect2.c (write_c_file_stat): Handle backslash
8844 as right-hand directory separator.
8845 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8846 checking just for slash.
8847 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8848 instead of checking for trailing slash.
8849 * gcc.c (record_temp_file): Use filename_cmp instead
8851 (do_spec_1): Likewise.
8852 (replace_outfile_spec_function): Likewise.
8853 (is_directory): Use filename_ncmp instead of strncmp.
8854 (print_multilib_info): Likewise.
8855 * gcov.c (find_source): Use filename_cmp instead
8857 (make_gcov_file_name): Fix order of slash/backslash
8859 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8860 (add_standard_paths): Likewise.
8861 * mips-tfile.c (saber_stop): Handle backslash.
8862 * prefix.c (update_path): Use filename_ncmp instead of
8864 * profile.c (output_location): Use filename_cmp instead
8866 * read-md.c (handle_toplevel_file): Handle backslash.
8867 * tlink.c (frob_extension): Likewise.
8868 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8870 * tree-dump.c (dequeue_and_dump): Handle backslash.
8871 * tree.c (get_file_function_name): Likewise.
8872 * gengtype.c (read_input_list): Likewise.
8873 (get_file_realbasename): Likewise.
8874 (get_output_file_with_visibility): Use filename_cmp
8877 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8879 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8882 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8884 * fold-const.c (expr_location_or): New function.
8885 (fold_truth_not_expr): Call it.
8887 2011-03-25 Jeff Law <law@redhat.com>
8889 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8891 * c-family/c-common.c (def_fn_type): Likewise.
8892 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8893 * emit-rtl.c (gen_rtvec): Likewise.
8894 * lto/lto-lang.c (def_fn_type): Likewise.
8896 2011-03-25 Richard Guenther <rguenther@suse.de>
8898 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8899 also generate copies.
8900 (fini_copy_prop): Handle constant values properly.
8902 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8904 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8905 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8906 (hash_loc_operands, compare_loc_operands): Handle
8907 DW_OP_GNU_entry_value.
8909 2011-03-25 Kai Tietz <ktietz@redhat.com>
8911 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8912 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8913 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8914 comment and use macro TARGET_64BIT_MS_ABI instead.
8915 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8916 and change default behavior for 32-bit MS_ABI.
8917 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8918 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8920 (ix86_cfun_abi): Likewise.
8921 (ix86_maybe_switch_abi): Adjust comment.
8922 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8923 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8924 instead of checking for SYSV_ABI.
8925 (ix86_nsaved_sseregs): Likewise.
8926 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8928 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8929 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8930 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8931 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8932 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8934 2011-03-25 Richard Guenther <rguenther@suse.de>
8936 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8937 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8938 (verify_gimple): Remove.
8939 * tree-cfg.c (verify_gimple_call): Merge verification
8941 (verify_gimple_phi): Merge verification from verify_stmts.
8942 (verify_gimple_label): New function.
8943 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8944 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8945 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8946 (verify_stmts): Rename to verify_gimple_in_cfg.
8947 (verify_gimple_in_cfg): New function.
8948 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8949 * tree-ssa.c (verify_ssa): Likewise.
8950 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8952 2011-03-25 Richard Guenther <rguenther@suse.de>
8954 * passes.c (init_optimization_passes): Add FRE pass after
8957 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8958 Andrew Stubbs <ams@codesourcery.com>
8960 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8962 (arm_movdi_vfp_cortexa8): New pattern.
8963 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8964 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8965 instructions when tuning for Cortex-A8. Set attribute "arch".
8966 * config/arm/arm.md: Move include arm-tune.md up a bit.
8967 (define_attr "arch"): Add "onlya8" and "nota8" values.
8968 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8970 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8974 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8976 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8977 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8978 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8979 * passes.c (init_optimization_passes): Move
8980 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8982 2011-03-25 Kai Tietz <ktietz@redhat.com>
8984 * c-typeck.c (comptypes_internal): Replace target
8985 hook call of comp_type_attributes by version in tree.c file.
8986 * gimple.c (gimple_types_compatible_p_1): Likewise.
8987 * tree-ssa.c (useless_type_conversion_p): Likewise.
8988 * tree.c (build_type_attribute_qual_variant): Likewise.
8989 (attribute_value_equal): New static helper function.
8990 (comp_type_attributes): New function.
8991 (merge_attributes): Use attribute_value_equal for comparison.
8992 (attribute_list_contained): Likewise.
8993 * tree.h (comp_type_attributes): New prototype.
8995 2011-03-25 Richard Guenther <rguenther@suse.de>
8997 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8998 of complex types at -O0.
8999 (verify_gimple_assign_binary): Likewise.
9000 (verify_gimple_assign_ternary): Likewise.
9002 2011-03-24 Mark Wielaard <mjw@redhat.com>
9004 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9005 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9007 2011-03-24 Mark Wielaard <mjw@redhat.com>
9010 * dwarf2out.c (output_abbrev_section): Only write table when
9011 abbrev_die_table_in_use > 1.
9013 2011-02-24 Richard Henderson <rth@redhat.com>
9015 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9016 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9017 (alpha_expand_unaligned_load_words): Use extql.
9018 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9019 (emit_insxl): Handle all modes for consistency.
9021 2011-02-24 Richard Henderson <rth@redhat.com>
9023 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9024 (alpha_expand_unaligned_load): Likewise.
9025 (alpha_expand_unaligned_store): Likewise.
9026 (alpha_expand_unaligned_load_words): Likewise.
9027 (alpha_expand_unaligned_store_words): Likewise.
9028 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9029 (alpha_split_lock_test_and_set_12): Likewise.
9030 (print_operand, alpha_fold_builtin_extxx): Likewise.
9031 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9032 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9033 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9034 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9035 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9036 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9037 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9038 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9039 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9040 (extwl, extll, extql): Similarly.
9041 (inswh, inslh, insqh): Similarly.
9042 (mskbl, mskwl, mskll, mskql): Similarly.
9043 (mskwh, msklh, mskqh): Similarly.
9045 2011-02-24 Richard Henderson <rth@redhat.com>
9047 * config/alpha/alpha.md (attribute isa): Add er, ner.
9048 (attribute enabled): Handle them.
9049 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9051 2011-02-24 Richard Henderson <rth@redhat.com>
9053 * config/alpha/alpha.md (attribute isa): Add vms.
9054 (attribute enabled): Handle it.
9055 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9056 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9057 (*movtf): Rename from *movtf_internal for consistency.
9058 (*movsi): Merge with *movsi_nt_vms.
9059 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9060 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9061 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9062 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9064 2011-02-24 Richard Henderson <rth@redhat.com>
9066 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9067 (extendqisi2, extendhisi2): Likewise.
9068 (extendqidi2): Simplify BWX/non-BWX expansions.
9069 (extendhidi2): Similarly.
9071 2011-02-24 Richard Henderson <rth@redhat.com>
9073 * config/alpha/alpha.md (attribute isa): New.
9074 (attribute enabled): New.
9075 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9076 (zero_extendqisi2, zero_extendqidi2): Similarly.
9077 (zero_extendhisi2, zero_extendhidi2): Similarly.
9078 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9080 2011-02-24 Richard Henderson <rth@redhat.com>
9082 * config/alpha/predicates.md (input_operand): Revert last change;
9083 update comment to mention 32-bit VMS rather than Windows.
9085 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9087 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9088 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9089 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9090 * passes.c (init_optimization_passes): Move
9091 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9093 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9095 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9097 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9099 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9102 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9105 * simplify-rtx.c (simplify_const_unary_operation): Call
9106 real_convert when changing mode class with FLOAT_EXTEND.
9108 2011-03-24 Nick Clifton <nickc@redhat.com>
9110 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9111 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9112 * config/rx/rx.c (rx_option_override): Set align_jumps,
9113 align_loops and align_labels if not set by the user.
9114 (rx_align_for_label): New function.
9115 (rx_max_skip_for_label): New function.
9116 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9117 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9118 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9119 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9120 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9122 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9124 PR rtl-optimization/48263
9125 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9126 and original commutative_p handling. Use maybe_gen_insn.
9128 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9130 * reload.c (find_reloads_subreg_address): Add address_reloaded
9131 parameter and return true there if the full address has been
9133 (find_reloads_toplev): Pass address_reloaded flag.
9134 (find_reloads_address_1): Don't use address_reloaded parameter.
9136 2011-03-24 Jeff Law <law@redhat.com>
9138 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9139 unused variable "ann".
9140 (remove_unused_locals): Likewise.
9142 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9145 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9148 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9150 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9151 for invalid symbolic addresses.
9152 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9155 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9157 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9158 the argument in calls to fold_truth_not_expr.
9160 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9162 * tree.c (record_node_allocation_statistics): New function.
9163 (make_node_stat, copy_node_stat, build_string): Call it.
9164 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9165 (build1_stat, build_omp_clause): Likewise.
9167 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9169 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9172 2011-03-24 Richard Guenther <rguenther@suse.de>
9174 PR tree-optimization/48271
9175 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9176 blocks that still exist.
9178 2011-03-24 Richard Guenther <rguenther@suse.de>
9180 PR tree-optimization/48270
9181 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9182 not free datarefs before ddrs.
9184 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9186 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9187 from the address built for a reference with variable offset.
9189 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9192 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9193 alternatives that can be handled with movq or movabsq insn.
9194 (*movdf_internal): Disable for !TARGET_64BIT.
9195 (*movdf_internal_nointeger): Ditto.
9196 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9198 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9200 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9201 (FUNCTION_ARG_ADVANCE): Likewise.
9202 * tm.texi.in: Change references to them to hook references.
9203 * tm.texi: Regenerate.
9204 * targhooks.c (default_function_arg): Eliminate check for target macro.
9205 (default_function_incoming_arg): Likewise.
9206 (default_function_arg_advance): Likewise.
9207 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9208 (function_arg_advance): Likewise.
9209 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9211 2011-03-24 Richard Guenther <rguenther@suse.de>
9214 * tree-object-size.c (addr_object_size): Do not double-account
9215 for MEM_REF offsets.
9217 2011-03-24 Diego Novillo <dnovillo@google.com>
9219 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9220 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9221 (lto_input_data_block): Move from lto-opts.c. Make extern.
9223 (lto_input_string): Rename from input_string. Make extern.
9225 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9226 output_string_with_length.
9227 Output 0 to indicate a non-NULL string. Update all callers to
9229 (lto_output_string): Rename from output_string. Make extern.
9231 (lto_output_decl_state_streams): Make extern.
9232 (lto_output_decl_state_refs): Make extern.
9233 * lto-streamer.h (lto_input_string): Declare.
9234 (lto_input_data_block): Declare.
9235 (lto_output_string): Declare.
9236 (lto_output_string_with_length): Declare.
9237 (lto_output_decl_state_streams): Declare.
9238 (lto_output_decl_state_refs): Declare.
9240 2011-03-24 Richard Guenther <rguenther@suse.de>
9242 PR tree-optimization/46562
9243 * tree.c (build_invariant_address): New function.
9244 * tree.h (build_invariant_address): Declare.
9245 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9246 a renamed function moved ...
9247 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9248 Take valueization callback parameter.
9249 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9250 * gimple-fold.h: New file.
9251 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9252 (ccp_fold, fold_const_aggregate_ref,
9253 fold_ctor_reference, fold_nonarray_ctor_reference,
9254 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9255 get_base_constructor): Move ...
9256 * gimple-fold.c: ... here.
9257 (gimple_fold_stmt_to_constant_1): New function
9258 split out from ccp_fold. Take a valueization callback parameter.
9259 Valueize all operands.
9260 (gimple_fold_stmt_to_constant): New wrapper function.
9261 (fold_const_aggregate_ref_1): New function split out from
9262 fold_const_aggregate_ref. Take a valueization callback parameter.
9263 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9264 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9265 invariant POINTER_PLUS_EXPRs to invariant form.
9266 (vn_valueize): New function.
9267 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9268 * tree-vrp.c (vrp_valueize): New function.
9269 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9270 to fold statements to constants.
9271 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9272 function declarations.
9273 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9274 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9276 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9278 * config/h8300/predicates.md (jump_address_operand): Fix register
9281 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9283 * doc/invoke.texi (max-stores-to-sink): Document.
9284 * params.h (MAX_STORES_TO_SINK): Define.
9285 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9286 if either vectorization or if-conversion is disabled.
9287 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9288 tree-vect-data-refs.c vect_equal_offsets.
9289 (dr_equal_offsets_p): New function.
9290 (find_data_references_in_bb): Remove static.
9291 * tree-data-ref.h (find_data_references_in_bb): Declare.
9292 (dr_equal_offsets_p): Likewise.
9293 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9294 (vect_drs_dependent_in_basic_block): Update calls to
9296 (vect_check_interleaving): Likewise.
9297 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9298 (cond_if_else_store_replacement): Rename to...
9299 (cond_if_else_store_replacement_1): ... this. Change arguments and
9301 (cond_if_else_store_replacement): New function.
9302 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9303 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9305 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9308 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9309 to subtract lower bound instead of GEN_INT().
9311 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9316 * doc/extend.texi (Alignment): Move section to match order in TOC.
9317 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9318 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9320 2011-03-23 Jeff Law <law@redhat.com>
9322 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9323 before removing the edge.
9325 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9326 it may have been freed by redirect_branch_edge or
9327 redirect_edge_succ_nodup.
9329 2011-03-23 Richard Guenther <rguenther@suse.de>
9331 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9332 (check_va_list_escapes): Likewise.
9333 (check_all_va_list_escapes): Likewise.
9335 2011-03-23 Richard Guenther <rguenther@suse.de>
9337 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9338 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9339 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9340 (alias.o): Likewise.
9341 (ipa-type-escape.o): Remove.
9342 (ipa-struct-reorg.o): Likewise.
9343 (GTFILES): Remove ipa-struct-reorg.c.
9344 * alias.c: Do not include ipa-type-escape.h.
9345 * tree-ssa-alias.c: Likewise.
9346 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9347 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9348 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9349 and ipa-type-escape passes.
9350 * tree-pass.h (pass_ipa_type_escape): Remove.
9351 (pass_ipa_struct_reorg): Likewise.
9352 * ipa-struct-reorg.h: Remove.
9353 * ipa-struct-reorg.c: Likewise.
9354 * ipa-type-escape.h: Likewise.
9355 * ipa-type-escape.c: Likewise.
9356 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9357 (--param struct-reorg-cold-struct-ratio): Likewise.
9358 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9359 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9360 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9362 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9364 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9365 cpu attribute value.
9366 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9367 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9368 * config/s390/s390.c (processor_flags_table): New constant array.
9369 (s390_handle_arch_option): Remove.
9370 (s390_handle_option): Remove s390_handle_arch_option invocations
9371 and OPT_mwarn_framesize_ handling.
9372 (s390_option_override): Remove s390_handle_arch_option invocation.
9373 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9375 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9376 * config/s390/s390.opt (s390_tune, s390_arch)
9377 (march=): Replace s390_arch_option enum and values with
9378 processor_type. Set variable name to s390_arch. Set
9379 initialization value.
9380 (mtune=): Replace s390_arch_option with processor_type. Set
9381 variable name to s390_tune. Set initialization value.
9383 2011-03-23 Julian Brown <julian@codesourcery.com>
9385 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9386 accesses which are not naturally aligned.
9388 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9391 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9393 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9395 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9396 parameter from "int" to "enum insn_code".
9397 (expand_operand_type): New enum.
9398 (expand_operand): New structure.
9399 (create_expand_operand): New function.
9400 (create_fixed_operand, create_output_operand): Likewise
9401 (create_input_operand, create_convert_operand_to): Likewise.
9402 (create_convert_operand_from, create_address_operand): Likewise.
9403 (create_integer_operand): Likewise.
9404 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9405 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9406 (expand_insn, expand_jump_insn): Likewise.
9407 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9408 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9409 (expand_movstr, expand_builtin___clear_cache): Likewise.
9410 (expand_builtin_lock_release): Likewise.
9411 * explow.c (allocate_dynamic_stack_space): Likewise.
9412 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9413 and use the default handling in that case.
9414 * expmed.c (check_predicate_volatile_ok): Delete.
9415 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9416 (emit_cstore): Likewise.
9417 * expr.c (emit_block_move_via_movmem): Likewise.
9418 (set_storage_via_setmem, expand_assignment): Likewise.
9419 (emit_storent_insn, try_casesi): Likewise.
9420 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9421 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9422 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9423 (expand_twoval_unop, expand_twoval_binop): Likewise.
9424 (expand_unop_direct, emit_indirect_jump): Likewise.
9425 (emit_conditional_move, vector_compare_rtx): Likewise.
9426 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9427 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9428 (expand_sync_lock_test_and_set): Likewise.
9429 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9430 (emit_unop_insn): Likewise.
9431 (expand_copysign_absneg): Change icode to an insn_code.
9432 (create_convert_operand_from_type): New function.
9433 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9434 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9435 (expand_insn, expand_jump_insn): Likewise.
9436 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9437 than const_int_operand for operand 2.
9439 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9441 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9444 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9446 * emit-rtl.c (emit_pattern_before_noloc): New function.
9447 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9448 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9449 (emit_pattern_after_noloc): New function.
9450 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9451 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9453 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9455 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9456 (__ffsDI2): Likewise.
9458 2011-03-22 Richard Henderson <rth@redhat.com>
9460 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9461 of !TARGET_ABI_OPEN_VMS.
9462 (alpha_trampoline_init, alpha_start_function): Likewise.
9463 (alpha_expand_epilogue, alpha_file_start): Likewise.
9464 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9465 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9466 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9467 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9468 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9470 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9472 * config/s390/s390-opts.h: New.
9473 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9474 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9475 s390_stack_guard): Remove.
9476 (s390_handle_arch_option): Return void. Take enum
9477 s390_arch_option value instead of string and searching array.
9478 (s390_handle_option): Don't assert that global structures are in
9479 use. Access variables via opts pointer. Use error_at. Don't use
9480 sscanf for -mstack-guard= or -mstack-size=. Update call to
9481 s390_handle_arch_option.
9482 (s390_option_override): Update call to s390_handle_arch_option.
9483 (s390_emit_prologue): Use %d format for s390_stack_size in
9484 diagnostic. Use %wd for HOST_WIDE_INT.
9485 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9486 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9487 * config/s390/s390.opt (config/s390/s390-opts.h): New
9488 HeaderInclude entry.
9489 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9490 s390_arch_flags, s390_warn_framesize): New Variable entries.
9491 (s390_arch_option): New Enum and EnumValue entries.
9492 (march=): Use Enum instead of Var.
9493 (mstack-guard=, mstack-size=): Use UInteger and Var.
9496 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9498 * config/score/score.c (score_handle_option): Don't assert that
9499 global structures are in use. Access target_flags via opts
9500 pointer. Use value of -march= option to determine target_flags
9502 * config/score/score.opt (march=): Use Enum.
9503 (score_arch): New Enum and EnumValue entries.
9505 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9507 * config/mep/mep.c (option_mtiny_specified): Remove.
9508 (mep_option_override): Move register handling for -mivc2 from
9509 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9510 instead of option_mtiny_specified.
9511 (mep_handle_option): Access target_flags via opts pointer. Don't
9512 assert that global structures are in use. Defer part of -mivc2
9513 handling and move it to mep_option_override.
9514 * config/mep/mep.opt (IVC2): New Mask entry.
9515 (mivc2): Use Var and Defer instead of Mask.
9517 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9519 * config/v850/v850-opts.h: New.
9520 * config/v850/v850.c (small_memory): Replace with
9521 small_memory_physical_max array. Make that array static const.
9522 (v850_handle_memory_option): Take integer value of argument. Take
9523 gcc_options pointer, option text and location. Return void.
9524 Update for changes to small memory structures.
9525 (v850_handle_option): Access target_flags via opts pointer. Don't
9526 assert that global structures are in use. Update calls to
9527 v850_handle_memory_option.
9528 (v850_encode_data_area): Update references to small memory settings.
9529 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9530 (enum small_memory_type): Move to v850-opts.h.
9531 * config/v850/v850.opt (config/v850/v850-opts.h): New
9532 HeaderInclude entry.
9533 (small_memory_max): New Variable entry.
9534 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9535 (mtda, mzda): Likewise.
9537 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9539 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9540 pointer. Don't assert that global structures are in use.
9542 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9544 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9545 via opts pointer. Don't assert that global structures are in use.
9547 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9549 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9550 (munix=93): Use Var.
9551 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9552 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9553 * config/pa/pa-opts.h: New.
9554 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9555 (pa_handle_option): Don't assert that global structures are in
9556 use. Access target_flags via opts pointer. Don't handle
9557 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9559 (pa_option_override): Handle deferred OPT_mfixed_range_.
9561 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9563 * config/mn10300/mn10300-opts.h: New.
9564 * config/mn10300/mn10300.c (mn10300_processor,
9565 mn10300_tune_string): Remove.
9566 (mn10300_handle_option): Don't assert that global structures are
9567 in use. Access mn10300_processor via opts pointer. Don't handle
9569 * config/mn10300/mn10300.h (enum processor_type): Move to
9571 (mn10300_processor): Remove.
9572 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9573 HeaderInclude entry.
9574 (mn10300_processor): New Variable entry.
9577 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9579 * config/microblaze/microblaze.c: Don't include opts.h.
9580 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9581 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9582 (mno-clearbss): Use Var and Warn.
9584 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9586 * config/m32r/m32r-opts.h: New.
9587 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9588 (m32r_handle_option): Don't assert that global structures are in
9589 use. Access target_flags and m32r_cache_flush_func via opts
9590 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9591 OPT_mno_flush_trap here.
9592 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9593 include of m32r-opts.h.
9594 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9595 HeaderInclude entry.
9596 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9597 (mmodel=): Use Enum and Var.
9598 (m32r_model): New Enum and EnumValue entries.
9599 (mno-flush-trap): Use Var.
9600 (msdata=): Use Enum and Var.
9601 (m32r_sdata): New Enum and EnumValue entries.
9603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9605 * config/m32c/m32c.c: Don't include opts.h.
9606 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9607 m32c_handle_option): Remove.
9608 (m32c_option_override): Check global_options_set.x_target_memregs
9609 instead of target_memregs_set.
9610 * config/m32c/m32c.h (target_memregs): Remove.
9611 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9614 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9616 * config/iq2000/iq2000-opts.h: New.
9617 * config/iq2000/iq2000.c: Don't include opts.h.
9618 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9619 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9620 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9621 HeaderInclude entry.
9622 (iq2000_tune): New Variable entry.
9623 (march=): Add comment. Use Enum.
9624 (iq2000_arch): New Enum and EnumValue entries.
9625 (mcpu=): Use Enum and Var.
9626 (iq2000_tune): New Enum and EnumValue entries.
9628 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9630 * config/ia64/ia64-opts.h: New.
9631 * config/ia64/ia64.c (ia64_tune): Remove.
9632 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9634 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9635 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9636 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9637 HeaderInclude entry.
9638 (ia64_tune): New Variable entry.
9639 (mfixed-range=): Use Defer and Var.
9640 (mtune=): Use Enum and Var.
9641 (ia64_tune): New Enum and EnumValue entries.
9643 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9645 * config/frv/frv-opts.h: New.
9646 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9648 (frv_cpu_type): Remove.
9649 * config/frv/frv.c: Don't include opts.h.
9650 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9651 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9652 (frv_cpu_type): New Variable entry.
9653 (frv_cpu): New Enum and EnumValue entries.
9655 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9657 * config/cris/cris.c (cris_handle_option): Access target_flags via
9658 opts pointer. Don't assert that global structures are in use.
9659 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9660 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9662 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9664 * config/bfin/bfin-opts.h: New.
9665 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9666 bfin_si_revision, bfin_workarounds): Remove.
9667 (bfin_cpus): Make static const.
9668 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9669 not bfin_lib_id_given.
9670 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9671 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9672 pointer. Use error_at. Don't assert that global structures are in use.
9673 * config/bfin/bfin.h: Include bfin-opts.h.
9674 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9675 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9676 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9677 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9680 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9682 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9683 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9684 or -msoft-float here.
9685 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9686 -msoft-float and -mhard-float.
9687 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9688 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9690 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9692 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9693 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9695 (LIBGCC_SPEC): Don't handle -msoft-float.
9696 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9698 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9700 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9701 -mfloat-abi=*, not -msoft-float and -mhard-float.
9702 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9704 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9705 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9706 mhard-float and msoft-float.
9707 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9708 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9709 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9710 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9712 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9713 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9715 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9717 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9720 2011-03-22 Richard Henderson <rth@redhat.com>
9722 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9723 TARGET_ABI_WINDOWS_NT.
9724 (alpha_output_function_end_prologue): Likewise.
9725 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9726 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9727 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9728 (trap, *movsi_nt_vms): Likewise.
9729 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9730 (*tablejump_osf_nt_internal): Remove.
9731 * config/alpha/predicates.md (input_operand): Only test Pmode.
9733 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9735 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9736 via opts pointer. Use error_at. Don't assert that global
9737 structures are in use.
9739 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9741 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9742 (ix86_handle_option): Access ix86_isa_flags and
9743 ix86_isa_flags_explicit via opts pointer. Don't assert that
9744 global structures are in use.
9745 (ix86_function_specific_save, ix86_function_specific_restore):
9746 Update ix86_isa_flags_explicit field name.
9747 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9748 (ix86_isa_flags_explicit): Rename TargetSave entry to
9749 x_ix86_isa_flags_explicit.
9751 2011-03-22 Richard Henderson <rth@redhat.com>
9753 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9754 (alpha_option_override, direct_return): Likewise.
9755 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9756 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9757 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9758 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9759 (alpha_expand_epilogue, alpha_end_function): Likewise.
9760 (alpha_init_libfuncs): Likewise.
9761 (struct machine_function): Remove unicosmk members.
9762 (print_operand) ['t']: Remove.
9763 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9764 unicosmk_output_module_name, unicosmk_output_common,
9765 current_section_align, unicosmk_output_text_section_asm_op,
9766 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9767 unicosmk_section_type_flags, unicosmk_unique_section,
9768 unicosmk_asm_named_section, unicosmk_insert_attributes,
9769 unicosmk_output_align, unicosmk_defer_case_vector,
9770 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9771 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9772 unicosmk_output_ssib, unicosmk_add_call_info_word,
9773 unicosmk_extern_head, unicosmk_output_default_externs,
9774 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9775 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9776 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9777 * config/alpha/alpha-protos.h: Update.
9778 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9779 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9780 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9781 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9782 (*mulsi_se, mulvsi3): Likewise.
9783 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9784 (*divmodsi_internal, call, call_value, realign): Likewise.
9785 (moddi3, umoddi3): Likewise; remove duplicate expander.
9786 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9787 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9788 (*movdi_nofix): Remove r/U alternative.
9789 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9790 * config/alpha/constraints.md ("U"): Remove.
9791 * config/alpha/predicates.md (call_operand"): Don't test
9792 TARGET_ABI_UNICOSMK.
9794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9796 * target.def (handle_option): Take gcc_options and
9797 cl_decoded_option pointers and location_t.
9798 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9799 * doc/tm.texi: Regenerate.
9800 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9801 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9802 * lto-opts.c (lto_reissue_options): Generate option structure for
9803 targetm.handle_option call.
9804 * opts.c (target_handle_option): Update call to
9805 targetm.handle_option. Remove assertions about values now passed
9807 * targhooks.c (default_target_handle_option): New.
9808 * targhooks.h (default_target_handle_option): Declare.
9809 * config/alpha/alpha.c: Include opts.h.
9810 (alpha_handle_option): Update to new hook interface.
9811 * config/arm/arm.c: Include opts.h.
9812 (arm_handle_option): Update to new hook interface.
9813 * config/arm/t-arm (arm.o): Update dependencies.
9814 * config/bfin/bfin.c: Include opts.h.
9815 (bfin_handle_option): Update to new hook interface.
9816 * config/cris/cris.c: Include opts.h.
9817 (cris_handle_option): Update to new hook interface.
9818 * config/frv/frv.c: Include opts.h.
9819 (frv_handle_option): Update to new hook interface.
9820 * config/i386/i386.c: Include opts.h.
9821 (ix86_handle_option): Update to new hook interface.
9822 (ix86_valid_target_attribute_inner_p): Generate option structure
9823 for call to ix86_handle_option.
9824 * config/i386/t-i386 (i386.o): Update dependencies.
9825 * config/ia64/ia64.c: Include opts.h.
9826 (ia64_handle_option): Update to new hook interface.
9827 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9828 * config/iq2000/iq2000.c: Include opts.h.
9829 (iq2000_handle_option): Update to new hook interface.
9830 * config/m32c/m32c.c: Include opts.h.
9831 (m32c_handle_option): Update to new hook interface.
9832 * config/m32r/m32r.c: Include opts.h.
9833 (m32r_handle_option): Update to new hook interface.
9834 * config/m68k/m68k.c: Include opts.h.
9835 (m68k_handle_option): Update to new hook interface.
9836 * config/mep/mep.c: Include opts.h.
9837 (mep_handle_option): Update to new hook interface.
9838 * config/microblaze/microblaze.c: Include opts.h.
9839 (microblaze_handle_option): Update to new hook interface.
9840 * config/mips/mips.c: Include opts.h.
9841 (mips_handle_option): Update to new hook interface.
9842 * config/mn10300/mn10300.c: Include opts.h.
9843 (mn10300_handle_option): Update to new hook interface.
9844 * config/pa/pa.c: Include opts.h.
9845 (pa_handle_option): Update to new hook interface.
9846 * config/pdp11/pdp11.c: Include opts.h.
9847 (pdp11_handle_option): Update to new hook interface.
9848 * config/rs6000/rs6000.c: Include opts.h.
9849 (rs6000_handle_option): Update to new hook interface.
9850 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9851 * config/rx/rx.c: Include opts.h.
9852 (rx_handle_option): Update to new hook interface.
9853 * config/s390/s390.c: Include opts.h.
9854 (s390_handle_option): Update to new hook interface.
9855 * config/score/score.c: Include opts.h.
9856 (score_handle_option): Update to new hook interface.
9857 * config/sh/sh.c: Include opts.h.
9858 (sh_handle_option): Update to new hook interface.
9859 * config/sparc/sparc.c: Include opts.h.
9860 (sparc_handle_option): Update to new hook interface.
9861 * config/v850/v850.c: Include opts.h.
9862 (v850_handle_option): Update to new hook interface.
9864 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9866 * gcc.c (driver_unknown_option_callback): Only permit and save
9867 unknown -Wno- options.
9868 (driver_wrong_lang_callback): Save options directly instead of via
9869 driver_unknown_option_callback.
9871 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9873 * combine.c (simplify_set): Try harder to find the best CC mode when
9874 simplifying a nested COMPARE on the RHS.
9876 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9878 * config/alpha/gnu.h: Remove.
9879 * config/arc: Remove directory.
9880 * config/arm/netbsd.h: Remove.
9881 * config/arm/t-pe: Remove.
9882 * config/crx: Remove directory.
9883 * config/i386/netbsd.h: Remove.
9884 * config/m68hc11: Remove directory.
9885 * config/m68k/uclinux-oldabi.h: Remove.
9886 * config/mcore/mcore-pe.h: Remove.
9887 * config/mcore/t-mcore-pe: Remove.
9888 * config/netbsd-aout.h: Remove.
9889 * config/rs6000/gnu.h: Remove.
9890 * config/sh/sh-symbian.h: Remove.
9891 * config/sh/symbian-base.c: Remove.
9892 * config/sh/symbian-c.c: Remove.
9893 * config/sh/symbian-cxx.c: Remove.
9894 * config/sh/symbian-post.h: Remove.
9895 * config/sh/symbian-pre.h: Remove.
9896 * config/sh/t-symbian: Remove.
9897 * config/svr3.h: Remove.
9898 * config/vax/netbsd.h: Remove.
9899 * config.build: Don't handle i[34567]86-*-pe.
9900 * config.gcc: Remove handling of deprecations for most deprecated
9902 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9903 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9904 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9905 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9906 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9907 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9909 * config.host: Don't handle i[34567]86-*-pe.
9910 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9911 (ASM_SPEC32): Don't handle -mcall-gnu.
9912 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9914 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9915 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9916 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9917 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9918 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9919 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9920 conditional on SYMBIAN.
9921 * configure.ac: Don't handle powerpc*-*-gnu*.
9922 * configure: Regenerate.
9923 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9924 * doc/install-old.texi (m6811, m6812): Don't mention.
9925 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9926 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9927 (m68k-uclinuxoldabi): Don't mention.
9928 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9930 (-mcall-gnu): Remove.
9931 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9932 families): Remove constraint documentation.
9934 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9936 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9937 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9938 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9940 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9943 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9944 vector when peeking at the next token for vector, don't expand the
9947 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
9949 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9950 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9951 * config/avr/avr.c (init_cumulative_args)
9952 (avr_function_arg_advance): Use it.
9953 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9955 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9956 (avr_function_ok_for_sibcall): ...this new function.
9957 (avr_lookup_function_attribute1): New static Function.
9958 (avr_naked_function_p, interrupt_function_p)
9959 (signal_function_p, avr_OS_task_function_p)
9960 (avr_OS_main_function_p): Use it.
9961 * config/avr/avr.md ("sibcall", "sibcall_value")
9962 ("sibcall_epilogue"): New expander.
9963 ("*call_insn", "*call_value_insn"): New insn.
9964 ("call_insn", "call_value_insn"): Remove
9965 ("call", "call_value", "epilogue"): Change expander to handle
9968 2011-03-21 Nick Clifton <nickc@redhat.com>
9970 * doc/invoke.texi (Overall Options): Move closing brace to end of
9972 (Optimization Options): Add missing @gol.
9973 (Directory Options): Likewise.
9974 (i386 and x86-64 Options): Likewise.
9975 (RS6000 and PowerPC Options): Likewise.
9976 (i386 and x86-64 Windows Options): Likewise.
9977 (V850 Options): Add text missing from descriptions.
9979 2011-03-22 Richard Henderson <rth@redhat.com>
9981 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9982 (avr_incoming_return_addr_rtx): New.
9983 (emit_push_byte): New.
9984 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9985 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9986 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9987 (emit_pop_byte): New.
9988 (expand_epilogue): Use it. Pop frame pointer by bytes.
9989 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9990 (INCOMING_RETURN_ADDR_RTX): New.
9991 (INCOMING_FRAME_SP_OFFSET): New.
9992 (ARG_POINTER_CFA_OFFSET): New.
9993 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9994 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9997 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9999 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10001 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10002 (FUNCTION_ARG_ADVANCE): Likewise.
10003 * tm.texi.in: Change references to them to hook references.
10004 * tm.texi: Regenerate.
10005 * targhooks.c (default_function_arg): Eliminate check for target
10007 (default_function_incoming_arg): Likewise.
10008 (default_function_arg_advance): Likewise.
10009 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10010 (function_arg_advance): Likewise.
10011 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10013 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10015 * tree.c (build_call_1): New function.
10016 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10018 2011-03-22 Richard Guenther <rguenther@suse.de>
10020 PR tree-optimization/48228
10021 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10022 for single-arg PHIs.
10024 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10026 PR rtl-optimization/48143
10027 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10028 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10029 sse2_cvtps2pd): Likewise.
10031 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10033 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10035 2011-03-22 Richard Guenther <rguenther@suse.de>
10037 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10038 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10039 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10040 and REALIGN_LOAD_EXPR.
10041 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10042 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10043 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10044 DOT_PROD_EXPR case ...
10045 (expand_expr_real_2): ... here.
10046 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10047 and REALIGN_LOAD_EXPR.
10048 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10049 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10050 (vect_create_epilog_for_reduction): Likewise.
10051 (vectorizable_reduction): Likewise.
10052 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10053 * tree-vect-stmts.c (vectorizable_load): Likewise.
10055 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10057 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10059 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10061 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10062 handling for PLTOFF/GOTOFF.
10064 2011-03-22 Nick Clifton <nickc@redhat.com>
10066 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10067 trailing backslash from the end of the macro definition.
10069 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10071 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10074 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10076 * expr.h (prepare_operand): Move to...
10077 * optabs.h (prepare_operand): ...here and change the insn code
10078 parameter from "int" to "enum insn_code".
10079 (insn_operand_matches): Declare.
10080 * expr.c (init_expr_target): Use insn_operand_matches.
10081 (compress_float_constant): Likewise.
10082 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10083 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10084 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10085 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10087 (gen_cond_trap): Likewise.
10088 (prepare_operand): Likewise. Change icode to an insn_code.
10089 (insn_operand_matches): New function.
10090 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10091 * reload1.c (gen_reload): Likewise.
10092 * targhooks.c (default_secondary_reload): Likewise.
10094 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10096 * config/alpha/alpha.md (unspec): New define_c_enum.
10099 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10102 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10103 between a call and its CALL_ARG_LOCATION note.
10105 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10107 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10109 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10113 * c-common.c (shorten_compare): If primopN is first sign-extended
10114 to opN and then zero-extended to result type, set primopN to opN.
10116 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10118 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10119 for barrier handlers.
10121 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10123 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10124 UNSPEC constants to be in the unspec enumeration, and redefine
10125 all UNSPECV constants to be in the unspecv enumeration, so that
10126 dumps print which unspec/unspec_volatile this is.
10127 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10128 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10129 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10130 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10131 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10133 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10134 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10135 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10136 * config/rs6000/sync.md (isync, lwsync): Ditto.
10138 2011-03-21 Richard Guenther <rguenther@suse.de>
10140 * params.def (lto-min-partition): Fix typo.
10142 2011-03-21 Richard Guenther <rguenther@suse.de>
10145 * c-decl.c (grokdeclarator): Drop to the main variant only
10146 for array types. Drop flag_gen_aux_info check.
10148 2011-03-21 Richard Guenther <rguenther@suse.de>
10150 PR translation/47911
10151 * params.def (lto-partitions): Fix typo.
10152 (lto-min-partition): Fix wording.
10154 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10156 * config/rs6000/t-freebsd: Remove duplication from file.
10158 2011-03-21 Richard Guenther <rguenther@suse.de>
10160 PR middle-end/47661
10161 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10163 2011-03-21 Richard Guenther <rguenther@suse.de>
10166 * params.def (lto-partitions): Require at least 1 partition.
10168 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10170 * gthr-solaris.h: Remove.
10171 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10172 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10173 (LIB_SPEC): Likewise.
10174 * config/sol2.opt (threads): Remove.
10175 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10176 (sparc*-*-solaris2*): Likewise.
10177 * configure.ac (enable_threads): Enable solaris support.
10178 * configure: Regenerate.
10179 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10180 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10183 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10185 * config.gcc: Obsolete *-*-solaris2.8*.
10186 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10188 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10191 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10192 reference. Solaris 8 perl works.
10194 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10197 * doc/install.texi (Prerequisites): Move jar etc. up.
10198 Explain support library version requirements.
10200 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10203 * doc/install.texi (Prerequisites): Move Perl to build
10204 requirements. Always necessary on Solaris 2 with Sun ld.
10206 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10208 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10210 (Specific, i?86-*-solaris2.[89]): Likewise.
10211 (Specific, i?86-*-solaris2.10): Likewise.
10212 (Specific, mips-sgi-irix6): Likewise.
10213 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10214 Update for binutils 2.21.
10216 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10218 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10219 Allow -fuse-linker-plugin for non-default plugin linker.
10220 * configure: Regenerate.
10222 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10225 * gengtype.c (files_rules): Added rule for cp/parser.h.
10227 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10230 * config/s390/s390.c (s390_delegitimize_address): Don't call
10231 lowpart_subreg if orig_x has BLKmode.
10233 2011-03-21 Kai Tietz <ktietz@redhat.com>
10236 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10237 * tree.h (attribute_spec): Add new member affects_type_identity.
10238 * attribs.c (empty_attribute_table): Adjust attribute_spec
10240 * config/alpha/alpha.c: Likewise.
10241 * config/arc/arc.c: Likewise.
10242 * config/arm/arm.c: Likewise.
10243 * config/avr/avr.c: Likewise.
10244 * config/bfin/bfin.c: Likewise.
10245 * config/crx/crx.c: Likewise.
10246 * config/darwin.h: Likewise.
10247 * config/h8300/h8300.c: Likewise.
10248 * config/i386/cygming.h: Likewise.
10249 * config/i386/i386.c: Likewise.
10250 * config/ia64/ia64.c: Likewise.
10251 * config/m32c/m32c.c: Likewise.
10252 * config/m32r/m32r.c: Likewise.
10253 * config/m68hc11/m68hc11.c: Likewise.
10254 * config/m68k/m68k.c: Likewise.
10255 * config/mcore/mcore.c: Likewise.
10256 * config/mep/mep.c: Likewise.
10257 * config/microblaze/microblaze.c: Likewise.
10258 * config/mips/mips.c: Likewise.
10259 * config/rs6000/rs6000.c: Likewise.
10260 * config/rx/rx.c: Likewise.
10261 * config/sh/sh.c: Likewise.
10262 * config/sol2.h: Likewise.
10263 * config/sparc/sparc.c: Likewise.
10264 * config/spu/spu.c: Likewise.
10265 * config/stormy16/stormy16.c: Likewise.
10266 * config/v850/v850.c: Likewise.
10268 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10270 * simplify-rtx.c (simplify_binary_operation_1): Handle
10271 (xor (and A B) C) case when B and C are both constants.
10273 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10275 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10277 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10280 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10282 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10284 PR rtl-optimization/48156
10285 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10286 assume df and df_lr are not NULL.
10288 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10291 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10292 between a call and its CALL_ARG_LOCATION note.
10294 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10297 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10298 between a call and its corresponding CALL_ARG_LOCATION note.
10300 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10302 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10303 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10304 * haifa-sched.c (setup_ref_regs): Ditto.
10305 * caller-save.c (add_used_regs_1): Ditto.
10306 * dse.c (look_for_hardregs): Ditto.
10307 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10308 * sched-rgn.c (check_live_1): Ditto.
10310 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10312 * c-decl.c (diagnose_mismatched_decls): Give an error for
10313 redefining a typedef with variably modified type.
10315 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10317 * c-decl.c (grokfield): Don't allow typedefs for structures or
10318 unions with no tag by default.
10319 * doc/extend.texi (Unnamed Fields): Update.
10321 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10323 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10324 Rewrite using indirect functions.
10325 (lwp_slwpcb): Ditto.
10326 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10327 (avx_vinsertf128<mode>): Ditto.
10329 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10331 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10334 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10336 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10337 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10339 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10341 PR rtl-optimization/48170
10342 * gcse.c (hoist_code): Remove bogus asserts.
10344 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10346 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10347 computation for prologue/epilogue.
10349 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10351 * Makefile.in (check-consistency): Remove.
10353 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10356 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10357 arange_table_in_use is 0, but either text_section_used or
10358 cold_text_section_used is true. Don't call it if
10359 !info_section_emitted.
10361 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10363 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10364 FUNCTION_VALUE_REGNO_P): Remove.
10365 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10367 * config/avr/avr.c (avr_ret_register): Make static inline.
10368 (avr_function_value_regno_p): New function.
10369 (avr_libcall_value): Make static. Add 'func' argument.
10370 (avr_function_value): Make static. Rename 'func' argument to
10371 'fn_decl_or_type', forward it to avr_libcall_value. Call
10372 avr_ret_register function instead of RET_REGISTER macro.
10373 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10375 2011-03-18 Jason Merrill <jason@redhat.com>
10378 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10380 2011-03-18 Richard Guenther <rguenther@suse.de>
10382 * doc/install.texi (--enable-gold): Remove.
10383 (--with-plugin-ld): Document.
10384 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10386 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10388 PR middle-end/47790
10389 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10390 again after expansion changes.
10392 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10394 * combine.c (try_combine): Do simplification only call of
10395 subst() on i2 even when i1 is present. Update comments.
10397 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10399 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10400 and UNSPEC_PCREL_SYMOFF.
10402 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10404 * config/s390/s390.md: Use define_c_enum for the unspec constant
10407 2011-03-18 Richard Henderson <rth@redhat.com>
10408 Jakub Jelinek <jakub@redhat.com>
10411 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10412 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10414 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10416 PR middle-end/47725
10417 * combine.c (cant_combine_insn_p): Don't check zero/sign
10418 extended hard registers.
10420 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10422 PR middle-end/47725
10423 * combine.c (cant_combine_insn_p): Check zero/sign extended
10426 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10428 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10429 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10430 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10431 Change return type to bool.
10432 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10434 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10437 * var-tracking.c (prepare_call_arguments): If CALL target
10438 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10439 pc instead of looking it up using cselib_lookup and use
10440 Pmode for it if x has VOIDmode.
10441 * dwarf2out.c (gen_subprogram_die): If also both first and
10442 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10445 * function.c (assign_parms): For data.passed_pointer parms
10446 use MEM of data.entry_parm instead of data.entry_parm itself
10447 as DECL_INCOMING_RTL.
10448 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10449 also when passed and declared mode is the same, DECL_RTL
10450 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10453 2011-03-16 Jeff Law <law@redhat.com>
10455 PR rtl-optimization/37273
10456 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10457 handle them like argument loads from stack slots. Do not double
10458 count memory for memory constants and argument loads from stack slots.
10460 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10463 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10465 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10468 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10470 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10473 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10475 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10476 Clear call_arg_locations and call_arg_loc_last always.
10478 PR middle-end/48152
10479 * var-tracking.c (prepare_call_arguments): If argument needs to be
10480 passed by reference, adjust argtype and mode.
10482 2011-03-17 Richard Guenther <rguenther@suse.de>
10484 PR middle-end/48134
10485 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10486 a value make sure to fold the statement.
10488 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10491 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10492 return condition with !cfun->calls_alloca.
10494 2011-03-17 Richard Guenther <rguenther@suse.de>
10497 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10498 origin for decls in other ltrans units.
10499 (input_varpool_node): Likewise.
10501 2011-03-17 Richard Guenther <rguenther@suse.de>
10503 PR middle-end/48165
10504 * tree-object-size.c (compute_object_offset): Properly return
10505 the offset operand of MEM_REFs as sizetype.
10507 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10509 PR rtl-optimization/48141
10510 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10511 * dse.c: Include params.h.
10512 (active_local_stores_len): New variable.
10513 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10515 (record_store, check_mem_read_rtx): Decrease it when removing
10517 (scan_insn): Likewise. Increase it when adding to chain, if it
10518 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10519 set active_local_stores to NULL before the addition.
10520 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10522 PR rtl-optimization/48141
10523 * dse.c (record_store): If no positions are needed in an insn
10524 that cannot be deleted, at least unchain it from active_local_stores.
10526 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10529 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10530 (lookup_type_die_strip_naming_typedef): ... here.
10531 (get_context_die): Use it.
10532 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10533 the anonymous struct named by the naming typedef.
10535 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10538 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10539 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10541 2011-03-16 Jeff Law <law@redhat.com>
10543 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10544 check for operands of conditional. Allow type to be a pointer.
10546 2011-03-16 Richard Guenther <rguenther@suse.de>
10548 PR tree-optimization/48149
10549 * fold-const.c (fold_binary_loc): Fold
10550 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10552 2011-03-16 Richard Guenther <rguenther@suse.de>
10554 PR tree-optimization/26134
10555 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10556 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10557 (non_rewritable_mem_ref_base): Handle complex type component
10558 accesses, constrain offsets for vector and complex extracts
10561 2011-03-16 Richard Guenther <rguenther@suse.de>
10563 PR tree-optimization/48146
10564 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10565 operands avoiding the need for renaming.
10567 2011-03-16 Richard Guenther <rguenther@suse.de>
10569 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10570 constant folding. Move MEM_REF canonicalization first.
10571 Rely on fold_const_aggregate_ref for initializer folding.
10572 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10574 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10576 PR middle-end/48136
10577 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10578 arg0/arg1 or their arguments are always fold converted to matching
10581 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10584 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10587 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10588 Handle in-tree gold.
10589 (ld_vers): Extract binutils version for gold.
10590 (gcc_cv_ld_hidden): Handle gold here.
10591 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10592 * configure: Regenerate.
10593 * config.in: Regenerate.
10594 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10595 -fuse-linker-plugin otherwise.
10596 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10597 (LINK_COMMAND_SPEC): Use it.
10598 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10600 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10602 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10603 * calls.c: Remove debug.h include.
10604 (emit_call_1): Don't call virtual_call_token debug hook.
10605 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10606 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10607 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10608 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10609 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10610 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10611 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10612 dwarf2out_virtual_call): Remove.
10613 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10614 copy_call_info and virtual_call hooks.
10615 (dwarf2out_init): Don't initialize vcall_insn_table,
10616 debug_dcall_section and debug_vcall_section.
10617 (prune_unused_types): Don't mark nodes from dcall_table.
10618 (dwarf2out_finish): Don't output dcall or vcall tables.
10619 * final.c (final_scan_insn): Don't call direct_call or
10620 virtual_call debug hooks.
10621 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10622 virtual_call_token, copy_call_info and virtual_call hooks.
10623 (debug_nothing_uid): Remove prototype.
10624 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10625 copy_call_info and virtual_call hooks.
10626 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10627 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10628 * debug.c (do_nothing_debug_hooks): Likewise.
10629 (debug_nothing_uid): Remove.
10630 * doc/invoke.texi (-fenable-icf-debug): Remove.
10631 * common.opt (-fenable-icf-debug): Likewise.
10633 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10634 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10635 call's MEM. Handle functions returning aggregate through a hidden
10636 first pointer. For virtual calls add clobbered pc to call arguments
10638 * dwarf2out.c (gen_subprogram_die): Emit
10639 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10643 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10644 * rtl.h (ENTRY_VALUE_EXP): Define.
10645 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10646 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10647 * print-rtl.c (print_rtx): Likewise.
10648 * gengtype.c (adjust_field_rtx_def): Likewise.
10649 * var-tracking.c (vt_add_function_parameter): Adjust
10650 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10651 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10652 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10653 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10654 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10656 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10657 Call var_location debug hook even on CALL_INSNs.
10658 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10659 * rtl.def (ENTRY_VALUE): New.
10660 * dwarf2out.c: Include cfglayout.h.
10661 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10662 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10663 (struct call_arg_loc_node): New type.
10664 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10665 tail_call_site_count): New variables.
10666 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10667 DW_TAG_GNU_call_site_parameter.
10668 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10669 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10670 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10671 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10672 and DW_AT_GNU_all_source_call_sites.
10673 (mem_loc_descriptor): Handle ENTRY_VALUE.
10674 (add_src_coords_attributes): Don't add enything if
10675 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10676 (dwarf2out_abstract_function): Save and clear call_arg_location,
10677 call_site_count and tail_call_site_count around dwarf2out_decl call.
10678 (gen_call_site_die): New function.
10679 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10680 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10681 (dwarf2out_function_decl): Clear call_arg_locations,
10682 call_arg_loc_last, set call_site_count and tail_call_site_count
10683 to -1 and free block_map.
10684 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10685 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10686 followed by any real instructions.
10687 (dwarf2out_begin_function): Set call_site_count and
10688 tail_call_site_count to 0.
10689 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10690 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10691 attempt to force a DIE for it and worst case remove the attribute.
10692 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10693 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10695 * var-tracking.c: Include tm_p.h.
10696 (vt_stack_adjustments): For calls call note_register_arguments.
10697 (argument_reg_set): New variable.
10698 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10699 ensure the VALUE is resolved.
10700 (call_arguments): New variable.
10701 (prepare_call_arguments): New function.
10702 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10703 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10704 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10705 always use the best expression.
10706 (vt_expand_loc): Add ignore_cur_loc argument.
10707 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10708 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10709 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10710 note for all calls.
10711 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10712 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10713 argument. Don't call cselib_preserve_only_values and
10714 cselib_reset_table.
10715 (note_register_arguments): New function.
10716 (vt_initialize): Compute argument_reg_set. Call
10717 vt_add_function_parameters before processing basic blocks instead of
10718 afterwards. For calls call prepare_call_arguments before calling
10719 cselib_process_insn.
10720 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10721 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10722 (var-tracking.o): Depend on $(TM_P_H).
10723 * cfglayout.h (insn_scope): New prototype.
10724 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10725 * cfglayout.c (insn_scope): No longer static.
10726 * insn-notes.def (CALL_ARG_LOCATION): New.
10727 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10728 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10729 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10730 nothing for DECL_EXTERNAL BLOCK_VARS.
10732 2011-03-16 Alan Modra <amodra@gmail.com>
10735 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10736 create invalid offset address for vsx splat insn.
10737 * config/rs6000/predicates.md (splat_input_operand): New.
10738 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10740 2011-03-15 Xinliang David Li <davidxl@google.com>
10743 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10744 (normalize_preds): New function.
10745 (is_use_properly_guarded): Normalize def predicates.
10747 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10750 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10751 in the output template.
10753 2011-03-15 Richard Guenther <rguenther@suse.de>
10755 PR middle-end/47650
10756 * tree-pretty-print.c (dump_function_declaration): Properly
10757 dump unprototyped and varargs function types.
10759 2011-03-15 Richard Guenther <rguenther@suse.de>
10761 PR tree-optimization/13954
10762 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10765 2011-03-15 Richard Guenther <rguenther@suse.de>
10767 PR tree-optimization/48037
10768 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10769 selects into BIT_FIELD_REFs.
10770 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10773 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10775 PR tree-optimization/48129
10776 * builtins.c (fold_builtin_snprintf): Convert to type of
10777 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10778 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10780 2011-03-15 Richard Guenther <rguenther@suse.de>
10782 PR tree-optimization/41490
10783 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10784 value but with VUSE.
10785 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10787 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10788 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10789 * tree-tailcall.c (find_tail_calls): Ignore returns.
10791 2011-03-15 Richard Guenther <rguenther@suse.de>
10793 PR middle-end/48031
10794 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10795 or variable-indexed array accesses when in gimple form.
10797 2011-03-15 Richard Guenther <rguenther@suse.de>
10799 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10801 2011-03-15 Alan Modra <amodra@gmail.com>
10804 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10805 presume symbol_refs without a symbol_ref_decl are suitably
10806 aligned, nor other trees we may see here. Handle anchor symbols.
10807 (legitimate_constant_pool_address_p): Comment. Add mode param.
10808 Check cmodel=medium addresses. Adjust all calls.
10809 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10810 creating cmodel=medium optimized access to locals.
10811 * config/rs6000/constraints.md (R): Pass QImode to
10812 legitimate_constant_pool_address_p.
10813 * config/rs6000/predicates.md (input_operand): Pass mode to
10814 legitimate_constant_pool_address_p.
10815 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10818 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10821 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10822 64-bit constants being loaded into registers other than GPRs such
10823 as loading 0 into a VSX register.
10825 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10827 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10829 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10831 PR middle-end/47917
10832 * builtins.c (fold_builtin_snprintf): New function.
10833 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10834 (fold_builtin_4): Likewise.
10836 PR middle-end/38878
10837 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10838 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10839 and C - X == X also strip nops from +/-/p+ operand.
10840 When optimizing -X == C, fold C to arg0's type.
10843 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10844 emit it as add_AT_int instead of add_AT_unsigned.
10846 2011-03-14 Tom Tromey <tromey@redhat.com>
10848 * unwind-dw2.c: Include sys/sdt.h if it exists.
10849 (_Unwind_DebugHook): Use STAP_PROBE2.
10850 * config.in, configure: Rebuild.
10851 * configure.ac: Check for sys/sdt.h.
10853 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10855 * config/i386/i386.md (ROUND_FLOOR): New constant.
10856 (ROUND_CEIL): Ditto.
10857 (ROUND_TRUNC): Ditto.
10858 (ROUND_MXCSR): Ditto.
10859 (ROUND_NO_EXC): Ditto.
10860 (rint<mode>2): Use new defines instead of numerical constants.
10861 (floor<mode>2): Ditto.
10862 (ceil<mode>2): Ditto.
10863 (btrunc<mode>2): Ditto.
10864 * config/i386/i386-builtin-types.def: Define ROUND function type
10866 * config/i386/i386.c (enum ix86_builtins): Add
10867 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10868 (struct builtin_description): Add
10869 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10870 (ix86_expand_sse_round): New static function.
10871 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10873 (ix86_builtin_vectorized_function): Handle
10874 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10876 2011-03-14 Tom Tromey <tromey@redhat.com>
10878 * c-parser.c (c_parser_asm_string_literal): Clear
10879 warn_overlength_strings.
10881 2011-03-14 Tom Tromey <tromey@redhat.com>
10883 * c-parser.c (disable_extension_diagnostics): Save
10884 warn_overlength_strings.
10885 (restore_extension_diagnostics): Restore warn_overlength_strings.
10887 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10889 * BASE-VER: Change to 4.7.0.
10891 2011-03-14 Richard Guenther <rguenther@suse.de>
10893 PR middle-end/48098
10894 * tree.c (build_vector_from_val): Adjust assert to requirements
10897 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10900 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10902 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10904 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10905 terms of target_flags_explicit. Adjust copyright year.
10907 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10908 * config/rs6000/t-freebsd: New file. Add override for
10911 2011-03-13 Chris Demetriou <cgd@google.com>
10913 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10914 (-fno-diagnostics-show-option): this, to reflect current default.
10915 (-Werror=): Update text about -fno-diagnostics-show-option.
10917 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10920 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10921 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10922 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10923 mode is not V2DImode or V2DFmode.
10924 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10925 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10926 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10928 (movdi_internal64): Likewise.
10930 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10932 PR tree-optimization/47127
10933 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10935 (set_cloog_options): Same.
10936 (scop_to_clast): Same.
10937 (print_clast_stmt): Do not call cloog_state_malloc and
10939 (print_generated_program): Same.
10941 * graphite-clast-to-gimple.h (cloog_state): Declared.
10942 (scop_to_clast): Adjust declaration.
10943 * graphite.c (cloog_state): Defined here.
10944 (graphite_initialize): Call cloog_state_malloc.
10945 (graphite_finalize): Call cloog_state_free.
10947 2011-03-11 Jason Merrill <jason@redhat.com>
10949 * attribs.c (lookup_attribute_spec): Take const_tree.
10952 2011-03-11 Joseph Myers <joseph@codesourcery.com>
10954 * config/sparc/sparc.c (sparc_option_override): Use
10955 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10957 2011-03-11 Richard Guenther <rguenther@suse.de>
10959 PR tree-optimization/48067
10960 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10961 multiplication result will be only used once on the target
10964 2011-03-11 Richard Guenther <rguenther@suse.de>
10966 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10968 2011-03-11 Richard Guenther <rguenther@suse.de>
10971 * tree.c (find_decls_types_r): Do not walk types only reachable
10972 from IDENTIFIER_NODEs.
10974 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10976 PR middle-end/48044
10977 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10978 all vnode->force_output nodes as needed.
10980 2011-03-11 Jason Merrill <jason@redhat.com>
10983 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10984 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10986 2011-03-11 Martin Jambor <mjambor@suse.cz>
10988 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10991 2011-03-11 Jakub Jelinek <jakub@redhat.com>
10993 PR tree-optimization/48063
10994 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10995 inline functions called once if !tree_can_inline_p (node->callers).
10997 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
10999 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11001 * config/score/score3.c: Delete.
11002 * config/score/score3.h: Delete.
11003 * config/score/mul-div.S: Delete.
11004 * config/score/sfp-machine.h: Add new file.
11005 * config/score/constraints.md: Add new file.
11006 * config/score/t-score-softfp: Add new file.
11007 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11008 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11009 (score7_extra_constraint): Delete.
11010 (score7_option_override): Remove unused code.
11011 * config/score/score.c: Remove score3 and score5 define and code.
11012 * config/score/score.h: Remove score3 and score5 define and code.
11013 * config/score/score.md: Remove score3 template and unusual insn.
11014 * config/score/score.opt: Remove score3 and score5 options.
11016 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11018 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11019 when _HPUX_SOURCE is defined.
11020 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11022 2011-03-10 Jason Merrill <jason@redhat.com>
11025 * stor-layout.c (layout_type): Don't set structural equality
11026 on arrays of incomplete type.
11027 * tree.c (type_hash_eq): Handle comparing them properly.
11029 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11032 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11033 result mode matches original rtl mode.
11035 2011-03-10 Nick Clifton <nickc@redhat.com>
11037 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11038 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11040 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11042 PR rtl-optimization/47866
11043 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11044 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11045 if target wasn't scalar.
11046 * function.c (assign_stack_temp_for_type): Assert that neither
11047 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11048 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11050 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11052 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11054 * config/s390/s390-protos.h (s390_label_align): New prototype.
11055 * config/s390/s390.c (s390_label_align): New function.
11056 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11058 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11061 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11062 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11063 (output_vec_const_move): Ditto.
11065 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11067 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11068 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11069 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11070 Change 'rclass' argument and result type to reg_class_t.
11071 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11073 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11075 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11076 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11077 (TARGET_MEMORY_MOVE_COST): Define.
11078 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11080 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11083 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11086 PR tree-optimization/48022
11087 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11090 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11093 * var-tracking.c (find_use_val): Return NULL for
11094 cui->sets && cui->store_p BLKmode MEMs.
11096 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11098 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11100 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11101 xstormy16_print_operand_address): Remove.
11102 * config/stormy16/stormy16.c (xstormy16_print_operand,
11103 xstormy16_print_operand_address): Make static.
11104 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11106 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11109 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11110 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11113 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11116 * cfgloopmanip.c (fix_bb_placements): Return immediately
11117 if FROM is BASE_LOOP's header.
11119 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11121 * gimplify.c (gimplify_function_tree): Fix building calls
11122 to __builtin_return_address.
11124 2011-03-07 Alan Modra <amodra@gmail.com>
11126 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11127 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11128 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11129 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11131 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11132 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11133 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11134 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11135 * config/rs6000/rs6000.c
11136 (rs6000_elf_end_indicate_exec_stack): Rename to..
11137 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11138 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11139 (rs6000_file_start): ..here.
11140 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11141 file scope variables.
11142 (call_ABI_of_interest): New function.
11143 (init_cumulative_args): Set above vars when function return value
11144 is a float, vector, or small struct.
11145 (rs6000_function_arg_advance_1): Likewise for function args.
11146 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11147 references float args.
11149 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11151 * doc/cfg.texi: Remove "See" before @ref.
11152 * doc/invoke.texi: Likewise.
11154 2011-03-05 Jason Merrill <jason@redhat.com>
11156 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11158 2011-03-05 Anthony Green <green@moxielogic.com>
11160 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11162 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11164 PR rtl-optimization/47899
11165 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11166 to flow_loop_nested_p when moving the loop upward.
11168 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11171 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11173 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11175 PR tree-optimization/47967
11176 * ipa-cp.c (build_const_val): Return NULL instead of creating
11177 VIEW_CONVERT_EXPR for mismatching sizes.
11178 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11179 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11180 give up on versioning.
11182 2011-03-05 Alan Modra <amodra@gmail.com>
11185 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11186 full cmodel medium/large lo_sum + high addresses.
11188 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11190 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11191 pool references in UNSPEC_LTREL_OFFSET.
11193 2011-03-04 Jan Hubicka <jh@suse.cz>
11196 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11197 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11198 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11200 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11201 cgraph_add_thunk): Add node pointers.
11202 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11203 associated to right node.
11204 (input_node): Update use of cgraph_same_body_alias
11205 and cgraph_add_thunk.
11207 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11209 * config/i386/i386.opt (mprefer-avx128): New flag.
11210 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11211 modes when the flag -mprefer-avx128 is on.
11213 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11215 * dwarf2out.c (compare_loc_operands): Fix address handling.
11217 2011-03-04 Alan Modra <amodra@gmail.com>
11219 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11221 2011-03-04 Richard Guenther <rguenther@suse.de>
11223 PR middle-end/47968
11224 * expmed.c (extract_bit_field_1): Prefer vector modes that
11225 vec_extract patterns can handle.
11227 2011-03-04 Richard Guenther <rguenther@suse.de>
11229 PR middle-end/47975
11230 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11232 2011-03-04 Richard Henderson <rth@redhat.com>
11234 * explow.c (emit_stack_save): Remove 'after' parameter.
11235 (emit_stack_restore): Likewise.
11236 * expr.h: Update to match.
11237 * builtins.c, calls.c, stmt.c: Likewise.
11238 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11239 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11240 * function.c (expand_function_end): Insert the emit_stack_save
11241 sequence before parm_birth_insn instead of after.
11243 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11245 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11246 (ssse3_pmaddubsw128): Ditto.
11247 (ssse3_pmaddubsw): Ditto.
11249 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11251 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11253 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11256 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11257 on TYPE_SIZE_UNIT if it is a DECL.
11260 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11261 first operand is not is_gimple_mem_ref_addr, try to fold it.
11262 If the operand still isn't is_gimple_mem_ref_addr, clear
11265 2011-03-03 Richard Guenther <rguenther@suse.de>
11267 PR middle-end/47283
11268 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11270 (refs_may_alias_p_1): For release branches return true if
11271 we are confused by our input.
11273 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11275 * config/s390/s390.c (s390_function_value): Rename to ...
11276 (s390_function_and_libcall_value): ... this.
11277 (s390_function_value): New function.
11278 (s390_libcall_value): New function.
11279 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11280 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11281 target macro definitions.
11282 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11284 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11286 * config/i386/freebsd64.h (CC1_SPEC): Define.
11287 * config/i386/linux64.h (CC1_SPEC): Define.
11288 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11290 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11292 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11294 * config/stormy16/stormy16.c: Include reload.h.
11295 (xstormy16_memory_move_cost): New function.
11296 (TARGET_MEMORY_MOVE_COST): Define.
11298 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11300 PR rtl-optimization/47925
11301 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11302 with side effects. Remove the more-specific check for volatile asms.
11304 2011-03-02 Alan Modra <amodra@gmail.com>
11307 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11308 toc relative addresses for valid offsets.
11310 2011-03-01 Richard Guenther <rguenther@suse.de>
11312 PR tree-optimization/47890
11313 * tree-vect-loop.c (get_initial_def_for_induction): Set
11314 related stmt properly.
11316 2011-03-01 Richard Guenther <rguenther@suse.de>
11319 * lto-streamer.c (lto_record_common_node): Also register
11320 the canonical type.
11322 2011-03-01 Richard Guenther <rguenther@suse.de>
11325 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11326 Do not stream DECL_ABSTRACT_ORIGIN.
11327 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11328 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11329 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11330 Do not stream DECL_ABSTRACT_ORIGIN.
11331 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11332 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11334 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11336 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11337 FUNCTION_VALUE_REGNO_P): Remove.
11338 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11339 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11340 Add 'outgoing' argument.
11341 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11343 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11344 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11346 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11349 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11350 (lookup_filename): Likewise.
11351 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11353 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11354 Jakub Jelinek <jakub@redhat.com>
11356 PR middle-end/47893
11357 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11358 (assign_stack_local_1): Change last argument type to int.
11359 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11360 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11361 don't record padding space into frame_space_list nor use those areas.
11362 (assign_stack_local): Adjust caller.
11363 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11364 of assign_stack_local, pass 0 as last argument.
11365 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11368 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11371 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11372 Use target address_mode and pointer_mode hooks instead of hardcoded
11373 Pmode and ptr_mode. Handle some simple cases of extending if
11374 POINTERS_EXTEND_UNSIGNED < 0.
11375 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11376 Call convert_debug_memory_address.
11377 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11378 convert_debug_memory_address.
11380 PR middle-end/46790
11381 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11382 * configure: Regenerated.
11383 * config.in: Regenerated.
11384 * varasm.c (default_function_section): Return NULL
11385 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11387 2011-02-28 Martin Jambor <mjambor@suse.cz>
11389 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11390 the description to match the printed values.
11392 2011-02-28 Richard Guenther <rguenther@suse.de>
11394 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11395 of the copied scope tree.
11397 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11399 * doc/extend.texi (Function Attributes): Avoid deeply (and
11400 wrongly) nested tables.
11402 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11404 PR middle-end/47903
11405 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11406 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11407 r isn't op0 nor op1.
11409 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11411 * config/avr/avr.md: Remove magic comment for emacs.
11413 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11416 * config/avr/avr.c (avr_option_override): Use error on bad options.
11417 (avr_help): New function.
11418 (TARGET_HELP): Define.
11420 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11423 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11424 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11426 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11428 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11429 (ARM Options): Ditto.
11430 (i386 and x86-64 Options): Ditto.
11431 (RX Options): Ditto.
11432 (SPARC Options): Ditto.
11434 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11436 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11437 FreeBSD 6 and later. Generally use cpu generic.
11439 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11441 * doc/cpp.texi: Update copyright years.
11443 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11446 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11448 2011-02-25 Jon Beniston <jon@beniston.com>
11451 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11452 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11453 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11454 (lm32_block_move_inline): Add type cast to remove warning.
11455 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11456 (gen_int_relational): Move declarations to start of function.
11458 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11460 PR tree-optimization/45470
11461 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11462 can throw internally only.
11463 * tree-vect-stmts.c (vectorizable_call): Likewise.
11465 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11467 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11468 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11469 * config/stormy16/stormy16-protos.h
11470 (xstormy16_preferred_reload_class): Remove.
11471 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11472 static. Change 'rclass' argument and return type to reg_class_t.
11473 (TARGET_PREFERRED_RELOAD_CLASS,
11474 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11476 2011-02-24 Richard Guenther <rguenther@suse.de>
11478 * lto-streamer-in.c (input_bb): Do not find referenced vars
11479 in debug statements.
11481 2011-02-23 Jason Merrill <jason@redhat.com>
11483 * common.opt (fabi-version): Document v5 and v6.
11485 2011-02-23 Richard Guenther <rguenther@suse.de>
11487 PR tree-optimization/47849
11488 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11490 2011-02-23 Jie Zhang <jie@codesourcery.com>
11492 * opts-common.c (decode_cmdline_option): Print empty string
11493 argument as "" in decoded->orig_option_with_args_text.
11494 * gcc.c (execute): Print empty string argument as ""
11495 in the verbose output.
11496 (do_spec_1): Keep empty string argument.
11498 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11500 * config.gcc: Declare score-* and crx-* obsolete.
11502 2011-02-23 Jie Zhang <jie@codesourcery.com>
11504 PR rtl-optimization/47763
11505 * web.c (web_main): Ignore naked clobber when replacing register.
11507 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11509 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11512 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11515 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11517 2011-02-22 Mike Stump <mikestump@comcast.net>
11519 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11521 * configure: Regenerate.
11523 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11525 PR rtl-optimization/46002
11526 * ira-color.c (update_copy_costs): Change class intersection
11527 test to reg_class_contents[] test of 'hard_regno'.
11529 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11531 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11532 than Driver option.
11533 * config/hpux11.opt (mt): Likewise.
11534 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11535 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11536 * config/vax/elf.opt (mno-asm-pic): Likewise.
11537 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11539 2011-02-21 Mike Stump <mikestump@comcast.net>
11542 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11543 tree so we can get save the type.
11544 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11545 for CFString instead of trying to use past the end of the builtins.
11546 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11547 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11548 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11549 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11550 Rename to darwin_builtin_cfstring.
11551 (darwin_init_cfstring_builtins): Return the built type.
11553 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11556 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11557 (_mm256_insert_epi64): Use _mm_insert_epi64.
11559 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11561 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11562 * config/stormy16/stormy16-protos.h
11563 (xstormy16_mode_dependent_address_p): Remove.
11564 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11565 Make static. Change return type to bool. Change argument type to
11566 const_rtx. Remove dead code.
11567 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11569 2011-02-21 Richard Guenther <rguenther@suse.de>
11572 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11573 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11574 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11576 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11577 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11579 2011-02-20 Richard Guenther <rguenther@suse.de>
11582 * tree.c (free_lang_data_in_decl): Clean builtins from
11583 the TU decl BLOCK_VARS.
11585 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11589 * haifa-sched.c (fix_tick_ready): Skip tick computation
11592 2011-02-19 Richard Guenther <rguenther@suse.de>
11595 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11596 Remove lazy BLOCK_VARS streaming.
11597 (lto_input_ts_block_tree_pointers): Likewise.
11598 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11600 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11602 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11604 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11606 * config/i386/biarch32.h, config/i386/mach.h,
11607 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11609 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11612 * config/i386/i386.md (peephole2 for shift and plus): Use
11613 operands[1] original mode in the first insn.
11615 2011-02-18 Mike Stump <mikestump@comcast.net>
11617 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11619 2011-02-18 Jan Hubicka <jh@suse.cz>
11621 PR middle-end/47788
11622 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11623 to zero when the function is not inlinable at all.
11625 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11627 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11628 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11629 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11630 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11631 * config/pa/t-pa64: Likewise.
11632 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11634 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11637 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11639 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11642 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11644 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11646 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11647 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11648 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11649 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11650 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11651 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11652 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11653 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11654 m32r_legitimate_address_p): New functions.
11655 * config/m32r/constraints.md (constraint "S"): Don't use
11656 STORE_PREINC_PREDEC_P.
11657 (constraint "U"): Don't use LOAD_POSTINC_P.
11659 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11661 PR rtl-optimization/46178
11662 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11663 compute ira_hard_regno_cover_class[].
11665 2011-02-18 Richard Guenther <rguenther@suse.de>
11668 * lto-streamer.h (lto_global_var_decls): Declare.
11669 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11670 statics for global var processing.
11672 2011-02-18 Richard Guenther <rguenther@suse.de>
11674 PR tree-optimization/47737
11675 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11676 edge dominance check.
11678 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11681 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11682 avoid invalid rtx sharing.
11684 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11686 * doc/cpp.texi (Obsolete Features): Add background on the
11687 origin of assertions.
11689 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11691 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11693 * config/darwin.c (output_objc_section_asm_op): Added support for
11695 (is_objc_metadata): New.
11696 (darwin_objc2_section): New.
11697 (darwin_objc1_section): New.
11698 (machopic_select_section): Added support for ABI v1 and v2.
11699 (darwin_emit_objc_zeroed): New.
11700 (darwin_output_aligned_bss): Detect objc metadata and treat it
11702 (darwin_asm_output_aligned_decl_common): Same.
11703 (darwin_asm_output_aligned_decl_local): Same.
11704 * config/darwin-sections.def: Updated for ABI v1 and v2.
11705 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11706 compiling Objective-C code for the NeXT runtime, default to using
11707 ABI version 0 for 32-bit, and version 2 for 64-bit.
11709 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11711 * common.opt (optimize_fast): New Variable.
11712 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11713 instead of local variable ofast.
11715 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11717 * doc/invoke.texi (fobjc-abi-version): Documented.
11718 (fobjc-nilcheck): Documented.
11719 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11722 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11725 * common.opt (export-dynamic): New Driver option.
11726 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11728 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11730 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11732 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11733 Jan Hubicka <jh@suse.cz>
11737 * cfgexpand.c (account_used_vars_for_block): Remove.
11738 (estimated_stack_frame_size): Use referenced vars.
11739 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11740 that were referenced in the original function. Test src_fn
11741 rather than cfun. Drop redundant get_var_ann.
11742 (setup_one_parameter): Drop redundant get_var_ann.
11743 (declare_return_variable): Likewise.
11744 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11745 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11746 * ipa-inline.c (compute_inline_parameters): Do not compute
11747 disregard_inline_limits here.
11748 (compute_inlinable_for_current, pass_inlinable): New.
11749 (pass_inline_parameters): Require PROP_referenced_vars.
11750 * cgraphunit.c (cgraph_process_new_functions): Don't run
11751 compute_inline_parameters explicitly unless function is in SSA form.
11752 (cgraph_analyze_function): Set .disregard_inline_limits.
11753 * tree-sra.c (convert_callers): Compute inliner parameters
11754 only for functions already in SSA form.
11756 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11758 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11759 -mlittle-endian-data.
11761 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11763 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11764 -mno-fpu, not -fpu and -no-fpu.
11765 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11766 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11768 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11771 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11772 input reload with PLUS RTX.
11774 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11776 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11777 of InverseVar(MDMX).
11779 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11781 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11784 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11786 * config/mn10300/mn10300.opt (mno-crt0): New.
11788 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11790 * config/m68k/uclinux.opt (static-libc): New Driver option.
11792 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11794 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11796 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11798 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11799 %{muser-extend-enabled}.
11801 2011-02-16 Richard Guenther <rguenther@suse.de>
11803 PR tree-optimization/47738
11804 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11805 the TODO from tree_predictive_commoning.
11807 2011-02-15 Jeff Law <law@redhat.com>
11810 2011-01-25 Jeff Law <law@redhat.com>
11812 PR rtl-optimization/37273
11813 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11814 handle them like argument loads from stack slots. Do not double
11815 count memory for memory constants and argument loads from stack slots.
11817 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11819 PR middle-end/47725
11820 * combine.c (cant_combine_insn_p): Revert the last change.
11822 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11825 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11826 mode for vector constants. Remove code that checks for TImode.
11828 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11832 * cgraph.h (compute_inline_parameters): Return void.
11833 * ipa-inline.c (compute_inline_parameters): Adjust.
11835 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11839 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11841 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11842 * ipa-inline.c (compute_inline_parameters): Adjust.
11844 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11848 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11849 Adjust all users. Pass FN to...
11850 * tree-flow-inline.h (first_referenced_var): ... this. Add
11852 * ipa-struct-reorg.c: Adjust.
11853 * tree-dfa.c: Adjust.
11854 * tree-into-ssa.c: Adjust.
11855 * tree-sra.c: Adjust.
11856 * tree-ssa-alias.c: Adjust.
11857 * tree-ssa-live.c: Adjust.
11858 * tree-ssa.c: Adjust.
11859 * tree-ssanames.c: Adjust.
11860 * tree-tailcall.c: Adjust.
11862 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11866 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11867 Adjust all callers.
11868 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11869 * tree-flow-inline.h: Adjust.
11870 * gimple-pretty-print.c: Adjust.
11871 * tree-into-ssa.c: Adjust.
11872 * tree-ssa.c: Adjust.
11873 * cfgexpand.c: Adjust.
11875 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11877 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11878 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11879 (EXTRA_CONSTRAINT): Delete.
11880 * config/iq2000/constraints.md: New file.
11881 * config/iq2000/iq2000.md: Include it.
11882 (define_insn ""): Delete.
11883 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11884 unsupported constraint letters from patterns.
11885 (call_value, call_value_internal1): Likewise.
11886 (call_value_multiple_internal1): Likewise.
11888 2011-02-15 Nick Clifton <nickc@redhat.com>
11890 * config/mn10300/mn10300.c: Include tm-constrs.h.
11891 (struct liw_data): New data structure describing an LIW candidate
11893 (extract_bundle): Use struct liw_data. Allow small integer
11894 operands for some instructions.
11895 (check_liw_constraints): Use struct liw_data. Remove swapped
11896 parameter. Add comments describing the checks. Fix bug when
11897 assigning the source of liw1 to the source of liw2.
11898 (liw_candidate): Delete. Code moved into extract_bundle.
11899 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11901 * config/mn10300/predicates.md (liw_operand): New predicate.
11902 Allows registers and small integer constants.
11903 * config/mn10300/constraints.md (O): New constraint. Accetps
11904 integers in the range -8 to +7 inclusive.
11905 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11906 for moving a small integer into a register. Give this alternative
11908 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11909 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11910 using the J,K,L and M constraints,
11911 (liw): Remove SI mode on second operands to allow for HI and QI
11913 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11916 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11918 PR middle-end/47725
11919 * combine.c (cant_combine_insn_p): Check zero/sign extended
11922 2011-02-15 Richard Guenther <rguenther@suse.de>
11924 PR tree-optimization/47743
11925 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11926 for a non-type-compatible VN lookup bail out.
11928 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11930 * config/fr30/constraints.md: New file.
11931 * config/fr30/fr30.md: Include it.
11932 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11933 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11934 (EXTRA_CONSTRAINT): Delete.
11936 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11938 * config/frv/constraints.md: New file.
11939 * config/frv/predicates.md: Include it.
11940 * config/frv/frv.c (reg_class_from_letter): Delete.
11941 (frv_option_override): Don't initialize it.
11942 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11943 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11944 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11945 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11946 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11947 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11948 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11949 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11950 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11951 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11952 (REG_CLASS_FROM_CONSTRAINT): Delete.
11954 2011-02-15 Jakub Jelinek <jakub@redhat.com>
11956 PR middle-end/47581
11957 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11958 if frame size is 0 in a leaf function.
11960 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11963 * config/alpha/host-osf.c: New file.
11964 * config/alpha/x-osf: New file.
11965 * config.host (alpha*-dec-osf*): Use it.
11967 2011-02-14 Anatoly Sokolov <aesok@post.ru>
11969 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11970 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11971 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11972 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11974 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11976 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11978 * config/stormy16/constraints.md: New file.
11979 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11980 Use satisfies_constraint_Q and satisfies_constraint_R.
11981 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11983 (xstormy16_legitiamte_address_p): Declare.
11984 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11985 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11986 (EXTRA_CONSTRAINT): Delete.
11987 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
11989 (xstormy16_extra_constraint_p): Delete.
11991 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11993 PR tree-optimization/46494
11994 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11995 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11996 (pass_rtl_loop_done): Add TODO_verify_flow.
11997 * fwprop.c (pass_rtl_fwprop): Likewise.
11998 * modulo-sched.c (pass_sms): Likewise.
11999 * tree-ssa-dom.c (pass_dominator): Likewise.
12000 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12001 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12002 (pass_tree_loop_done): Likewise.
12003 * tree-ssa-pre.c (execute_pre): Likewise.
12004 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12005 * tree-ssa-sink.c (pass_sink_code): Likewise.
12006 * tree-vrp.c (pass_vrp): Likewise.
12008 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12010 * config/v850/constraints.md: New file.
12011 * config/v850/v850.md: Include it.
12012 * config/v850/predicates.md (reg_or_0_operand): Use
12013 satisfies_constraint_G.
12014 (special_symbolref_operand): Use satisfies_constraint_K.
12015 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12016 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12017 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12018 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12019 (EXTRA_CONSTRAINT): Delete.
12020 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12021 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12022 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12024 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12027 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12030 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12032 * config/mcore/constraints.md: New file.
12033 * config/mcore/mcore.md: Include it.
12034 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12035 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12036 (REG_CLASS_FROM_LETTER): Delete.
12037 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12038 insn_const_int_ok_for_constraint.
12039 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12040 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12041 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12042 (EXTRA_CONSTRAINT): Delete.
12044 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12047 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12048 (IS_SIGHANDLER): Define.
12049 (sparc64_is_sighandler): New function, split off from
12050 sparc64_fallback_frame_state.
12051 (sparc_is_sighandler): New function, split off from
12052 sparc_fallback_frame_state.
12053 (sparc64_fallback_frame_state): Merge with ...
12054 (sparc_fallback_frame_state): ... this into ...
12055 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12056 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12057 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12058 stack instead of hardcoded offsets.
12060 2011-02-14 Andriy Gapon <avg@freebsd.org>
12063 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12065 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12067 * configure: Regenerate.
12069 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12072 * gcc.c (asm_options): Correct spec matching --target-help.
12074 2011-02-12 Martin Jambor <mjambor@suse.cz>
12076 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12077 to gimple call error.
12079 2011-02-12 Mike Stump <mikestump@comcast.net>
12081 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12082 comments in backslash regions.
12084 2011-02-12 Mike Stump <mikestump@comcast.net>
12085 Jakub Jelinek <jakub@redhat.com>
12086 Iain Sandoe <iains@gcc.gnu.org>
12089 * dwarf2out.c (output_cfa_loc): When required, apply the
12090 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12091 (output_loc_sequence): Likewise.
12092 (output_loc_operands_raw): Likewise.
12093 (output_loc_sequence_raw): Likewise.
12094 (output_cfa_loc): Likewise.
12095 (output_loc_list): Suppress register number adjustment when
12096 calling output_loc_sequence()
12097 (output_die): Likewise.
12099 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12101 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12103 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12104 xtensa_memory_move_cost): New functions.
12105 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12107 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12110 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12111 in the current directory.
12112 * configure: Rebuilt.
12114 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12116 * config/darwin.c (darwin_override_options): Add a hunk missed
12117 from the commit of r168571. Trim comment line lengths and
12118 correct indents of the preceding block.
12120 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12122 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12125 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12127 * common.opt (nostartfiles): New Driver option.
12129 2011-02-11 Xinliang David Li <davidxl@google.com>
12131 PR tree-optimization/47707
12132 * tree-chrec.c (convert_affine_scev): Keep type precision.
12134 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12136 PR tree-optimization/47420
12137 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12139 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12141 PR rtl-optimization/47614
12142 * rtl.h (check_for_inc_dec): Declare.
12143 * dse.c (check_for_inc_dec): Externalize...
12144 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12145 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12147 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12150 * gcc.c (main): Do not compile inputs if there were errors in
12152 * opts-common.c (read_cmdline_option): Check for wrong language
12153 after other error checks.
12155 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12157 * cgraph.c: Fix comment typos.
12158 * cgraph.h: Likewise.
12159 * cgraphunit.c: Likewise.
12160 * ipa-cp.c: Likewise.
12161 * ipa-inline.c: Likewise.
12162 * ipa-prop.c: Likewise.
12163 * ipa-pure-const.c: Likewise.
12164 * ipa-ref.c: Likewise.
12165 * ipa-reference.c: Likewise.
12167 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12170 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12172 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12175 * doc/sourcebuild.texi (Require Support): Document
12176 dg-require-ascii-locale.
12178 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12180 * doc/lto.texi (Write summary): Fix missing parentheses.
12182 2011-02-10 DJ Delorie <dj@redhat.com>
12184 * config/m32c/m32c.c (m32c_option_override): Disable
12185 -fcombine-stack-adjustments until flag value tracking and compare
12186 optimization can be rewritten.
12188 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12190 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12192 (PROCESSOR_DEFAULT64): Likewise.
12194 2011-02-10 Richard Henderson <rth@redhat.com>
12196 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12197 change from 2011-02-03.
12198 * config/rx/rx.c (flags_from_code): Likewise.
12199 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12200 is valid, n/pz otherwise.
12201 (rx_select_cc_mode): Return CCmode if Y is not zero.
12203 2011-02-10 Richard Guenther <rguenther@suse.de>
12205 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12207 2011-02-10 Richard Guenther <rguenther@suse.de>
12209 PR tree-optimization/47677
12210 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12212 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12215 * combine.c (make_compound_operation): Only change shifts into
12216 multiplication for SCALAR_INT_MODE_P.
12218 2011-02-10 Jie Zhang <jie@codesourcery.com>
12222 2011-02-05 Jie Zhang <jie@codesourcery.com>
12224 * web.c (entry_register): Don't clobber the number of the
12225 first uninitialized reference in used[].
12227 2011-02-09 Richard Guenther <rguenther@suse.de>
12229 PR tree-optimization/47664
12230 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12233 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12237 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12239 (PROCESSOR_DEFAULT64): Same.
12240 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12242 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12244 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12246 2011-02-09 Martin Jambor <mjambor@suse.cz>
12248 PR middle-end/45505
12249 * tree-sra.c (struct access): New flags grp_scalar_read and
12250 grp_scalar_write. Changed description of assignment read and write
12252 (dump_access): Dump new flags, reorder all of them.
12253 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12254 to detect multiple scalar reads.
12255 (analyze_access_subtree): Use the new scalar read write flags instead
12256 of the old flags. Adjusted comments.
12258 2011-02-08 DJ Delorie <dj@redhat.com>
12261 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12264 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12266 * config/m68k/uclinux.opt: New.
12267 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12269 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12271 * config/cris/elf.opt (sim): New Driver option.
12273 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12275 * config/xtensa/elf.opt: New.
12276 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12278 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12280 * config/vax/elf.opt: New.
12281 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12283 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12285 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12287 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12289 * config/gnu-user.opt: New.
12290 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12291 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12292 *-*-uclinux*): Use gnu-user.opt.
12294 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12296 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12297 * config/i386/gnu.h (CPP_SPEC): Likewise.
12299 2011-02-08 Ian Lance Taylor <iant@google.com>
12301 * common.opt (fcx-limited-range): Add SetByCombined flag.
12302 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12303 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12304 (fassociative-math, freciprocal-math): Likewise.
12305 (funsafe-math-optimizations): Likewise.
12306 * opth-gen.awk: Handle SetByCombined.
12307 * optc-gen.awk: Likewise.
12308 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12309 (set_unsafe_math_optimizations_flags): Likewise.
12310 * doc/options.texi (Option properties): Document SetByCombined.
12312 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12314 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12315 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12316 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12317 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12318 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12320 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12322 PR tree-optimization/46834
12323 PR tree-optimization/46994
12324 PR tree-optimization/46995
12325 * graphite-sese-to-poly.c (used_outside_reduction): New.
12326 (detect_commutative_reduction): Call used_outside_reduction.
12327 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12328 translate_scalar_reduction_to_array only when at least one
12329 loop-phi/close-phi tuple has been detected.
12331 2011-02-08 Richard Guenther <rguenther@suse.de>
12333 PR middle-end/47639
12334 * tree-vect-generic.c (expand_vector_operations_1): Update
12336 (expand_vector_operations): ... not here. Cleanup EH info
12337 and the CFG if required.
12339 2011-02-08 Richard Guenther <rguenther@suse.de>
12341 PR tree-optimization/47641
12342 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12343 require type compatibility.
12345 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12347 * gimple-low.c (lower_function_body): Don't remove the location of
12348 the return statement here.
12349 (lower_gimple_return): Do it here instead but only if the return
12350 statement is actually used twice.
12352 2011-02-08 Richard Guenther <rguenther@suse.de>
12354 PR tree-optimization/47632
12355 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12356 unused up_to_stmt parameter, return whether cfg-cleanup is
12357 necessary, remove EH info properly.
12358 (forward_propagate_into_gimple_cond): Adjust caller.
12359 (forward_propagate_into_cond): Likewise.
12360 (forward_propagate_comparison): Likewise.
12361 (tree_ssa_forward_propagate_single_use_vars): Make
12362 forward_propagate_comparison case similar to the two others.
12364 2011-02-08 Nick Clifton <nickc@redhat.com>
12366 * config/mn10300/mn10300.opt (mliw): New command line option.
12367 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12368 (liw_bundling): New automaton.
12369 (liw): New attribute.
12370 (liw_op): New attribute.
12371 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12372 (movsi_internal): Add LIW attributes.
12373 (andsi3): Likewise.
12374 (iorsi3): Likewise.
12375 (xorsi3): Likewise.
12376 (addsi3): Separate register and immediate alternatives.
12377 Add LIW attributes.
12378 (subsi3): Likewise.
12380 (aslsi3): Likewise.
12381 (lshrsi3): Likewise.
12382 (ashrsi3): Likewise.
12383 (liw): New pattern.
12384 * config/mn10300/mn10300.c (liw_op_names): New
12385 (mn10300_print_operand): Handle 'W' operand descriptor.
12386 (extract_bundle): New function.
12387 (check_liw_constraints): New function.
12388 (liw_candidate): New function.
12389 (mn10300_bundle_liw): New function.
12390 (mn10300_reorg): New function.
12391 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12392 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12393 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12394 __LIW__ or __NO_LIW__.
12395 * doc/invoke.texi: Describe the -mliw command line option.
12397 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12399 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12400 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12401 pthread_mutex_unlock): Remove.
12402 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12403 * config/pa/t-pa64: Likewise.
12404 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12405 shared libc if not linking against libpthread.
12406 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12408 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12411 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12412 on 10.6 and later to ensure that we always use the unwinder from
12413 the system. Only add -no_compact_unwind when tarteting darwin
12416 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12419 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12420 (vec_interleave_lowv2sf): Ditto.
12421 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12422 (vec_extract_oddv2sf): Ditto.
12424 2011-02-07 Mike Stump <mikestump@comcast.net>
12427 Add __ieee_divdc3 entry point.
12428 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12430 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12431 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12432 * config/darwin.c (darwin_rename_builtins): Add.
12433 * config/darwin-protos.h (darwin_rename_builtins): Add.
12435 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12438 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12441 2011-02-07 Mike Stump <mikestump@comcast.net>
12443 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12445 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12448 * config/avr/libgcc.S (exit): Move .endfunc
12450 2011-02-07 Richard Guenther <rguenther@suse.de>
12452 PR tree-optimization/47615
12453 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12454 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12455 (run_scc_vn): Initialize it.
12456 (visit_reference_op_load): Use it.
12457 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12459 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12461 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12462 DImode trapping arithmetic libfuncs.
12464 2011-02-07 Richard Guenther <rguenther@suse.de>
12466 PR tree-optimization/47621
12467 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12469 (execute_update_addresses_taken): ... here. Make it more
12470 conservative in what we accept.
12472 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12474 * config/sparc/freebsd.h (ASM_SPEC): Define.
12475 * config/sparc/vxworks.h (ASM_SPEC): Define.
12477 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12479 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12481 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12483 * doc/invoke.texi: Remove reference to compiler internals from
12484 user documentation.
12486 * reg-notes.def: Remove REG_VALUE_PROFILE.
12487 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12489 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12491 PR middle-end/47610
12492 * varasm.c (default_section_type_flags): If decl is NULL,
12493 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12495 2011-02-05 Jie Zhang <jie@codesourcery.com>
12498 * web.c (entry_register): Don't clobber the number of the
12499 first uninitialized reference in used[].
12501 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12503 PR tree-optimization/46194
12504 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12505 (build_classic_dist_vector_1): Do not represent classic distance
12506 vectors when the access functions are variating in different loops.
12508 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12510 * config/mips/iris6.opt: New.
12511 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12513 2011-02-04 Richard Henderson <rth@redhat.com>
12514 Steve Ellcey <sje@cup.hp.com>
12517 * config/ia64/predicates.md (mux1_brcst_element): New.
12518 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12519 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12520 (ia64_unpack_sign): New.
12521 (ia64_expand_unpack): Rewrite using new routines.
12522 (ia64_expand_widen_sum): Ditto.
12523 (ia64_expand_dot_prod_v8qi): Ditto.
12524 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12525 routines, add endian check.
12526 (pmpy2_even): Rename from pmpy2_r, add endian check.
12527 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12528 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12529 (vec_widen_smult_hi_v4hi): Ditto.
12530 (vec_widen_umult_lo_v4hi): Ditto.
12531 (vec_widen_umult_hi_v4hi): Ditto.
12532 (mulv2si3): Change endian checks.
12533 (sdot_prodv4hi): Rewrite with new calls.
12534 (udot_prodv4hi): New.
12535 (vec_pack_ssat_v4hi): Add endian check.
12536 (vec_pack_usat_v4hi): Ditto.
12537 (vec_pack_ssat_v2si): Ditto.
12538 (max1_even): Rename from max1_r, add endian check.
12539 (max1_odd): Rename from max1_l, add endian check.
12540 (*mux1_rev): Format change.
12541 (*mux1_mix): Ditto.
12542 (*mux1_shuf): Ditto.
12543 (*mux1_alt): Ditto.
12544 (*mux1_brcst_v8qi): Use new predicate.
12545 (vec_extract_evenv8qi): Remove endian check.
12546 (vec_extract_oddv8qi): Ditto.
12547 (vec_interleave_lowv4hi): Format change.
12548 (vec_interleave_highv4hi): Ditto.
12549 (mix2_even): Rename from mix2_r, add endian check.
12550 (mix2_odd): Rename from mux2_l, add endian check.
12551 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12552 (vec_extract_evenodd_helper): Format change.
12553 (vec_extract_evenv4hi): Remove endian check.
12554 (vec_extract_oddv4hi): Remove endian check.
12555 (vec_interleave_lowv2si): Format change.
12556 (vec_interleave_highv2si): Format change.
12557 (vec_initv2si): Remove endian check.
12558 (vecinit_v2si): Add endian check.
12559 (reduc_splus_v2sf): Add endian check.
12560 (reduc_smax_v2sf): Ditto.
12561 (reduc_smin_v2sf): Ditto.
12562 (vec_initv2sf): Remove endian check.
12563 (fpack): Add endian check.
12564 (fswap): Add endian check.
12565 (vec_interleave_highv2sf): Add endian check.
12566 (vec_interleave_lowv2sf): Add endian check.
12567 (fmix_lr): Add endian check.
12568 (vec_setv2sf): Format change.
12569 (*vec_extractv2sf_0_be): Use shift to extract operand.
12570 (*vec_extractv2sf_1_be): New.
12571 (vec_pack_trunc_v4hi): Add endian check.
12572 (vec_pack_trunc_v2si): Format change.
12574 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12576 PR inline-asm/23200
12577 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12578 do bb, locus and block comparison and disallow loads if it is not set.
12579 (stmt_is_replaceable_p): New function.
12580 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12582 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12583 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12585 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12587 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12589 * config/rs6000/xilinx.opt: New.
12590 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12592 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12594 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12596 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12598 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12599 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12600 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12601 secondary_reload_info, xtensa_secondary_reload): Remove.
12602 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12603 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12604 (xtensa_preferred_reload_class): Make static. Change return and
12605 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12606 Use CONST_DOUBLE_P predicate.
12607 (xtensa_preferred_output_reload_class): New function.
12608 (xtensa_secondary_reload): Make static.
12610 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12612 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12613 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12614 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12616 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12618 PR middle-end/31490
12619 * output.h (SECTION_RELRO): Define.
12620 (SECTION_MACH_DEP): Adjust.
12621 (get_variable_section): New prototype.
12622 * varpool.c (varpool_finalize_named_section_flags): New function.
12623 (varpool_assemble_pending_decls): Call it.
12624 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12625 * cgraphunit.c (cgraph_output_in_order): Call
12626 varpool_finalize_named_section_flags.
12627 * varasm.c (get_section): Allow section flags conflicts between
12628 relro and read-only sections if the section hasn't been declared yet.
12629 Set SECTION_OVERRIDE after diagnosing section type conflict.
12630 (get_variable_section): No longer static.
12631 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12632 readonly sections that need relocations.
12633 (decl_readonly_section_1): New function.
12634 (decl_readonly_section): Use it.
12637 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12638 Steve Ellcey <sje@cup.hp.com>
12640 PR middle-end/31490
12641 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12642 if section attribute used.
12644 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12646 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12647 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12648 (darwin_init_sections): Remove assertion.
12650 2011-02-03 Nick Clifton <nickc@redhat.com>
12652 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12654 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12655 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12656 instead of "n" and "pz".
12657 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12660 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12663 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12664 fma, expand FMA_EXPR as fma{,f,l} call.
12667 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12668 copy them into a unsigned char variable and pass address of it to
12669 lto_output_data_stream.
12672 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12673 around backend_init_target and lang_dependent_init_target calls.
12674 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12675 (verify_cgraph_node): Don't call set_cfun here. Use
12676 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12677 Set error_found for incorrectly represented calls to thunks.
12679 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12682 PR rtl-optimization/43494
12683 * rtl.h (for_each_inc_dec_fn): New type.
12684 (for_each_inc_dec): Declare.
12685 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12686 (for_each_inc_dec_find_inc_dec): New fn.
12687 (for_each_inc_dec_find_mem): New fn.
12688 (for_each_inc_dec): New fn.
12689 * dse.c (struct insn_size): Remove.
12690 (replace_inc_dec, replace_inc_dec_mem): Remove.
12691 (emit_inc_dec_insn_before): New fn.
12692 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12693 (canon_address): Pass mem modes to cselib_lookup.
12694 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12695 (cselib_lookup_from_insn): Likewise.
12696 (cselib_subst_to_values): Likewise.
12697 * cselib.c (find_slot_memmode): New var.
12698 (cselib_find_slot): New fn. Use it instead of
12699 htab_find_slot_with_hash everywhere.
12700 (entry_and_rtx_equal_p): Use find_slot_memmode.
12701 (autoinc_split): New fn.
12702 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12703 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12704 Deal with autoinc. Special-case recursion into MEMs.
12705 (cselib_hash_rtx): Likewise.
12706 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12707 address and MEM modes.
12708 (cselib_subst_to_values): Add memmode, pass it on.
12710 (cselib_lookup): Add memmode argument, pass it on.
12711 (cselib_lookup_from_insn): Add memmode.
12712 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12713 (struct cselib_record_autoinc_data): New.
12714 (cselib_record_autoinc_cb): New fn.
12715 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12716 mode to cselib_lookup. Reset autoinced REGs here instead of...
12717 (cselib_process_insn): ... here.
12718 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12720 (add_uses): Likewise, also to cselib_subst_to_values.
12721 (add_stores): Likewise.
12722 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12723 cselib_subst_to_values.
12724 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12725 * gcse.c (do_local_cprop): Adjusted.
12726 * postreload.c (reload_cse_simplify_set): Adjusted.
12727 (reload_cse_simplify_operands): Adjusted.
12728 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12730 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12732 PR tree-optimization/45122
12733 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12734 unsafe assumptions when there's more than one loop exit.
12736 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12739 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12740 Document using vector double with the load/store builtins, and
12741 that the load/store builtins always use Altivec instructions.
12743 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12744 to use altivec memory instructions, even on VSX.
12745 (vector_altivec_store_<mode>): Ditto.
12747 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12750 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12751 V2DF, V2DI support to load/store overloaded builtins.
12753 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12754 altivec load/store builtins for V2DF/V2DI types.
12756 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12757 set avoid indexed addresses on power6 if -maltivec.
12758 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12759 vector_altivec_load/vector_altivec_store builtins.
12760 (altivec_expand_st_builtin): Ditto.
12761 (altivec_expand_builtin): Add VSX memory builtins.
12762 (rs6000_init_builtins): Add V2DI types to internal types.
12763 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12764 load/store builtins.
12765 (rs6000_address_for_altivec): Insure memory address is appropriate
12768 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12769 vec_vsx_ld and vec_vsx_st.
12770 (vsx_store_<mode>): Ditto.
12772 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12773 variables to hold long long types for VSX vector memory builtins.
12774 (RS6000_BTI_unsigned_long_long): Ditto.
12775 (long_long_integer_type_internal_node): Ditti.
12776 (long_long_unsigned_type_internal_node): Ditti.
12778 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12779 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12780 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12782 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12784 (vec_vsx_st): Ditto.
12786 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12788 * config/pa/pa-hpux10.opt: New.
12789 * config/hpux11.opt (pthread): New Driver option.
12790 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12791 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12793 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12795 * config/ia64/vms.opt: New.
12796 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12798 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12801 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12802 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12803 generator functions.
12804 (vsx_floatuns<VSi><mode>2): Ditto.
12805 (vsx_fix_trunc<mode><VSi>2): Ditto.
12806 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12808 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12810 * config/i386/djgpp.opt (posix): New Driver option.
12812 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12814 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12815 Move to the unsupported targets list.
12817 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12819 PR rtl-optimization/47525
12820 * df-scan.c: Update copyright years.
12821 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12822 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12824 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12826 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12827 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12828 (ASM_OUTPUT_ASCII): Remove.
12829 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12831 2011-02-02 Jeff Law <law@redhat.com>
12833 PR middle-end/47543
12834 * reload.c (find_reloads_address): Handle reg+d address where both
12835 components are invalid by reloading the entire address.
12837 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12838 Richard Guenther <rguenther@suse.de>
12840 PR tree-optimization/40979
12842 * passes.c (init_optimization_passes): After LIM call copy_prop
12843 and DCE to clean up.
12844 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12846 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12848 PR tree-optimization/47576
12849 PR tree-optimization/47555
12850 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12851 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12852 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12853 * tree-scalar-evolution.c (follow_ssa_edge): Use
12854 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12856 2011-02-02 Richard Guenther <rguenther@suse.de>
12858 PR tree-optimization/47566
12859 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12861 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12865 * tree-inline.c (declare_return_variable): Remove unused caller
12870 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12871 * cfgexpand.c (account_used_vars_for_block): Use them.
12872 * tree-nrv.c (tree_nrv): Likewise.
12873 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12874 (dump_scope_block): Likewise.
12875 (remove_unused_locals): Likewise.
12879 * tree-inline.c (declare_return_variable): Add result decl to
12880 local decls only once.
12881 * gimple-low.c (record_vars_into): Mark newly-created variables
12884 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12890 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12892 (no_real_insns_p, schedule_block, set_priorities): Drop special
12893 treatment of boundary debug insns.
12894 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12895 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12896 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12897 (BOUNDARY_DEBUG_INSN_P): Likewise.
12898 (SCHEDULE_DEBUG_INSN_P): Likewise.
12899 * sched-rgn.c (init_ready_list): Drop special treatment of
12900 boundary debug insns.
12901 * final.c (rest_of_clean_state): Clear notes' BB.
12903 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12905 * config/openbsd.opt (assert=): New Driver option.
12907 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12909 * config/i386/nto.opt: New.
12910 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12912 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12914 * config/i386/netware.opt: New.
12915 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12917 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12919 * config/interix.opt (posix): New Driver option.
12921 2011-02-01 DJ Delorie <dj@redhat.com>
12923 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12925 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12928 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12930 PR tree-optimization/47561
12931 * toplev.c (process_options): Print the Graphite flags. Add
12932 flag_loop_flatten to the list of options requiring Graphite.
12934 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12936 * config/i386/cygming.opt (posix): New Driver option.
12938 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12940 * config/arm/vxworks.opt: New.
12941 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12943 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12945 * config/alpha/elf.opt: New.
12946 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12947 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12949 2011-02-01 Richard Guenther <rguenther@suse.de>
12951 PR tree-optimization/47559
12952 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12953 store-motion on references that can throw.
12955 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12957 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12958 * tree-pass.h (TDF_CSELIB): New macro.
12959 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12960 cselib_lookup): Check for it rather than for TDF_DETAILS.
12962 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12965 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12966 is HOST_BIT_BUCKET.
12968 * opts.c (finish_options): Don't add x_aux_base_name if it is
12971 2011-02-01 Richard Guenther <rguenther@suse.de>
12973 PR tree-optimization/47555
12975 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12977 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12979 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12982 * config/lm32/t-lm32: Add multilib for all CPU options.
12984 2011-02-01 Richard Guenther <rguenther@suse.de>
12986 PR tree-optimization/47541
12987 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12988 sure to have a field at offset zero.
12990 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12992 * config/arc/arc.opt (EB, EL): New Driver options.
12994 2011-01-31 Joseph Myers <joseph@codesourcery.com>
12996 * config/alpha/osf5.opt: New.
12997 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12999 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13001 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13003 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13005 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13006 -floop-interchange.
13007 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13008 is an alias of -floop-interchange and that it requires the
13009 Graphite infrastructure.
13010 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13011 flag_loop_interchange based on the value of flag_tree_loop_linear.
13013 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13014 Richard Guenther <rguenther@suse.de>
13016 PR tree-optimization/47538
13017 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13018 type instead of r1type, except for comparisons. For right
13019 shifts and comparisons punt if there are mismatches in
13020 sizetype vs. non-sizetype types.
13022 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13024 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13027 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13029 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13031 * configure: Regenerate.
13033 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13035 * configure.ac (gcc_cv_ld_static_option): Define.
13036 (gcc_cv_ld_dynamic_option): Define.
13037 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13039 (HAVE_LD_STATIC_DYNAMIC): Update message.
13040 (LD_STATIC_OPTION): Define.
13041 (LD_DYNAMIC_OPTION): Define.
13042 * configure: Regenerate.
13043 * config.in: Regenerate.
13044 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13045 HAVE_LD_STATIC_DYNAMIC]: Use them.
13047 2011-01-31 Nick Clifton <nickc@redhat.com>
13049 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13050 registers inside interrupt handlers if the handler is not a leaf
13053 2011-01-31 Nick Clifton <nickc@redhat.com>
13055 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13056 reg_renumber returning an INVALID_REGNUM.
13058 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13061 * doc/install.texi: Document host options discarded when cross
13062 configuring target libraries.
13064 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13067 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13070 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13072 (no_real_insns_p, schedule_block, set_priorities): Drop special
13073 treatment of boundary debug insns.
13074 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13075 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13076 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13077 (BOUNDARY_DEBUG_INSN_P): Likewise.
13078 (SCHEDULE_DEBUG_INSN_P): Likewise.
13079 * sched-rgn.c (init_ready_list): Drop special treatment of
13080 boundary debug insns.
13081 * final.c (rest_of_clean-state): Clear notes' BB.
13083 2011-01-31 Alan Modra <amodra@gmail.com>
13085 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13086 toc relative expressions as we do in print_operand_address.
13088 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13090 * doc/extend.texi: Follow spelling conventions.
13091 * doc/invoke.texi: Fix a typo.
13093 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13095 * config/hpux11.opt: New.
13096 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13097 ia64*-*-hpux*): Use hpux11.opt.
13099 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13101 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13104 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13106 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13109 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13111 * doc/install.texi (Binaries): Remove outdated reference for
13112 Motorola 68HC11/68HC12 downloads.
13114 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13116 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13119 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13122 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13125 2011-01-28 Ahmad Sharif <asharif@google.com>
13127 * value-prof.c (check_counter): Corrected error message.
13129 2011-01-29 Jie Zhang <jie@codesourcery.com>
13131 * config/arm/arm.c (arm_legitimize_reload_address): New.
13132 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13133 arm_legitimize_reload_address.
13134 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13136 2011-01-28 Ian Lance Taylor <iant@google.com>
13138 * godump.c (go_define): Ignore macros whose definitions include
13139 two adjacent operands.
13141 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13144 * varasm.c (force_const_mem): Store copy of x in desc->constant
13145 instead of x itself.
13146 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13147 itself into REG_EQUAL note.
13149 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13151 * config/freebsd.opt (posix, rdynamic): New Driver options.
13153 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13155 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13156 -Bstatic/-Bdynamic.
13157 * configure: Regenerate.
13159 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13161 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13162 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13164 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13166 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13167 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13168 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13169 (s390_preferred_reload_class): Make static. Change return and
13170 'rclass' argument type to reg_class_t.
13172 2011-01-27 Jan Hubicka <jh@suse.cz>
13174 PR middle-end/46949
13175 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13176 (process_function_and_variable_attributes): Check defined weakrefs.
13178 2011-01-27 Martin Jambor <mjambor@suse.cz>
13180 PR tree-optimization/47228
13181 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13182 build_ref_for_offset.
13184 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13186 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13188 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13190 PR rtl-optimization/46856
13191 * postreload.c (reload_combine_recognize_const_pattern): Do not
13192 separate cc0 setter and user on cc0 targets.
13194 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13197 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13198 passed a VOID_TYPE expression, immediately emit an error and
13199 return error_mark_node.
13201 2011-01-26 Jeff Law <law@redhat.com>
13203 PR rtl-optimization/47464
13204 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13205 rather than may_trap_p as needed.
13207 2011-01-26 DJ Delorie <dj@redhat.com>
13209 PR rtl-optimization/46878
13210 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13211 setter/user dependency as well.
13213 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13215 PR rtl-optimization/44469
13216 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13217 after removing trivially dead basic blocks.
13219 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13221 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13222 * config/frv/frv.h (LINK_SPEC): Likewise.
13223 * config/i386/netware.h (LINK_SPEC): Likewise.
13224 * config/m68k/linux.h (ASM_SPEC): Likewise.
13225 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13226 * config/rs6000/sysv4.h (LINK_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 (ASM_SPEC): Remove %{Ym,*}.
13235 * config/frv/frv.h (ASM_SPEC): Likewise.
13236 * config/m68k/linux.h (ASM_SPEC): Likewise.
13237 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13238 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13239 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13240 * config/sparc/linux.h (ASM_SPEC): Likewise.
13241 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13242 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13244 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13246 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13247 * config/frv/frv.h (LINK_SPEC): Likewise.
13248 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13250 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13252 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13253 * config/frv/frv.h (ASM_SPEC): Likewise.
13254 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13255 * config/m68k/linux.h (ASM_SPEC): Likewise.
13256 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13257 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13258 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13259 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13260 * config/sparc/linux.h (ASM_SPEC): Likewise.
13261 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13262 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13263 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13265 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13268 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13270 (vec_extract_evenodd_help): Ditto.
13271 (vec_extract_evenv4hi): Ditto.
13272 (vec_extract_oddv4hi): Ditto.
13273 (vec_interleave_lowv2si): Ditto.
13274 (vec_interleave_highv2si): Ditto.
13275 (vec_extract_evenv2si): Ditto.
13276 (vec_extract_oddv2si: Ditto.
13277 (vec_pack_trunc_v2si): Ditto.
13279 2011-01-22 Jan Hubicka <jh@suse.cz>
13282 * cgraph.h (cgraph_local_info): New field can_change_signature.
13283 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13284 signature can change.
13285 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13287 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13288 (cgraph_function_versioning): We can not change signature of functions
13289 that don't allow that.
13290 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13291 (lto_input_node): Likewise.
13292 * ipa-inline.c (compute_inline_parameters): Compute
13293 local.can_change_signature.
13294 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13295 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13296 functions that can not change signature.
13297 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13298 init_cumulative_args): Do not use local calling conventions
13299 for functions that can not change signature.
13301 2011-01-22 Jan Hubicka <jh@suse.cz>
13303 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13305 2011-01-26 Richard Guenther <rguenther@suse.de>
13307 PR tree-optimization/47190
13308 * cgraphunit.c (process_common_attributes): New function.
13309 (process_function_and_variable_attributes): Use it.
13311 2011-01-26 Richard Guenther <rguenther@suse.de>
13314 * cgraphbuild.c (record_eh_tables): Record reference to personality
13317 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13320 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13321 non-debug insns from moving up.
13323 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13326 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13327 t-dlldir{,-x} fragment for build and add it to tmake_file.
13328 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13329 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13330 * config/i386/t-dlldir: New file.
13331 (SHLIB_DLLDIR): Define.
13332 * config/i386/t-dlldir-x: New file.
13333 (SHLIB_DLLDIR): Define.
13334 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13335 (SHLIB_INSTALL): Use it.
13337 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13340 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13341 lower bound of the allowed Thumb-2 coprocessor load/store
13342 index range to -256. Add explaining comment.
13344 2011-01-25 Ian Lance Taylor <iant@google.com>
13346 * godump.c (go_define): Improve lexing of macro expansion to only
13347 accept expressions which match Go spec.
13349 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13352 * tree.c (handle_dll_attribute): Handle it.
13353 * doc/extend.texi (@item dllexport): Mention it.
13354 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13356 2011-01-25 Ian Lance Taylor <iant@google.com>
13358 PR tree-optimization/26854
13359 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13360 (decl_jump_unsafe): Move higher in file, with no other change.
13361 (bind): Set has_jump_unsafe_decl if appropriate.
13362 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13363 (check_earlier_gotos): Likewise.
13364 (c_check_switch_jump_warnings): Likewise.
13366 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13368 * doc/invoke.texi (Warning Options): Add missing hyphen.
13369 (-fprofile-dir): Minor grammatical fixes.
13370 (-fbranch-probabilities): Likewise.
13372 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13376 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13378 (no_real_insns_p, schedule_block, set_priorities): Drop special
13379 treatment of boundary debug insns.
13380 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13381 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13382 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13383 (BOUNDARY_DEBUG_INSN_P): Likewise.
13384 (SCHEDULE_DEBUG_INSN_P): Likewise.
13385 * sched-rgn.c (init_ready_list): Drop special treatment of
13386 boundary debug insns.
13387 * final.c (rest_of_clean-state): Clear notes' BB.
13389 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13391 * Makefile.in (LAMBDA_H): Removed.
13392 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13393 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13394 lambda-trans.o, and tree-loop-linear.o.
13395 (lto-symtab.o): Remove dependence on LAMBDA_H.
13396 (tree-loop-linear.o): Remove rule.
13397 (lambda-mat.o): Same.
13398 (lambda-trans.o): Same.
13399 (lambda-code.o): Same.
13400 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13401 (tree-vect-slp.o): Same.
13402 * hwint.h (gcd): Moved here.
13403 (least_common_multiple): Same.
13404 * lambda-code.c: Removed.
13405 * lambda-mat.c: Removed.
13406 * lambda-trans.c: Removed.
13407 * lambda.h: Removed.
13408 * tree-loop-linear.c: Removed.
13409 * lto-symtab.c: Do not include lambda.h.
13410 * omega.c (gcd): Removed.
13411 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13412 * tree-data-ref.c (print_lambda_vector): Moved here.
13413 (lambda_vector_copy): Same.
13414 (lambda_matrix_copy): Same.
13415 (lambda_matrix_id): Same.
13416 (lambda_vector_first_nz): Same.
13417 (lambda_matrix_row_add): Same.
13418 (lambda_matrix_row_exchange): Same.
13419 (lambda_vector_mult_const): Same.
13420 (lambda_vector_negate): Same.
13421 (lambda_matrix_row_negate): Same.
13422 (lambda_vector_equal): Same.
13423 (lambda_matrix_right_hermite): Same.
13424 * tree-data-ref.h: Do not include lambda.h.
13425 (lambda_vector): Moved here.
13426 (lambda_matrix): Same.
13427 (dependence_level): Same.
13428 (lambda_transform_legal_p): Removed declaration.
13429 (lambda_collect_parameters): Same.
13430 (lambda_compute_access_matrices): Same.
13431 (lambda_vector_gcd): Same.
13432 (lambda_vector_new): Same.
13433 (lambda_vector_clear): Same.
13434 (lambda_vector_lexico_pos): Same.
13435 (lambda_vector_zerop): Same.
13436 (lambda_matrix_new): Same.
13437 * tree-flow.h (least_common_multiple): Removed declaration.
13438 * tree-parloops.c (lambda_trans_matrix): Moved here.
13439 (LTM_MATRIX): Same.
13440 (LTM_ROWSIZE): Same.
13441 (LTM_COLSIZE): Same.
13442 (LTM_DENOMINATOR): Same.
13443 (lambda_trans_matrix_new): Same.
13444 (lambda_matrix_vector_mult): Same.
13445 (lambda_transform_legal_p): Same.
13446 * tree-pass.h (pass_linear_transform): Removed declaration.
13447 * tree-ssa-loop.c (tree_linear_transform): Removed.
13448 (gate_tree_linear_transform): Removed.
13449 (pass_linear_transform): Removed.
13450 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13451 flag_loop_interchange.
13453 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13455 PR tree-optimization/47265
13456 PR tree-optimization/47443
13457 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13458 if name still has some uses.
13460 2011-01-25 Martin Jambor <mjambor@suse.cz>
13462 PR tree-optimization/47382
13463 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13464 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13466 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13468 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13469 sjlj_except_unwind_info.
13471 2011-01-25 Richard Guenther <rguenther@suse.de>
13473 PR tree-optimization/47426
13474 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13475 visible functions results escape.
13477 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13480 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13481 (arm_get_frame_offsets): Use it.
13483 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13484 Jakub Jelinek <jakub@redhat.com>
13486 PR tree-optimization/47271
13487 * tree-if-conv.c (bb_postdominates_preds): New.
13488 (if_convertible_bb_p): Call bb_postdominates_preds.
13489 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13490 (predicate_scalar_phi): Call bb_postdominates_preds.
13492 2011-01-25 Nick Clifton <nickc@redhat.com>
13494 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13495 * config/rx/rx.c (rx_function_value): Likewise.
13496 (rx_promote_function_mode): Likewise.
13497 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13498 in order to make it legitimate.
13499 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13500 make sure that the first operand is the same as the result register.
13501 (addsi3_unspec): Delete.
13502 (subdi3): Do not accept immediate operands.
13503 (subdi3_internal): Likewise.
13505 2011-01-25 Jeff Law <law@redhat.com>
13507 PR rtl-optimization/37273
13508 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13509 handle them like argument loads from stack slots. Do not double
13510 count memory for memory constants and argument loads from stack slots.
13512 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13514 PR tree-optimization/47427
13515 PR tree-optimization/47428
13516 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13517 coalesce if the new root var would be TREE_READONLY.
13519 2011-01-25 Richard Guenther <rguenther@suse.de>
13521 PR middle-end/47414
13522 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13523 correct type for TBAA.
13525 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13527 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13528 (close_phi_written_to_memory): Call for_each_index with
13529 dr_indices_valid_in_loop.
13531 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13533 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13534 when it is initialized.
13536 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13538 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13539 call to graphite_find_data_references_in_stmt.
13540 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13541 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13542 call to graphite_find_data_references_in_stmt.
13543 (analyze_drs_in_stmts): Same.
13544 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13545 in which the scalar analysis of indices is performed.
13546 (create_data_ref): Same. Update call to dr_analyze_indices.
13547 (find_data_references_in_stmt): Update call to create_data_ref.
13548 (graphite_find_data_references_in_stmt): Same.
13549 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13551 (create_data_ref): Same.
13552 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13553 call to create_data_ref.
13555 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13557 * graphite-sese-to-poly.c (build_poly_scop): Move
13558 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13560 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13562 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13563 VAR_DECL, PARM_DECL, and RESULT_DECL.
13565 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13567 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13568 in a reduction PBB.
13569 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13570 that have already been marked as PBB_IS_REDUCTION.
13572 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13574 * graphite-scop-detection.c (same_close_phi_node): New.
13575 (remove_duplicate_close_phi): New.
13576 (make_close_phi_nodes_unique): New.
13577 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13579 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13581 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13582 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13583 of both data references to be the same.
13585 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13587 * graphite-dependences.c (build_lexicographical_constraint): Remove
13588 the gdim parameter.
13589 (build_lexicographical_constraint): Adjust call to
13590 ppl_powerset_is_empty.
13591 (dependence_polyhedron): Same.
13592 (graphite_legal_transform_dr): Same.
13593 (graphite_carried_dependence_level_k): Same.
13594 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13596 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13598 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13600 * graphite-sese-to-poly.c
13601 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13602 (close_phi_written_to_memory): New.
13603 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13606 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13608 * doc/install.texi: Update the expected version number of PPL to 0.11.
13609 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13610 #if PPL_VERSION_MINOR < 11.
13612 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13614 * graphite-dependences.c: Include graphite-cloog-util.h.
13615 (new_poly_ddr): Inlined into dependence_polyhedron.
13616 (free_poly_ddr): Moved close by new_poly_ddr.
13617 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13618 Early return NULL when ppl_powerset_is_empty returns true.
13619 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13620 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13621 (graphite_legal_transform_dr): Call new_poly_ddr.
13622 (graphite_carried_dependence_level_k): Same.
13623 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13624 (dot_transformed_deps_stmt_1): Removed.
13625 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13626 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13627 (dot_deps_1): Call dot_deps_2.
13628 * Makefile.in (graphite-dependences.o): Add missing dependence on
13629 graphite-cloog-util.h.
13631 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13633 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13634 (build_lexicographical_constraint): Same.
13635 (dependence_polyhedron_1): Same.
13636 (graphite_legal_transform_dr): Same.
13637 (graphite_carried_dependence_level_k): Same.
13638 * graphite-ppl.c (ppl_powerset_is_empty): New.
13639 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13640 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13642 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13644 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13645 the "a followed by b" relation and document it.
13647 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13649 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13650 iteration when the bag of constraints is empty.
13652 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13654 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13658 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13659 nest and two loop depths as parameters.
13660 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13661 lst_perfect_nestify.
13663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13665 * graphite-dependences.c (print_pddr): Call
13666 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13668 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13670 * graphite-ppl.c (debug_gmp_value): New.
13671 * graphite-ppl.h (debug_gmp_value): Declared.
13673 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13675 * doc/install.texi: Document availability of cloog-0.16.
13677 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13679 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13680 invalid postdominance info.
13682 2011-01-24 Jan Hubicka <jh@suse.cz>
13685 * doc/extend.texi (weak pragma): Drop claim that it must
13686 appear before definition.
13687 * varasm.c (merge_weak, declare_weak): Only sanity check
13688 that DECL is not output at a time it is declared weak.
13690 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13692 * machmode.def: Fixed comments.
13694 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13696 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13698 2011-01-24 Paul Koning <ni1d@arrl.net>
13700 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13703 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13706 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13707 (block_info): Add scanned and prev.
13708 (move_or_delete_vzeroupper_2): Return if the basic block
13709 has been scanned and the upper 128bit state is unchanged
13710 from the last scan.
13711 (move_or_delete_vzeroupper_1): Return true if the exit
13713 (move_or_delete_vzeroupper): Visit basic blocks using the
13714 work-list based algorithm based on vt_find_locations in
13717 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13719 2011-01-24 Nick Clifton <nickc@redhat.com>
13721 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13722 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13723 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13724 then define __v850e1__.
13725 * doc/invoke.texi: Document -mv850es.
13727 2011-01-24 Richard Henderson <rth@redhat.com>
13729 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13730 compound unordered comparisons.
13731 * config/rx/rx.c (rx_split_fp_compare): Remove.
13732 * config/rx/rx-protos.h: Update.
13733 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13734 (cbranchsf4): Don't call rx_split_fp_compare.
13735 (*cbranchsf4): Use rx_split_cbranch.
13736 (*cmpsf): Don't accept "i" constraint.
13737 (*conditional_branch): Only valid after reload.
13738 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13740 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13743 * config/rs6000/altivec.md (vector constant splitters): Add
13744 support for creating vector single precision constants if -mvsx is
13745 used and we would create the constant using Altivec primitives.
13747 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13748 Richard Sandiford <rdsandiford@googlemail.com>
13750 PR rtl-optimization/47166
13751 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13752 mechanism for PRE_MODIFY and POST_MODIFY.
13753 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13756 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13758 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13760 2011-01-22 Jan Hubicka <jh@suse.cz>
13763 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13765 2011-01-22 Jan Hubicka <jh@suse.cz>
13767 PR tree-optimization/43884
13769 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13770 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13772 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13774 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13775 * config/s390/s390.c (s390_register_move_cost,
13776 s390_memory_move_cost): New.
13777 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13779 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13781 PR middle-end/47401
13782 * except.c (sjlj_assign_call_site_values): Move setting the
13783 crtl->uses_eh_lsda flag to ...
13784 (sjlj_mark_call_sites): ... here.
13785 (sjlj_emit_function_enter): Support NULL dispatch label.
13786 (sjlj_build_landing_pads): In a function with no landing pads
13787 that still has must-not-throw regions, generate code to register
13788 a personality function with empty LSDA.
13790 2011-01-21 Richard Henderson <rth@redhat.com>
13792 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13794 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13796 * compare-elim.c: New file.
13797 * Makefile.in (OBJS-common): Add it.
13798 (compare-elim.o): New.
13799 * common.opt (fcompare-elim): New.
13800 * opts.c (default_options_table): Add OPT_fcompare_elim.
13801 * tree-pass.h (pass_compare_elim_after_reload): New.
13802 * passes.c (init_optimization_passes): Add it.
13803 * recog.h: Protect against re-inclusion.
13804 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13805 * doc/invoke.texi (-fcompare-elim): Document it.
13806 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13807 * doc/tm.texi: Rebuild.
13809 2011-01-22 Nick Clifton <nickc@redhat.com>
13811 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13812 rx_split_fp_compare.
13814 2011-01-22 Nick Clifton <nickc@redhat.com>
13816 * config/rx/rx.md (UNSPEC_CONST): New.
13817 (deallocate_and_return): Wrap the amount popped off the stack in
13818 an UNSPEC_CONST in order to stop it being rejected by
13819 -mmax-constant-size.
13820 (pop_and_return): Add a "(return)" rtx.
13821 (call): Drop the immediate operand.
13822 (call_internal): Likewise.
13823 (call_value): Likewise.
13824 (call_value_internal): Likewise.
13825 (sibcall_internal): Likewise.
13826 (sibcall_value_internal): Likewise.
13827 (sibcall): Likewise. Generate an explicit call using
13829 (sibcall_value): Likewise.
13830 (mov<>): FAIL if a constant operand is not legitimate.
13831 (addsi3_unpsec): New pattern.
13833 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13834 (ok_for_max_constant): New function.
13835 (gen_safe_add): New function.
13836 (rx_expand_prologue): Use gen_safe_add.
13837 (rx_expand_epilogue): Likewise.
13838 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13841 2011-01-21 Jeff Law <law@redhat.com>
13843 PR tree-optimization/47053
13844 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13845 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13846 statements are deleted.
13847 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13848 is nonempty, then purge dead edges and cleanup the CFG.
13850 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13853 Temporarily revert:
13854 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13856 * tree-dfa.c (create_var_ann): Mark variable as used.
13858 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13860 PR middle-end/45566
13861 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13862 notes from other section in hot/cold partitioning even if
13863 last_action is -3. Increment call_site_base.
13865 PR rtl-optimization/47366
13866 * fwprop.c (forward_propagate_into): Return bool. If
13867 any changes are made, -fnon-call-exceptions is used and
13868 REG_EH_REGION note is present, call purge_dead_edges
13869 and return true if it purged anything.
13870 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13871 any EH edges were purged.
13873 2011-01-21 Jeff Law <law@redhat.com>
13875 PR rtl-optimization/41619
13876 * caller-save.c (setup_save_areas): Break out code to determine
13877 which hard regs are live across calls by examining the reload chains
13878 so that it is always used.
13879 Eliminate code which checked REG_N_CALLS_CROSSED.
13881 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13883 PR tree-optimization/47355
13884 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13885 NOP has non-debug uses beyond PHIs in new_bb.
13887 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13890 * cfgexpand.c (account_used_vars_for_block): Only account vars
13891 that are annotated as used.
13892 (estimated_stack_frame_size): Don't set TREE_USED.
13893 * tree-dfa.c (create_var_ann): Mark variable as used.
13895 2011-01-21 Richard Guenther <rguenther@suse.de>
13897 PR middle-end/47395
13898 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13900 2011-01-21 Richard Guenther <rguenther@suse.de>
13902 PR tree-optimization/47365
13903 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13904 (vn_reference_lookup_pieces): Adjust.
13905 (vn_reference_lookup): Likewise.
13906 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13907 (vn_reference_lookup_3): Only look through kills if in
13908 VN_WALKREWRITE mode.
13909 (vn_reference_lookup_pieces): Adjust.
13910 (vn_reference_lookup): Likewise.
13911 (visit_reference_op_load): Likewise.
13912 (visit_reference_op_store): Likewise.
13913 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13914 (compute_avail): Likewise.
13915 (eliminate): Likewise.
13917 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13919 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13920 DECL_IGNORED_P non-reg vars if they are used.
13922 PR tree-optimization/47391
13923 * varpool.c (const_value_known_p): Return false if
13926 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13929 * config/i386/i386.c (ix86_local_alignment): Handle
13930 case for va_list_type_node is nil.
13931 (ix86_canonical_va_list_type): Likewise.
13933 2011-01-21 Alan Modra <amodra@gmail.com>
13935 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13936 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13938 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13940 * config/arm/arm.md (define_attr type): Rename f_load
13941 and f_store to f_fpa_load and f_fpa_store. Update.
13942 (write_conflict): Deal with rename fallout.
13943 (*push_fp_multi): Likewise.
13944 * config/arm/fpa.md (f_load): Use f_fpa_load.
13945 (f_store): Use f_fpa_store.
13946 (*movsf_fpa): Likewise.
13947 (*movdf_fpa): Likewise.
13948 (*movxf_fpa): Likewise.
13949 (*thumb2_movsf_fpa): Likewise.
13950 (*thumb2_movdf_fpa): Likewise.
13951 (*thumb2_movxf_fpa): Likewise.
13952 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13953 f_loadd and f_stored.
13954 (*thumb2_movdi_vfp): Likewise.
13955 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13956 (*thumb2_movsi_vfp): Likewise.
13957 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13958 Use f_loads instead of f_load.
13959 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13961 2011-01-20 Anatoly Sokolov <aesok@post.ru>
13963 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13964 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13965 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13966 (xtensa_mode_dependent_address_p): New function.
13967 (constantpool_address_p): Make static. Change return type to bool.
13968 Change argument type to const_rtx. Use CONST_INT_P predicate.
13970 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
13973 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13975 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13978 * cfgexpand.c (expand_debug_expr): Instead of generating
13979 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13982 2011-01-20 Richard Guenther <rguenther@suse.de>
13984 PR middle-end/47370
13985 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13986 the pointer operand of MEM_REFs.
13988 2011-01-20 Jakub Jelinek <jakub@redhat.com>
13990 PR tree-optimization/46130
13991 * ipa-split.c (consider_split): If return_bb contains non-virtual
13992 PHIs other than for retval or if split_function would not adjust it,
13995 2011-01-20 Richard Guenther <rguenther@suse.de>
13997 PR tree-optimization/47167
13998 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13999 Revert previous change, only avoid enumeral type changes.
14001 2011-01-19 Mike Stump <mikestump@comcast.net>
14003 * doc/tm.texi.in (BRANCH_COST): Englishify.
14004 * doc/tm.texi (BRANCH_COST): Likewise.
14006 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14009 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14010 (gen_scheduled_generic_parms_dies): New functions.
14011 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14012 generation for the end of CU compilation.
14013 (dwarf2out_finish): Generate template parameters DIEs here.
14015 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14018 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14019 debug bind stmt on merge edges.
14021 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14025 * function.c (instantiate_expr): Instantiate incoming rtl of
14026 implicit arguments, and recurse on VALUE_EXPRs.
14027 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14028 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14030 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14032 * c-parser.c (c_parser_for_statement): Initialize
14033 collection_expression.
14035 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14037 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14039 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14041 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14042 (LINK_SHLIB_SPEC): Don't use %(link_path).
14043 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14045 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14047 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14048 (NO_SHARED_LIB_SUPPORT): Remove.
14049 (LINK_SHLIB_SPEC): Remove one conditional definition.
14051 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14053 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14055 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14056 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14057 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14058 %{call_shared} and conditionals on these options not being passed.
14059 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14062 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14064 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14067 * ipa-split.c: Spelling fixes.
14069 2011-01-19 Richard Henderson <rth@redhat.com>
14071 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14072 (*mulsi3): Likewise.
14074 * longlong.h [__mn10300__] (count_leading_zeros): New.
14075 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14076 [__mn10300__] (add_ssaaaa, subddmmss): New.
14077 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14078 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14080 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14082 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14084 2011-01-19 Richard Henderson <rth@redhat.com>
14086 * config/mn10300/mn10300.md (addsi3_flags): New.
14087 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14088 (subsi3_flags, subc_internal, subdi3): New.
14089 (subdi3_internal, *subdi3_degenerate): New.
14090 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14092 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14093 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14094 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14095 * config/mn10300/mn10300-protos.h: Update.
14096 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14097 (return_ret): Likewise. Rename from return_internal_regs.
14098 (return_internal): Remove.
14100 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14101 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14102 (mn10300_legitimate_constant_p): Likewise.
14103 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14104 (mn10300_frame_size): New.
14105 (mn10300_expand_prologue): Use it.
14106 (mn10300_expand_epilogue): Likewise.
14107 (mn10300_initial_offset): Likewise.
14108 * config/mn10300/mn10300-protos.h: Update.
14109 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14110 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14111 (prologue, epilogue, return_internal): Tidy output code.
14112 (mn10300_store_multiple_operation, return): Likewise.
14113 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14114 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14115 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14116 (load_pic, am33_load_pic): New.
14117 (mn10300_load_pic0, mn10300_load_pic1): New.
14119 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14120 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14121 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14122 (cc_flags_for_mode, cc_flags_for_code): New.
14123 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14124 overflow flag is not valid. Validate that the flags we need
14125 for the comparison are valid.
14126 (mn10300_output_cmp): Remove.
14127 (mn10300_output_add): New.
14128 (mn10300_select_cc_mode): Use cc_flags_for_code.
14129 (mn10300_split_cbranch): New.
14130 (mn10300_match_ccmode): New.
14131 (mn10300_split_and_operand_count): New.
14132 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14134 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14135 (addsi3): ... here. Use mn10300_output_add.
14136 (*addsi3_flags): New.
14137 (*am33_subsi3, *mn10300_subsi3): Merge...
14138 (subsi3): ... here. Use attribute isa.
14139 (*subsi3_flags): New.
14140 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14142 (*am33_andsi3, *mn10300_andsi3): Merge...
14143 (andsi3): ... here.
14144 (*andsi3_flags): New.
14145 (andsi3 splitters): New.
14146 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14147 (iorsi3): ... here.
14148 (*iorsi3_flags): New.
14149 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14150 (xorsi3): ... here.
14151 (*xorsi3_flags): New.
14152 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14153 (one_cmplsi2): ... here.
14154 (*one_cmplsi2_flags): New.
14155 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14156 instead of "dax" in constraints. Use mn10300_split_cbranch.
14157 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14158 use matching constraints to eliminate a self-comparison.
14159 (*integer_conditional_branch): Rename from integer_conditional_branch.
14160 Use int_mode_flags to match CC_REG.
14161 (*cbranchsi4_btst, *btstsi): New.
14162 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14163 mn10300_split_cbranch.
14164 (*am33_cmpsf): Rename from am33_cmpsf.
14165 (*float_conditional_branch): Rename from float_conditional_branch.
14166 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14167 (zero_extendqisi2): ... here.
14168 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14169 (zero_extendhisi2): ... here.
14170 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14171 (extendqisi2): ... here.
14172 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14173 (extendhisi2): ... here.
14174 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14175 (ashlsi3): ... here.
14176 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14177 (lshrsi3): ... here.
14178 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14179 (ashrsi3): ... here.
14180 (consecutive add peephole): Remove.
14181 * config/mn10300/predicates.md (label_ref_operand): New.
14182 (int_mode_flags): New.
14183 (CCZN_comparison_operator): New.
14185 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14186 (throughput_42_latency_43): New reservation.
14187 (mulsidi3, umulsidi3): New expanders.
14188 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14189 the MDR register to allocation; separately allocate the low and
14190 high parts of the DImode result.
14191 (umulsidi3_internal): Similarly.
14192 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14193 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14194 (udivsi3, umodsi3): Remove.
14195 (udivmodsi4, divmodsi4): New expanders.
14196 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14197 (*divmodsi4): Simiarly.
14198 (ext_internal): New.
14200 * config/mn10300/constraints.md ("z"): New constraint.
14201 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14202 (FIXED_REGISTERS): Don't fix MDR.
14203 (CALL_USED_REGSITERS): Reformat nicely.
14204 (REG_ALLOC_ORDER): Add MDR.
14205 (enum regclass): Add MDR_REGS.
14206 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14207 (IRA_COVER_CLASSES): Add MDR_REGS.
14208 (REGNO_REG_CLASS): Handle MDR_REG.
14209 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14210 (mn10300_register_move_cost): Likewise.
14211 * config/mn10300/mn10300.md (MDR_REG): New.
14212 (*movsi_internal): Handle moves to/from MDR_REGS.
14214 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14216 (mn10300_secondary_reload): Tidy combination reload classes.
14217 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14218 addresses for AM33. Allow symbolic offsets for reg+imm.
14219 (mn10300_regno_in_class_p): New.
14220 (mn10300_legitimize_reload_address): New.
14221 * config/mn10300/mn10300.h (enum reg_class): Remove
14222 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14223 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14224 SP_OR_GENERAL_REGS.
14225 (REG_CLASS_NAMES): Update to match.
14226 (REG_CLASS_CONTENTS): Likewise.
14227 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14228 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14229 (REGNO_IN_RANGE_P): Remove.
14230 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14231 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14232 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14233 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14234 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14235 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14236 (REGNO_GENERAL_P): New.
14237 (HAVE_POST_MODIFY_DISP): New.
14238 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14239 (LEGITIMIZE_RELOAD_ADDRESS): New.
14240 * config/mn10300/mn10300-protos.h: Update.
14242 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14243 DATA_REGS for AM33 stack-pointer destination.
14244 (mn10300_preferred_output_reload_class): Likewise.
14245 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14246 into a form appropriate for ...
14247 (TARGET_SECONDARY_RELOAD): New.
14248 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14249 * config/mn10300/mn10300-protos.h: Update.
14250 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14251 reload_insi; use the "A" constraint for the scratch; handle AM33
14252 moves of sp to non-address registers.
14254 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14255 (*movqi_internal): ... here.
14256 (*am33_movhi, *mn10300_movhi): Merge into...
14257 (*movhi_internal): ... here.
14258 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14259 as the source/destination of moves from/to SP.
14260 (movsf): Only allow for AM33-2.
14261 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14262 any integer constant constraint. Only allow for AM33-2. Tidy
14263 all of the alternative outputs.
14264 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14265 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14267 (udivsi3, umodsi3): New patterns for MN103 only.
14269 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14271 * doc/tm.texi.in: Spell out that a lack of register class unions
14273 * doc/tm.texi: Regenerate.
14275 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14277 PR rtl-optimization/47337
14278 * dce.c (check_argument_store): New function.
14279 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14281 PR tree-optimization/47290
14282 * tree-eh.c (infinite_empty_loop_p): New function.
14283 (cleanup_empty_eh): Use it.
14285 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14288 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14289 (a64_expand_widen_sum): Ditto.
14290 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14291 (vec_extract_evenodd_help): Ditto.
14292 (vec_extract_evenv4hi): Ditto.
14293 (vec_extract_oddv4hi): Ditto.
14294 (vec_extract_evenv2si): Ditto.
14295 (vec_extract_oddv2si): Ditto.
14296 (vec_extract_evenv2sf): Ditto.
14297 (vec_extract_oddv2sf): Ditto.
14298 (vec_pack_trunc_v4hi: Ditto.
14299 (vec_pack_trunc_v2si): Ditto.
14300 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14301 (vec_interleave_highv8qi): Ditto.
14303 (vec_extract_oddv8qi): Ditto.
14304 (vec_interleave_lowv4hi): Ditto.
14305 (vec_interleave_highv4hi): Ditto.
14306 (vec_interleave_lowv2si): Ditto.
14307 (vec_interleave_highv2si): Ditto.
14309 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14311 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14312 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14313 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14314 (pa_c_mode_for_suffix): New.
14315 (TARGET_EXPAND_BUILTIN): Define.
14316 (TARGET_C_MODE_FOR_SUFFIX): Define.
14317 (pa_builtins): Define.
14318 (pa_init_builtins): Register __float128 type and init new support
14320 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14321 * config/pa/quadlib.c (_U_Qfcopysign): New.
14323 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14325 PR middle-end/46894
14326 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14327 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14330 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14332 PR tree-optimization/47179
14333 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14334 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14336 2011-01-18 Richard Guenther <rguenther@suse.de>
14338 PR rtl-optimization/47216
14339 * emit-rtl.c: Include tree-flow.h.
14340 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14341 of replicating it with different semantics.
14342 * Makefile.in (emit-rtl.o): Adjust.
14344 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14346 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14347 (cortex_a9_dp): Handle neon types correctly.
14349 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14351 PR rtl-optimization/47299
14352 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14353 subtarget. Use normal multiplication if both operands are constants.
14354 * expmed.c (expand_widening_mult): Don't try to optimize constant
14355 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14358 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14360 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14361 spacing after 'e.g.', typos, comma, hyphenation.
14363 2011-01-17 Richard Henderson <rth@redhat.com>
14365 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14366 (rx_restricted_mem_operand): New.
14367 (rx_shift_operand): Use register_operand.
14368 (rx_source_operand, rx_compare_operand): Likewise.
14369 * config/rx/rx.md (addsi3_flags): New expander.
14370 (adddi3): Rewrite as expander.
14371 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14372 (subsi3_flags): New expander.
14373 (subdi3): Rewrite as expander.
14374 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14376 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14377 (rx_init_builtins): Remove sat builtin.
14378 (rx_expand_builtin): Likewise.
14379 * config/rx/rx.md (ssaddsi3): New.
14380 (*sat): Rename from sat. Represent the CC_REG input.
14382 * config/rx/predicates.md (rshift_operator): New.
14383 * config/rx/rx.c (rx_expand_insv): Remove.
14384 * config/rx/rx-protos.h: Update.
14385 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14386 operand to the canonical position.
14387 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14388 (*bitclr, *bitclr_in_memory): Similarly.
14389 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14390 (insv): Retain the zero_extract in the expansion.
14392 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14393 (bswaphi2, bitinvert, revw): Likewise.
14395 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14396 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14397 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14398 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14399 (bitset, bitset_in_memory): Likewise.
14400 (bitinvert, bitinvert_in_memory): Likewise.
14401 (bitclr, bitclr_in_memory): Likewise.
14402 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14403 (rx_strend, rx_cmpstrn): Likewise.
14404 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14405 (bitop peep2 patterns): Remove.
14407 * config/rx/rx.c (rx_match_ccmode): New.
14408 * config/rx/rx-protos.h: Update.
14409 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14410 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14411 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14412 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14413 (fix_truncsfsi2, floatsisf2): Likewise.
14414 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14415 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14416 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14417 (*subsi3_flags, *xorsi3_flags): New.
14419 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14421 * config/rx/rx.c (rx_print_operand): Remove workaround for
14422 unsplit comparison operations.
14424 * config/rx/rx.md (movsicc): Split after reload.
14425 (*movsicc): Merge *movsieq and *movsine via match_operator.
14426 (*stcc): New pattern.
14428 * config/rx/rx.c (rx_float_compare_mode): Remove.
14429 * config/rx/rx.h (rx_float_compare_mode): Remove.
14430 * config/rx/rx.md (cstoresi4): Split after reload.
14431 (*sccc): New pattern.
14433 * config/rx/predicates.md (label_ref_operand): New.
14434 (rx_z_comparison_operator): New.
14435 (rx_zs_comparison_operator): New.
14436 (rx_fp_comparison_operator): New.
14437 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14438 Validate that the flags are set properly for the comparison.
14439 (rx_gen_cond_branch_template): Remove.
14440 (rx_cc_modes_compatible): Remove.
14441 (mode_from_flags): New.
14442 (flags_from_code): Rename from flags_needed_for_conditional.
14443 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14444 (rx_select_cc_mode): Likewise.
14445 (rx_split_fp_compare): New.
14446 (rx_split_cbranch): New.
14447 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14448 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14449 (*cbranchsf4): Similarly.
14450 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14451 match_operator and rx_split_cbranch.
14452 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14453 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14454 (*cmpsi): Rename from cmpsi.
14455 (*tstsi): Rename from tstsi.
14456 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14457 (*conditional_branch): Rename from conditional_branch.
14458 (*reveresed_conditional_branch): Remove.
14459 (b<code>): Remove expander.
14460 * config/rx/rx-protos.h: Update.
14462 * config/rx/rx.c (rx_compare_redundant): Remove.
14463 * config/rx/rx.md (cmpsi): Don't use it.
14464 * config/rx/rx-protos.h: Update.
14466 * config/rx/rx-modes.def (CC_F): New mode.
14467 * config/rx/rx.c (rx_select_cc_mode): New.
14468 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14469 * config/rx/rx-protos.h: Update.
14471 2011-01-17 Richard Henderson <rth@redhat.com>
14473 * except.c (dump_eh_tree): Fix stray ; after for statement.
14475 2011-01-17 Richard Guenther <rguenther@suse.de>
14477 PR tree-optimization/47313
14478 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14479 handling before copying the body. Properly deal with
14480 by-reference result in SSA form.
14482 2011-01-17 Ian Lance Taylor <iant@google.com>
14485 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14486 (struct_value_alias_set): Don't define.
14487 (sparc_option_override): Don't set sparc_sr_alias_set and
14488 struct_value_alias_set.
14489 (save_or_restore_regs): Use gen_frame_mem rather than calling
14491 (sparc_struct_value_rtx): Likewise.
14493 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14496 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14497 (_mm_maskstore_pd): Likewise.
14498 (_mm_maskload_ps): Likewise.
14499 (_mm_maskstore_ps): Likewise.
14500 (_mm256_maskload_pd): Change mask to __m256i.
14501 (_mm256_maskstore_pd): Likewise.
14502 (_mm256_maskload_ps): Likewise.
14503 (_mm256_maskstore_ps): Likewise.
14505 * config/i386/i386-builtin-types.def: Updated.
14506 (ix86_expand_special_args_builtin): Likewise.
14508 * config/i386/i386.c (bdesc_special_args): Update
14509 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14510 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14511 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14512 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14514 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14515 Use <avxpermvecmode> on mask register.
14516 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14518 2011-01-17 Olivier Hainque <hainque@adacore.com>
14519 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14520 Eric Botcazou <ebotcazou@adacore.com>
14523 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14524 if <= USHRT_MAX in 32-bit mode.
14526 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14528 * doc/install.texi (Configuration, Specific): Wrap long
14529 lines in examples. Allow line wrapping in long options
14530 and URLs where beneficial for PDF output.
14532 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14534 * config/mips/mips.c (mips_classify_symbol): Don't return
14535 SYMBOL_PC_RELATIVE for nonlocal labels.
14537 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14539 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14541 2011-01-15 Jan Hubicka <jh@suse.cz>
14543 PR tree-optimization/47276
14544 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14545 declarations as needed.
14547 2011-01-15 Martin Jambor <mjambor@suse.cz>
14549 * common.opt (fdevirtualize): New flag.
14550 * doc/invoke.texi (Option Summary): Document it.
14551 * opts.c (default_options_table): Add devirtualize flag.
14552 * ipa-prop.c (detect_type_change): Return immediately if
14553 devirtualize flag is not set.
14554 (detect_type_change_ssa): Likewise.
14555 (compute_known_type_jump_func): Likewise.
14556 (ipa_analyze_virtual_call_uses): Likewise.
14558 2011-01-14 Martin Jambor <mjambor@suse.cz>
14560 PR tree-optimization/45934
14561 PR tree-optimization/46302
14562 * ipa-prop.c (type_change_info): New type.
14563 (stmt_may_be_vtbl_ptr_store): New function.
14564 (check_stmt_for_type_change): Likewise.
14565 (detect_type_change): Likewise.
14566 (detect_type_change_ssa): Likewise.
14567 (compute_complex_assign_jump_func): Check for dynamic type change.
14568 (compute_complex_ancestor_jump_func): Likewise.
14569 (compute_known_type_jump_func): Likewise.
14570 (compute_scalar_jump_functions): Likewise.
14571 (ipa_analyze_virtual_call_uses): Likewise.
14572 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14574 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14576 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14577 * config/i386/i386.opt (msse5): New Alias.
14579 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14581 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14582 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14583 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14584 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14586 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14588 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14590 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14591 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14592 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14593 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14595 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14597 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14599 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14601 2011-01-14 Mike Stump <mikestump@comcast.net>
14603 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14604 * config/fr30/fr30.md: Likweise
14605 (movsi_push): Likewise.
14606 (movsi_pop): Likewise.
14607 (enter_func): Likewise.
14608 * config/moxie/moxie.md (movsi_push): Likewise.
14609 (movsi_pop): Likewise.
14611 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14613 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14614 %{no_archive} %{exact_version}.
14615 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14616 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14617 %{no_archive} %{exact_version}.
14618 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14619 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14620 * config/mips/vxworks.h: Likewise.
14622 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14624 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14626 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14628 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14629 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14631 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14633 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14636 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14638 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14640 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14641 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14643 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14644 Don't handle -shlib.
14646 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14648 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14649 (CC1_SPEC): Don't handle -profile.
14651 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14653 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14654 * config/mips/mips.h (CC1_SPEC): Likewise.
14656 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14658 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14659 * config/mips/mips.h (CC1_SPEC): Likewise.
14661 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14663 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14664 * config/m32r/linux.h (LINK_SPEC): Likewise.
14665 * config/mips/linux.h (LINK_SPEC): Likewise.
14666 * config/mips/linux64.h (LINK_SPEC): Likewise.
14667 * config/sparc/linux.h (LINK_SPEC): Likewise.
14668 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14669 LINK_SPEC): Likewise.
14670 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14672 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14674 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14676 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14678 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14680 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14681 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14683 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14685 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14687 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14689 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14690 supports -Bstatic/-Bdynamic.
14691 * configure: Regenerate.
14693 2011-01-14 Jan Hubicka <jh@suse.cz>
14694 Jack Howarth <howarth@bromo.med.uc.edu>
14697 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14698 when checking debug_info_level. Test write_symbols instead of
14699 debug_hooks->var_location when setting flag_var_tracking_uninit.
14701 2011-01-14 Richard Guenther <rguenther@suse.de>
14703 PR tree-optimization/47179
14704 * target.def (ref_may_alias_errno): New target hook.
14705 * targhooks.h (default_ref_may_alias_errno): Declare.
14706 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14707 (default_ref_may_alias_errno): New function.
14708 * target.h (struct ao_ref_s): Declare.
14709 * tree-ssa-alias.c: Include target.h.
14710 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14711 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14712 (targhooks.o): Likewise.
14713 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14714 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14716 2011-01-14 Richard Guenther <rguenther@suse.de>
14718 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14720 2011-01-14 Richard Guenther <rguenther@suse.de>
14722 PR tree-optimization/47280
14723 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14724 return CFG changes.
14725 (tree_ssa_forward_propagate_single_use_vars): Deal with
14726 CFG changes from associate_plusminus.
14728 2011-01-14 Richard Guenther <rguenther@suse.de>
14730 PR middle-end/47281
14732 2011-01-11 Richard Guenther <rguenther@suse.de>
14734 PR tree-optimization/46076
14735 * tree-ssa.c (useless_type_conversion_p): Conversions from
14736 unprototyped to empty argument list function types are useless.
14738 2011-01-14 Richard Guenther <rguenther@suse.de>
14740 PR tree-optimization/47286
14741 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14743 2011-01-14 Martin Jambor <mjambor@suse.cz>
14745 PR middle-end/46823
14746 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14748 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14750 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14751 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14752 * config/xtensa/xtensa.c (xtensa_libcall_value,
14753 xtensa_function_value_regno_p): New functions.
14754 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14756 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14759 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14761 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14762 New function prototype.
14763 * config/i386/winnt.c (i386_pe_assemble_visibility):
14764 Warn only if attribute was specified by user.
14766 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14769 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14771 (floatunsdidf2_fcfidu): Ditto.
14773 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14775 * config/s390/s390.c (print_operand_address): Replace 'error' with
14776 'output_operand_lossage'.
14777 (print_operand): Likewise.
14779 2011-01-13 Jeff Law <law@redhat.com>
14781 PR rtl-optimization/39077
14782 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14783 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14784 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14785 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14786 * gcse.c (prune_insertions_deletions): New function.
14787 (compute_pre_data): Use it.
14789 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14792 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14794 (prune_unused_types_mark): Use it.
14796 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14798 PR rtl-optimization/45352
14799 * sel-sched.c: Update copyright years.
14800 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14801 in the advancing loop when we have issued issue_rate insns.
14803 2011-01-12 Richard Henderson <rth@redhat.com>
14805 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14806 (TARGET_MD_ASM_CLOBBERS): New.
14808 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14809 (TARGET_DELEGITIMIZE_ADDRESS): New.
14811 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14812 (clzsi2, *bsch): New patterns.
14814 * config/mn10300/mn10300.md (INT): New mode iterator.
14815 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14817 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14818 flag_split_wide_types.
14820 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14821 (mn10300_trampoline_init): Rewrite without a template, an immediate
14822 load and a direct branch.
14823 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14825 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14827 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14828 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14829 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14830 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14832 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14835 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14838 2011-01-12 Jan Hubicka <jh@suse.cz>
14841 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14842 (PLUGIN_COND_CLOSE): New macro.
14843 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14845 2011-01-12 Richard Guenther <rguenther@suse.de>
14848 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14849 register variables in a MEM_REF.
14851 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14853 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14854 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14855 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14856 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14857 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14858 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14859 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14860 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14861 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14862 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14863 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14864 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14865 * config/gnu-user.h: New. Copied from linux.h.
14866 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14867 GNU_USER_TARGET_STARTFILE_SPEC.
14868 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14869 GNU_USER_TARGET_ENDFILE_SPEC.
14870 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14871 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14872 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14873 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14874 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14875 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14876 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14877 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14878 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14879 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14880 * config/arm/linux-eabi.h (CC1_SPEC): Use
14881 GNU_USER_TARGET_CC1_SPEC.
14882 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14883 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14884 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14885 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14886 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14887 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14888 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14889 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14891 2011-01-12 Richard Guenther <rguenther@suse.de>
14894 * doc/invoke.texi (ffast-math): Document it is turned on
14897 2011-01-12 Jan Hubicka <jh@suse.cz>
14899 PR tree-optimization/47233
14900 * opts.c (common_handle_option): Disable ipa-reference with profile
14903 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14905 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14908 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14910 * c-parser.c (c_lex_one_token): Updated and reindented some
14911 comments. No changes in code.
14913 2011-01-11 Ian Lance Taylor <iant@google.com>
14915 * godump.c (go_output_var): Don't output the variable if there is
14916 already a type with the same name.
14918 2011-01-11 Ian Lance Taylor <iant@google.com>
14920 * godump.c (go_format_type): Don't generate float80.
14922 2011-01-11 Richard Henderson <rth@redhat.com>
14924 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14925 declaration. Rewrite for both speed and size.
14926 (mn10300_address_cost_1): Remove.
14927 (mn10300_register_move_cost): New.
14928 (mn10300_memory_move_cost): New.
14929 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14930 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14931 extensions, shifts, BSWAP, CLZ.
14932 (mn10300_wide_const_load_uses_clr): Remove.
14933 (TARGET_REGISTER_MOVE_COST): New.
14934 (TARGET_MEMORY_MOVE_COST): New.
14935 * config/mn10300/mn10300-protos.h: Update.
14936 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14938 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14939 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14940 * config/mn10300/mn10300-protos.h: Update.
14941 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14942 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14943 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14944 (*test_int_bitfield, *test_byte_bitfield): Remove.
14945 (*bit_test, *subreg_bit_test): Remove.
14946 * config/mn10300/predicates.md (const_8bit_operand): Remove.
14948 * config/mn10300/constraints.md ("c"): Rename from "A".
14949 ("A", "D"): New constraint letters.
14950 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14951 (fmssf4, fnmasf4, fnmssf4): Likewise.
14953 * config/mn10300/mn10300.md (isa): New attribute.
14954 (enabled): New attribute.
14956 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14957 (abssf2, negsf2): Define only for hardware fp.
14958 (sqrtsf2): Reformat.
14959 (addsf3, subsf3, mulsf3): Merge expander and insn.
14961 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14962 (DEBUGGER_AUTO_OFFSET): Remove.
14963 (DEBUGGER_ARG_OFFSET): Remove.
14965 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14966 Emit register stores with the same offsets as the hardware.
14967 (mn10300_store_multiple_operation): Don't check that the register
14968 save offsets are monotonic.
14969 * config/mn10300/mn10300-protos.h: Update.
14971 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14973 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14974 in terms of the value on the stack, not the MDR register.
14976 2011-01-11 Jan Hubicka <jh@suse.cz>
14980 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14981 (symbol_alias_set_destroy, symbol_alias_set_contains,
14982 propagate_aliases_backward): Declare.
14983 * lto-streamer-out.c (struct sets): New sturcture.
14984 (trivally_defined_alias): New function.
14985 (output_alias_pair_p): Rewrite.
14986 (output_unreferenced_globals): Fix output of alias pairs.
14987 (produce_symtab): Likewise.
14988 * ipa.c (function_and_variable_visibility): Set weak alias destination
14990 * varasm.c (symbol_alias_set_t): Remove.
14991 (symbol_alias_set_destroy): Export.
14992 (propagate_aliases_forward, propagate_aliases_backward): New functions
14994 (compute_visible_aliases): ... this one; remove.
14995 (trivially_visible_alias): New
14996 (trivially_defined_alias): New.
14997 (remove_unreachable_alias_pairs): Rewrite.
14998 (finish_aliases_1): Reorganize code checking if alias is defined.
14999 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15002 2011-01-11 Richard Guenther <rguenther@suse.de>
15004 PR tree-optimization/46076
15005 * tree-ssa.c (useless_type_conversion_p): Conversions from
15006 unprototyped to empty argument list function types are useless.
15008 2011-01-11 Richard Guenther <rguenther@suse.de>
15010 PR middle-end/45235
15011 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15012 volatile MEMs as MEM_READONLY_P.
15014 2011-01-11 Richard Guenther <rguenther@suse.de>
15016 PR tree-optimization/47239
15017 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15019 2011-01-11 Jeff Law <law@redhat.com>
15021 PR tree-optimization/47086
15022 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15023 IVs from statements that might throw.
15025 2011-01-10 Jan Hubicka <jh@suse.cz>
15028 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15030 2011-01-10 Jan Hubicka <jh@suse.cz>
15033 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15034 when correcting profile.
15036 2011-01-10 Jan Hubicka <jh@suse.cz>
15039 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15040 DECL_FINI_PRIORITY.
15041 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15042 Restore DECL_FINI_PRIORITY.
15044 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15046 * doc/gimple.texi: Fix quoting of multi-word return values in
15047 @deftypefn statements. Ensure presence of return value. Wrap
15048 overlong @deftypefn lines.
15049 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15050 descriptions of removed functions.
15051 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15052 of multi-word return value in @deftypefn statement.
15054 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15056 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15057 (Conditional Expressions, Logical Operators)
15058 (Statement and operand traversals): Do not indent smallexample
15059 code. Fix duplicate function argument in example.
15061 2011-01-10 Jeff Law <law@redhat.com>
15063 PR tree-optimization/47141
15064 * ipa-split.c (split_function): Handle case where we are
15065 returning a value and the return block has a virtual operand phi.
15067 2011-01-10 Jan Hubicka <jh@suse.cz>
15069 PR tree-optimization/47234
15070 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15071 (pass_feedback_split_functions): Declare.
15072 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15074 * ipa-split.c (gate_split_functions): Update comments; disable
15075 split-functions for profile_arc_flag and branch_probabilities.
15076 (gate_feedback_split_functions): New function.
15077 (execute_feedback_split_functions): New function.
15078 (pass_feedback_split_functions): New global var.
15080 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15083 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15084 calling gimple_call_set_cannot_inline.
15086 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15088 * config/darwin-sections.def: Remove unused section.
15090 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15093 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15095 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15098 * c-parser.c (c_parser_declaration_or_fndef): Improved
15101 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15103 * config/i386/winnt.c (i386_pe_start_function): Make sure
15104 to switch back to function's section.
15106 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15110 * plugin.c: Move include of dlfcn.h from here...
15111 * system.h: ... to here.
15113 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15115 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15117 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15118 two extra empty pages in PDF output.
15120 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15123 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15124 for error recovery purposes behave as if it was not specified so
15125 that the default type is usd.
15127 2011-01-07 Jan Hubicka <jh@suse.cz>
15129 PR tree-optmization/46469
15130 * ipa.c (function_and_variable_visibility): Clear needed flags on
15131 nodes with external decls; handle weakrefs merging correctly.
15133 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15135 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15138 2011-01-07 Jan Hubicka <jh@suse.cz>
15140 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15141 and no longer claim that gold is required for linker plugin.
15142 * configure: Regenerate.
15143 * gcc.c (PLUGIN_COND): New macro.
15144 (LINK_COMMAND_SPEC): Use it.
15145 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15146 * config.in (HAVE_LTO_PLUGIN): New.
15147 * configure.ac (--with-lto-plugin): New parameter; autodetect
15150 2011-01-07 Jan Hubicka <jh@suse.cz>
15152 PR tree-optimization/46367
15153 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15154 when we can update original.
15155 (cgraph_mark_inline_edge): Sanity check.
15156 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15158 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15160 * config/spu/spu.h (ASM_COMMENT_START): Define.
15162 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15165 * gcc.c (%>S): New.
15166 (SWITCH_KEEP_FOR_GCC): Likewise.
15167 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15168 (do_spec_1): Handle "%>".
15170 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15172 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15175 * config/i386/i386.c (ix86_delegitimize_address): If
15176 simplify_gen_subreg fails, return orig_x.
15179 * value-prof.c (gimple_stringop_fixed_value): Handle
15180 lhs of the call properly.
15182 2011-01-07 Jan Hubicka <jh@suse.cz>
15185 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15187 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15189 * target.def (function_switched_text_sections): New hook.
15190 * doc/tm.texi: Regenerated.
15191 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15192 * final.c (default_function_switched_text_sections): New.
15193 (final_scan_insn): Call function_switched_text_sections when a
15194 mid-function section change occurs.
15195 * output.h (default_function_switched_text_sections): Declare.
15196 * config/darwin-protos.h (darwin_function_switched_text_sections):
15198 * config/darwin.c (darwin_function_switched_text_sections): New.
15199 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15201 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15203 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15204 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15205 the secondary code fragment when outputting for DWARF == 2.
15207 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15209 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15210 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15212 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15213 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15215 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15218 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15219 when it is not empty.
15221 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15224 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15225 (case ${target}): Add btver1.
15226 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15227 -march=native recognize btver1 processors.
15228 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15229 btver1 def_and_undef
15230 * config/i386/i386.c (struct processor_costs btver1_cost): New
15232 (m_BTVER1): New definition.
15233 (m_AMD_MULTIPLE): Includes m_BTVER1.
15234 (initial_ix86_tune_features): Add btver1 tune.
15235 (processor_target_table): Add btver1 entry.
15236 (static const char *const cpu_names): Add btver1 entry.
15237 (software_prefetching_beneficial_p): Add btver1.
15238 (ix86_option_override_internal): Add btver1 instruction sets.
15239 (ix86_issue_rate): Add btver1.
15240 (ix86_adjust_cost): Add btver1.
15241 * config/i386/i386.h (TARGET_BTVER1): New definition.
15242 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15243 (enum processor_type): Add PROCESSOR_BTVER1.
15244 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15246 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15249 * config/i386/i386.c (legitimize_tls_address)
15250 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15251 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15252 (tls_initial_exec_64_sun): New pattern.
15254 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15256 * doc/invoke.texi (Overall Options): Improve wording and markup
15257 of the description of -wrapper.
15259 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15261 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15262 rdynamic, threads): New Driver options.
15264 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15267 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15268 if coming from .tdata.
15269 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15271 2011-01-06 Jan Hubicka <jh@suse.cz>
15274 * collect2.c (main): Do not enable LTOmode when plugin is active.
15276 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15279 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15280 --version output if supported.
15281 * configure: Regenerate.
15283 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15285 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15288 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15291 * c-convert.c (convert): When converting a complex expression
15292 other than COMPLEX_EXPR to a different complex type, ensure
15293 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15294 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15295 when converting COMPLEX_TYPE.
15297 2011-01-06 Ira Rosen <irar@il.ibm.com>
15299 PR tree-optimization/47139
15300 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15301 only the last reduction value is used outside the loop. Update
15304 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15306 * config/rtems.opt: New.
15307 * config.gcc (*-*-rtems*): Use rtems.opt.
15309 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15311 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15312 processors do not support 3DNow instructions.
15314 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15316 * config/spu/spu.c (spu_option_override): Set parameter
15317 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15319 2011-01-05 Jan Hubicka <jh@suse.cz>
15321 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15322 at the command line.
15324 2011-01-05 Martin Jambor <mjambor@suse.cz>
15327 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15328 deltas on streamed outgoing edges.
15329 (output_node_opt_summary): Output info for outgoing edges only when
15330 the node is in new parameter set.
15331 (output_cgraph_opt_summary): New parameter set, passed to the two
15332 aforementioned functions. Update its forward declaration and its
15335 2011-01-05 Tom Tromey <tromey@redhat.com>
15337 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15338 operator to c_finish_omp_atomic.
15339 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15340 (build_unary_op): Update.
15341 (build_modify_expr): Update.
15342 (build_asm_expr): Update.
15344 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15346 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15347 newly inserted insns.
15348 (pad_bb): Likewise.
15349 (spu_emit_branch_hint): Likewise.
15350 (insert_hbrp_for_ilb_runout): Likewise.
15351 (spu_machine_dependent_reorg): Call df_finish_pass after
15352 schedule_insns returns.
15354 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15356 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15358 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15360 PR tree-optimization/47005
15361 * tree-sra.c (struct access): Add 'non_addressable' bit.
15362 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15363 (decide_one_param_reduction): Return 0 if the parameter is passed by
15364 reference and one of the accesses in the group is non_addressable.
15366 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15368 PR tree-optimization/47056
15369 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15370 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15371 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15373 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15375 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15376 initializer. Skip view conversions from aggregate types.
15378 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15381 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15383 2011-01-04 Philipp Thomas <pth@suse.de>
15385 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15388 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15390 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15391 on empty epilogue sequences.
15393 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15395 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15396 non-static): New Driver options.
15398 2011-01-04 Jie Zhang <jie@codesourcery.com>
15401 * gcc.c (default_compilers[]): Set combinable field to 0
15402 for all assembly languages.
15404 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15406 * config/mips/loongson3a.md: New file.
15407 * config/mips/mips.md: Include loongson3a.md.
15408 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15411 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15413 PR middle-end/47017
15414 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15415 instead of convert_memory_address_addr_space on the base expression.
15417 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15419 * config/spu/spu.c (spu_option_override): Update error text
15420 for bad -march= / -mtune= values.
15422 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15424 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15425 if branch-hint optimization will be performed.
15427 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15429 PR tree-optimization/47148
15430 * ipa-split.c (split_function): Convert arguments to
15431 DECL_ARG_TYPE if possible.
15433 PR tree-optimization/47155
15434 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15435 when computing uns.
15437 PR rtl-optimization/47157
15438 * combine.c (try_combine): If undobuf.other_insn becomes
15439 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15440 and set *new_direct_jump_p too.
15442 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15444 PR tree-optimization/47021
15445 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15447 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15449 * gcc.c (process_command): Update copyright notice dates.
15450 * gcov.c (print_version): Likewise.
15451 * gcov-dump.c (print_version): Likewise.
15452 * mips-tfile.c (main): Likewise.
15453 * mips-tdump.c (main): Likewise.
15455 2011-01-03 Martin Jambor <mjambor@suse.cz>
15457 PR tree-optimization/46801
15458 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15459 aggregate fields start at byte boundary instead of the bit-field flag.
15461 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15464 * gcc.c (main): Revert revision 168407.
15466 2011-01-03 Martin Jambor <mjambor@suse.cz>
15468 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15470 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15472 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15473 vector optab to expand vector/scalar shift, update gimple to vector.
15475 2011-01-03 Martin Jambor <mjambor@suse.cz>
15477 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15480 2011-01-03 Martin Jambor <mjambor@suse.cz>
15482 PR tree-optimization/46984
15483 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15485 (cgraph_create_indirect_edge): Fixed line length.
15486 (cgraph_indirect_call_info): Declare.
15487 (cgraph_make_edge_direct) Update declaration.
15488 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15489 (cgraph_create_indirect_edge): Use it.
15490 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15492 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15493 the new thunk_delta representation.
15494 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15496 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15497 (ipa_read_indirect_edge_info): Likewise.
15498 * lto-cgraph.c (output_edge_opt_summary): New function.
15499 (output_node_opt_summary): Call it on all outgoing edges.
15500 (input_edge_opt_summary): New function.
15501 (input_node_opt_summary): Call it on all outgoing edges.
15503 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15506 * gcc.c (main): Don't check have_o when settting combine_inputs.
15508 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15510 * regrename.c: Add general comment describing the pass.
15511 (struct du_head): Remove 'length' field.
15512 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15513 (regrename_optimize): Do not sort chains. Rework comments, add others.
15514 Force renaming to the preferred class (if any) in the first pass and do
15515 not consider registers that belong to it in the second pass.
15516 (create_new_chain): Do not set 'length' field.
15517 (scan_rtx_reg): Likewise.
15519 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15521 PR tree-optimization/47140
15522 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15523 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15524 to bit_value_binop.
15526 PR rtl-optimization/47028
15527 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15528 parm_birth_insn instead of at the beginning of first bb.
15530 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15532 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15533 Remove the word "see" before "@pxref".
15534 * doc/rtl.texi: Remove the word "see" before "@pxref".
15536 2011-01-01 Jan Hubicka <jh@suse.cz>
15538 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15541 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15544 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15547 Copyright (C) 2011 Free Software Foundation, Inc.
15549 Copying and distribution of this file, with or without modification,
15550 are permitted in any medium without royalty provided the copyright
15551 notice and this notice are preserved.