1 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
4 ("orndi3_neon"): Likewise.
5 ("bic<mode>3_neon"): Likewise.
7 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
9 PR tree-optimization/49038
10 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
11 Ensure at least one epilogue iteration if required by data
13 * tree-vectorizer.h (struct _loop_vec_info): Add new field
14 to mark loops that require peeling for gaps.
15 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
16 (vect_get_known_peeling_cost): Take peeling for gaps into
18 (vect_transform_loop): Generate epilogue if required by data
20 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
21 loop as requiring an epilogue if there are gaps in the end of
24 2011-05-25 Ian Lance Taylor <iant@google.com>
26 * godump.c (go_format_type): Output the first field with a usable
29 2011-05-25 Ian Lance Taylor <iant@google.com>
31 * godump.c (go_format_type): Check for invalid type names, pointer
32 target types, and struct field types.
34 2011-05-25 Jason Merrill <jason@redhat.com>
36 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
38 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
40 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
42 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
44 * config/i386/i386.md (*movqi_extv_1)): Put back
45 "register_operand" check in "type" calculation.
46 (*movqi_extzv_2): Likewise.
48 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
50 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
52 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
55 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
56 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
57 __divxc3, __divtc3): Wrap definitions in #ifndef.
59 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
62 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
63 "register_operand" check and replace q_regs_operand with
64 QIreg_operand in "type" calculation.
65 (*movqi_extv_1): Likewise.
66 (*movqi_extzv_2_rex64): Likewise.
67 (*movqi_extzv_2): Likewise.
69 * config/i386/predicates.md (QIreg_operand): New.
71 2011-05-25 Richard Guenther <rguenther@suse.de>
73 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
74 type-based offset disambiguation, streamline MEM_REF and
75 TARGET_MEM_REF handling.
77 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
79 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
80 (bdesc_special_args): Add pause intrinsic.
82 * config/i386/i386.md (UNSPEC_PAUSE): New.
85 * config/i386/ia32intrin.h (__pause): Likewise.
87 * doc/extend.texi (X86 Built-in Functions): Add documentation for
90 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
92 PR tree-optimization/46728
93 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
94 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
96 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
98 * tree.h (struct tree_exp): Inherit from struct tree_typed.
99 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
100 instead of TS_COMMON.
102 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
104 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
105 LIBGCC2_GNU_PREFIX is defined.
107 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
108 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
109 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
110 __clz_tab): Define using __N.
111 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
112 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
113 * target.def (libfunc_gnu_prefix): New hook.
114 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
115 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
116 * doc/tm.texi: Regenerate.
117 * system.h (LIBGCC2_GNU_PREFIX): Poison.
118 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
120 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
121 (init_optabs): Likewise for the bswap libfuncs.
122 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
124 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
125 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
126 * libgcc-std.ver: Remove.
127 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
128 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
130 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
131 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
132 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
133 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
134 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
135 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
136 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
137 * config/fixed-bit.h (FIXED_OP): Define differently depending on
138 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
139 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
141 2011-05-25 Jan Hubicka <jh@suse.cz>
143 * lto-streamer-out.c (output_record_start): Use lto_output_enum
144 (lto_output_tree): Use output_record_start.
145 * lto-streamer-in.c (input_record_start): Use lto_input_enum
146 (lto_get_pickled_tree): Use input_record_start.
147 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
148 (lto_value_range_error): New function.
149 * lto-streamer.h (lto_value_range_error): Declare.
150 (lto_output_int_in_range, lto_input_int_in_range): New functions.
151 (lto_output_enum, lto_input_enum): New macros.
153 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
155 * common.opt (flag_stack_usage_info): New variable.
156 (-Wstack-usage): New option.
157 * doc/invoke.texi (Warning options): Document -Wstack-usage.
158 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
159 <OPT_fstack_usage>: Likewise.
160 * toplev.c (output_stack_usage): Handle -Wstack-usage.
161 * calls.c (expand_call): Test flag_stack_usage_info variable instead
163 (emit_library_call_value_1): Likewise.
164 * explow.c (allocate_dynamic_stack_space): Likewise.
165 * function.c (instantiate_virtual_regs ): Likewise.
166 (prepare_function_start): Likewise.
167 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
168 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
169 * config/arm/arm.c (arm_expand_prologue): Likewise.
170 (thumb1_expand_prologue): Likewise.
171 * config/avr/avr.c (expand_prologue): Likewise.
172 * config/i386/i386.c (ix86_expand_prologue): Likewise.
173 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
174 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
175 * config/mips/mips.c (mips_expand_prologue): Likewise.
176 * config/pa/pa.c (hppa_expand_prologue): Likewise.
177 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
178 * config/s390/s390.c (s390_emit_prologue): Likewise.
179 * config/sh/sh.c (sh_expand_prologue): Likewise.
180 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
181 * config/spu/spu.c (spu_expand_prologue): Likewise.
183 2011-05-25 Richard Guenther <rguenther@suse.de>
185 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
186 (gimple_canonical_types_compatible_p): Likewise.
188 2011-05-25 Jan Hubicka <jh@suse.cz>
191 * ipa.c (function_and_variable_visibility): Only add to same
192 comdat group list if DECL_ONE_ONLY.
194 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
196 PR rtl-optimization/49014
197 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
199 2011-05-25 Jakub Jelinek <jakub@redhat.com>
202 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
204 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
206 PR rtl-optimization/48757
207 * ira-build.c (loop_with_eh_edge_p): Rename to
208 loop_with_complex_edge_p, check edges on complexity, make function
210 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
213 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
215 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
216 force flag_ira_share_save_slots to 0.
218 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
220 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
221 (vt_initialize): Set PROLOGUE_BB unconditionally.
222 Add block comment about CFA_BASE_RTX machinery.
223 Reset FP_CFA_OFFSET to -1 on all invalid paths.
224 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
226 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
229 * c-parser.c (c_parser_objc_class_instance_variables): More robust
230 parsing of syntax error in ObjC instance variable lists. In
231 particular, avoid an infinite loop if there is a stray ']'.
232 Updated error message.
234 2011-05-24 Ian Lance Taylor <iant@google.com>
236 * godump.c (go_define): Don't accept a string immediately after
239 2011-05-24 Ian Lance Taylor <iant@google.com>
241 * godump.c (struct godump_container): Add invalid_hash field.
242 (go_format_type): Return false if type is found in invalid_hash.
243 (go_output_typedef): Add invalid type to invalid_hash.
244 (go_finish): Create and delete invalid_hash.
246 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
248 PR tree-optimization/46728
249 * tree-ssa-math-opts.c (powi_table): New.
250 (powi_lookup_cost): New.
252 (powi_as_mults_1): New.
253 (powi_as_mults): New.
254 (gimple_expand_builtin_powi): New.
255 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
256 (gate_cse_sincos): Remove sincos/cexp restriction.
258 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
261 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
263 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
264 * mips-tdump.c: Likewise.
266 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
269 * config/i386/driver-i386.c (host_detect_local_cpu): Always
270 add -mno-XXX. Handle FMA.
272 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
274 PR rtl-optimization/48633
275 * ira-build.c (loop_with_eh_edge_p): New function.
276 (mark_loops_for_removal): Use it.
278 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
280 PR rtl-optimization/48971
281 * ira.c (setup_pressure_classes): Don't check register move cost
282 for classes with one registers. Don't add pressure class if there
283 is a pressure class with the same available hard registers.
284 Check contains_reg_of_mode. Fix a typo in collecting
285 temp_hard_regset. Ignore hard registers not belonging to a class.
287 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
290 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
292 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
293 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
295 PR gcov-profile/48845
296 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
298 2011-05-24 Richard Guenther <rguenther@suse.de>
300 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
301 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
302 (gimple_types_compatible_p_1): Adjust.
303 (iterative_hash_canonical_type): Do not bother about complete vs.
305 (gimple_canonical_types_compatible_p): Likewise.
307 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
309 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
311 2011-05-24 Richard Guenther <rguenther@suse.de>
314 * gimple.c (gimple_register_canonical_type): Revert
316 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
317 does not for a tree for the case where it matters. Cache
318 pointer-type alias-sets.
320 2011-05-24 Joseph Myers <joseph@codesourcery.com>
322 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
323 (OBJS): Remove options.o, opts-common.o and prefix.o.
324 (OBJS-libcommon-target): New.
325 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
326 (BACKEND): Include libcommon-target.a.
327 (MOSTLYCLEANFILES): Include libcommon-target.a.
328 (libcommon-target.a): New.
329 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
332 2011-05-23 Joseph Myers <joseph@codesourcery.com>
334 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
335 parts of output shared with the driver.
336 * optc-gen.awk: Don't generate parts of output not shared with the
338 * opth-gen.awk: Remove GCC_DRIVER conditionals.
339 * doc/options.texi (SourcerInclude): Mention options-save.c.
340 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
341 (OBJS): Add options-save.o.
342 (options-save.c, options-save.o): New.
343 (options.o): Update dependencies.
344 (gcc-options.o): Remove.
345 (mostlyclean): Remove options-save.c.
347 2011-05-23 Jakub Jelinek <jakub@redhat.com>
350 * dbxout.c: Include cgraph.h.
351 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
352 and without value expr, return NULL if no varpool node exists for
353 it or if it is not needed.
354 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
357 * c-decl.c (start_decl): Convert expr to void_type_node.
359 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
361 PR rtl-optimization/48826
362 * emit-rtl.c (try_split): When splitting a call that is followed
363 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
365 2011-05-23 Jakub Jelinek <jakub@redhat.com>
367 * cfgexpand.c (expand_debug_expr): For unused non-addressable
368 parameters passed in memory prefer using DECL_INCOMING_RTL over
369 the pseudos it will be copied into.
371 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
374 * config/i386/i386.c (ix86_option_override_internal): Save the
375 initial options after checking vzeroupper.
377 2011-05-23 David Li <davidxl@google.com>
379 PR tree-optimization/48988
380 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
381 Initialize has_valid_pred for each pred chain.
383 2011-05-23 Richard Guenther <rguenther@suse.de>
385 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
386 (iterative_hash_gimple_type): Always hash type names.
388 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
390 * c-typeck.c (build_function_call_vec): Tweak call to
391 check_function_arguments.
393 2011-05-23 Richard Guenther <rguenther@suse.de>
395 PR tree-optimization/49115
396 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
397 is not necessarily carried out, do not claim it kills the ref.
398 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
400 2011-05-23 Richard Guenther <rguenther@suse.de>
403 * builtins.c (fold_builtin_memory_op): Be less restrictive about
404 what pointer types we accept for folding.
406 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
408 * gthr-gnat.c: Remove.
409 * gthr-gnat.h: Remove.
410 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
411 * config/t-freebsd (LIB2ADDEH): Likewise.
412 * config/t-linux (LIB2ADDEH): Likewise.
413 * config/t-sol2 (LIB2ADDEH): Likewise.
414 * config/ia64/t-vms (LIB2ADDEH): Likewise.
415 * configure.ac (target_thread_file): Remove gnat handling.
416 * configure: Regenerate.
417 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
419 2011-05-23 Tristan Gingold <gingold@adacore.com>
420 Eric Botcazou <ebotcazou@adacore.com>
422 * gcov.c (create_file_names): If no object directory is specified,
423 keep the directory of the file.
425 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
427 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
428 * configure: Regenerate.
430 2011-05-23 Jakub Jelinek <jakub@redhat.com>
433 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
434 failed and the comparison has a single bit signed type, use
435 constm1_rtx instead of const1_rtx for true value.
436 (do_store_flag): If ops->type is single bit signed type, disable
437 signel bit test optimization and pass -1 instead of 1 as last
438 parameter to emit_store_flag_force.
440 2011-05-23 Tom de Vries <tom@codesourcery.com>
443 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
445 (infer_loop_bounds_from_undefined): Use new function.
447 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
449 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
450 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
451 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
453 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
455 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
457 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
458 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
461 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
463 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
465 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
467 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
468 UNSPEC_MOVE_PIC pattern.
470 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
472 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
473 (sparc-*-rtems*): Likewise.
474 (sparc64-*-elf*): Likewise.
475 (sparc64-*-rtems*): Likewise.
476 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
477 * config/sparc/t-crtin: New file.
478 * config/sparc/t-sol2 (crti.o): Delete rule.
480 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
481 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
482 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
483 (ENDFILE_SPEC): Add crtn.o.
485 2011-05-22 Tom de Vries <tom@codesourcery.com>
488 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
489 CODE_CONTAINS_STRUCT (TS_COMMON).
491 2011-05-22 Jakub Jelinek <jakub@redhat.com>
494 * expmed.c (extract_fixed_bit_field): Test whether target can be used
495 only after deciding which mode to use.
497 2011-05-22 Tom de Vries <tom@codesourcery.com>
500 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
501 for call to get_shiftadd_cost.
503 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
506 * config/i386/cpuid.h (bit_MMXEXT): New define.
508 2011-05-22 Nick Clifton <nickc@redhat.com>
510 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
511 initialisation of non-existant args[2] element. Use args[] array
512 not arg[] array to pass arguments to build_function_type_list.
514 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
516 PR tree-optimization/49087
517 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
519 2011-05-21 Jason Merrill <jason@redhat.com>
522 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
523 static storage duration.
525 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
527 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
530 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
532 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
533 false if there are call-saved registers here...
534 (sparc_can_use_return_insn_p): ...but here instead.
535 (save_or_restore_regs): Fix thinko.
536 (sparc_expand_prologue): Use current_function_is_leaf.
537 (sparc_frame_pointer_required): Likewise.
539 2011-05-21 Nick Clifton <nickc@redhat.com>
542 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
544 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
546 * gengtype.c (walk_type): Implemented "atomic" GTY option.
547 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
549 2011-05-21 Joseph Myers <joseph@codesourcery.com>
551 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
552 * optc-gen.awk: Move common code to opt-read.awk.
553 * opth-gen.awk: Likewise.
554 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
556 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
558 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
560 2011-05-20 Tom de Vries <tom@codesourcery.com>
563 * tree-ssa-loop-ivopts.c: Include expmed.h.
564 (get_shiftadd_cost): New function.
565 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
567 2011-05-20 Jakub Jelinek <jakub@redhat.com>
570 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
571 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
573 2011-05-20 Joseph Myers <joseph@codesourcery.com>
575 * Makefile.in: Update comment referring to $(OBJS-common).
577 2011-05-20 Ian Lance Taylor <iant@google.com>
579 * godump.c (go_output_typedef): Put enum constants in the macro
580 hash table to avoid duplicate Go const definitions.
582 2011-05-20 Joseph Myers <joseph@codesourcery.com>
584 * Makefile.in (LIBDEPS): Add libcommon.a.
586 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
587 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
588 pretty-print.o and version.o.
589 (OBJS-libcommon): New.
590 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
591 (BACKEND): Add libcommon.a.
592 (MOSTLYCLEANFILES): Likewise.
594 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
595 (cpp$(exeext)): Likewise.
596 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
597 pretty-print.o and input.o.
598 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
599 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
601 (mips-tfile): Don't explicitly use version.o.
602 (mips-tdump): Likewise.
603 (gcov.o): Depend on $(DIAGNOSTIC_H).
604 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
605 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
606 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
607 * gcov-dump.c: Include intl.h and diagnostic.h.
608 (main): Initialize diagnostics.
609 * gcov.c: Include diagnostic.h.
611 (main): Initialize diagnostics.
612 * lto-wrapper.c: Include diagnostic.h.
613 (main): Initialize diagnostics.
615 2011-05-20 Michael Matz <matz@suse.de>
617 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
619 2011-05-20 Michael Matz <matz@suse.de>
620 Richard Guenther <rguenther@suse.de>
622 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
623 use lto_streamer_cache_append directly instead of returning a VEC.
624 (preload_common_node): Remove.
625 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
627 (lto_streamer_cache_create): Call lto_preload_common_nodes.
629 2011-05-20 Richard Guenther <rguenther@suse.de>
631 PR tree-optimization/49079
632 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
633 MEM_REFs correctly for the trailing array access detection.
634 Special case constants the same way as decls for overall size
637 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
639 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
642 2011-05-20 Jakub Jelinek <jakub@redhat.com>
644 PR tree-optimization/49073
645 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
646 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
647 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
649 2011-05-20 Richard Guenther <rguenther@suse.de>
652 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
653 of pointer types the same way the middle-end does.
655 2011-05-20 Richard Guenther <rguenther@suse.de>
657 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
658 or pointer-to chains. Delay all fixup to uniquify_nodes.
660 2011-05-19 Quentin Neill <quentin.neill@amd.com>
662 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
663 (fma4_fmaddsub): Likewise
665 2011-05-19 Jan Hubicka <jh@suse.cz>
667 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
668 (GIMPLE_TYPE_PAIR_SIZE): New macro.
669 (type_pair_cache): New static var.
670 (lookup_type_pair): Use fixed sized custom hash; make inline.
671 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
672 calls of lookup_type_pair.
673 (print_gimple_types_stats): Remove cache stats.
674 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
677 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
679 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
680 when TARGET_RDRND is active.
681 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
682 Generate dummy SImode target register when target is NULL.
684 2011-05-19 Joseph Myers <joseph@codesourcery.com>
686 * config/arm/arm-fpus.def: New.
687 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
689 * config/arm/arm-tables.opt: Regenerate.
690 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
691 (arm_option_override): Don't decode FPU name to string here.
692 * config/arm/arm.opt (mfpu=): Use Enum.
693 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
696 2011-05-19 Joseph Myers <joseph@codesourcery.com>
698 * collect2.c: Include diagnostic.h.
699 (fatal_perror, fatal, error, fancy_abort): Remove.
700 (main): Set progname. Call xmalloc_set_program_name and
701 diagnostic_initialize.
702 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
703 scan_libraries, resolve_lib_name): Call fatal_error instead of
704 fatal and fatal_perror.
705 * collect2.h (error, fatal, fatal_perror): Don't declare.
706 * tlink.c: Include diagnostic-core.h.
707 (recompile_files): Call fatal_error instead of fatal_perror.
708 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
709 pretty-print.o and input.o.
710 (collect2.o, tlink.o): Update dependencies.
712 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
714 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
716 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
719 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
720 COMDAT group syntax, both SPARC and x86 variants.
721 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
722 * configure: Regenerate.
723 * config/sol2.h (TARGET_SOLARIS): Define.
724 (PUSHSECTION_FORMAT): Remove.
725 (SECTION_NAME_FORMAT): Define.
726 * config/sol2.c: Include hashtab.h.
727 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
728 expansion, using SECTION_NAME_FORMAT.
729 (solaris_comdat_htab): New variable.
730 (struct comdat_entry): Define.
731 (comdat_hash): New function.
732 (comdat_eq): New function.
733 (solaris_elf_asm_comdat_section): New function.
734 (solaris_define_comdat_signature): New function.
735 (solaris_code_end): New function.
736 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
737 (solaris_code_end): Declare.
738 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
739 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
741 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
742 Remove ATTRIBUTE_UNUSED.
743 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
744 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
745 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
746 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
747 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
748 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
749 (PUSHSECTION_FORMAT): Remove.
750 (SECTION_NAME_FORMAT): Redefine.
752 2011-05-19 Kai Tietz <ktietz@redhat.com>
754 * tree-cfg.c (verify_gimple_assign_binary): Barf on
755 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
756 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
758 2011-05-19 Anatoly Sokolov <aesok@post.ru>
759 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
761 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
763 2011-05-19 Richard Guenther <rguenther@suse.de>
766 * tree-object-size.c (addr_object_size): If the pointed-to
767 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
769 2011-05-19 Richard Guenther <rguenther@suse.de>
771 * gimple.c (gimple_types_compatible_p_1): Compare names of
772 the types themselves.
773 (iterative_hash_gimple_type): And hash them that way.
774 (gimple_register_type_1): If we register a main variant properly
775 initialize the leader to ourselves.
777 2011-05-19 Tom de Vries <tom@codesourcery.com>
780 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
781 get_loop_invariant_expr_id.
782 (get_loop_invariant_expr_id): Use get_expr_id.
783 (parm_decl_cost): New function.
784 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
785 Improve bound cost estimation. Use different inv_expr_id for elim and
788 2011-05-19 Tom de Vries <tom@codesourcery.com>
791 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
794 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
797 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
798 Properly handle load cast.
800 2011-05-18 Jakub Jelinek <jakub@redhat.com>
802 PR tree-optimization/49039
803 * tree-vrp.c (extract_range_from_binary_expr): For
804 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
805 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
807 2011-05-18 Tom de Vries <tom@codesourcery.com>
810 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
812 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
814 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
815 (*tls_global_dynamic_64): Ditto.
816 (*tls_local_dynamic_base_32_gnu): Ditto.
817 (*tls_local_dynamic_base_64): Ditto.
818 (tls_initial_exec_64_sun): Ditto.
820 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
822 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
823 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
825 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
826 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
827 * config/bfin/bfin.c (bfin_cpus): Add bf592.
828 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
829 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
830 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
831 * config/bfin/elf.h (LIB_SPEC): Add bf592.
833 2011-05-18 Joseph Myers <joseph@codesourcery.com>
835 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
836 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
837 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
838 target_thread_pointer, arm_structure_size_boundary, struct
839 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
840 struct abi_name, arm_all_abis): Remove.
841 (arm_option_override) Don't process most enumerated option values here.
842 Don't process target_fpe_name here. Work with integer not string for
843 structure size boundary; use separate diagnostics for each case.
844 * config/arm/arm.h (enum float_abi_type, enum
845 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
847 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
848 arm_structure_size_boundary): Remove.
849 * config/arm/arm.opt (mabi=): Use Enum and Init.
850 (arm_abi_type): New Enum and EnumValue entries.
851 (mfloat-abi=): Use Enum and Init.
852 (float_abi_type): New Enum and EnumValue entries.
853 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
854 (mfp16-format=): Use Enum and Init.
855 (arm_fp16_format_type): New Enum and EnumValue entries.
856 (mstructure-size-boundary=): Use UInteger and Init.
857 (mtp=): Use Enum and Init.
858 (arm_tp_type): New Enum and EnumValue entries.
860 2011-05-18 Richard Guenther <rguenther@suse.de>
862 PR tree-optimization/49018
863 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
864 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
865 gimple_has_side_effects.
867 2011-05-18 Richard Guenther <rguenther@suse.de>
869 * gimple.c (gimple_register_type_1): New function, split out from ...
870 (gimple_register_type): ... here. Avoid infinite recursion.
872 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
874 PR tree-optimization/41881
875 * tree-vectorizer.h (struct _loop_vec_info): Add new field
876 reduction_chains along with a macro for its access.
877 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
878 (destroy_loop_vec_info): Free reduction chains.
879 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
880 (vect_is_slp_reduction): New function.
881 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
882 (vect_create_epilog_for_reduction): Support SLP reduction chains.
883 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
884 definition types for reduction chains.
885 (vect_supported_load_permutation_p): Don't allow permutations for
887 (vect_analyze_slp_instance): Support reduction chains.
888 (vect_analyze_slp): Try to build SLP instance from reduction chains.
889 (vect_get_constant_vectors): Handle reduction chains.
890 (vect_schedule_slp_instance): Mark the first statement of the
891 reduction chain as reduction.
893 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
895 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
896 names for group elements access.
897 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
898 reduction chains as well. Remove data reference and interleaving
899 related words from the fields names.
900 * tree-vect-loop.c (vect_transform_loop): Use new names for group
902 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
903 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
904 vect_update_interleaving_chain, vect_same_range_drs,
905 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
906 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
907 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
908 vect_analyze_group_access, vect_analyze_data_ref_access,
909 vect_create_data_ref_ptr, vect_transform_strided_load,
910 vect_record_strided_load_vectors): Likewise.
911 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
912 vect_model_load_cost, vectorizable_store, vectorizable_load,
913 vect_remove_stores, new_stmt_vec_info): Likewise.
914 * tree-vect-slp.c (vect_build_slp_tree,
915 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
917 2011-05-18 Richard Guenther <rguenther@suse.de>
920 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
921 operand verification.
922 (verify_gimple_assign_binary): Likewise.
923 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
924 to non-1-precision BOOLEAN_TYPEs.
926 2011-05-18 Tom de Vries <tom@codesourcery.com>
929 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
931 2011-05-18 Jakub Jelinek <jakub@redhat.com>
933 PR tree-optimization/49000
934 * tree-ssa.c (execute_update_addresses_taken): Call
935 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
936 be rewritten and decl has been marked for renaming, reset
939 2011-05-17 Joseph Myers <joseph@codesourcery.com>
941 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
942 enum_opts_set when testing if attributes have set -mfpmath=.
944 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
946 * config/mips/mips.c (mips_handle_option): Remove unused variable.
948 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
950 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
952 * tree-inline.c (maybe_inline_call_in_expr): Initialize
953 id.transform_lang_insert_block with NULL.
955 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
957 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
958 (output_fp_compare): Change args 3 and 4 to bool.
959 (ix86_expand_call): Change arg 6 to bool.
960 (ix86_attr_length_immediate_default): Change arg 2 to bool.
961 (ix86_attr_length_vex_default): Change arg 3 to bool.
962 * config/i386/i386.md: Update all uses.
963 * config/i386/i386.c: Ditto.
964 (ix86_flags_dependent): Change return type to bool.
966 2011-05-17 Richard Guenther <rguenther@suse.de>
968 * gimple.c (type_hash_pair_compare): Fix comparison.
970 2011-05-17 Richard Guenther <rguenther@suse.de>
972 * gimple.c (iterative_hash_gimple_type): Simplify singleton
973 case some more, fix final hash value of the non-singleton case.
975 2011-05-17 Richard Guenther <rguenther@suse.de>
979 2011-05-16 Richard Guenther <rguenther@suse.de>
981 * gimple.c (gimple_types_compatible_p_1): Use names of the
982 type itself, not its main variant.
983 (iterative_hash_gimple_type): Likewise.
985 2011-05-17 Richard Guenther <rguenther@suse.de>
987 * gimple.c (gimple_register_canonical_type): Use the main-variant
988 leader for computing the canonical type.
990 2011-05-17 Nick Clifton <nickc@redhat.com>
992 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
995 * config/rx/rx.md: Add peephole to remove redundant extensions
997 (bitset_in_memory): Use rx_restricted_mem_operand.
998 (bitinvert_in_memory): Likewise.
999 (bitclr_in_memory): Likewise.
1001 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
1002 Nick Clifton <nickc@redhat.com>
1004 * config/rx/rx.md: Add peepholes to match a register move followed
1005 by a comparison of the moved register. Replace these with an
1006 addition of zero that does both actions in one instruction.
1008 2011-05-17 Jakub Jelinek <jakub@redhat.com>
1011 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1012 predicate to allow CONST_INT.
1013 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1015 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1017 * opts-common.c (opt_enum_arg_to_value): New.
1018 * opts.h (opt_enum_arg_to_value): Declare.
1019 * config/i386/i386.opt (fpmath): Remove.
1020 (mfpmath=): Use Enum, Init and Save.
1021 (fpmath_unit): New Enum and EnumValue entries.
1022 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1023 name for function fpmath state.
1024 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1025 * config/i386/i386.c: Include diagnostic.h.
1026 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1027 (ix86_target_string): Take enum fpmath_unit value instead of string.
1028 (ix86_debug_options): Update call to ix86_target_string.
1029 (ix86_option_override_internal): Don't process fpmath strings here.
1030 (x86_function_specific_save, ix86_function_specific_restore):
1031 Don't handle fpmath state specially.
1032 (ix86_function_specific_print): Pass fpmath state to
1033 ix86_target_string instead of printing in this function.
1034 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1035 Handle enum attributes.
1036 (IX86_ATTR_ENUM, ix86_opt_enum): New.
1037 (ix86_valid_target_attribute_tree): Update option_strings
1038 handling. Handle fpmath as enum option.
1039 (ix86_can_inline_p): Update field names for function fpmath state.
1040 (ix86_expand_builtin): Update call to ix86_target_string.
1041 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1042 (ix86_fpmath): Remove.
1043 * config/i386/t-i386 (i386.o): Update dependencies.
1045 2011-05-16 Joseph Myers <joseph@codesourcery.com>
1047 PR preprocessor/48677
1048 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1049 from decoded_options[0], not from itself.
1051 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
1053 * config/i386/constraints.md (z): New constraint.
1054 * config/i386/i386.c (c): New mode attribute.
1055 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1056 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1057 constraint for operand 0.
1058 (*call_vzeroupper): Ditto.
1059 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
1060 (*call_rex64_ms_sysv_vzeroupper): Ditto.
1061 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1062 Use "lzm" constraint for operand 0.
1063 (*call_pop_vzeroupper): Ditto.
1064 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1065 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
1066 constraint for operand 0.
1067 (*sibcall_vzeroupper): Ditto.
1068 (*sibcall_rex64_ms_sysv): Ditto.
1069 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1070 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1071 *sibcall_pop_1. Use "Uz" constraint for operand 0.
1072 (*sibcall_pop_vzeroupper): Ditto.
1073 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1074 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1075 mode iterator. Use "<c>zm" constraint for operand 1.
1076 (*call_value_vzeroupper): Ditto.
1077 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
1079 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1080 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1081 *call_value_pop_1. Use "lzm" constraint for operand 1.
1082 (*call_value_pop_vzeroupper): Ditto.
1083 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1084 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1085 mode iterator. Use "Uz" constraint for operand 1.
1086 (*sibcall_value_vzeroupper): Ditto.
1087 (*sibcall_value_rex64_ms_sysv): Ditto.
1088 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1089 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
1090 constraint for operand 1.
1091 (*sibcall_value_pop_vzeroupper): Ditto.
1092 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1093 and "z" constraint for operand 2.
1094 (*tls_global_dynamic_32_gnu): Ditto.
1095 (*tls_local_dynamic_base_32_gnu): Ditto.
1096 (*tls_local_dynamic_base_64): Ditto.
1097 (*tls_local_dynamic_32_once): Ditto.
1098 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1100 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1102 2011-05-16 Richard Guenther <rguenther@suse.de>
1104 * gimple.c (gimple_types_compatible_p_1): Use names of the
1105 type itself, not its main variant.
1106 (iterative_hash_gimple_type): Likewise.
1108 2011-05-16 Richard Guenther <rguenther@suse.de>
1110 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1111 always visit pointer target and function result and argument types.
1113 2011-05-16 Jason Merrill <jason@redhat.com>
1116 * tree-inline.c (copy_statement_list): Put back recursion.
1118 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1122 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1123 * config/avr/avr.md ("*ior<mode>qi.byte0",
1124 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1126 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
1129 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1130 register is needed for a function argument.
1132 2011-05-16 Richard Guenther <rguenther@suse.de>
1134 * gimple.c (struct type_hash_pair): New type.
1135 (type_hash_pair_compare): New function.
1136 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1138 2011-05-16 Revital Eres <revital.eres@linaro.org>
1140 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1142 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1144 * config/i386/i386.md (floating point move splitters): Fix
1145 usage of standard_80387_constant_p.
1146 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1148 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
1150 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1152 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
1154 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1155 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1156 (tree_ssa_lim_finalize): Likewise.
1158 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
1160 * config/i386/constraint.md (Yd, Yx): New register constraints.
1161 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
1162 Yd conditional register constraint.
1163 (*movtf_internal): Use standard_sse_constant_opcode.
1164 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
1165 Yx conditional register constraint.
1166 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
1167 Yd conditional register constraint. Use standard_sse_constant_p to
1168 check for valid SSE constants and call standard_sse_constant_opcode to
1170 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1171 constants and call standard_sse_constant_opcode to output SSE insn.
1172 * config/i386/i386.c (ix86_option_ovverride_internal): Set
1173 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
1174 optimize_size is set.
1175 (standard_sse_constant_opcode): Output conditional AVX insn templates.
1177 2011-05-14 Tobias Burnus <burnus@net-b.de>
1179 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1181 2011-05-13 Martin Jambor <mjambor@suse.cz>
1183 * ipa-prop.c (ipa_cst_from_jfunc): New function.
1184 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1185 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1186 (evaluate_conditions_for_ipcp_clone): Removed.
1187 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1188 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1189 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1191 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
1193 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1194 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1195 lieu of MAY_HAVE_DEBUG_STMTS.
1196 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1197 debug statements if !MAY_HAVE_DEBUG_STMTS.
1199 2011-05-13 Martin Thuresson <martint@google.com>
1201 PR gcov-profile/47793
1202 * libgcov.c (gcov_exit): Support relative profile paths.
1203 * doc/invoke.texi (-fprofile-dir): Update for above change.
1205 2011-05-13 Richard Guenther <rguenther@suse.de>
1207 * gimple.c (gimple_canonical_types_compatible_p): Do not use
1208 type-pair caching, do not compare hashes.
1210 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
1213 * tree-cfg.c (edge_to_cases_cleanup): Return true.
1214 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1216 2011-05-13 Kai Tietz <ktietz@redhat.com>
1218 * gimplify.c (gimplify_expr): Make sure operand is boolified.
1219 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1220 compatible type for TRUTH_NOT_EXPR.
1222 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
1224 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1225 (ix86_hard_regno_mode_ok): Change return value to bool. Use
1226 can_create_pseudo_p ().
1228 2011-05-13 Richard Guenther <rguenther@suse.de>
1231 * gimple.c (iterative_hash_gimple_type): Revert change in
1232 pointer target and function result and argument hashing.
1234 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
1236 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1237 (*movxf_internal_nointeger): Ditto.
1238 (*movdf_internal_rex64): Ditto.
1239 (*movdf_internal): Ditto.
1240 (*movdf_internal_nointeger): Ditto.
1241 (*movsf_internal): Ditto.
1242 (sincos splitters): Use can_create_pseudo ().
1244 2011-05-13 Joseph Myers <joseph@codesourcery.com>
1246 * config/i386/i386-opts.h: New.
1247 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1248 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1249 ix86_section_threshold): Remove.
1250 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
1251 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1253 (ix86_option_override_internal): Don't decode strings for options
1254 other than -march=, -mtune= and -mfpmath=. Don't allow for
1255 __attribute__ uses in remaining diagnostics for options with
1256 string arguments. Don't check for integer arguments being negative.
1257 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1258 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1259 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1260 ix86_branch_cost, ix86_section_threshold): Remove.
1261 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1263 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1265 (masm=): Use Enum and Init.
1266 (asm_dialect): New Enum and EnumValue entries.
1267 (mbranch-cost=): Use UInteger.
1268 (mlarge-data-threshold=): Use UInteger and Init.
1269 (mcmodel=): Use Enum and Init.
1270 (cmodel): New Enum and EnumValue entries.
1271 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1272 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1273 mregparm=): Use UInteger.
1274 (mstringop-strategy=): Use Enum and Init.
1275 (stringop_alg): New Enum and EnumValue entries.
1276 (mtls-dialect=): Use Enum and Init.
1277 (tls_dialect): New Enum and EnumValue entries.
1278 (mabi=): Use Enum and Init.
1279 (calling_abi): New Enum and EnumValue entries.
1280 (mveclibabi=): Use Enum and Init.
1281 (ix86_veclibabi): New Enum and EnumValue entries.
1283 2011-05-13 Nick Clifton <nickc@redhat.com>
1285 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1286 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1288 2011-05-13 Kai Tietz <ktietz@redhat.com>
1291 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1292 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1293 (gimple_boolify): Check for cast for boolean_type_node instead for
1296 2011-05-13 Richard Guenther <rguenther@suse.de>
1298 PR tree-optimization/48172
1299 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1300 multiplying by number of iterations for equal step.
1301 (vect_create_cond_for_alias_checks): Likewise.
1303 2011-05-13 Andreas Schwab <schwab@redhat.com>
1305 * configure.ac: Use AS_HELP_STRING throughout.
1306 * configure: Regenerate.
1308 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
1310 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1311 (ix86_emit_restore_regs_using_mov): Likewise.
1312 (ix86_emit_restore_sse_regs_using_mov): Likewise.
1314 2011-05-12 Anatoly Sokolov <aesok@post.ru>
1316 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1317 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1318 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1319 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1320 RTX_OK_FOR_OLO10_P): ...here.
1321 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1324 2011-05-12 Kai Tietz <ktietz@redhat.com>
1326 * gimplify.c (gimple_boolify): Re-boolify expression
1327 arguments even if expression type is of kind BOOLEAN_TYPE.
1328 (gimplify_boolean_expr): Removed.
1329 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1330 and XOR. Additional take care that we keep expression's type.
1331 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1332 of TRUTH_AND|OR|XOR_EXPR.
1334 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1336 PR tree-optimization/48975
1337 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1338 on all bbs here and free and clear ifc_bbs at the end.
1340 2011-05-12 Richard Guenther <rguenther@suse.de>
1342 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1343 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
1344 until after simple checks.
1345 (gimple_types_compatible_p): Likewise.
1346 (iterative_hash_gimple_type): Always hash pointer targets
1347 and function return and argument types.
1348 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1349 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
1350 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1351 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
1352 completely in the simple compare section.
1353 (gimple_register_canonical_type): Query the cache again after
1356 2011-05-12 Richard Guenther <rguenther@suse.de>
1358 PR tree-optimization/48172
1359 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1360 the number of iterations from the segment size calculation.
1361 (vect_create_cond_for_alias_checks): Adjust.
1363 2011-05-12 Jakub Jelinek <jakub@redhat.com>
1366 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1367 if validate_subreg fails.
1369 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
1371 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1372 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1375 2011-05-12 DJ Delorie <dj@redhat.com>
1377 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1378 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1379 created builtin into rx_builtins array.
1380 (rx_builtin_decl): New function.
1381 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
1383 2011-05-12 DJ Delorie <dj@redhat.com>
1384 Nick Clifton <nickc@redhat.com>
1386 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1387 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1388 (rx_is_legitimate_address): Add pre-decrement and post-increment
1389 addressing in HImode and QImode. Fix test for out of range
1391 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1392 (rx_align_for_label): Test label before extracting its usage count.
1393 (rx_adjust_insn_lengths): Fix selection of insn codes.
1394 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1396 2011-05-11 Jason Merrill <jason@redhat.com>
1398 * tree.c (type_hash_canon): Use struct tree_type_non_common.
1400 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1402 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1403 reindent the subsequent block.
1405 2011-05-11 Satoru Takabayashi <satorux@google.com>
1406 Paul Pluzhnikov <ppluzhnikov@google.com>
1408 * doc/install.texi (Configuration): Document --with-linker-hash-style.
1409 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1410 * config.in: Add LINKER_HASH_STYLE.
1411 * configure.ac: Add --with-linker-hash-style.
1412 * configure: Regenerate.
1414 2011-05-11 Richard Guenther <rguenther@suse.de>
1417 * gimple.c (iterative_hash_canonical_type): Fix typo.
1419 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
1421 * config/i386/i386.c (legitimize_tls_address)
1422 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1423 expanders directly for TARGET_GNU2_TLS. Determine pic and
1424 __tls_get_addr symbol reference here. Update call to
1425 gen_tls_global_dynamic_{32,64} for added arguments.
1426 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1427 expanders directly for TARGET_GNU2_TLS. Determine
1428 __tls_get_addr symbol reference here. Update call to
1429 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
1430 unique UNSPEC REG_EQUIV to libcall block.
1431 (ix86_tls_get_addr): Declare static.
1432 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1433 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1434 Do not determine pic and __tls_get_addr symbol reference here. Do not
1435 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1436 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1437 (tls_global_dynamic_64): Add operand 2. Do not determine
1438 __tls_get_addr symbol reference here. Do not call
1439 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1440 (tls_local_dynamic_base64): Ditto for operand 1.
1442 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
1444 * function.c (expand_function_start): Initialize stack_check_probe_note
1445 only if the generic stack checking mechanism is used.
1447 2011-05-11 Richard Guenther <rguenther@suse.de>
1449 PR tree-optimization/15256
1450 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1451 (A & B) | C, combine (A op CST1) op CST2.
1452 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1453 visit assigns that have uses.
1455 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1457 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1458 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1459 (unpack_ts_type_common_value_fields): ...this. Update comment.
1460 (unpack_value_fields): Adjust for renaming.
1461 (lto_input_ts_type_tree_pointers): Split into...
1462 (lto_input_ts_type_common_tree_pointer): ...this and...
1463 (lto_input_ts_type_non_common_tree_pointers): ...this.
1464 (lto_input_tree_pointers): Adjust for above split.
1465 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1466 (pack_ts_type_common_value_fields): ...this. Update comment.
1467 (lto_output_ts_type_tree_pointers): Split into...
1468 (lto_output_ts_type_common_tree_pointers): ...this and...
1469 (lto_output_ts_type_non_common_tree_pointers): ...this.
1470 (lto_output_tree_pointers): Adjust for above split.
1471 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1472 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1473 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1474 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1476 (struct tree_type): Split into...
1477 (struct tree_type_common: ...this and...
1478 (struct tree_type_with_lang_specific): ...this and...
1479 (struct tree_type_non_common): ...this. Adjust accessor macros
1481 (TYPE_VALUES_RAW): Define.
1482 (union tree_node): Update for above changes.
1483 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1485 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1486 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1487 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1488 * treestructu.def (TS_TYPE): Remove.
1489 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1492 2011-05-11 Jakub Jelinek <jakub@redhat.com>
1495 * tree-ssa.c (reset_debug_uses): New function.
1496 * tree-flow.h (reset_debug_uses): New prototype.
1497 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1498 * tree-loop-distribution.c (generate_loops_for_partition): Call
1499 reset_debug_uses on the stmts that will be removed. Keep around
1500 all debug stmts, don't count them as bits in partition bitmap.
1501 (generate_builtin): Don't count debug stmts or labels as bits in
1504 2011-05-11 Richard Guenther <rguenther@suse.de>
1506 * gimple.c (gimple_type_hash_1): Merge with ...
1507 (gimple_type_hash): ... this.
1508 (gtc_visit): Remove mode parameter and simplify accordingly.
1509 (gimple_types_compatible_p_1): Likewise.
1510 (gimple_types_compatible_p): Likewise.
1511 (iterative_hash_gimple_type): Likewise.
1513 (gimple_type_eq): Adjust.
1515 2011-05-11 Revital Eres <revital.eres@linaro.org>
1517 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1518 enters the branch create an anti edge in the opposite direction
1519 to prevent the creation of reg-moves.
1520 * modulo-sched.c: Adjust comment to reflect the fact we are
1521 scheduling closing branch.
1522 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1523 (stage_count): New field in struct partial_schedule.
1524 (calculate_stage_count): New function.
1525 (normalize_sched_times): Rename to reset_sched_times and handle
1526 incrementing the sched time of the nodes by a constant value
1527 passed as parameter.
1528 (duplicate_insns_of_cycles): Skip closing branch.
1529 (sms_schedule_by_order): Schedule closing branch.
1530 (ps_insn_find_column): Handle closing branch.
1531 (sms_schedule): Call reset_sched_times and adjust the code to
1532 support scheduling of the closing branch.
1533 (ps_insert_empty_row): Update calls to normalize_sched_times
1534 and rotate_partial_schedule functions.
1536 2011-05-11 Richard Guenther <rguenther@suse.de>
1539 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1541 2011-05-11 Joseph Myers <joseph@codesourcery.com>
1543 * opts.c (finish_options): Move warning settings from process_options.
1544 * toplev.c (process_options): Move warning settings to finish_options.
1546 2011-05-11 Richard Guenther <rguenther@suse.de>
1548 PR tree-optimization/18041
1549 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1550 (simplify_bitwise_binary): ... this. Handle operand conversions
1551 by applying them to the result instead.
1552 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1554 2011-05-11 Richard Guenther <rguenther@suse.de>
1556 * gimple.c (gimple_canonical_types_compatible_p): Split out
1557 from gimple_types_compatible_p and friends. Do not recurse
1558 to pointed-to types.
1559 (gimple_canonical_type_eq): Use it.
1560 (iterative_hash_canonical_type): Split out from
1561 iterative_hash_gimple_type and friends. Do not recurse
1562 to pointed-to types.
1563 (gimple_canonical_type_hash): Use it, allocate the hash here.
1565 2011-05-11 Revital Eres <revital.eres@linaro.org>
1567 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1570 2011-05-11 Revital Eres <revital.eres@linaro.org>
1572 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1573 instead of PREV_INSN.
1575 2011-05-11 Revital Eres <revital.eres@linaro.org>
1577 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1578 * loop-doloop.c (doloop_condition_get): Likewise.
1579 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1581 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1583 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1585 * tree.def (CASE_LABEL_EXPR): Add an operand.
1586 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1588 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1590 * c-decl.c (c_override_global_bindings_to_false): Remove.
1591 (global_bindings_p): Don't check
1592 c_override_global_bindings_to_false.
1593 * c-tree.h (c_override_global_bindings_to_false): Remove.
1594 * c-typeck.c (composite_type): Don't set
1595 c_override_global_bindings_to_false.
1597 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1599 PR target/48857, 48495
1600 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1602 (VSX_MOVE_MODE): Ditto.
1603 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1604 VSX vector types. Add V2DImode.
1605 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1606 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1607 (MODES_TIEABLE_P): Ditto.
1609 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1610 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1612 (init_cumulative_args): Ditto.
1613 (rs6000_function_arg_boundary): Ditto.
1614 (rs6000_function_arg_advance_1): Ditto.
1615 (rs6000_function_arg): Ditto.
1616 (rs6000_function_ok_for_sibcall): Ditto.
1617 (emit_frame_save): Ditto.
1618 (rs6000_function_value): Ditto.
1619 (rs6000_libcall_value): Ditto.
1621 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1623 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1624 i386/darwin-lib.h to $libgcc_tm_file.
1625 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1627 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1629 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1631 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1633 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1634 * config/rs6000/rs6000-tables.opt: New file (generated).
1635 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1636 rs6000/rs6000-tables.opt to extra_options.
1637 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1638 * config/rs6000/rs6000.c (rs6000_select): Remove.
1639 (processor_target_table): Move contents to rs6000-cpus.def.
1640 (darwin_rs6000_override_options): Check
1641 global_options_set.x_rs6000_cpu_index instead of
1642 rs6000_select[1].string.
1643 (rs6000_option_override_internal): Likewise.
1644 (rs6000_handle_option): Don't assert that global structures are in
1645 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1646 (rs6000_default_cpu): New variable.
1647 (rs6000_file_start): Set it instead of local default_cpu. Check
1648 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1649 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1650 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1651 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1652 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1653 rs6000_select): Remove.
1654 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1656 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1657 * config/rs6000/t-rs6000
1658 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1659 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1660 global_options_set.x_rs6000_cpu_index instead of
1661 rs6000_select[1].string.
1662 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1663 global_options_set.x_rs6000_cpu_index instead of
1664 rs6000_select[1].string.
1666 2011-05-10 Joseph Myers <joseph@codesourcery.com>
1668 * config.gcc (libgcc_tm_file): Define instead of including files
1669 from ../../libgcc/config/ in tm_file.
1670 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1671 * configure: Regenerate.
1672 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1673 libgcc_tm.h, cs-libgcc_tm.h): New.
1674 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1675 (clean): Remove libgcc_tm.h.
1676 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1677 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1678 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1680 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
1683 * config/avr/avr.c (avr_ret_register): Return unsigned int
1685 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1686 it to avr_libcall_value.
1687 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1689 (avr_expand_binop_builtin): Ditto.
1690 (avr_expand_unop_builtin): Ditto.
1692 2011-05-10 DJ Delorie <dj@redhat.com>
1694 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1695 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1696 * config/rx/rx.c (rx_align_for_label): Add label and
1697 uses_threshold parameters. Do not align when the label is not
1699 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1701 2011-05-10 Richard Guenther <rguenther@suse.de>
1703 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1704 a series of conversions and apply foldings similar to what
1706 (tree_ssa_forward_propagate_single_use_vars): Call it.
1708 2011-05-10 Jakub Jelinek <jakub@redhat.com>
1710 PR tree-optimization/48611
1711 PR tree-optimization/48794
1712 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1713 referenced from RESX or EH_DISPATCH arguments.
1716 * dfp.c (decimal_to_decnumber): Handle conversion from
1717 dconst{1,2,m1,half}.
1719 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1721 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1722 for !flag_prefer_avx128.
1723 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1725 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1727 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1728 (fold_ternary_loc): Use expr_location_or.
1730 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1733 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1734 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1735 Pmode and mem_mode is not VOIDmode.
1737 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
1739 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1740 TYPE_QUAL_RESTRICT): Convert to enum.
1742 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1744 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1745 (const_pow2_1_to_8_operand): Ditto.
1746 (const_pow2_1_to_128_operand): Ditto.
1747 (const_pow2_1_to_32768_operand): Ditto.
1748 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1749 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1750 in insn constraint to check integer value of operand 3.
1751 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1753 (PINSR_MODE): New mode iterator.
1754 (sse2p4_1): New mode attribute.
1755 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1756 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1757 iterator. Use const_int_operand instead of
1758 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1759 exact_log2 in insn constraint to check integer value of operand 3.
1761 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1763 * config/i386/sse.md (blendbits): Remove mode attribute.
1764 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1765 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1766 Check integer value of operand 3 in insn constraint.
1768 2011-05-09 Richard Guenther <rguenther@suse.de>
1770 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1772 (lto_symtab_merge): Likewise. Do not register types here.
1773 (lto_symtab_merge_decls_2): Likewise.
1774 (lto_symtab_merge_decls_1): Likewise.
1775 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1776 * gimple.c (enum gtc_mode): Declare.
1777 (gimple_types_compatible_p): Make static.
1779 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1781 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1782 temporary register to match Pmode.
1784 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1786 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1787 and *vec_concatv4si_1_avx.
1789 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1791 PR rtl-optimization/48927
1792 * ira-conflicts.c (commutative_constraint_p): Use
1793 recog_data.alternative_enabled_p to disable alternatives where
1794 "enabled" attribute is false.
1795 (get_dup_num): Ditto.
1796 * ira-lives.c (single_reg_class): Ditto.
1797 (ira_implicitly_set_insn_hard_regs): Ditto.
1799 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1801 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1802 (dataflow_set_preserve_mem_locs): Likewise.
1804 2011-05-09 Philipp Thomas <pth@suse.de>
1806 * config/mep/mep.c (mep_validate_vliw): Syntax description
1807 should not be translated.
1809 2011-05-09 Joseph Myers <joseph@codesourcery.com>
1811 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1812 * config/mips/mips-tables.opt: New file (generated).
1813 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
1814 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1815 MIPS_ARCH_OPTION_NATIVE): Define.
1816 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1818 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1819 mips_parse_cpu): Remove.
1820 (mips_cpu_info_from_opt, mips_default_arch): New.
1821 (mips_handle_option): Don't assert that global structures are in
1822 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1823 (mips_option_override): Use new variables and functions to set
1824 state of these options. Use strcmp to check for individual CPU names.
1825 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1827 * config/mips/mips.opt (march=): Use ToLower and Enum.
1828 (mips): Use ToLower, Enum and Var.
1829 (mtune=): Use ToLower and Enum.
1830 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1832 2011-05-08 Jan Hubicka <jh@suse.cz>
1834 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1835 Arrange type pairs to be UID ordered.
1836 (gimple_lookup_type_leader): Make inline.
1838 2011-05-09 Nick Clifton <nickc@redhat.com>
1841 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1845 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1848 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1850 * combine.c (simplify_comparison): Abstract out parts into...
1851 (simplify_compare_const): ... new function.
1852 (try_combine): Generalize parallel arithmetic/compare combining
1853 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1855 2011-05-08 Jan Hubicka <jh@suse.cz>
1857 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
1858 (cgraph_create_virtual_clone): Call hooks once virtual clone
1860 * cgraph.h (cgraph_clone_node): Update prototype.
1861 * ipa-cp.c (ipcp_estimate_growth): Use
1862 estimate_ipcp_clone_size_and_time.
1863 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1864 * lto-cgraph.c (input_node): Update.
1865 * ipa-inline.c (recursive_inlining): Update.
1866 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1867 (evaluate_conditions_for_known_args): Break out from ...
1868 (evaluate_conditions_for_edge): ... here.
1869 (evaluate_conditions_for_ipcp_clone): New function.
1870 (inline_node_duplication_hook): Update clone summary based
1872 (estimate_callee_size_and_time): Rename to ...
1873 (estimate_node_size_and_time): take NODE instead of EDGE;
1874 take POSSIBLE_TRUTHS as argument.
1875 (estimate_callee_size_and_time): Update.
1876 (estimate_ipcp_clone_size_and_time): New function.
1877 (do_estimate_edge_time): Update.
1879 2011-05-08 Richard Guenther <rguenther@suse.de>
1883 * expmed.c (expand_shift_1): Compute adjusted constant shift
1886 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1888 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1890 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1892 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1894 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1896 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1898 2011-05-07 Jan Hubicka <jh@suse.cz>
1900 * ipa-inline-transform.c (inline_call): Account when program size
1902 * ipa-inline.c (relative_time_benefit): New function.
1903 (edge_badness): Reorganize to be power 2 based; fix thinko when
1904 computing badness for negative growth; update comments to match
1905 reality; better dumps.
1907 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1909 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1910 type to bool and adjust comment.
1911 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1912 (fold_mathfn_compare): Remove calls to global_bindings_p.
1913 (fold_inf_compare): Likewise.
1914 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1915 * c-tree.h (global_bindings_p): Adjust prototype.
1916 * c-decl.c (global_bindings_p): Return bool and simplify.
1918 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
1920 PR tree-optimization/48837
1921 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1922 when accumulator transformation is performed.
1924 2011-05-06 Jan Hubicka <jh@suse.cz>
1926 * i386.h (ix86_tune_indices): Add
1927 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
1928 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
1929 * i386.c (initial_ix86_tune_features): Add
1930 X86_SOFTARE_PREFETCHING_BENEFICIAL.
1931 (software_prefetching_beneficial_p): Remove predicate.
1932 (ix86_option_override_internal): Use new macro.
1934 2011-05-06 Jan Hubicka <jh@suse.cz>
1936 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1938 2011-05-06 Jan Hubicka <jh@suse.cz>
1940 * cgraph.c (cgraph_add_thunk): Create real function node instead
1941 of alias node; finalize it and mark needed/reachale; arrange visibility
1942 to be right and add it into the corresponding same comdat group list.
1943 (dump_cgraph_node): Dump thunks.
1944 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
1945 cgraph_function_with_gimple_body_p,
1946 cgraph_first_function_with_gimple_body,
1947 cgraph_next_function_with_gimple_body): New functions.
1948 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1950 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1951 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1952 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1953 devirtualization when optimizing.
1954 (verify_cgraph_node): Verify thunks.
1955 (cgraph_analyze_function): Analyze thunks.
1956 (cgraph_mark_functions_to_output): Output thunks only in combination
1957 with function they are assigned to.
1958 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1959 alias into normal node.
1960 (assemble_thunks): New functoin.
1961 (cgraph_expand_function): Use it.
1962 * lto-cgraph.c (lto_output_node): Stream thunks.
1963 (input_overwrite_node): Stream in thunks.
1964 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1965 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1966 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1967 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1968 (inline_analyze_function): Do not care about thunk jump functions.
1969 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
1970 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1971 cgraph_function_with_gimple_body_p.
1972 * passes.c (do_per_function_toporder): Use
1973 cgraph_function_with_gimple_body_p.
1974 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1975 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1976 (function_called_by_processed_nodes_p): Likewise.
1978 2011-05-06 Joseph Myers <joseph@codesourcery.com>
1980 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1981 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1983 (mabi=): Replace with separate entries for mabi=altivec,
1984 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1985 mabi=ieeelongdouble and mabi=ibmlongdouble.
1986 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1987 check for -mabi=spe without SPE ABI support here.
1988 (rs6000_handle_option): Replace OPT_mabi_ handling with
1989 OPT_mabi_altivec and OPT_mabi_spe handling.
1991 2011-05-06 Cary Coutant <ccoutant@google.com>
1993 * dwarf2out.c (contains_subprogram_definition): New function.
1994 (should_move_die_to_comdat): Call it.
1996 2011-05-06 Jeff Law <law@redhat.com>
1998 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1999 remove_ctrl_stmt_and_useless_edges.
2000 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2001 (fixup_template_block, thread_single_edge): Likewise.
2002 (mark_threaded_blocks): Use THREAD_TARGET.
2004 2011-05-06 Alan Modra <amodra@gmail.com>
2007 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2008 const0_rtx as the arg to the dummy __tls_get_addr libcall.
2010 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2012 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2013 constraint modifier to "r".
2015 2011-05-06 Joseph Myers <joseph@codesourcery.com>
2017 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2018 fall through for OPT_mcmodel_.
2020 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2022 * config/s390/s390.c (s390_asm_trampoline_template): Comment
2024 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2026 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2029 * config/arm/arm.opt (marm): Document it.
2030 (mthumb): Reject negative variant.
2032 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
2035 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2036 Fix typo in "ccvt" variable name.
2038 2011-05-06 Tristan Gingold <gingold@adacore.com>
2041 * config/vms/vms-ar.c (main): Remove cwd variable.
2043 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2046 * var-tracking.c (prepare_call_arguments): Move else before #endif.
2048 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2050 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2051 * gimplify.c (gimplify_switch_expr): Likewise.
2052 * omp-low.c (expand_omp_sections): Likewise.
2053 * tree-eh.c (lower_try_finally_switch): Likewise.
2054 (lower_eh_dispatch): Likewise.
2055 * tree.h (build_case_label): Declare.
2056 * tree.c (build_case_label): Define.
2058 2011-05-05 Jason Merrill <jason@redhat.com>
2061 * tree-inline.c (copy_tree_r): Use copy_statement_list.
2062 (copy_statement_list): Don't recurse.
2063 * stor-layout.c (copy_self_referential_tree_r): Don't allow
2066 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2068 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2069 through from -mfpu= handling.
2070 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2072 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
2074 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2077 2011-05-05 Steve Ellcey <sje@cup.hp.com>
2079 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2081 (hppa[12]*-*-hpux11*): Ditto.
2082 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2083 * config/ia64/hpux-unix2003.h: New.
2084 * config/pa/pa-hpux1131.opt: New.
2085 * config/pa/pa-hpux1131.h: New.
2086 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2087 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2088 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2090 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2093 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2094 instead of mode as 3rd argument to recursive call.
2095 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2096 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2098 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2099 don't give up if mode is Pmode and mem_mode is not VOIDmode.
2100 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2101 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2103 2011-05-05 Julian Brown <julian@codesourcery.com>
2105 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2106 parenthesis in D-register case.
2108 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2110 * opt-functions.awk (var_type_struct): Handle Enum options.
2111 * optc-gen.awk: Don't check range of variables of character type.
2112 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2113 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2114 rs6000_sdata_name, rs6000_explicit_options): Remove.
2115 (rs6000_option_override_internal): Check for -malign-power here.
2116 Use global_options_set instead of rs6000_explicit_options.
2117 (rs6000_parse_fpu_option): Remove.
2118 (rs6000_handle_option): Access variables via opts and opts_set
2119 pointers. Use error_at and warning_at. Add fall-through
2120 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2121 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2122 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2123 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2124 here. Don't use rs6000_parse_fpu_option.
2125 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2126 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2127 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2129 (mspe): Use Var and Save.
2130 (mtraceback=): Use Enum and Var.
2131 (rs6000_traceback_type): New Enum and EnumValue entries.
2132 (mfloat-gprs=): Use Enum, Var and Save.
2133 (rs6000_float_gprs): New Enum and EnumValue entries.
2134 (mlong-double-): use Var and Save.
2135 (msched-costly-dep=, minsert-sched-nops=): Use Var.
2136 (malign-): Use Enum and Var.
2137 (rs6000_alignment_flags): New Enum and EnumValue entries.
2139 (fpu_type_t): New Enum and EnumValue entries.
2140 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2141 global_options_set instead of rs6000_explicit_options.
2142 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2143 global_options_set instead of rs6000_explicit_options.
2144 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2145 global_options_set instead of rs6000_explicit_options.
2146 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2147 global_options_set instead of rs6000_explicit_options.
2148 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2149 global_options_set instead of rs6000_explicit_options.
2150 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2151 global_options_set instead of rs6000_explicit_options.
2152 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2154 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2155 global_options_set instead of rs6000_explicit_options.
2156 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2157 (rs6000_cmodel): New Enum and EnumValue entries.
2158 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2159 global_options_set instead of rs6000_explicit_options.
2160 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2161 (mtls-size=): Use Enum and Var.
2162 (rs6000_tls_size): New Enum and EnumValue entries.
2164 2011-05-05 Michael Matz <matz@suse.de>
2166 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2167 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2168 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2169 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2170 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2171 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2172 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2173 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2174 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2175 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2176 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2177 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2178 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2179 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2180 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2181 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2183 2011-05-05 Richard Guenther <rguenther@suse.de>
2185 * expmed.c (expand_variable_shift): Rename to ...
2186 (expand_shift_1): ... this. Take an expanded shift amount.
2187 For rotates recurse directly not building trees for the shift amount.
2188 (expand_variable_shift): Wrap around expand_shift_1.
2189 (expand_shift): Adjust.
2191 2011-05-05 Jakub Jelinek <jakub@redhat.com>
2193 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2195 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
2197 * tree.h (get_pending_sizes): Remove prototype.
2198 (put_pending_size): Likewise.
2199 (put_pending_sizes): Likewise.
2200 * stor-layout.c (pending_sizes): Delete.
2201 (get_pending_sizes): Likewise.
2202 (put_pending_size): Likewise.
2203 (put_pending_sizes): Likewise.
2204 (variable_size): Do not call put_pending_size and tidy up.
2205 * function.h (struct function): Remove dont_save_pending_sizes_p.
2206 * lto-streamer-in.c (input_function): Do not stream it.
2207 * lto-streamer-out.c (output_function): Likewise.
2208 * tree-inline.c (initialize_cfun): Do not copy it.
2209 * c-decl.c (store_parm_decls): Do not set it.
2210 * omp-low.c (create_task_copyfn): Likewise.
2211 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2213 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
2215 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2217 (*movdf_internal): Ditto.
2218 (*movdf_internal_nointeger): Ditto.
2219 (*movsf_internal): Ditto.
2221 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2223 * c-decl.c (finish_decl): Don't call get_pending_sizes.
2224 (grokparm): Add parameter expr. Pass it to grokdeclarator.
2225 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
2226 (c_variable_size): Remove.
2227 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
2228 call put_pending_sizes.
2229 (get_parm_info): Add parameter expr. Use it to set
2230 arg_info->pending_sizes.
2231 (store_parm_decls): Use arg_info->pending_sizes instead or calling
2233 * c-parser.c (c_parser_parms_declarator): Update call to
2234 c_parser_parms_list_declarator.
2235 (c_parser_parms_list_declarator): Take parameter expr. Update
2236 call to push_parm_decl. Update recursive call. Don't call
2237 get_pending_sizes. Update calls to get_parm_info.
2238 (c_parser_objc_method_definition): Update calls to
2239 c_parser_objc_method_decl and objc_start_method_definition.
2240 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2241 (c_parser_objc_method_decl): Add parameter expr. Update call to
2243 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2244 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2245 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2247 2011-05-05 Michael Hope <michael.hope@linaro.org>
2250 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2253 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2255 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2256 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2257 (spu_output_mi_thunk): New function.
2259 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2261 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2262 targetm.asm_out.print_operand.
2263 * config/sol2.c: Include target.h.
2265 2011-05-04 Jan Hubicka <jh@suse.cz>
2267 * ipa-inline.c (reset_edge_caches): New function.
2268 (update_caller_keys): Add check_inlinablity_for; do not
2269 reset edge caches; remove now unnecesary loop.
2270 (update_callee_keys): Add comments; reset node_growth_cache of callee.
2271 (update_all_callee_keys): Likewise.
2272 (inline_small_functions): Sanity check cache; update code
2275 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
2277 PR rtl-optimization/47612
2278 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2279 as the last insn of the sequence to be moved.
2281 2011-05-04 Tobias Burnus <burnus@net-b.de>
2284 * doc/invoke.texi (Ofast): Document that it
2285 enables Fortran's -fno-protect-parens.
2287 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2289 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2291 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
2293 * stor-layout.c (variable_size): Do not issue errors.
2295 2011-05-04 Richard Guenther <rguenther@suse.de>
2297 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2298 for array-ref indices.
2299 (tree_coverage_counter_addr): Likewise.
2300 (build_fn_info_type): Use size_int for index types.
2301 (build_gcov_info): Likewise.
2303 2011-05-04 Richard Guenther <rguenther@suse.de>
2305 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2307 * c-typeck.c (really_start_incremental_init): Use bitsize_int
2308 for constructor indices.
2309 (push_init_level): Likewise.
2311 2011-05-04 Richard Guenther <rguenther@suse.de>
2313 * explow.c (promote_mode): Move variable declarations before code.
2315 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2317 * tree.h (build_function_type_array): Declare.
2318 (build_varargs_function_type_array): Declare.
2319 (build_function_type_vec, build_varargs_function_type_vec): Define.
2320 * tree.c (build_function_type_array_1): New function.
2321 (build_function_type_array): New function.
2322 (build_varargs_function_type_array): New function.
2324 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
2326 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2327 before setting STMT_VINFO_TYPE.
2329 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2331 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2332 instead of spu_pass_by_reference.
2334 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2336 * calls.c (emit_library_call_value_1): Invoke
2337 promote_function_mode hook on libcall arguments.
2338 * explow.c (promote_function_mode, promote_mode): Handle TYPE
2339 argument being NULL.
2340 * targhooks.c (default_promote_function_mode): Lisewise.
2341 * config/s390/s390.c (s390_promote_function_mode): Likewise.
2342 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2344 * doc/tm.texi: Document that TYPE argument might be NULL.
2346 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2348 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2350 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2353 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2355 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2357 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2358 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2360 * mips-tfile.c: ... here.
2361 Don't include coretypes.h, tm.h, filenames.h.
2362 (saber_stop): Remove definition and all calls.
2363 [__SABER__]: Remove.
2364 (__LINE__): Remove default.
2365 (Size_t, Ptrdiff_t): Remove definitions.
2366 Replace by size_t, ptrdiff_t.
2367 [!MIPS_DEBUGGING_INFO]: Remove.
2368 (SHASH_SIZE, THASH_SIZE): Remove defaults.
2369 (progname): Add const.
2371 Replace all uses by static.
2372 (ALIGN_SYMTABLE_OFFSET): Remove default.
2373 * mips-tdump.c: Don't include coretypes.h, tm.h.
2374 Remove !MIPS_IS_STAB guard.
2375 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2376 $(TM_H), filenames.h dependencies.
2377 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2379 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2382 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2383 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2385 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2388 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2389 account and save/restore RETS.
2390 (PROFILE_BEFORE_PROLOGUE): Define.
2391 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
2392 the push insn to use predecrement.
2394 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
2397 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2399 2011-05-04 Nick Clifton <nickc@redhat.com>
2401 * config/mn10300/mn10300.c: Include cfgloop.h.
2403 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
2404 Lcc or a FLcc insn into the instruction stream.
2405 (mn10300_block_contains_call): New function. Returns true if the
2406 given basic block contains a CALL insn.
2407 (mn10300_loop_contains_call_insn): New function. Returns true if
2408 the given loop contains a CALL insn.
2409 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
2410 to use the SETLB and Lcc or FLcc insns.
2411 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2412 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2413 * config/mn10300/mn10300.opt (msetlb): New option. Used to
2414 disable the SETLB optimization.
2415 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2416 __SETLB__ or __NO_SETLB__.
2417 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2418 (movsf_internal): Handle MDR register.
2419 (cmpsi): Make visible.
2420 (setlb): New pattern.
2422 (FLcc): New pattern.
2424 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
2427 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2428 for reg<->xmm moves.
2429 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2430 (vec_concatv2di_rex64_sse): Ditto.
2431 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2432 (*vec_extractv2di_1_rex64): Ditto.
2435 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2437 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2439 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2441 2011-05-04 Richard Guenther <rguenther@suse.de>
2443 * tree.h (int_const_binop): Remove notrunc argument.
2444 * fold-const.c (int_const_binop): Remove notrunc argument. Always
2445 create integer constants that are properly truncated.
2446 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2447 (const_binop): Remove zero notrunc argument to int_const_binop.
2448 (size_binop_loc): Likewise.
2449 (fold_div_compare): Likewise.
2450 (maybe_canonicalize_comparison_1): Likewise.
2451 (fold_comparison): Likewise.
2452 (fold_binary_loc): Likewise.
2453 (multiple_of_p): Likewise.
2454 * expr.c (store_constructor): Likewise.
2455 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2456 (maybe_fold_stmt_addition): Likewise.
2457 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2458 * stor-layout.c (layout_type): Likewise.
2459 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2460 * tree-sra.c (build_ref_for_offset): Likewise.
2461 (build_user_friendly_ref_for_offset): Likewise.
2462 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2463 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2464 * tree-ssa-loop-niter.c (inverse): Likewise.
2465 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2466 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2467 * tree-switch-conversion.c (check_range): Likewise.
2468 (build_constructors): Likewise.
2469 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2470 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2471 (extract_range_from_assert): Likewise.
2472 (vrp_int_const_binop): Likewise.
2473 (extract_range_from_binary_expr): Likewise.
2474 (extract_range_from_unary_expr): Likewise.
2475 (check_array_ref): Likewise.
2476 (find_case_label_range): Likewise.
2477 (simplify_div_or_mod_using_ranges): Likewise.
2478 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2479 comparing case labels for merging.
2481 2011-05-03 Mark Wielaard <mjw@redhat.com>
2483 * dwarf2out.c (debug_str_hash_forced): Removed.
2484 (gen_label_for_indirect_string): Removed.
2485 (get_debug_string_label): Removed.
2486 (AT_string_form): Generate label directly.
2487 (output_indirect_string): Test indirect_string_node for
2488 DW_FORM_strp instead of checking label and refcount.
2489 (prune_indirect_string): Removed.
2490 (prune_unused_types): Don't check debug_str_hash_forced or
2491 call prune_indirect_string.
2493 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2496 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2498 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
2502 * combine.c (try_combine): Skip debug insns at m_split tests.
2504 2011-04-26 Mark Wielaard <mjw@redhat.com>
2507 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2508 when info_section_emitted.
2510 2011-05-03 Joseph Myers <joseph@codesourcery.com>
2512 * config/mips/mips-opts.h: New.
2513 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2515 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2516 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2517 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2519 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2521 (mips_abi, mips_code_readable): Don't declare.
2522 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2523 (mabi=): Use Enum and Var.
2524 (mips_abi): New Enum and EnumValue entries.
2525 (mcode-readable=): Use Enum and Var.
2526 (mips_code_readable_setting): New Enum and EnumValue entries.
2527 (mr10k-cache-barrier=): Use Enum and Var.
2528 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2530 2011-05-03 Jan Hubicka <jh@suse.cz>
2532 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2533 replace hash by pointer map.
2534 (cgraph_node_set_element_def, cgraph_node_set_element,
2535 const_cgraph_node_set_element, varpool_node_set_element_def,
2536 varpool_node_set_element, const_varpool_node_set_element): Remove.
2537 (free_cgraph_node_set, free_varpool_node_set): New function.
2538 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2539 * tree-emutls.c: Free varpool node set.
2540 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2541 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2542 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2543 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2544 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2545 Move here from ipa.c; implement using pointer_map
2546 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2547 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2548 debug_cgraph_node_set, varpool_node_set_new,
2549 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2550 dump_varpool_node_set, debug_varpool_node_set):
2551 Move to ipa-uitls.c.
2552 * passes.c (ipa_write_summaries): Update.
2554 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2556 From Mike Frysinger:
2557 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2558 bf542/bf544/bf547/bf548/bf549.
2560 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2562 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2564 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2567 * config/bfin/bfin.md (MOVCC): New mode_macro.
2568 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2569 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2570 comments from generated assembly.
2572 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2575 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2576 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2577 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2578 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2579 * config/bfin/lib1funcs.asm (___muldi3): New function.
2581 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2583 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2584 build_function_type_list instead of build_function_type.
2585 Rearrange initialization of `args' to do so.
2587 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2589 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2590 instead of build_function_type.
2592 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2594 * config/rs6000/rs6000.c (spe_init_builtins): Call
2595 build_function_type_list instead of build_function_type.
2596 (paired_init_builtins, altivec_init_builtins): Likewise.
2597 (builtin_function_type): Likewise.
2599 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2601 * config/sh/sh.c (sh_media_init_builtins): Call
2602 build_function_type_list instead of build_function_type.
2604 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2606 * config/sparc/sparc.c (sparc_file_end): Call
2607 build_function_type_list instead of build_function_type.
2609 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2611 * config/alpha/alpha.c (alpha_init_builtins): Call
2612 build_function_type_list instead of build_function_type.
2614 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2616 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2617 build_function_type_list instead of build_function_type.
2619 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2621 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2622 build_function_type_list instead of build_function_type.
2623 Delete `endlink' variable.
2625 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2627 * config/avr/avr.c (avr_init_builtins): Call
2628 build_function_type_list instead of build_function_type.
2630 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2632 * config/picochip/picochip.c (picochip_init_builtins): Call
2633 build_function_type_list instead of build_function_type.
2634 Delete `endlink' variable.
2636 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2638 * config/bfin/bfin.c (bfin_init_builtins): Call
2639 build_function_type_list instead of build_function_type.
2641 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2644 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2645 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2647 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2650 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2651 libbffastfp overrides libgcc when -mfast-fp.
2653 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2655 Originally from Bernd Schmidt
2656 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2657 * config/bfin/bfin.c (override_options): Test it and error if
2660 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2662 Originally From Bernd Schmidt
2663 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2666 2011-05-03 Jeff Law <law@redhat.com>
2668 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2669 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2670 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2671 than accessing AUX field directly. Free the AUX field before
2673 (thread_block, thread_through_loop_header): Likewise.
2674 (thread_single_edge, mark_threaded_blocks): Likewise.
2675 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2676 (register_jump_thread): Do not attempt to thread to a NULL edge.
2678 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2680 * function.c (init_function_start): Call decide_function_section.
2681 * varasm.c (decide_function_section): New function.
2682 (assemble_start_function): When not using
2683 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2684 or first_function_block_is_cold.
2685 * rtl.h (decide_function_section): Declare.
2687 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
2688 Jakub Jelinek <jakub@redhat.com>
2691 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2692 only succeed if req_mode is the same as set_mode.
2694 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2696 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2697 * genemit.c (gen_exp): Handle RETURN.
2698 * emit-rtl.c (verify_rtx_sharing): Likewise.
2699 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2700 * rtl.c (copy_rtx): RETURN is shared.
2701 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2703 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2704 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2705 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2706 * config/cris/cris.c (cris_expand_return): Likewise.
2707 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2708 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2709 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2710 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2711 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2713 * config/v850/v850.c (expand_epilogue): Likewise.
2714 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2715 * config/arm/arm.md (epilogue): Likewise.
2716 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2717 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2718 variable to ret_reg.
2720 2011-05-03 Richard Guenther <rguenther@suse.de>
2723 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2724 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2725 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2727 2011-05-03 Richard Guenther <rguenther@suse.de>
2729 * c-decl.c (grokdeclarator): Instead of looking at
2730 TREE_OVERFLOW check if the constant fits in the index type.
2732 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2734 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2735 (vec_store_lanes<mode><mode>): Likewise.
2737 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2739 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2740 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2741 convert_optab_index values.
2742 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2743 * genopinit.c (optabs): Initialize the new optabs.
2744 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2745 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2746 (expand_STORE_LANES): New functions.
2747 * tree.h (build_array_type_nelts): Declare.
2748 * tree.c (build_array_type_nelts): New function.
2749 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2750 (vect_model_load_cost): Likewise.
2751 (vect_store_lanes_supported, vect_load_lanes_supported)
2752 (vect_record_strided_load_vectors): Declare.
2753 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2754 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2755 (vect_transform_strided_load): Split out statement recording into...
2756 (vect_record_strided_load_vectors): ...this new function.
2757 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2758 (write_vector_array, create_array_ref): New functions.
2759 (vect_model_store_cost): Add store_lanes_p argument.
2760 (vect_model_load_cost): Add load_lanes_p argument.
2761 (vectorizable_store): Try to use store-lanes functions for
2763 (vectorizable_load): Likewise load-lanes and loads.
2764 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2765 to vect_model_store_cost.
2766 (vect_build_slp_tree): Likewise vect_model_load_cost.
2768 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2770 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2771 * hooks.c (hook_bool_mode_uhwi_false): New function.
2772 * target.def (array_mode_supported_p): New hook.
2773 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2774 * doc/tm.texi: Regenerate.
2775 * stor-layout.c (mode_for_array): New function.
2776 (layout_type): Use it.
2777 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2778 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2780 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2783 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2784 for -fstack-check if the size to allocate is negative.
2786 2011-05-02 Lawrence Crowl <crowl@google.com>
2788 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2789 (timevar_cond_start): New for starting a timer only when it is not
2791 (timevar_cond_stop): New for stopping a timer when it was not already
2794 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2795 (timevar_cond_start): New as above.
2796 (timevar_cond_stop): New as above.
2798 * timevar.def: Add start/stop timers for compiler phases,
2799 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2800 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2801 and TV_PHASE_FINALIZE.
2802 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2803 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2804 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2805 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2806 Make unused TV_OVERLOAD into a start/stop timer.
2808 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2809 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2810 to indicate that they are start/stop timers.
2812 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2813 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2814 Move initialization to do_compile.
2815 (do_compile): Add initialization from above.
2816 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2818 * c-decl.c (c_write_global_declarations): Add start/stop of
2819 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2821 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2822 or TV_PARSE_INLINE, as appropriate.
2823 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2824 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2826 2011-05-02 Jason Merrill <jason@redhat.com>
2829 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2831 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
2834 * c-decl.c (finish_decl): Only create a composite if the types are
2837 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2839 * config/fr30/fr30-protos.h (Mmode): Don't define.
2840 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2841 definition where used.
2842 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2843 define. Expand definitions where used.
2844 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2845 Expand definitions where used.
2846 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2847 rx_function_arg, rx_function_arg_advance,
2848 rx_function_arg_boundary): Expand definitions of those macros.
2849 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2850 definition where used.
2852 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2854 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2856 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2857 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2858 with *movv2sf_internal_rex64_avx.
2859 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2860 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2861 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2862 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2863 "vex" in "prefix" attribute calculation.
2864 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2866 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2869 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2870 inputs match the output.
2872 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2875 * config/m68k/m68k.c (m68k_expand_prologue): Set
2876 current_function_static_stack_size.
2878 2011-05-02 Jan Hubicka <jh@suse.cz>
2880 * lto-streamer.c (lto_streamer_cache_insert_1,
2881 lto_streamer_cache_lookup, lto_streamer_cache_create,
2882 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2883 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2885 2011-05-02 Joseph Myers <joseph@codesourcery.com>
2887 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2888 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2889 config/m68k/t-opts: New files.
2890 * config/m68k/m68k-tables.opt: New file (generated).
2891 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2892 extra_options and m68k/t-opts to tmake_file.
2893 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2894 (all_isas): Initialize using m68k-isas.def.
2895 (all_microarchs): Initialize using m68k-microarchs.def.
2896 (m68k_find_selection): Remove.
2897 (m68k_handle_option): Don't assert that global structures are in
2898 use. Use error_at. Access variables via opts pointer. Don't
2899 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2900 directly for -m68020-40 and -m68020-60.
2901 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2902 m68k_tune_entry here.
2903 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2905 (m68k_library_id_string): Remove declaration.
2906 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
2907 (m68k_library_id_string): New Variable.
2908 (march=, mcpu=, mtune=): Use Enum and Var.
2910 2011-05-02 Richard Guenther <rguenther@suse.de>
2912 * varasm.c (output_constructor_regular_field): Compute zero-based
2913 index with double-ints. Make sure to ICE instead of producing
2915 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2916 in asserts. Properly use a signed type.
2918 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
2920 * config/i386/sse.md (V): New mode iterator.
2921 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2923 (V_256): Rename from AVX256MODE.
2924 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2925 condition to all users.
2927 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2928 condition to all users.
2929 (VF_128): Make V4SF mode unconditional.
2930 (VF_256): Rename from AVX256MODEF2P.
2931 (VI4F_128): Rename from SSEMODE4S.
2932 (VI8F_128): Rename from SSEMODE2D.
2933 (VI4F_256): Rename from AVX256MODE8P.
2934 (VI8F_256): Rename from AVX256MODE4P.
2935 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2936 (ssescalarmodesuffix): Remove SF and DF modes.
2937 (SSEMODE124): Remove.
2938 (SSEMODE1248): Ditto.
2939 (SSEMODEF2P): Ditto.
2940 (AVXMODEF2P): Ditto.
2941 (AVXMODEFDP): Ditto.
2942 (AVXMODEFSP): Ditto.
2943 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2945 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2947 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2948 xop_pcmov_<mode>256. Use V mode iterator.
2950 Adjust RTX patterns globally for renamed mode attributes.
2952 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2954 * haifa-sched.c (sched_emit_insn): Emit insn before first
2955 non-scheduled insn. Inform back-end about new insn. Add
2956 new insn to scheduled_insns list.
2958 2011-05-02 Richard Guenther <rguenther@suse.de>
2960 PR tree-optimization/48822
2961 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2962 (process_scc): Indicate which iteration we start.
2964 2011-05-02 Jan Hubicka <jh@suse.cz>
2966 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2967 (lto_section_overrun): New.
2968 * lto-section-out.c (append_block): Rename to ...
2969 (lto_append_block): ... this one; export.
2970 (lto_output_1_stream): Move lto lto-streamer.h
2971 (lto_output_data_stream): Update.
2972 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2973 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2976 2011-05-02 Richard Guenther <rguenther@suse.de>
2978 * tree.c (tree_code_counts): New global array.
2979 (record_node_allocation_statistics): Count individual tree codes.
2980 (dump_tree_statistics): Dump individual code stats.
2982 2011-05-01 Jan Hubicka <jh@suse.cz>
2984 * ipa-inline.c (caller_growth_limits): Fix thinko when
2985 looking for largest stack frame.
2986 * ipa-inline.h (dump_inline_summary): Declare.
2987 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2989 (dump_inline_summary): Export.
2990 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2992 2011-05-01 Anatoly Sokolov <aesok@post.ru>
2994 * reginfo.c (memory_move_cost): Change rclass argument type form
2995 'enum reg_class' to reg_class_t.
2996 * reload.h (memory_move_cost): Update prototype.
2997 * postreload.c reload_cse_simplify_set): Change type dclass var to
2999 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3001 (ira_allocate_and_set_costs): Change aclass argument type form
3002 'enum reg_class' to reg_class_t.
3003 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3004 Change aclass argument type to reg_class_t.
3005 (update_conflict_hard_reg_costs): Change type aclass and pref vars
3007 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3008 memory_move_cost call.
3010 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3011 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3012 Change type tmp var to reg_class_t.
3014 2011-04-30 Jan Hubicka <jh@suse.cz>
3016 * ipa-inline.c (can_inline_edge_p): Disregard limits when
3017 inlining into function with flatten attribute.
3018 (want_inline_small_function_p): Be more realistic about inlining
3019 cold calls where callee size grows.
3021 2011-04-30 Jan Hubicka <jh@suse.cz>
3023 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3026 2011-04-30 Anatoly Sokolov <aesok@post.ru>
3028 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3029 PRINT_OPERAND_PUNCT_VALID_P): Remove.
3030 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3031 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3032 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3033 (print_operand): Rename to...
3034 (sparc_print_operand): ...this. Make static. Adjust
3035 sparc_print_operand function call.
3036 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3039 2011-04-30 Jan Hubicka <jh@suse.cz>
3042 * ipa-inline.c (early_inliner): Disable when doing late
3043 addition of function.
3045 2011-04-30 Jakub Jelinek <jakub@redhat.com>
3047 * dwarf2out.c (get_address_mode): New inline.
3048 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3049 if not dwarf_strict emit
3050 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3051 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3052 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
3053 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3054 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3055 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3056 mem_loc_descriptor callers.
3057 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3058 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3059 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3060 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3061 (base_types): New variable.
3062 (get_base_type_offset, calc_base_type_die_sizes,
3063 base_type_for_mode, mark_base_types, base_type_cmp,
3064 move_marked_base_types): New functions.
3065 (calc_die_sizes): Assert that die_offset is 0 or equal to
3067 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3068 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
3069 callers. If not dwarf_strict, call mem_loc_descriptor even for
3070 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3071 (gen_subprogram_die): Don't give up on call site parameters
3072 with non-integral or large integral modes. Adjust
3073 mem_loc_descriptor callers.
3074 (prune_unused_types): Call prune_unused_types_mark on base_types
3076 (resolve_addr): Call mark_base_types.
3077 (dwarf2out_finish): Call move_marked_base_types.
3079 PR tree-optimization/48809
3080 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3082 (gen_inbound_check): Don't compute index_expr - range_min in utype
3083 again, instead reuse SSA_NAME initialized in build_arrays.
3084 Remove two useless gsi_for_stmt calls.
3086 2011-04-29 Jeff Law <law@redhat.com>
3088 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3090 2011-04-29 Martin Jambor <mjambor@suse.cz>
3092 * cgraph.h (cgraph_postorder): Remove declaration.
3093 * ipa-utils.h (ipa_free_postorder_info): Declare.
3094 (ipa_reverse_postorder): Likewise.
3095 * cgraphunit.c: Include ipa-utils.h.
3096 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3097 * ipa-inline.c: Include ipa-utils.h.
3098 (ipa_inline): Update call to ipa_reverse_postorder.
3099 * ipa-pure-const.c (propagate_pure_const): Update call to
3100 ipa_reduced_postorder and ipa_print_order. Call
3101 ipa_free_postorder_info to clean up.
3102 (propagate_nothrow): Likewise.
3103 * ipa-reference.c (propagate): Removed a useless call to
3104 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3105 and ipa_print_order. Call ipa_free_postorder_info to clean up.
3106 * ipa.c: Include ipa-utils.h.
3107 (ipa_profile): Update call to ipa_reverse_postorder.
3108 (cgraph_postorder): Moved to...
3109 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3110 (ipa_utils_print_order): Renamed to ipa_print_order.
3111 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3113 (ipa_free_postorder_info): New function.
3114 * passes.c: Include ipa-utils.h.
3115 (do_per_function_toporder): Update call to ipa_reverse_postorder.
3116 (ipa_write_summaries): Likewise.
3117 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3118 (cgraphunit.o): Likewise.
3120 (ipa-inline.o): Likewise.
3122 2011-04-29 Jan Hubicka <jh@suse.cz>
3124 * gcc.dg/tree-ssa/inline-10.c: New testcase.
3125 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3126 * ipa-inline.h (clause_t): Turn into unsigned int.
3127 * ipa-inline-analysis.c (add_clause): Do more simplification.
3128 (and_predicates): Shortcut more cases.
3129 (predicates_equal_p): Move forward; check that clauses are properly
3131 (or_predicates): Shortcut more cases.
3132 (edge_execution_predicate): Rewrite as...
3133 (set_cond_stmt_execution_predicate): ... this function; handle
3134 __builtin_constant_p.
3135 (set_switch_stmt_execution_predicate): New .
3136 (compute_bb_predicates): New.
3137 (will_be_nonconstant_predicate): Update TODO.
3138 (estimate_function_body_sizes): Use compute_bb_predicates
3139 and free them later, always try to estimate if stmt is constant.
3140 (estimate_time_after_inlining, estimate_size_after_inlining):
3141 Gracefully handle optimized out edges.
3142 (read_predicate): Fix off by one error.
3144 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
3146 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3148 2011-04-27 Xinliang David Li <davidxl@google.com>
3150 * tree-profile.c (init_ic_make_global_vars): Set
3151 tls attribute on ic vars.
3152 * coverage.c (coverage_end_function): Initialize
3153 function_list with zero.
3155 2011-04-29 Richard Guenther <rguenther@suse.de>
3157 * builtins.c (fold_builtin_classify_type): Use integer_type_node
3158 for the type of the result.
3159 (fold_builtin_isascii): Likewise.
3160 (fold_builtin_toascii): Use integer_type_node where appropriate.
3161 (fold_builtin_logb): Likewise.
3162 (fold_builtin_frexp): Likewise.
3163 (fold_builtin_strstr): Likewise.
3164 (fold_builtin_strpbrk): Likewise.
3165 (fold_builtin_fputs): Likewise.
3166 (fold_builtin_sprintf): Likewise.
3167 (fold_builtin_snprintf): Likewise.
3168 (fold_builtin_printf): Likewise.
3169 (do_mpfr_remquo): Use a proper type for the assigned constant.
3170 (do_mpfr_lgamma_r): Likewise.
3171 * dwarf2out.c (resolve_one_addr): Use size_int.
3172 * except.c (init_eh): Likewise.
3173 (assign_filter_values): Use integer_type_node for filter values.
3174 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3176 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3177 for EH region numbers.
3178 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3179 for the shift amount.
3181 2011-04-29 Richard Guenther <rguenther@suse.de>
3183 * expr.h (expand_shift): Rename to ...
3184 (expand_variable_shift): ... this.
3185 (expand_shift): Take a constant shift amount.
3186 * expmed.c (expand_shift): Rename to ...
3187 (expand_variable_shift): ... this.
3188 (expand_shift): New wrapper around expand_variable_shift.
3189 * expr.c (convert_move, emit_group_load_1, emit_group_store,
3190 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3191 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3192 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3193 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3194 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3195 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3196 emit_store_flag_1, emit_store_flag): Likewise.
3197 * builtins.c (expand_builtin_signbit): Likewise.
3198 * calls.c (load_register_parameters): Likewise.
3199 * function.c (assign_parm_setup_block): Likewise.
3200 * lower-subreg.c (resolve_shift_zext): Likewise.
3201 * optabs.c (widen_bswap, expand_abs_nojump,
3202 expand_one_cmpl_abs_nojump, expand_float): Likewise.
3203 * spu/spu.c (spu_expand_extv): Likewise.
3204 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3206 2011-04-29 Richard Guenther <rguenther@suse.de>
3208 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3209 for the remapped region number.
3210 * predict.c (build_predict_expr): Use integer_type_node for the
3212 * fold-const.c (fold_binary_loc): Use integer_type_node for
3213 the shift amount. Use a proper type for the PLUS_EXPR operand.
3215 2011-04-29 Michael Matz <matz@suse.de>
3217 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3218 other trees that just builtins.
3219 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3221 2011-04-29 Richard Guenther <rguenther@suse.de>
3223 * tree-nested.c (get_trampoline_type): Use size_int.
3224 (get_nl_goto_field): Likewise.
3225 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3227 (lower_eh_constructs_2): Likewise.
3228 (lower_resx): Likewise.
3229 (lower_eh_dispatch): Likewise.
3230 * tree-mudflap.c (mf_build_string): Use size_int.
3231 (mudflap_register_call): Use integer_type_node for the flag.
3232 (mudflap_enqueue_constant): Use size_int.
3233 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3234 instead of rebuilding it.
3236 2011-04-29 Richard Guenther <rguenther@suse.de>
3238 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3239 Handle OBJ_TYPE_REF.
3240 (find_func_aliases_for_call): Use it more consistently.
3242 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
3244 * haifa-sched.c (last_nondebug_scheduled_insn): New.
3245 (rank_for_schedule): Use it.
3246 (schedule_block): Set it.
3248 2011-04-28 David Li <davidxl@google.com>
3250 * tree.c (crc32_string): Use crc32_byte.
3251 (crc32_byte): New function.
3252 * tree.h (crc32_byte): New function.
3253 * gcov.c (read_graph_file): Handle new cfg_cksum.
3254 (read_count_file): Ditto.
3255 * profile.c (instrument_values): Ditto.
3256 (get_exec_counts): Ditto.
3257 (read_profile_edge_counts): Ditto.
3258 (compute_branch_probabilities): Ditto.
3259 (compute_value_histograms): Ditto.
3260 (branch_prob): Ditto.
3261 (end_branch_prob): Ditto.
3262 * coverage.c (read_counts_file): Ditto.
3263 (get_coverage_counts): Ditto.
3264 (tree_coverage_counter_addr): Ditto.
3265 (coverage_checksum_string): Ditto.
3266 (coverage_begin_output): Ditto.
3267 (coverage_end_function): Ditto.
3268 (build_fn_info_type): Ditto.
3269 (build_fn_info_value): Ditto.
3270 * libgcov.c (gcov_exit): Ditto.
3271 * gcov-dump.c (tag_function): Ditto.
3272 (compute_checksum): Remove.
3274 2011-04-29 Alan Modra <amodra@gmail.com>
3276 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3277 unspec plus offset. Tidy macho code.
3279 2011-04-29 Martin Jambor <mjambor@suse.cz>
3281 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3282 node instead of a decl. Update all callers.
3283 * cgraph.h: Update declaration.
3285 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
3287 PR tree-optimization/48765
3288 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3289 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3290 to indicate if loop aware SLP is being used. Scan the statements
3291 and update the vectorization factor according to the type of
3292 vectorization before statement analysis.
3293 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3294 pass it to vect_analyze_loop_operations.
3295 (vectorizable_reduction): Set number of copies to 1 in case of pure
3297 * tree-vect-stmts.c (vectorizable_conversion,
3298 vectorizable_assignment, vectorizable_shift,
3299 vectorizable_operation, vectorizable_type_demotion,
3300 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3302 (vectorizable_condition): Move the check that it is not SLP
3303 vectorization before the number of copies check.
3304 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3305 to vectorize the loop using SLP.
3307 2011-04-28 Jakub Jelinek <jakub@redhat.com>
3310 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3313 2011-04-28 Joseph Myers <joseph@codesourcery.com>
3315 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3316 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3317 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3318 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3319 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3321 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3322 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3323 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3324 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3325 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3326 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3328 * config/i386/linux.h (REG_NAME): Don't define.
3329 * config/i386/linux64.h (REG_NAME): Don't define.
3330 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3331 Undefine before defining.
3333 2011-04-28 Jan Hubicka <jh@suse.cz>
3335 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3336 nonconstant_names array.
3337 (estimate_function_body_sizes): Build nonconstant_names array; handle
3338 BUILT_IN_CONSTANT_P.
3340 2011-04-28 Richard Guenther <rguenther@suse.de>
3344 2011-04-28 Richard Guenther <rguenther@suse.de>
3346 * tree-ssa-structalias.c (solve_constraints): Build succ graph
3347 as late as possible.
3349 2011-04-28 Richard Guenther <rguenther@suse.de>
3351 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3352 (debug_constraint): Do it here.
3353 (dump_constraints): And here.
3354 (rewrite_constraints): And here.
3355 (dump_constraint_edge): Remove.
3356 (dump_constraint_graph): Rewrite to produce DOT output.
3357 (solve_constraints): Build succ graph as late as possible.
3358 Dump constraint graphs before and after solving.
3360 2011-04-28 Richard Guenther <rguenther@suse.de>
3362 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3363 New function split out from ...
3364 (find_func_aliases): ... here. Call it.
3365 (find_func_aliases_for_call): Likewise.
3367 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3369 * internal-fn.h (internal_fn_name_array): Declare.
3370 (internal_fn_flags_array): Likewise.
3372 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3374 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
3375 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3377 (ssemodefsuffix): Remove.
3378 (ssevecmodesuffix): New mode attribute.
3379 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3380 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3381 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3382 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3383 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3384 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3385 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3386 ssemodesuffix mode attribute.
3387 (float splitters): Use ssevecmodesuffix mode attribute.
3388 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3389 (sseinsmode): Rename from avxvecmode.
3390 (avxsizesuffix): Rename from avxmodesuffix.
3391 (sseintvecmode): Rename from avxpermvecmode.
3392 (ssedoublevecmode): Rename from ssedoublesizemode.
3393 (ssehalfvecmode): Rename from avxhalfvecmode.
3394 (ssescalarmode): Rename from avxscalarmode.
3395 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3396 templates for ssemodesuffix mode attribute.
3397 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3400 Adjust RTX patterns globally for renamed mode attributes.
3402 2011-04-27 Jan Hubcika <jh@suse.cz>
3404 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3405 * ipa-inline-analysis.c: Include alloc-pool.h.
3406 (edge_predicate_pool): New.
3407 (trye_predicate_p): New function
3408 (false_predicate_p): New function.
3409 (add_clause): Sanity check that false clauses are "optimized";
3410 never add clauses to predicate that is already known to be false.
3411 (and_predicate): Use flase_predicate_p.
3412 (evaulate_predicate): Rename to ...
3413 (evaluate_predicate): ... this one; update all callers; assert
3414 that false is not listed among possible truths.
3415 (dump_predicate): Use true_predicate_p.
3416 (account_size_time): Use false_predicate_p.
3417 (evaulate_conditions_for_edge): Rename to ...
3418 (evaluate_conditions_for_edge) ... this one.
3419 (edge_set_predicate): New function.
3420 (inline_edge_duplication_hook): Duplicate edge predicates.
3421 (inline_edge_removal_hook): Free edge predicates.
3422 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3423 (dump_inline_summary): Update.
3424 (estimate_function_body_sizes): Set edge predicates.
3425 (estimate_calls_size_and_time): Handle predicates.
3426 (estimate_callee_size_and_time): Update.
3427 (remap_predicate): Add toplev_predicate; update comment.
3428 (remap_edge_predicates): New function.
3429 (inline_merge_summary): Compute toplev predicate; update.
3430 (read_predicate): New function.
3431 (read_inline_edge_summary): Use it.
3432 (inline_read_section): Likewise.
3433 (write_predicate): New function.
3434 (write_inline_edge_summary): Use it.
3435 (inline_write_summary): Likewise.
3436 (inline_free_summary): Free alloc pool and edge summary vec.
3438 2011-04-27 Richard Guenther <rguenther@suse.de>
3440 * tree-ssa-structalias.c (changed_count): Remove.
3441 (changed): Use a bitmap.
3442 (unify_nodes): Adjust.
3443 (do_sd_constraint): Likewise.
3444 (do_ds_constraint): Likewise.
3445 (do_complex_constraint): Likewise.
3446 (solve_graph): Likewise.
3448 2011-04-27 Jan Hubicka <jh@suse.cz>
3450 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3452 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
3454 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3455 (avx_vperm2f128_*_operand): Ditto.
3456 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3457 Use avx_vpermilp_parallel in insn condition.
3458 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3459 Use avx_vperm2f128_parallel in insn condition.
3461 2011-04-27 Richard Guenther <rguenther@suse.de>
3463 * Makefile.in (tree-ssa-structalias.o): Remove
3464 gt-tree-ssa-structalias.h dependency.
3465 (GTFILES): Remove tree-ssa-structalias.c.
3466 * tree.c (allocate_decl_uid): New function.
3467 (make_node_stat): Use it.
3468 (copy_node_stat): Likewise.
3469 * tree.h (allocate_decl_uid): Declare.
3470 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3471 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3472 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3473 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3474 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3475 (struct heapvar_map): Likewise.
3476 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3477 heapvar_insert): Likewise.
3478 (make_heapvar_for): Rename to ...
3479 (make_heapvar): ... this. Simplify.
3480 (fake_var_decl_obstack): New global var.
3481 (build_fake_var_decl): New function.
3482 (make_constraint_from_heapvar): Adjust.
3483 (handle_lhs_call): Likewise.
3484 (create_function_info_for): Likewise.
3485 (intra_create_variable_infos): Likewise.
3486 (init_alias_vars): Allocate fake_var_decl_obstack.
3487 (init_alias_heapvars, delete_alias_heapvars): Remove.
3488 (compute_points_to_sets): Do not call init_alias_heapvars.
3489 (ipa_pta_execute): Likewise.
3490 (delete_points_to_sets): Free fake_var_decl_obstack.
3492 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3494 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3495 (si_from_UTItype, si_to_UTItype): New functions.
3496 (__udivmodti4): Use them to implement type-punning.
3497 * config/spu/multi3.c (union qword_TItype): New data type.
3498 (si_from_TItype, si_to_TItype): New functions.
3499 (__multi3): Use them to implement type-punning.
3501 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3503 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3505 2011-04-27 Jan Hubicka <jh@suse.cz>
3507 * ipa-prop.c (function_insertion_hook_holder): New holder.
3508 (ipa_add_new_function): New function.
3509 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3510 Register/deregister holder.
3512 2011-04-27 Richard Guenther <rguenther@suse.de>
3514 PR tree-optimization/48772
3515 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3517 2011-04-27 Richard Guenther <rguenther@suse.de>
3519 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3520 TARGET_MEM_REF handling.
3522 2011-04-27 Nick Clifton <nickc@redhat.com>
3524 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3525 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3526 (REG_CLASS_NAMES): Likewise.
3527 (REG_CLASS_CONTENTS): Likewise.
3528 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3529 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3530 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3531 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3532 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3533 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3534 duplicate register classes.
3535 (frv_class_likely_spilled_p): Likewise.
3536 (frv_register_move_cost): Likewise.
3538 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3539 end of the regno_reg_class array.
3541 2011-04-27 Jakub Jelinek <jakub@redhat.com>
3544 * c-typeck.c (build_binary_op): Don't wrap arguments if
3545 int_operands is true.
3547 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3550 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3551 targetm.calls.must_pass_in_stack for void type.
3553 2011-04-26 Jan Hubicka <jh@suse.cz>
3555 * cgraphbuild.c (build_cgraph_edges): Update call
3556 of cgraph_create_edge and cgraph_create_indirect_edge.
3557 * cgraph.c (cgraph_create_edge_including_clones,
3558 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3559 cgraph_update_edges_for_call_stmt_node): Do not take nest
3560 argument; do not initialize call_stmt_size/time.
3561 (dump_cgraph_node): Do not dump nest.
3562 (cgraph_clone_edge): Do not take loop_nest argument;
3563 do not propagate it; do not clone call_stmt_size/time.
3564 (cgraph_clone_node): Likewise.
3565 (cgraph_create_virtual_clone): Update.
3566 * cgraph.h (struct cgraph_edge): Remove
3567 call_stmt_size/call_stmt_time/loop_nest.
3568 (cgraph_create_edge, cgraph_create_indirect_edge,
3569 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3571 * tree-emutls.c (gen_emutls_addr): Update.
3572 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3573 loop_nest; handle indirect calls, too.
3574 (clone_inlined_nodes): Do not care about updating inline summaries.
3575 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3576 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3577 stream call_stmt_size/call_stmt_time/loop_nest.
3578 * ipa-inline.c (edge_badness): Update.
3579 (ipa_inline): dump summaries after inlining.
3580 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3582 (inline_edge_summary): New function.
3583 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3584 (inline_edge_removal_hook): Handle edge summaries.
3585 (inline_edge_duplication_hook): New hook.
3586 (inline_summary_alloc): Alloc hooks.
3587 (initialize_growth_caches): Do not register removal hooks.
3588 (free_growth_caches); Do not free removal hook.
3589 (dump_inline_edge_summary): New function.
3590 (dump_inline_summary): Use it.
3591 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3592 (inline_update_callee_summaries): New function.
3593 (inline_merge_summary): Use it.
3594 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3595 (read_inline_edge_summary): New function.
3596 (inline_read_section): Use it.
3597 (write_inline_edge_summary): New function.
3598 (inline_write_summary): Use it.
3599 (inline_free_summary): Free edge new holders.
3600 * tree-inline.c (copy_bb): Update.
3602 2011-04-26 Jason Merrill <jason@redhat.com>
3604 * tree-eh.c (lower_try_finally_switch): Create the label along with
3605 the CASE_LABEL_EXPR.
3607 2011-04-26 David S. Miller <davem@davemloft.net>
3608 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3610 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3611 * configure: Regenerate.
3613 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3616 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3618 (VEC_reduc): New code iterator and splitters for vector reduction.
3619 (VEC_reduc_name): Ditto.
3620 (VEC_reduc_rtx): Ditto.
3621 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3622 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3624 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3625 support for extracting SF on VSX.
3627 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3628 generating xscvspdp.
3629 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3630 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3631 double add, minimum, maximum vector reduction.
3632 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3633 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3634 optimize double vector reduction.
3635 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3637 2011-04-26 Joseph Myers <joseph@codesourcery.com>
3639 * config/fr30/fr30.h (inhibit_libc): Don't define.
3640 * config/m32r/m32r-protos.h: Correct comment.
3641 * config/v850/v850.h (GHS_default_section_names,
3642 GHS_current_section_names): Use tree, not union tree_node *.
3644 2011-04-26 Xinliang David Li <davidxl@google.com>
3646 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3647 * c-family/c-opts.c (c_common_handle_option): Set
3648 warn_maybe_uninitialized.
3649 * opts.c (common_handle_option): Ditto.
3650 * common.opt: New option.
3651 * tree-ssa.c (warn_uninit): Add one more parameter.
3652 (warn_uninitialized_var): Pass warning code.
3653 * tree-flow.h: Interface change.
3656 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3658 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3659 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3660 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3662 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3664 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3665 * config/mips/mips.opt (mmips-tfile): Remove.
3667 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3668 mips-tdump reference to ...
3669 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
3670 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3671 reference by Tru64 UNIX.
3673 2011-04-26 Jakub Jelinek <jakub@redhat.com>
3676 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3677 is error_mark_node, set value to NULL.
3679 PR tree-optimization/48734
3680 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3681 if return value from maybe_fold_*_comparsions isn't something
3682 the code is prepared to handle.
3684 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
3686 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3688 (ext_QIreg_nomode_operands): Remove.
3689 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3693 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
3695 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3697 2011-04-26 Richard Guenther <rguenther@suse.de>
3699 * c-typeck.c (build_unary_op): Do not expand array-refs via
3700 pointer arithmetic. Only adjust qualifiers for function types.
3702 2011-04-26 Richard Guenther <rguenther@suse.de>
3705 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3706 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3707 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3708 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3710 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3712 * doc/extend.texi: Document __underlying_type.
3714 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3716 * config/rs6000/titan.md (automata_option "progress"): Remove.
3718 2011-04-25 Jeff Law <law@redhat.com>
3720 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3722 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3724 * system.h (ENUM_BITFIELD): Remove.
3726 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
3727 Eric Botcazou <ebotcazou@adacore.com>
3729 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3730 for STORE_FLAG_VALUE==-1 case.
3732 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3735 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3736 LEGITIMATE_PIC_OPERAND_P.
3738 2011-04-24 Jan Hubicka <jh@suse.cz>
3740 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3742 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3743 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3744 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3745 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3746 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3747 Sanity check predicate length.
3748 (remap_predicate): Likewise; sanity check jump functions.
3749 (inline_read_section, inline_write_summary): Sanity check
3752 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3755 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3756 __is_literal_type, and __is_trivial; update throughout about
3757 possibly cv-qualified void types.
3759 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3761 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3762 testsuite and make it version agnostic.
3764 2011-04-22 Jan Hubicka <jh@suse.cz>
3766 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3768 2011-04-23 Jakub Jelinek <jakub@redhat.com>
3771 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3772 to VOID_TYPE even around MODIFY_EXPR.
3774 2011-04-22 Mike Stump <mikestump@comcast.net>
3776 * gensupport.c (read_md_rtx): Fix typo in comment.
3777 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3780 2011-04-22 Jan Hubicka <jh@suse.cz>
3782 * gengtype.c (open_base_files): Add ipa-inline.h include.
3783 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3784 ipa-prop.c; update all uses.
3785 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
3786 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3787 merge summary of inlined function into former caller.
3788 * ipa-inline.c (max_benefit): Remove.
3789 (edge_badness): Compensate for removal of benefits.
3790 (update_caller_keys): Use
3791 reset_node_growth_cache/reset_edge_growth_cache.
3792 (update_callee_keys): Likewise.
3793 (update_all_callee_keys): Likewise.
3794 (inline_small_functions): Do not collect max_benefit; do not reset
3795 estimated_growth; call free_growth_caches and initialize_growth_caches.
3796 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3797 struct size_time_entry): New structures.
3798 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
3799 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3800 and estimated_growth.
3801 (edge_growth_cache_entry): New structure.
3802 (node_growth_cache, edge_growth_cache): New global vars.
3803 (estimate_growth): Turn into inline.
3804 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3805 initialize_growth_caches, free_growth_caches): Declare.
3806 (estimate_edge_growth): Rewrite.
3807 (estimate_edge_time): Implement as inline cache lookup.
3808 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3810 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3811 (NUM_CONDITIONS): New constant.
3812 (predicate_conditions): New enum.
3813 (IS_NOT_CONSTANT): New constant.
3814 (edge_removal_hook_holder): New var.
3815 (node_growth_cache, edge_growth_cache): New global vars.
3816 (true_predicate, single_cond_predicate, false_predicate,
3817 not_inlined_predicate, add_condition, add_clause, and_predicates,
3818 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3819 dump_clause, dump_predicate, account_size_time,
3820 evaulate_conditions_for_edge): New functions.
3821 (inline_summary_alloc): Move to heap.
3822 (inline_node_removal_hook): Clear condition and entry vectors.
3823 (inline_edge_removal_hook): New function.
3824 (initialize_growth_caches, free_growth_caches): New function.
3825 (dump_inline_summary): Update.
3826 (edge_execution_predicate): New function.
3827 (will_be_nonconstant_predicate): New function.
3828 (estimate_function_body_sizes): Compute BB and constantness predicates.
3829 (compute_inline_parameters): Do not clear estimated_growth.
3830 (estimate_edge_size_and_time): New function.
3831 (estimate_calls_size_and_time): New function.
3832 (estimate_callee_size_and_time): New function.
3833 (remap_predicate): New function.
3834 (inline_merge_summary): New function.
3835 (do_estimate_edge_time): New function based on...
3836 (estimate_edge_time): ... this one.
3837 (do_estimate_edge_growth): New function.
3838 (do_estimate_growth): New function based on....
3839 (estimate_growth): ... this one.
3840 (inline_analyze_function): Analyze after deciding on jump functions.
3841 (inline_read_section): New function.
3842 (inline_read_summary): Use it.
3843 (inline_write_summary): Write all the new data.
3844 * ipa-prop.c (ipa_get_param_decl_index): Export.
3845 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
3846 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3848 (ipa_get_lattice): Move here from ipa-cp.c
3849 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3850 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3851 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3852 cgraph_edge_inlinable_p): Remove.
3853 * cgraphunit.c: Include ipainline.h
3854 (cgraph_process_new_functions): Update call of
3855 compute_inline_parameters.
3857 2011-04-22 Richard Guenther <rguenther@suse.de>
3859 * tree.c (build_int_cst): Properly create canonicalized integer
3861 (build_int_cst_type): Remove scary comments.
3863 2011-04-22 Xinliang David Li <davidxl@google.com>
3865 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3866 by default when -Wno-error is not specified.
3867 * opts-global.c (decode_options): Remove call to
3868 control_warning_options.
3870 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3872 PR tree-optimization/48717
3873 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3874 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3876 2011-04-22 Joseph Myers <joseph@codesourcery.com>
3878 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3879 definition where used.
3881 2011-04-22 Jakub Jelinek <jakub@redhat.com>
3884 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3885 TREE_STATIC variables declared inside of some OpenMP construct.
3887 2011-04-22 Martin Jambor <mjambor@suse.cz>
3890 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
3892 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
3895 * c-typeck.c (pop_init_level): Do not warn about initializing
3898 2011-04-22 Alan Modra <amodra@gmail.com>
3900 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3901 when returning call_cookie.
3902 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3903 pointers, to functions with no more vector args than the current
3904 function, and some non-local calls for ABI_V4.
3905 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3906 sibcall_nonlocal_aix64): Combine to ..
3907 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3908 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3909 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3910 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3911 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3913 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3914 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3915 sibcall_value_symbolic_64): Delete.
3917 2011-04-21 Xinliang David Li <davidxl@google.com>
3919 * cgraph.h: Remove pid.
3920 * cgraph.c: Remove pid.
3921 * value-prof.c (init_node_map): New function.
3922 (del_node_map): New function.
3923 (find_func_by_funcdef_no): New function.
3924 (gimple_ic_transform): Call new function.
3925 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3926 * function.c (get_last_funcdef_no): New function.
3927 * function.h (get_last_funcdef_no): New function.
3928 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3929 to libgcov function.
3930 (tree-profiling): Call node map init and delete function.
3932 2011-04-21 Ian Lance Taylor <iant@google.com>
3934 * godump.c (go_format_type): Use exported Go name for anonymous
3937 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3939 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3940 Call builtin_function_type_list instead of builtin_function_type.
3941 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3943 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3945 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3946 build_function_type_list instead of build_function_type.
3947 Delete variable `endlink'.
3949 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3951 * config/s390/s390.c (s390_init_builtins): Call
3952 build_function_type_list instead of build_function_type.
3954 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3956 * config/ia64/ia64.c (ia64_init_builtins): Call
3957 build_function_type_list instead of builtin_function_type.
3959 2011-04-21 Easwaran Raman <eraman@google.com>
3961 * cfgexpand.c (stack_var): Remove OFFSET...
3962 (add_stack_var): ...and its reference here...
3963 (expand_stack_vars): ...and here.
3964 (stack_var_cmp): Sort by descending order of size.
3965 (partition_stack_vars): Change heuristic.
3966 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
3967 (dump_stack_var_partition): Add newline after each partition.
3969 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3970 Jeff Law <law@redhat.com>
3972 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
3973 * gengtype.c (matching_file_name_substitute): Likewise.
3975 2011-04-21 Richard Guenther <rguenther@suse.de>
3978 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
3980 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3982 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3984 2011-04-21 Richard Guenther <rguenther@suse.de>
3986 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3989 2011-04-21 Richard Guenther <rguenther@suse.de>
3991 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3992 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3993 Use DECL_P, not SSA_VAR_P.
3994 (ptr_derefs_may_alias_p): Likewise.
3995 (ptr_deref_may_alias_ref_p_1): Likewise.
3996 (decl_refs_may_alias_p): Likewise.
3997 (refs_may_alias_p_1): Likewise.
3998 (ref_maybe_used_by_call_p_1): Likewise.
3999 (call_may_clobber_ref_p_1): Likewise.
4000 (indirect_ref_may_alias_decl_p): Assume indirect refrences
4001 are either MEM_REF or TARGET_MEM_REF.
4002 (indirect_refs_may_alias_p): Likewise.
4003 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4004 for MEM_EXPR of indirect calls.
4006 2011-04-21 Tristan Gingold <gingold@adacore.com>
4008 * vmsdbgout.c (write_srccorr): Compute file length from the string.
4009 (dst_file_info_struct): Remove flen field.
4010 (lookup_filename): Remove code that set flen field.
4012 2011-04-21 Tristan Gingold <gingold@adacore.com>
4014 * config/ia64/ia64.c (ia64_start_function): Add a guard.
4016 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
4019 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4020 vec_extract and vec_concat for non-SSE4_1 targets.
4022 2011-04-21 Richard Guenther <rguenther@suse.de>
4024 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4027 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4029 * config/i386/cygming.h (union tree_node, TREE): Don't define or
4031 (FILE): Don't undefine.
4033 2011-04-21 Joseph Myers <joseph@codesourcery.com>
4035 * config/alpha/alpha.c (struct machine_function): Use rtx, not
4037 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4039 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4040 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4041 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4043 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
4044 definitions where used.
4045 * config/microblaze/microblaze.h (struct microblaze_args): Use
4046 rtx, not struct rtx_def *.
4047 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4049 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4050 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4051 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4052 not struct rtx_def *.
4053 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4055 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4057 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4059 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4061 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4062 operand_equal_p to compare DR_BASE_ADDRESSes.
4063 (vect_check_interleaving): Likewise.
4065 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4068 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4069 for all Neon struct constants.
4071 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4073 * target.def (legitimate_constant_p): New hook.
4074 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4075 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4076 * doc/tm.texi: Regenerate.
4077 * hooks.h (hook_bool_mode_rtx_true): Declare.
4078 * hooks.c (hook_bool_mode_rtx_true): Define.
4079 * system.h (LEGITIMATE_CONSTANT_P): Poison.
4080 * calls.c (precompute_register_parameters): Replace uses of
4081 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4082 (emit_library_call_value_1): Likewise.
4083 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4084 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4085 * ira-costs.c (scan_one_insn): Likewise.
4086 * recog.c (general_operand, immediate_operand): Likewise.
4087 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4088 * reload1.c (init_eliminable_invariants): Likewise.
4090 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4092 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4093 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4095 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4096 * config/alpha/predicates.md (input_operand): Update call to
4097 alpha_legitimate_constant_p.
4099 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4100 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4101 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4102 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4103 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4104 (arm_legitimate_constant_p): New functions.
4105 (arm_cannot_force_const_mem): Make static.
4107 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4109 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4110 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4111 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4112 instead of bfin_legitimate_constant_p.
4113 (bfin_legitimate_constant_p): Make static. Add a mode argument.
4114 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4116 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4118 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4120 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4121 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4122 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4123 (frv_legitimate_constant_p): Make static. Add a mode argument.
4125 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4126 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4127 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4129 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4130 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4131 * config/i386/i386.c (legitimate_constant_p): Rename to...
4132 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
4134 (ix86_cannot_force_const_mem): Update accordingly.
4135 (ix86_legitimate_address_p): Likewise.
4136 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4137 * config/i386/i386.md: Update commentary.
4139 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4140 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4141 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4142 (ia64_legitimate_constant_p): Make static. Add a mode argument.
4144 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4146 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4147 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4148 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4149 (lm32_legitimate_constant_p): Make static. Add a mode argument.
4151 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4152 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4153 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4155 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4156 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4157 (m32r_legitimate_constant_p): New function.
4159 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4160 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4161 LEGITIMATE_CONSTANT_P.
4162 (LEGITIMATE_CONSTANT_P): Delete.
4163 * config/m68k/m68k.c (m68k_expand_prologue): Call
4164 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4165 (m68k_legitimate_constant_p): New function.
4166 * config/m68k/m68k.md: Update comments.
4168 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4169 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4170 (mcore_legitimate_constant_p): New function.
4172 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4173 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4174 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4175 Add a mode argument.
4176 (mep_legitimate_address): Update accordingly.
4177 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4179 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4181 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4182 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4183 static. Check OP's mode for VOIDmode.
4184 (microblaze_legitimate_constant_p): New function.
4185 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4187 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4188 * config/mips/mips.c (mips_legitimate_constant_p): New function.
4189 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4190 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4191 * config/mips/predicates.md: Update comments.
4193 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4194 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4195 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4196 (mmix_legitimate_constant_p): Make static, return a bool, and take
4198 (mmix_print_operand_address): Update accordingly.
4200 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4202 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4203 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4204 static. Add a mode argument.
4205 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4207 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4209 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4210 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4211 (pa_legitimate_constant_p): New function.
4213 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4215 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4216 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4217 (pdp11_legitimate_constant_p): New function.
4219 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4220 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4221 (rs6000_legitimate_constant_p): New function.
4223 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4224 (rx_legitimate_constant_p): ...this.
4225 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4226 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4227 (rx_legitimate_constant_p): ...this.
4228 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4229 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4231 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4232 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4233 * config/s390/s390.c (legitimate_constant_p): Rename to...
4234 (s390_legitimate_constant_p): ...this. Make static, return a bool,
4235 and add a mode argument.
4236 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4238 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4240 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4241 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4242 (sh_legitimate_constant_p): New function.
4244 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4245 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4246 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4247 (legitimate_constant_p): Rename to...
4248 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
4250 (constant_address_p): Update accordingly.
4252 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4253 argument and return a bool.
4254 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4255 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4256 (spu_legitimate_constant_p): Add a mode argument and return a bool.
4257 (spu_rtx_costs): Update accordingly.
4258 * config/spu/predicates.md (vec_imm_operand): Likewise.
4260 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4262 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4263 * config/v850/v850.c (v850_legitimate_constant_p): New function.
4264 (TARGET_LEGITIMATE_CONSTANT_P): Define.
4266 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4267 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4268 * config/vax/vax.c (legitimate_constant_p): Likewise.
4270 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4271 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4272 (xtensa_legitimate_constant_p): New function.
4274 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
4276 * target.def (cannot_force_const_mem): Add a mode argument.
4277 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4278 * doc/tm.texi: Regenerate.
4279 * hooks.h (hook_bool_mode_rtx_false): Declare.
4280 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4281 (hook_bool_mode_const_rtx_true): Likewise.
4282 (hook_bool_mode_rtx_false): New function.
4283 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4284 to be non-VOID. Update call to cannot_force_const_mem.
4285 (find_reloads): Update accordingly.
4286 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4287 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4289 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4290 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4291 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4292 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4293 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4294 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4295 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4296 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4297 (m68k_cannot_force_const_mem): ...this new function.
4298 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4300 (mips_const_insns, mips_legitimize_const_move): Update calls.
4301 (mips_secondary_reload_class): Likewise.
4302 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4303 (pa_cannot_force_const_mem): ...this new function.
4304 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4305 (rs6000_cannot_force_const_mem): ...this new function.
4306 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4308 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4309 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4311 (xtensa_cannot_force_const_mem): ...this new function.
4313 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4315 * config/mips/mips.c (mips16_build_function_stub): Call
4316 build_function_type_list instead of build_function_type.
4317 (mips16_build_call_stub): Likewise.
4319 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4321 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4322 instead of build_function_type.
4324 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
4326 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4327 instead of build_function_type.
4329 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
4332 * config/i386/i386.md (insv): Change operand 0 constraint to
4333 "register_operand". Change operand 1 and 2 constraint to
4334 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
4335 * config/i386/sse.md (sse4_1_pinsrb): Export.
4336 (sse2_pinsrw): Ditto.
4337 (sse4_1_pinsrd): Ditto.
4338 (sse4_1_pinsrq): Ditto.
4339 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4340 * config/i386/i386.c (ix86_expand_pinsr): New.
4342 2011-04-20 Easwaran Raman <eraman@google.com>
4344 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4345 containing union type only with -fstrict-aliasing.
4347 2011-04-20 Jim Meyering <meyering@redhat.com>
4349 Remove useless if-before-free tests.
4350 * calls.c (expand_call, save_area): Likewise.
4351 * cfgcleanup.c (try_forward_edges): Likewise.
4352 * collect2.c (collect_execute): Likewise.
4353 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4354 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4355 * coverage.c (coverage_checksum_string): Likewise.
4356 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4357 * cselib.c (cselib_init): Likewise.
4358 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4359 (df_set_clean_cfg): Likewise.
4360 * function.c (free_after_compilation): Likewise.
4361 * gcc.c (do_spec_1, main): Likewise.
4362 * gcov.c (create_file_names): Likewise.
4363 * gensupport.c (identify_predicable_attribute): Likewise.
4364 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4365 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4366 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4367 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4368 * ipa-pure-const.c (local_pure_const): Likewise.
4369 * ipa-reference.c (propagate): Likewise.
4370 * ira-costs.c (free_ira_costs): Likewise.
4371 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4372 * matrix-reorg.c (mat_free): Likewise.
4373 * prefix.c (get_key_value): Likewise.
4374 * profile.c (compute_value_histograms): Likewise.
4375 * reload1.c (free_reg_equiv): Likewise.
4376 * sched-deps.c (free_deps): Likewise.
4377 * sel-sched-ir.c (fence_clear): Likewise.
4378 * sese.c (set_rename, if_region_set_false_region): Likewise.
4379 * tree-data-ref.c (free_rdg): Likewise.
4380 * tree-eh.c (lower_try_finally): Likewise.
4381 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4382 * tree-ssa-live.c (delete_var_map): Likewise.
4383 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4384 * tree-ssa-pre.c (phi_trans_add): Likewise.
4386 2011-04-20 Jakub Jelinek <jakub@redhat.com>
4388 PR tree-optimization/48611
4389 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4390 beyond ERT_MUST_NOT_THROW region.
4392 2011-04-20 Catherine Moore <clm@codesourcery.com>
4394 * config/mips/mips.opt (mfix-24k): New.
4395 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4396 * config/mips/mips.md (length): Increase by 4 for stores if
4398 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4399 all noreorder if fixing 24K errata.
4400 * doc/invoke.texi: Document mfix-24k.
4402 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
4404 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4405 quad-word modes, reduce to 9-bit index range when above 1016 limit.
4407 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4409 * config/arm/arm.c (arm_gen_constant): Move movw support ....
4410 (const_ok_for_op): ... to here.
4412 2011-04-20 Kai Tietz <ktietz@redhat.com>
4414 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4415 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4417 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
4419 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4421 2011-04-20 Richard Guenther <rguenther@suse.de>
4423 PR tree-optimization/47892
4424 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4427 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
4429 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4431 2011-04-20 Tristan Gingold <gingold@adacore.com>
4433 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4435 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
4439 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4440 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4441 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4442 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4443 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4445 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4448 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4449 (avr_asm_named_section, avr_asm_output_aligned_common,
4450 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4451 New functions to update...
4452 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4453 (avr_asm_init_sections): Overwrite section callbacks for
4454 data_section, bss_section.
4455 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4457 (avr_file_end): ...here.
4459 2011-04-20 Richard Guenther <rguenther@suse.de>
4462 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4463 objects and types here. Adjust for their offset before comparing.
4465 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4467 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4470 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4472 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4473 (GIMPLE_H): Include $(INTERNAL_FN_H).
4474 (OBJS-common): Add internal-fn.o.
4475 (internal-fn.o): New rule.
4476 * internal-fn.def: New file.
4477 * internal-fn.h: Likewise.
4478 * internal-fn.c: Likewise.
4479 * gimple.h: Include internal-fn.h.
4480 (GF_CALL_INTERNAL): New gf_mask.
4481 (gimple_statement_call): Put fntype into a union with a new
4483 (gimple_build_call_internal): Declare.
4484 (gimple_build_call_internal_vec): Likewise.
4485 (gimple_call_same_target_p): Likewise.
4486 (gimple_call_internal_p): New function.
4487 (gimple_call_internal_fn): Likewise.
4488 (gimple_call_fntype): Return null for internal calls.
4489 (gimple_call_set_fntype): Assert that the function is not internal.
4490 (gimple_call_set_fn): Likewise.
4491 (gimple_call_set_fndecl): Likewise.
4492 (gimple_call_set_internal_fn): New function.
4493 (gimple_call_addr_fndecl): Handle null functions.
4494 (gimple_call_return_type): Likewise null types.
4495 * gimple.c (gimple_build_call_internal_1): New function.
4496 (gimple_build_call_internal): Likewise.
4497 (gimple_build_call_internal_vec): Likewise.
4498 (gimple_call_same_target_p): Likewise.
4499 (gimple_call_flags): Handle calls to internal functions.
4500 (gimple_call_fnspec): New function.
4501 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4502 (gimple_has_side_effects): Handle null functions.
4503 (gimple_rhs_has_side_effects): Likewise.
4504 (gimple_call_copy_skip_args): Handle calls to internal functions.
4505 * cfgexpand.c (expand_call_stmt): Likewise.
4506 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4507 * gimple-fold.c (gimple_fold_call): Handle null functions.
4508 (gimple_fold_stmt_to_constant_1): Don't fold
4509 calls to internal functions.
4510 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4512 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4513 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4514 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4515 (do_warn_unused_result): Likewise.
4516 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4517 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4518 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4519 the target of a call.
4520 (initialize_hash_element): Update accordingly.
4521 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4522 (iterative_hash_hashable_expr): Handle calls to internal functions.
4523 (print_expr_hash_elt): Likewise.
4524 * tree-ssa-pre.c (can_value_number_call): Likewise.
4525 (eliminate): Handle null functions.
4526 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4527 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4528 (find_func_aliases): Likewise.
4529 * value-prof.c (gimple_ic_transform): Likewise.
4530 (gimple_indirect_call_to_profile): Likewise.
4531 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4532 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4534 2011-04-19 Jan Hubicka <jh@suse.cz>
4536 * ipa-inline-transform.c (save_inline_function_body): Add comments.
4537 * ipa-inline.c (inline_small_functions): Compute summaries first,
4538 populate heap later.
4540 2011-04-19 Jan Hubicka <jh@suse.cz>
4542 * cgraph.h (save_inline_function_body): Remove.
4543 * ipa-inline-transform.c: New file, broke out of...
4544 * ipa-inline.c: ... this one; Update toplevel comment.
4545 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4547 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4548 (cgraph_mark_inline_edge): Rename to inline_call; move to
4549 ipa-inline-transform.c.
4550 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4551 move to ipa-inline-transform.c
4552 (recursive_inlining, inline_small_functions, flatten_function,
4553 ipa_inline, inline_always_inline_functions,
4554 early_inline_small_functions): Update.
4555 (inline_transform): Move to ipa-inline-transform.c.
4556 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4558 * Makefile.in (ipa-inline-transform.o): New file.
4559 * cgraphunit.c (save_inline_function_body): Move to
4560 ipa-inline-transform.c
4562 2011-04-19 DJ Delorie <dj@redhat.com>
4564 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4565 registers if we already know there aren't any.
4566 (m32c_emit_epilogue): Don't emit a barrier here.
4567 (m32c_emit_eh_epilogue): Likewise.
4568 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4569 operands at expand time.
4570 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4572 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4573 duplicates. Provide aliases instead.
4574 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4575 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4578 2011-04-19 Anatoly Sokolov <aesok@post.ru>
4580 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4581 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4582 (general_or_i64_p, sparc_register_move_cost): New function.
4584 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4586 * doc/install.texi (Configuration, --enable-threads): Remove mach.
4587 Add lynx, mipssde. Sort table.
4589 2011-04-19 Xinliang David Li <davidxl@google.com>
4591 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4594 2011-04-19 Jakub Jelinek <jakub@redhat.com>
4597 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4598 is a SUBREG with non-MODE_INT mode inside of it.
4600 2011-04-19 Martin Jambor <mjambor@suse.cz>
4602 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4603 also according to actual contants.
4604 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4605 (gimple_fold_call): Use it.
4606 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4608 2011-04-19 Martin Jambor <mjambor@suse.cz>
4610 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4611 non-pointer assignments.
4613 2011-04-19 Martin Jambor <mjambor@suse.cz>
4615 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4616 account anc_offset and otr_type from the indirect edge info.
4617 * ipa-prop.c (get_ancestor_addr_info): New function.
4618 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4619 get_ancestor_addr_info, call it.
4620 (ipa_note_param_call): Do not initialize information about polymorphic
4621 calls, return the indirect call graph edge. Remove the last
4622 parameter, adjust all callers.
4623 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4624 parameters. Initialize polymorphic information in the indirect edge.
4626 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4629 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4630 the types if they have different enumeration identifiers.
4632 2011-04-19 Jan Hubicka <jh@suse.cz>
4634 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4635 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4636 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4637 (optimize_function_for_size_p) ... here.
4639 2011-04-19 Richard Guenther <rguenther@suse.de>
4642 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4645 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4647 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4648 if DECL_NO_INLINE_WARNING_P is set on the function.
4650 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4653 * reload1.c (inc_for_reload): Return void. All callers changed.
4654 (emit_input_reload_insns): Don't try to delete previous output
4655 reloads to a register, or record spill_reg_store for autoincs.
4657 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4659 * gengtype.h: Updated copyright year.
4660 (struct input_file_st): Add inpisplugin field.
4661 (type_fileloc): New function.
4663 (write_typed_struct_alloc_def): Add gcc_assert.
4664 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4665 (write_typed_alloc_defns): Don't output for plugin files.
4666 (input_file_by_name): Clear inpisplugin field.
4667 (main): Set inpisplugin field for plugin files.
4669 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4671 * gengtype-state.c (string_eq): New.
4672 (read_state): Use string_eq instead of strcmp when creating the
4675 2011-04-19 Wei Guozhi <carrot@google.com>
4678 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4679 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4681 * config/arm/constraints.md (Uu): New constraint.
4682 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4684 2011-04-19 Tristan Gingold <gingold@adacore.com>
4686 * config.gcc (-*-*-*vms): Added.
4687 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4689 * config/vms/vms-ld.c: New file.
4690 * config/vms/vms-ar.c: New file.
4691 * config/vms/t-vmsnative: New file.
4693 2011-04-18 Xinliang David Li <davidxl@google.com>
4695 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4697 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4700 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4701 if TREE_TYPE (v) is non-NULL.
4703 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4704 gimple_get_virt_mehtod_for_binfo.
4705 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4706 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4708 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4710 2011-04-18 Michael Matz <matz@suse.de>
4711 Steve Ellcey <sje@cup.hp.com>
4713 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4714 use its mode as source mode if it isn't VOIDmode.
4716 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4718 * doc/passes.texi: Fill crossref nodes.
4720 2011-04-18 Jim Meyering <meyering@redhat.com>
4722 Fix doubled-word typos in comments and strings
4723 * config/alpha/vms-unwind.h: s/for for/for/
4724 * config/arm/unwind-arm.h: Likewise.
4725 * config/microblaze/microblaze.c: Likewise.
4726 * config/sh/constraints.md: s/in in/in/
4727 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4729 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
4731 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4732 (AVX_FLOAT_MODE_P): Ditto.
4733 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4734 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4735 (AVX_VEC_FLOAT_MODE_P): Ditto.
4736 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4737 (UNSPEC_MASKSTORE): Ditto.
4738 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4739 Merge from <sse>_movmsk<ssemodesuffix> and
4740 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4741 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4743 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4744 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4745 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4747 2011-04-18 Jan Hubicka <jh@suse.cz>
4749 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4751 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4752 (want_inline_function_called_once_p): Break out the logic from
4754 (edge_badness): Ensure that profile is not misupdated.
4755 (lookup_recursive_calls): Prioritize by call frequencies.
4756 (inline_small_functions): Move program size estimates here;
4757 actually process whole queue even when unit growth has been
4758 met. (to properly compute inline_failed reasons and for the
4759 case unit size decrease.) Revisit comments on recursive inlining.
4760 (ipa_inline): Remove unit summary code; first inline hot calls
4761 of functions called once, cold calls next.
4762 (order, nnodes): Remove unused variables.
4763 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4764 (GTFILES): Remove ipa-inline.c
4765 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4767 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4769 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4771 2011-04-18 Jie Zhang <jie@codesourcery.com>
4772 Richard Earnshaw <rearnsha@arm.com>
4774 * arm.c (neon_builtin_type_bits): Remove.
4775 (typedef enum neon_builtin_mode): New.
4776 (T_MAX): Don't define.
4777 (typedef enum neon_builtin_datum): Remove bits, codes[],
4778 num_vars and base_fcode. Add mode, code and fcode.
4779 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4780 VAR10): Change accordingly.
4781 (neon_builtin_data[]): Change accordingly
4782 (arm_init_neon_builtins): Change accordingly.
4783 (neon_builtin_compare): Remove.
4784 (locate_neon_builtin_icode): Remove.
4785 (arm_expand_neon_builtin): Change accordingly.
4787 * arm.h (enum arm_builtins): Move to ...
4788 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4790 * arm.c (arm_builtin_decl): Declare.
4791 (TARGET_BUILTIN_DECL): Define.
4792 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4793 (arm_builtin_decls[]): New.
4794 (arm_init_neon_builtins): Store builtin declarations in
4795 arm_builtin_decls[].
4796 (arm_init_tls_builtins): Likewise.
4797 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4798 (arm_builtin_decl): New.
4800 2011-04-18 Richard Guenther <rguenther@suse.de>
4802 * tree.c (upper_bound_in_type): Build properly canonicalized
4804 (lower_bound_in_type): Likewise.
4806 2011-04-18 Richard Guenther <rguenther@suse.de>
4808 * gimple.h (gimple_call_addr_fndecl): New function.
4809 (gimple_call_fndecl): Use it.
4810 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4812 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4813 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4815 2011-04-18 Richard Guenther <rguenther@suse.de>
4818 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4820 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4823 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4824 DECL_IN_CONSTANT_POOL without RTL.
4826 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4827 Ira Rosen <ira.rosen@linaro.org>
4830 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4831 to match neon_vzip/vuzp/vtrn_internal.
4832 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4833 outputs explicitly dependent on both inputs.
4834 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4836 2011-04-18 Jakub Jelinek <jakub@redhat.com>
4838 PR tree-optimization/48616
4839 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4840 whether the shift is by scalar or vector based on whether all SLP
4841 scalar stmts have the same rhs.
4843 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4845 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4848 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4850 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4853 2011-04-17 Jan Hubicka <jh@suse.cz>
4855 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
4856 * cgrpahunit.c (cgraph_finalize_function): Do not set
4857 finalized_by_frontend.
4858 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4859 finalized_by_frontend.
4861 2011-04-17 Jan Hubicka <jh@suse.cz>
4863 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4864 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4865 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
4866 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4868 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4870 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4872 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4875 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4876 is non-null before accessing it.
4877 (input_cgraph): Remove trailing spaces.
4879 2011-04-17 Revital Eres <revital.eres@linaro.org>
4881 * params.def (sms-min-sc): New param flag.
4882 * modulo-sched.c (sms_schedule): Use it.
4883 * doc/invoke.texi (sms-min-sc): Document it.
4885 2011-04-17 Jan Hubicka <jh@suse.cz>
4887 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4888 present, also set gimple_call_set_cannot_inline.
4889 * ipa-inline.c: Update toplevel comment.
4891 (cgraph_clone_inlined_nodes): Fix linebreaks.
4892 (cgraph_check_inline_limits): Restructure to ...
4893 (caller_growth_limits): ... this one; be more tolerant
4894 on growth in nested inline chains; add explanatory comment;
4895 fix stack accounting thinko introduced by previous patch.
4896 (cgraph_default_inline_p): Remove.
4897 (report_inline_failed_reason): New function.
4898 (can_inline_edge_p): New function.
4899 (can_early_inline_edge_p): New function.
4900 (leaf_node_p): Move upwards in file.
4901 (want_early_inline_function_p): New function.
4902 (want_inline_small_function_p): New function.
4903 (want_inline_self_recursive_call_p): New function.
4904 (cgraph_edge_badness): Rename to ...
4905 (edge_badness) ... this one; fix linebreaks.
4906 (update_edge_key): Update call of edge_baddness; add
4907 detailed dump about queue updates.
4908 (update_caller_keys): Use can_inline_edge_p and
4909 want_inline_small_function_p.
4910 (cgraph_decide_recursive_inlining): Rename to...
4911 (recursive_inlining): Use can_inline_edge_p and
4912 want_inline_self_recursive_call_p; simplify and remove no longer
4914 (cgraph_set_inline_failed): Remove.
4915 (add_new_edges_to_heap): Use can_inline_edge_p and
4916 want_inline_small_function_p.
4917 (cgraph_decide_inlining_of_small_functions): Rename to ...
4918 (inline_small_functions): ... this one; cleanup; use
4919 can/want predicates; cleanup debug ouput; work edges till fibheap
4920 is exhausted and do not stop once unit growth is reached; remove
4921 later loop processing remaining edges.
4922 (cgraph_flatten): Rename to ...
4923 (flatten_function): ... this one; use can_inline_edge_p
4924 and can_early_inline_edge_p predicates.
4925 (cgraph_decide_inlining): Rename to ...
4926 (ipa_inline): ... this one; remove unreachable nodes before
4927 inlining functions called once; simplify the pass.
4928 (cgraph_perform_always_inlining): Rename to ...
4929 (inline_always_inline_functions): ... this one; use
4930 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4931 (cgraph_decide_inlining_incrementally): Rename to ...
4932 (early_inline_small_functions): ... this one; simplify
4933 using new predicates; cleanup; make dumps prettier.
4934 (cgraph_early_inlining): Rename to ...
4935 (early_inliner): newer inline regular functions into always-inlines;
4936 fix updating of call stmt summaries.
4937 (pass_early_inline): Update for new names.
4938 (inline_transform): Fix formating.
4939 (gate_cgraph_decide_inlining): Rename to ...
4940 (pass_ipa_inline): ... this one.
4941 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4942 * ipa-inline-analysis.c (dump_inline_summary): Update.
4943 (compute_inline_parameters): Do not compute disregard_inline_limits;
4944 look for mismatching arguments.
4945 (estimate_growth): Fix handlig of non-trivial self recursion.
4946 (inline_read_summary): Do not read info->disregard_inline_limits.
4947 (inline_write_summary): Do not write info->disregard_inline_limits.
4948 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4949 and move all checks into can_inline_edge_p predicate; re-enable code
4950 comparing optimization levels.
4951 (expand_call_inline): Do not test inline_forbidden_into_p.
4952 * Makefile.in (ipa-inline.o): Update arguments.
4954 2011-04-17 Revital Eres <revital.eres@linaro.org>
4956 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4958 2011-04-17 Revital Eres <revital.eres@linaro.org>
4960 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4962 2011-04-17 Michael Matz <matz@suse.de>
4964 PR tree-optimization/48622
4966 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4967 in same order as they're written.
4969 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4971 * config/pa/predicates.md: Reorganize and simplify predicates.
4972 Eliminate duplicate code checks.
4973 (arith_operand): Rename to arith14_operand
4974 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4975 * config/pa/pa.md: Use renamed operands.
4976 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4977 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4978 arith11_operand, adddi3_operand, indexed_memory_operand,
4979 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4980 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4981 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4982 move_dest_operand, move_src_operand, prefetch_cc_operand,
4983 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4984 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4985 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4986 div_operand, int5_operand, movb_comparison_operator,
4987 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4988 arith_double_operand, ireg_operand, lhs_lshift_operand,
4989 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4990 integer_store_memory_operand): Likewise.
4991 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4992 (integer_store_memory_operand, read_only_operand,
4993 function_label_operand, borx_reg_operand,
4994 non_hard_reg_operand): Likewise.
4995 (eq_neq_comparison_operator): Delete unused operator.
4996 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4997 function_label_operand.
4998 (emit_move_sequence): Likewise.
5000 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5002 * config/i386/sse.md (sseunpackmode): New mode attribute.
5003 (ssepackmode): Ditto.
5004 (vec_pack_trunc_<mode>): Macroize expander from
5005 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5006 (vec_unpacks_lo_<mode>): Macroize expander from
5007 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5008 (vec_unpacks_hi_<mode>): Macroize expander from
5009 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5010 (vec_unpacku_lo_<mode>): Macroize expander from
5011 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5012 (vec_unpacku_hi_<mode>): Macroize expander from
5013 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5014 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5015 ix86_expand_sse4_unpack.
5016 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5018 2011-04-16 Jan Hubicka <jh@suse.cz>
5020 * cgraphbuild.c: Include ipa-inline.h.
5021 (reset_inline_failed): Use initialize_inline_failed.
5022 * cgraph.c: Include ipa-inline.h.
5023 (cgraph_create_node_1): Do not initialize estimated_growth.
5024 (initialize_inline_failed): More to ipa-inline-analysis.c
5025 (dump_cgraph_node): Do not dump inline flags.
5026 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5027 and disregard_inline_limits flags.
5028 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5029 time, size, estimated_growth.
5030 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5032 * cgraphunit.c (cgraph_decide_is_function_needed): Use
5033 DECL_DISREGARD_INLINE_LIMITS.
5034 (cgraph_analyze_function): Do not initialize
5035 node->local.disregard_inline_limits.
5036 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5037 inlinable, versionable and disregard_inline_limits.
5038 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5039 cgraph_check_inline_limits, cgraph_default_inline_p,
5040 cgraph_edge_badness, update_caller_keys, update_callee_keys,
5041 add_new_edges_to_heap): Update.
5042 (cgraph_decide_inlining_of_small_function): Update; set
5043 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5044 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5045 cgraph_decide_inlining_incrementally): Update.
5046 * ipa-inline.h (inline_summary): Add inlinable, versionable,
5047 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5048 time, size and estimated_growth parameters.
5049 (estimate_edge_growth): Update.
5050 (initialize_inline_failed): Declare.
5051 * ipa-split.c: Include ipa-inline.h
5052 (execute_split_functions): Update.
5053 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5054 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5055 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5056 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5057 estimated_growth to INT_MIN.
5058 (inline_node_duplication_hook): Likewise.
5059 (dump_inline_summary): Dump new fields.
5060 (compute_inline_parameters): Update.
5061 (estimate_edge_time, estimate_time_after_inlining,
5062 estimate_size_after_inlining, estimate_growth, inline_read_summary,
5063 inline_write_summary):
5064 (initialize_inline_failed): Move here from cgraph.c.
5065 * tree-sra.c: Include ipa-inline.h.
5066 (ipa_sra_preliminary_function_checks): Update.
5067 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5070 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
5072 * config/i386/sse.md (V16): New mode iterator.
5074 (AVXMODEQI, AVXMODEDI): Remove.
5075 (sse2, sse3): New mode attribute.
5076 (mov<mode>): Use V16 mode iterator.
5077 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5078 (push<mode>1): Use V16 mode iterator.
5079 (movmisalign<mode>): Ditto.
5080 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5081 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5082 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5083 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5084 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5085 avx_movdqu<avxmodesuffix>.
5086 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5087 *avx_movdqu<avxmodesuffix>.
5088 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5089 avx_lddqu<avxmodesuffix>.
5090 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5091 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5092 avx_movnt<AVXMODEDI:mode>.
5093 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5094 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5096 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
5099 * haifa-sched.c (prune_ready_list, schedule_block): Use
5100 sched_pressure_p rather than flag_sched_pressure.
5102 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
5104 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5105 cgraph_get_node instead of cgraph_get_create_node.
5107 2011-04-15 Jakub Jelinek <jakub@redhat.com>
5109 * cfgexpand.c (expand_debug_expr): Use
5110 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5112 2011-04-15 Michael Matz <matz@suse.de>
5114 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5115 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5116 * function.c (gimplify_parameters): Ditto.
5117 * gimplify.c (gimplify_vla_decl): Ditto.
5119 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5120 (gimple_call_set_alloca_for_var): New inline function.
5121 (gimple_call_alloca_for_var_p): Ditto.
5122 * gimple.c (gimple_build_call_from_tree): Remember
5123 CALL_ALLOCA_FOR_VAR_P state.
5124 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5126 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5127 calls if they were for VLA objects.
5129 2011-04-15 Martin Jambor <mjambor@suse.cz>
5131 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5134 2011-04-15 Martin Jambor <mjambor@suse.cz>
5137 * tree-emutls.c (lower_emutls_function_body): Call
5138 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
5141 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5143 * c-decl.c (detect_field_duplicates): Call
5144 objc_detect_field_duplicates instead of objc_get_interface_ivars.
5146 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
5148 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5149 * gimple.c (gimple_asm_clobbers_memory_p): Define.
5150 * ipa-pure-const.c (check_stmt): Call it.
5151 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5153 2011-04-15 Richard Guenther <rguenther@suse.de>
5155 PR tree-optimization/48290
5156 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5157 Properly decide inhibiting propagation based on the valueized
5158 operand. Do loop-closed SSA form preserving here ...
5159 (init_copy_prop): ... not here.
5161 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
5164 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5165 (*ieee_smax<mode>3): Likewise.
5167 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5169 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5170 Replace match_operand with match_dup for the third operand in
5173 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5175 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5176 to track processing of conditionals. Update all callers.
5177 (try_combine, simplify_if_then_else): Update.
5179 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5181 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5184 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
5186 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5187 instead of match_operand for operand 3.
5189 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
5191 * recog.h (insn_operand_data): Add an "allows_mem" field.
5192 * genoutput.c (output_operand_data): Initialize it.
5193 * optabs.c (maybe_legitimize_operand_same_code): New function.
5194 (maybe_legitimize_operand): Use it when matching the original
5197 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5199 * gimplify.c: Fix issues in comments throughout.
5200 (voidify_wrapper_expr): Fix long line.
5201 (build_stack_save_restore): Likewise.
5202 (gimplify_loop_expr): Likewise.
5203 (gimplify_compound_lval): Likewise.
5204 (gimplify_init_ctor_eval): Likewise.
5205 (gimplify_modify_expr_rhs): Likewise.
5206 (omp_notice_threadprivate_variable): Likewise.
5208 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
5210 * cfgexpand.c (expand_call_stmt): Convert the function type to the
5211 original one if this is not a builtin function.
5213 2011-04-14 Jakub Jelinek <jakub@redhat.com>
5216 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5217 offset it as needed based on top 2 bits in operands[3], change
5218 MEM mode to SFmode and mask those 2 bits away from operands[3].
5220 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5222 * c-parser.c (c_parser_objc_protocol_definition): Updated for
5223 change from objc_declare_protocols() to objc_declare_protocol().
5225 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
5227 * config/i386/sse.md (sse4_1): New mode attribute.
5228 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5229 avx_blend<ssemodesuffix><avxmodesuffix> and
5230 sse4_1_blend<ssemodesuffix> using VF mode iterator.
5231 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5232 avx_blendv<ssemodesuffix><avxmodesuffix> and
5233 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5234 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5235 avx_dp<ssemodesuffix><avxmodesuffix> and
5236 sse4_1_dp<ssemodesuffix> using VF mode iterator.
5237 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5238 (sse4_1_packusdw): Merge with *avx_packusdw.
5239 (sse4_1_pblendvb): Merge with *avx_pblendvb.
5240 (sse4_1_pblendw): Merge with *avx_pblendw.
5241 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5242 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5243 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5245 (sse4_1_round<ssescalarmodesuffix>): Merge with
5246 *avx_round<ssescalarmodesuffix>.
5247 (aesenc): Merge with *avx_aesenc.
5248 (aesenclast): Merge with *avx_aesenclast.
5249 (aesdec): Merge with *avx_aesdec.
5250 (aesdeclast): Merge with *avx_aesdeclast.
5251 (pclmulqdq): Merge with *pclmulqdq.
5252 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5254 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5256 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
5259 * cfgexpand.c (get_decl_align_unit): Renamed to ...
5260 (align_local_variable): This. Update DECL_ALIGN.
5261 (add_stack_var): Updated.
5262 (expand_one_stack_var): Likewise.
5264 2011-04-14 Richard Guenther <rguenther@suse.de>
5266 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5268 (dse_initialize_block_local_data, dse_leave_block,
5269 record_voperand_set, get_stmt_uid): Likewise.
5270 (dse_possible_dead_store_p): Allow any kind of killing stmt.
5271 (dse_optimize_stmt): Remove voperand set handling code.
5272 Simplify and improve to handle any kind of killing stmt.
5273 (dse_record_phi): Remove.
5274 (dse_enter_block): Simplify.
5275 (tree_ssa_dse): Likewise.
5276 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5278 2011-04-14 Jan Hubicka <jh@suse.cz>
5280 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5281 * cgraph.h (struct inline_summary): Move to ipa-inline.h
5282 (cgraph_local_info): Remove inline_summary.
5283 * ipa-cp.c: Include ipa-inline.h.
5284 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5285 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5287 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5288 (input_overwrite_node): Do not set inline summary.
5289 (input_node): Do not stream inline summary.
5290 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5291 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5292 growth; we do not have inline parameters computed for that anyway.
5293 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5294 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5295 (inline_summary_t): New type and VECtor.
5296 (debug_inline_summary, dump_inline_summaries): Declare.
5297 (inline_summary): Use VOCtor.
5298 (estimate_edge_growth): Kill hack computing call stmt size directly.
5299 * lto-section-in.c (lto_section_name): Add inline section.
5300 * ipa-inline-analysis.c: Include lto-streamer.h
5301 (node_removal_hook_holder, node_duplication_hook_holder): New holders
5302 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5303 (inline_summary_vec): Define.
5304 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5305 dump_inline_summaries): New functions.
5306 (estimate_function_body_sizes): Properly compute size/time of outgoing
5308 (compute_inline_parameters): Alloc inline_summary; do not compute
5309 size/time of incomming calls.
5310 (estimate_edge_time): Avoid missing time summary hack.
5311 (inline_read_summary): Read inline summary info.
5312 (inline_write_summary): Write inline summary info.
5313 (inline_free_summary): Free all hooks and inline summary vector.
5314 * lto-streamer.h: Add LTO_section_inline_summary section.
5315 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5316 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5318 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5320 * tree-vectorizer.h (vect_strided_store_supported): Add a
5321 HOST_WIDE_INT argument.
5322 (vect_strided_load_supported): Likewise.
5323 (vect_permute_store_chain): Return void.
5324 (vect_transform_strided_load): Likewise.
5325 (vect_permute_load_chain): Delete.
5326 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5327 count argument. Check that the count is a power of two.
5328 (vect_strided_load_supported): Likewise.
5329 (vect_permute_store_chain): Return void. Update after above changes.
5330 Assert that the access is supported.
5331 (vect_permute_load_chain): Likewise.
5332 (vect_transform_strided_load): Return void.
5333 * tree-vect-stmts.c (vectorizable_store): Update calls after
5334 above interface changes.
5335 (vectorizable_load): Likewise.
5336 (vect_analyze_stmt): Don't check for strided powers of two here.
5338 2011-04-14 Richard Guenther <rguenther@suse.de>
5340 PR tree-optimization/48590
5341 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5342 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5343 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5344 BUILT_IN_STACK_SAVE.
5345 * tree-ssa-dce.c (propagate_necessity): Handle
5346 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5348 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5350 * c-parser.c (c_parser_objc_class_declaration): Updated call to
5353 2011-04-14 Richard Guenther <rguenther@suse.de>
5355 * tree.h (get_object_alignment_1): Declare.
5356 * builtins.c (get_object_alignment_1): Split out worker from ...
5357 (get_object_alignment): ... here.
5358 * fold-const.c (get_pointer_modulus_and_residue): Use
5359 get_object_alignment_1.
5361 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5363 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5365 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5366 parameter. Generalise code to handle arrays as well as vectors.
5367 (vect_setup_realignment): Update accordingly.
5368 * tree-vect-stmts.c (vectorizable_store): Likewise.
5369 (vectorizable_load): Likewise.
5371 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5373 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5374 within the per-copy loop.
5376 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5378 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5381 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
5383 * doc/options.texi (Negative): Explicitly mention that the
5384 Negative chain must be circular.
5386 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
5388 * function.h (block_chainon): Declare.
5389 * function.c (block_chainon): Define.
5391 2011-04-14 Anatoly Sokolov <aesok@post.ru>
5392 Eric Weddington <eric.weddington@atmel.com>
5393 Georg-Johann Lay <avr@gjlay.de>
5395 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5397 (avr_init_builtins, avr_expand_builtin,
5398 avr_expand_delay_cycles, avr_expand_unop_builtin,
5399 avr_expand_binop_builtin ): New functions.
5400 (avr_builtin_id): New enum
5401 (struct avr_builtin_description): New struct
5402 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5403 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5405 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5406 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5407 UNSPECV_DELAY_CYCLES): new enumeration values
5408 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5409 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5410 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5411 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5412 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5413 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5414 "fmulsu"): New insns
5416 * config/avr/avr-c.c: fix line endings
5417 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5418 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5419 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5420 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5421 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5423 * doc/extend.texi (AVR Built-in Functions): New node
5424 (Target Builtins): Add documentation of AVR
5427 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
5430 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5431 alone. Error if non-const data has attribute progmem.
5433 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5435 * tree.h (struct tree_constructor): Include tree_typed instead of
5437 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5438 TS_TYPED instead of TS_COMMON.
5440 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5442 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5443 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5444 (sse2_psadbw): Merge with *avx_psadbw.
5445 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5446 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5447 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5448 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5449 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5450 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5451 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5452 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5453 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5454 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5455 (ssse3_palignrti): Merge with *avx_palignrti.
5457 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5459 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5460 * tree-ssanames.c (fini_ssanames): VEC_free it.
5461 (make_ssa_name_fn): Update for VECness of free_ssanames.
5462 (release_ssa_name, release_dead_ssa_names): Likewise.
5463 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5465 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5466 TS_TYPED instead of TS_COMMON.
5468 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5470 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5471 statistics_counter_event.
5472 * tree-ssa-copyrename.c (stats): Define.
5473 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5474 statistics_counter_event.
5475 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5476 (bswap_stats, widen_mul_stats): Define.
5477 (insert_reciprocals): Increment rdivs_inserted.
5478 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5479 rfuncs_inserted. Add calls to statistics_counter_event.
5480 (execute_cse_sincos_1): Increment inserted.
5481 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5482 statistics_counter_event.
5483 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5484 of bswap_stats. Add calls to statistics_counter_event.
5485 (convert_mult_to_widen): Increment widen_mults_inserted.
5486 (convert_plusminus_to_widen): Increment maccs_inserted.
5487 (convert_mult_to_fma): Increment fmas_inserted.
5488 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5489 calls to statistics_counter_event.
5491 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5493 PR rtl-optimization/48455
5494 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5495 `temp_costs->mem_cost'.
5497 2011-04-13 Jan Hubicka <jh@suse.cz>
5499 * ipa-inline.h: New file.
5500 * ipa-inline-analysis.c: New file. Broken out of ...
5501 * ipa-inline.c: ... this file; update toplevel comment;
5502 include ipa-inline.h
5503 (inline_summary): Move to ipa-inline.h
5504 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5505 ipa-inline-analysis.c.
5506 (cgraph_estimate_time_after_inlining): Rename to
5507 estiamte_time_after_inlining; move to ipa-inline-analysis.c
5508 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5509 to estimate_edge_growth.
5510 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5511 rename to estimate_size_after_inlining.
5512 (cgraph_mark_inline_edge): Update for new naming convention.
5513 (cgraph_check_inline_limits): Likewise.
5514 (cgraph_edge_badness): Likewise.
5515 (cgraph_decide_recursive_inlining): Likewise.
5516 (cgraph_decide_inlining_of_small_functions): Likewise.
5517 (cgraph_decide_inlining_incrementally): Likewise.
5518 (cgraph_estimate_growth): Rename to estimate_growth; move to
5519 ipa-inline-analysis.c.
5520 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5521 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5522 (compute_inline_parameters): Likewise.
5523 (compute_inline_parameters_for_current): Likewise.
5524 (pass_inline_parameters): Likewise.
5525 (inline_indirect_intraprocedural_analysis): Likewise.
5526 (analyze_function): Rename to inline_analyze_function; likewise.
5527 (add_new_function): Move to ipa-inline-analysis.c.
5528 (inline_generate_summary): Likewise.
5529 (inline_read_summary): Likewise.
5530 (inline_write_summary): Likewise.
5531 * Makefile.in (ipa-inline-analysis.c): New file.
5533 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5535 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5536 * configure: Regenerate.
5538 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5540 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5541 instead of tree_common.
5542 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5544 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5545 TS_TYPED rather than TS_COMMON.
5546 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5548 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
5551 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5552 r20 around calls of __tablejump_elpm__
5554 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5557 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5559 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5561 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5563 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5564 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5565 (cfi_vec): New typedef.
5566 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5567 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5568 (cie_cfi_vec): New static variable.
5569 (cie_cfi_head): Delete.
5570 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5571 declaration changed. Use vector rather than list operations.
5572 (new_cfi): Don't initialize the dw_cfi_next field.
5573 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5574 rather than list operations.
5575 (lookup_cfa): Use vector rather than list operations.
5576 (output_cfis): New argument upto. Accept a cfi_vec rather than
5577 a dw_cfi_ref list head as argument. All callers changed.
5578 Iterate over the vector using upto as a maximum index.
5579 (output_all_cfis): New static function.
5580 (output_fde): Use vector rather than list operations. Use the
5581 new upto argument for output_cfis rather than manipulating a
5583 (dwarf2out_begin_prologue): Change initializations to match
5585 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5586 from the vector length rather than searching for the end of a list.
5587 Use output_all_cfis.
5588 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5590 2011-04-13 Nick Clifton <nickc@redhat.com>
5592 * config/rx/rx.md (movmemsi): Do not use this pattern when
5593 volatile pointers are involved.
5595 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
5597 * config/i386/sse.md (pinsrbits): Remove.
5598 (sse2_packsswb): Merge with *avx_packsswb.
5599 (sse2_packssdw): Merge with *avx_packssdw.
5600 (sse2_packuswb): Merge with *avx_packuswb.
5601 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5602 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5603 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5604 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5605 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5606 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5607 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5608 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5609 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5610 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5611 (sse2_loadld): Merge with *avx_loadld.
5612 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5613 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5614 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5615 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5616 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5618 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5620 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5622 * print-tree.c (print_node): Likewise.
5623 * tree-inline.c (copy_tree_r): Likewise.
5624 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5625 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5626 instead of TS_COMMON.
5627 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5628 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5629 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5630 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5631 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5633 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5635 (TREE_CHAIN): Check for a TS_COMMON structure.
5636 (TREE_TYPE): Check for a TS_TYPED structure.
5638 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
5640 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5641 cgraph_get_create_node instead of cgraph_node.
5643 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5645 * c-parser.c (c_parser_initelt): Updated call to
5646 objc_build_message_expr.
5647 (c_parser_postfix_expression): Likewise.
5649 2011-04-12 Kai Tietz <ktietz@redhat.com>
5651 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5652 MASK_MS_BITFIELD_LAYOUT bit.
5654 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5656 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5657 assert it is always true.
5658 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5661 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5663 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5664 compiling Objective-C to be more efficient.
5666 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
5668 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5671 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5673 * recog.h, genoutput.c, optabs.c: Revert last patch.
5675 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5678 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5680 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5682 * recog.h (insn_operand_data): Add an "allows_mem" field.
5683 * genoutput.c (output_operand_data): Initialize it.
5684 * optabs.c (maybe_legitimize_operand_same_code): New function.
5685 (maybe_legitimize_operand): Use it when matching the original
5688 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5690 * genpreds.c (process_define_predicate): Move most processing
5691 to gensupport.c. Continue to validate the expression.
5692 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5693 (process_define_predicate): Move processing to gensupport.c.
5694 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5695 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5696 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5698 (valid_predicate_name_p): New function, split out from old
5699 genpreds.c:process_define_predicate.
5700 (process_define_predicate): New function, combining code from
5701 old genpreds.c and genrecog.c functions.
5702 (process_rtx): Call it for DEFINE_PREDICATE and
5703 DEFINE_SPECIAL_PREDICATE.
5705 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5707 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5708 size of a '%A' memory reference.
5709 (T_DREG, T_QREG): New neon_builtin_type_bits.
5710 (arm_init_neon_builtins): Assert that the load and store operands
5711 are neon_struct_operands.
5712 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5713 (NEON_ARG_MEMORY): New builtin_arg.
5714 (neon_dereference_pointer): New function.
5715 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5716 Handle NEON_ARG_MEMORY.
5717 (arm_expand_neon_builtin): Update after above interface changes.
5718 Use NEON_ARG_MEMORY for loads and stores.
5719 * config/arm/predicates.md (neon_struct_operand): New predicate.
5720 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5721 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5722 (V_four_elem): Tweak formatting.
5723 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5724 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5725 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5726 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5727 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5728 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5729 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5730 Use %A in the output template.
5731 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5732 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5733 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5734 the width of the memory access. Remove post-increment.
5735 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5737 2011-04-12 Nick Clifton <nickc@redhat.com>
5739 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5740 instruction for interrupt handlers if the target is the basic V850
5742 (expand_epilogue): Likewise.
5744 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5746 PR rtl-optimization/48549
5747 * combine.c (propagate_for_debug): Also stop after BB_END of
5748 this_basic_block. Process LAST and just stop processing after it.
5749 (combine_instructions): If last_combined_insn has been deleted,
5750 set last_combined_insn to its PREV_INSN.
5752 2011-04-12 Richard Guenther <rguenther@suse.de>
5754 PR tree-optimization/46076
5755 * gimple.h (struct gimple_statement_call): Add fntype field.
5756 (gimple_call_fntype): Adjust.
5757 (gimple_call_set_fntype): New function.
5758 * gimple.c (gimple_build_call_1): Set the call function type.
5759 * gimplify.c (gimplify_call_expr): Preserve the function
5760 type the frontend used for the call.
5761 (gimplify_modify_expr): Likewise.
5762 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5764 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5766 * tree-ssa.c (useless_type_conversion_p): Function pointer
5767 conversions are useless.
5769 2011-04-12 Martin Jambor <mjambor@suse.cz>
5771 * cgraph.h (cgraph_node): Remove function declaration.
5772 (cgraph_create_node): Declare.
5773 (cgraph_get_create_node): Likewise.
5774 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5775 Updated all callers.
5776 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5777 the decl does not already exist. Call cgraph_get_create_node instead
5779 (cgraph_get_create_node): New function.
5780 (cgraph_same_body_alias): Update comment.
5781 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5782 assert it does not return NULL.
5783 (cgraph_update_edges_for_call_stmt): Likewise.
5784 (cgraph_clone_edge): Likewise.
5785 (cgraph_create_virtual_clone): Likewise.
5786 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5787 instead of cgraph_node.
5788 (cgraph_add_new_function): Call cgraph_create_node or
5789 cgraph_get_create_node instead of cgraph_node.
5790 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5791 instead of cgraph_node.
5792 (record_eh_tables): Likewise.
5793 (mark_address): Likewise.
5794 (mark_load): Likewise.
5795 (build_cgraph_edges): Call cgraph_get_create_node instead
5797 (rebuild_cgraph_edges): Likewise.
5798 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5799 instead of cgraph_node.
5800 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5802 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5803 cgraph_create_node instead of cgraph_node.
5804 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5806 * lto-cgraph.c (input_node): Likewise.
5807 * lto-streamer-in.c (input_function): Likewise.
5808 * varasm.c (mark_decl_referenced): Likewise.
5809 (assemble_alias): Likewise.
5811 2011-04-12 Martin Jambor <mjambor@suse.cz>
5813 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5814 instead of cgraph_node and assert it does not return NULL.
5815 * lto-streamer-in.c (lto_read_body): Likewise.
5816 * omp-low.c (new_omp_context): Likewise.
5817 (create_task_copyfn): Likewise.
5818 * tree-emutls.c (lower_emutls_function_body): Likewise.
5819 * matrix-reorg.c (transform_allocation_sites): Likewise.
5821 2011-04-12 Jakub Jelinek <jakub@redhat.com>
5824 * c-typeck.c (build_asm_expr): Error out on attempts to use
5825 void type outputs or inputs for constraints that allow reg or
5828 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5829 Richard Earnshaw <rearnsha@arm.com>
5832 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5833 to use sign-magnitude offsets. Reject unsupported unaligned
5834 cases. Add detailed description in comments.
5835 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5836 condition from TARGET_32BIT to TARGET_ARM.
5838 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5840 * tree.h (struct typed_tree): New.
5841 (struct tree_common): Include it instead of tree_base.
5842 (TREE_TYPE): Update for new location of type field.
5843 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5844 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5845 (union tree_node): Add typed field.
5846 * treestruct.def (TS_TYPED): New.
5847 * lto-streamer.c (check_handled_ts_structures): Handle it.
5848 * tree.c (MARK_TS_TYPED): New macro.
5849 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5851 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5853 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5854 (force_nonfallthru): Do not alter the loop nest if no basic block
5857 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
5859 * config/i386/sse.md (VI): New mode iterator.
5861 (AVX256MODEI): Ditto.
5862 (AVXMODEF4P): Ditto.
5863 (avxvecpsmode): Ditto.
5864 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5865 (sse2_andnot<mode>3): New expander.
5866 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5867 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5868 (<any_logic:code><mode>3): Use VI mode iterator.
5869 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5870 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5871 (*andnottf3): Handle AVX three-operand constraints.
5872 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5874 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5875 Robert Millan <rmh@gnu.org>
5877 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5878 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5879 GNU_USER_DYNAMIC_LINKER64): Define.
5880 (REG_NAME): Don't undefine.
5881 (MD_UNWIND_SUPPORT): Undefine.
5882 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5883 (REG_NAME): Don't undefine.
5884 (MD_UNWIND_SUPPORT): Undefine.
5885 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
5887 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5889 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5890 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5892 2011-04-11 Xinliang David Li <davidxl@google.com>
5894 * value-profile.c (check_ic_target): New function.
5895 (gimple_ic_transform): Sanity check indirect call target.
5896 * gimple-low.c (gimple_check_call_args): Interface change.
5897 (gimple_check_call_matching_types): New function.
5898 * tree-inline.c (tree_can_inline_p): Call new function.
5900 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5902 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5903 tree-pretty-print.h & realmpfr.h.
5905 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5908 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5909 (setup_allocno_and_important_classes): Ditto.
5911 2011-04-11 Joseph Myers <joseph@codesourcery.com>
5913 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5914 GNU_USER_DYNAMIC_LINKER.
5915 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5916 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5917 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5918 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5919 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5920 GNU_USER_TARGET_OS_CPP_BUILTINS.
5921 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5922 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5923 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5924 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5925 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5926 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5927 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5928 GNU_USER_TARGET_OS_CPP_BUILTINS.
5929 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5930 GNU_USER_DYNAMIC_LINKER.
5931 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5932 GNU_USER_TARGET_OS_CPP_BUILTINS.
5933 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5934 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5935 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5936 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5937 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5938 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5939 GNU_USER_DYNAMIC_LINKER64): Remove.
5940 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5941 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5942 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5943 GNU_USER_DYNAMIC_LINKER.
5944 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5945 GNU_USER_TARGET_OS_CPP_BUILTINS.
5946 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5947 GNU_USER_TARGET_OS_CPP_BUILTINS.
5948 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5949 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5950 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5951 GNU_USER_TARGET_OS_CPP_BUILTINS.
5952 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5953 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5954 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5955 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5956 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5957 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5958 GNU_USER_DYNAMIC_LINKER.
5959 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5960 GNU_USER_TARGET_OS_CPP_BUILTINS.
5961 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5962 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5963 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5964 GNU_USER_DYNAMIC_LINKER.
5965 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5966 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5967 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5968 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5969 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5970 GNU_USER_DYNAMIC_LINKER.
5971 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5972 GNU_USER_DYNAMIC_LINKERN32.
5973 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5974 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5975 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5976 GNU_USER_DYNAMIC_LINKER32.
5977 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5978 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5979 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5980 GNU_USER_DYNAMIC_LINKER.
5981 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5982 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5983 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5984 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5985 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5986 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5987 GNU_USER_DYNAMIC_LINKER32.
5988 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5989 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5990 GNU_USER_DYNAMIC_LINKER.
5991 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5992 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5993 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5994 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5995 GNU_USER_DYNAMIC_LINKER64.
5996 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5997 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5998 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5999 GNU_USER_DYNAMIC_LINKER.
6000 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6001 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6002 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6003 GNU_USER_DYNAMIC_LINKER.
6004 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6005 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6006 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6007 GNU_USER_DYNAMIC_LINKER32.
6008 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6009 GNU_USER_DYNAMIC_LINKER64.
6010 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6011 GNU_USER_DYNAMIC_LINKER64.
6012 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6013 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6014 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6015 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6016 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6018 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6020 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
6021 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6022 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6023 GNU_USER_DYNAMIC_LINKER.
6024 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6025 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
6026 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6027 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6028 GNU_USER_DYNAMIC_LINKER64.
6029 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6030 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6031 GNU_USER_LINK_EMULATION.
6032 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6033 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6034 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6035 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6036 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6037 CPP_SPEC, CC1_SPEC): Remove.
6038 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6039 (GNU_USER_DYNAMIC_LINKER): Define.
6040 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6041 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6042 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6043 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6044 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6045 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6046 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6047 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6048 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6049 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6050 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6051 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6052 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6053 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6054 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6055 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6056 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6057 GNU_USER_DYNAMIC_LINKER.
6058 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6059 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6060 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6061 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6062 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6063 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
6064 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6065 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6066 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6067 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6069 2011-04-11 Kai Tietz <ktietz@redhat.com>
6073 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6074 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6076 (ix86_is_msabi_thiscall): Removed.
6077 (ix86_is_type_thiscall): Likewise.
6078 (ix86_get_callcvt): New function.
6079 (ix86_comp_type_attributes): Simplify check.
6080 (ix86_function_regparm): Use ix86_get_callcvt for calling
6081 convention attribute checks.
6082 (ix86_return_pops_args): Likewise.
6083 (ix86_static_chain): Likewise.
6084 (x86_this_parameter): Likewise.
6085 (x86_output_mi_thunk): Likewise.
6086 (ix86_function_type_abi): Optimize check for types without attributes.
6087 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6088 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6089 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6091 (IX86_BASE_CALLCVT): Helper macro.
6092 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6093 Use ix86_get_callcvt for calling convention attribute checks and avoid
6094 symbol-decoration for stdcall in TARGET_RTD case.
6095 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6097 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6100 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6102 * config/i386/sse.md (VI_128): New mode iterator.
6103 (VI12_128): Rename from SSEMODE12.
6104 (VI14_128): Rename from SSEMODE14.
6105 (VI124_128): New mode iterator.
6106 (VI24_128): Rename from SSEMODE248.
6107 (VI248_128): Rename from SSEMODE248.
6108 (SSEMODE124C8): Remove.
6109 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6110 (*sse2_<plusminus_insn><mode>3): Merge with
6111 *avx_<plusminus_insn><mode>3.
6112 (*mulv8hi3): Merge with *avx_mulv8hi3.
6113 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6114 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6115 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6116 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6117 (ashr<mode>3): Merge with *avx_ashr<mode>3.
6118 (lshr<mode>3): Merge with *avx_lshr<mode>3.
6119 (ashl<mode>3): Merge with *avx_ashl<mode>3.
6120 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6121 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6122 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6123 (*<smaxmin:code>v8hi3): Ditto.
6124 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6125 (*<smaxmin:code>v16qi3): Ditto.
6126 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6127 (*sse2_eq<mode>3): Ditto.
6128 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6129 (*sse2_gt<mode>3): Ditto.
6130 (vcondv2di): Split out of vcond<mode>.
6131 (vconduv2di): Split out of vcondu<mode>.
6133 2011-04-11 Richard Guenther <rguenther@suse.de>
6135 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6136 before calling tree_low_cst.
6138 2011-04-11 Richard Guenther <rguenther@suse.de>
6140 * stor-layout.c (layout_type): Compute all array index size operations
6141 in the original type.
6142 (initialize_sizetypes): Add comment.
6143 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6145 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6147 * common.opt (Tbss=, Tdata=, Ttext=): New options.
6149 2011-04-11 Martin Jambor <mjambor@suse.cz>
6151 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6152 of cgraph_node, handle NULL return value.
6153 (cgraph_global_info): Likewise.
6154 (cgraph_rtl_info): Likewise.
6155 * tree-inline.c (estimate_num_insns): Likewise.
6156 * gimplify.c (unshare_body): Likewise.
6157 (unvisit_body): Likewise.
6158 (gimplify_body): Likewise.
6159 * predict.c (optimize_function_for_size_p): Likewise.
6160 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6161 (call_may_clobber_ref_p_1): Likewise.
6162 * varasm.c (function_section_1): Likewise.
6163 (assemble_start_function): Likewise.
6165 2011-04-11 Martin Jambor <mjambor@suse.cz>
6167 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6169 * final.c (rest_of_clean_state): Likewise.
6170 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6171 * passes.c (pass_init_dump_file): Likewise.
6172 (execute_all_ipa_transforms): Likewise.
6173 (function_called_by_processed_nodes_p): Likewise.
6174 * predict.c (maybe_hot_frequency_p): Likewise.
6175 (probably_never_executed_bb_p): Likewise.
6176 (compute_function_frequency): Likewise.
6177 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6178 (unnest_nesting_tree_1): Likewise.
6179 (lower_nested_functions): Likewise.
6180 * tree-optimize.c (execute_fixup_cfg): Likewise.
6181 (tree_rest_of_compilation): Likewise.
6182 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6183 * tree-sra.c (ipa_early_sra): Likewise.
6184 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6185 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6186 * ipa.c (record_cdtor_fn): Likewise.
6187 * ipa-inline.c (cgraph_early_inlining): Likewise.
6188 (compute_inline_parameters_for_current): Likewise.
6189 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6190 * ipa-pure-const.c (local_pure_const): Likewise.
6191 * ipa-split.c (split_function): Likewise.
6192 (execute_split_functions): Likewise.
6193 * cgraphbuild.c (build_cgraph_edges): Likewise.
6194 (rebuild_cgraph_edges): Likewise.
6195 (cgraph_rebuild_references): Likewise.
6196 (remove_cgraph_callee_edges): Likewise.
6197 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6198 (verify_cgraph_node): Likewise.
6199 (cgraph_analyze_functions): Likewise.
6200 (cgraph_preserve_function_body_p): Likewise.
6201 (save_inline_function_body): Likewise.
6202 (save_inline_function_body): Likewise.
6203 * tree-inline.c (copy_bb): Likewise.
6204 (optimize_inline_calls): Likewise.
6206 2011-04-11 Martin Jambor <mjambor@suse.cz>
6208 PR tree-optimization/48195
6209 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6210 ipa_check_create_edge_args.
6211 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6212 ipa_check_create_edge_args.
6213 * ipa-inline.c (inline_generate_summary): Do not call
6214 ipa_check_create_node_params and ipa_check_create_edge_args.
6215 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6216 ipa_check_create_edge_args.
6218 2011-04-09 Anatoly Sokolov <aesok@post.ru>
6220 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6222 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6223 * function.c (record_hard_reg_sets): Likewise.
6224 * ira.c (compute_regs_asm_clobbered): Likewise.
6225 * sched-deps.c (sched_analyze_1): Likewise.
6226 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6228 2011-04-09 Xinliang David Li <davidxl@google.com>
6230 PR tree-optimization/PR48484
6231 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6232 has_valid_pred lazily
6234 2011-04-09 Duncan Sands <baldrick@free.fr>
6236 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6238 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
6240 * combine.c (combine_validate_cost): Adjust comments. Set registered
6241 cost of I0 to zero at the end, if any.
6243 2011-04-08 Xinliang David Li <davidxl@google.com>
6245 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6246 to insane profile data.
6248 2011-04-08 Xinliang David Li <davidxl@google.com>
6250 * ipa-cp.c (ipcp_update_profiling): Correct
6251 negative scale factor due to insane profile data.
6253 2011-04-08 Xinliang David Li <davidxl@google.com>
6255 * final.c (dump_basic_block_info): New function.
6256 (final): Dump basic block.
6257 (final_scan_insn): Remove old dump.
6259 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
6262 * config.gcc (i386-*-freebsd): Disable unwind table generation for
6265 2011-04-08 Michael Matz <matz@suse.de>
6268 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6270 (rebuild_jump_labels): Call rebuild_jump_labels_1.
6271 * rtl.h (rebuild_jump_labels_chain): Declare.
6272 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6273 insns inserted on edges.
6275 2011-04-08 Joseph Myers <joseph@codesourcery.com>
6277 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6278 * config/arm/arm-arches.def: New.
6279 * config/arm/arm-opts.h: New.
6280 * config/arm/genopt.sh: New.
6281 * config/arm/arm-tables.opt: New (generated).
6282 * config/arm/arm.c (arm_handle_option, arm_target_help,
6283 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6284 (all_architectures): Get most table contents from arm-arches.def.
6285 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6286 arm_selected_tune here.
6287 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6288 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6289 (march=, mcpu=, mtune=): Use Enum and Var.
6290 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6291 (arm.o): Update dependencies.
6293 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
6295 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6297 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6298 (write_typed_alloc_defns): Likewise.
6299 (main): Calls write_typed_alloc_defns with output_header.
6301 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
6304 * ira-color.c (setup_profitable_hard_regs): Add comments.
6305 Don't take prohibited hard regs into account.
6306 (setup_conflict_profitable_regs): Rename to
6307 get_conflict_profitable_regs.
6308 (check_hard_reg_p): Check prohibited hard regs.
6310 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
6312 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6313 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6314 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6316 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6319 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6320 move from floating point to shift amount register.
6321 (emit_move_sequence): Remove secondary reload support for floating
6322 point to shift amount amount register copies.
6323 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6324 amount register copies.
6325 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6326 register, return false if mode isn't a scalar integer mode.
6327 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6329 2011-04-08 Richard Guenther <rguenther@suse.de>
6331 * gimple.c (gimple_call_flags): Remove kludge.
6333 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6335 * sel-sched.c (sel_region_init): Move call to
6336 sel_setup_region_sched_flags after setup_current_loop_nest.
6338 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
6340 PR rtl-optimization/48272
6341 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6342 init_insn_reg_pressure_info. Adjust a caller.
6343 * sched-int.h (init_insn_reg_pressure_info): Declare.
6344 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6345 when sched-pressure is enabled.
6347 2011-04-08 Richard Guenther <rguenther@suse.de>
6349 * gimple.c (gimple_set_modified): Do not queue calls to
6350 MODIFIED_NORETURN_CALLS here ...
6351 * tree-ssa-operands.c (update_stmt_operands): ... but here.
6353 2011-04-08 Richard Guenther <rguenther@suse.de>
6356 * toplev.c (lang_dependent_init): Do not open asm_out_file
6357 in WPA mode, nor perform debug machinery initialization.
6358 (finalize): Do not unlink asm_out_file in WPA mode.
6360 2011-04-08 Richard Guenther <rguenther@suse.de>
6362 * gimple.h (gimple_call_fntype): New function.
6363 (gimple_call_return_type): Use it.
6364 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6365 * gimple-low.c (gimple_check_call_args): Likewise.
6366 * gimple.c (gimple_call_flags): Likewise.
6367 (gimple_call_arg_flags): Likewise.
6368 (gimple_call_return_flags): Likewise.
6369 * tree-cfg.c (verify_gimple_call): Likewise.
6370 (do_warn_unused_result): Likewise.
6371 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6372 * value-prof.c (gimple_ic_transform): Fix fndecl check.
6374 2011-04-08 Dmitry Melnik <dm@ispras.ru>
6376 PR rtl-optimization/48235
6377 * sel-sched.c (code_motion_process_successors): Recompute the last
6378 insn in basic block if control flow changed.
6379 (code_motion_path_driver): Ditto. Recompute the first insn as well.
6380 Update condition for ilist_remove.
6382 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6384 PR rtl-optimization/48302
6385 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6386 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
6387 it to record added preheader blocks.
6388 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
6389 on to sel_add_loop_preheaders.
6390 (sel_region_init): Move call to setup_current_loop_nest after
6393 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6396 * cfgloop.h (loop_has_exit_edges): New helper.
6397 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6399 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6400 that have no exit edges.
6402 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
6404 PR rtl-optimization/48442
6405 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
6406 all callers. Adjust assert.
6408 2011-04-08 Jakub Jelinek <jakub@redhat.com>
6410 PR tree-optimization/48377
6411 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6412 is_packed to true even for types with smaller TYPE_ALIGN than
6415 2011-04-08 Richard Guenther <rguenther@suse.de>
6418 * doc/tm.texi: Re-generate.
6420 2011-04-08 Wei Guozhi <carrot@google.com>
6423 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6424 * config/arm/arm.c (arm_attr_length_push_multi): New function.
6425 * config/arm/arm.md (*push_multi): Change the length computation to
6428 2011-04-08 Anatoly Sokolov <aesok@post.ru>
6430 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6431 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6432 * doc/tm.texi: Regenerate.
6433 * system.h (ASM_OUTPUT_BSS): Poison.
6434 * varasm.c (asm_output_bss): Remove function.
6435 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6437 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6438 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6439 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6440 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6442 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6444 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6446 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6448 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6450 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6453 2011-04-07 Joseph Myers <joseph@codesourcery.com>
6455 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6456 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6457 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6459 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6460 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6461 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6462 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6463 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6464 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6465 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6466 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6467 options. Don't map other m68k options manually. Don't handle
6468 old-style options as canonical.
6469 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6470 * doc/install.texi (m68k-*-*): Document binutils version requirement.
6472 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6474 * basic-block.h (force_nonfallthru): Move to...
6475 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6476 (force_nonfallthru): ...here.
6477 * cfghooks.c (force_nonfallthru): New function.
6478 * cfgrtl.c (force_nonfallthru): Rename into...
6479 (rtl_force_nonfallthru): ...this.
6480 (commit_one_edge_insertion): Do not set AUX field.
6481 (commit_edge_insertions): Do not discover new basic blocks.
6482 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6483 (cfg_layout_rtl_cfg_hooks): Likewise.
6484 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6485 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6486 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6488 2011-04-07 Anatoly Sokolov <aesok@post.ru>
6490 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6493 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
6495 * config/i386/sse.md: Update copyright year.
6496 (avxcvtvecmode): Remove.
6497 (sse_movhlps): Merge with *avx_movhlps.
6498 (sse_movlhps): Merge with *avx_movlhps.
6499 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6500 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6501 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6502 (sse_loadhps): Merge with *avx_loadhps.
6503 (sse_storelps): Merge with *avx_storelps.
6504 (sse_loadlps): Merge with *avx_loadlps.
6505 (sse_movss): Merge with *avx_movss.
6506 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6507 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6508 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6509 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6510 (vec_set<mode>_0): Ditto.
6511 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6512 (sse4_1_insertps): Merge with *avx_insertps.
6513 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6514 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6515 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6516 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6517 (sse2_storehpd): Merge with *avx_storehpd.
6518 (sse2_loadhpd): Merge with *avx_loadhpd.
6519 (sse2_loadlpd): Merge with *avx_loadlpd.
6520 (sse2_movsd): Merge with *avx_movsd.
6521 (*vec_concatv2df): Merge with *vec_concatv2df.
6523 2011-04-07 Jakub Jelinek <jakub@redhat.com>
6526 * combine.c (combine_instructions): Add last_combined_insn,
6527 update it if insn is after it, pass it to all try_combine calls.
6528 (try_combine): Add last_combined_insn parameter, pass it instead of
6529 i3 to propagate_for_debug.
6531 2011-04-07 Nick Clifton <nickc@redhat.com>
6533 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6534 to handle MDR <-> data register transfers.
6535 (movhi_internal): Likewise.
6537 2011-04-07 Alan Modra <amodra@gmail.com>
6539 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6540 previous stack info.
6542 2011-04-07 Tom de Vries <tom@codesourcery.com>
6545 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6546 flow_find_cross_jump. Swap variables to implement backward replacement.
6547 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6549 2011-04-07 Tom de Vries <tom@codesourcery.com>
6552 * cfgcleanup.c (walk_to_nondebug_insn): New function.
6553 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6555 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6556 src1 or src2. Redirect edges to the last basic block. Update
6557 frequency and count on multiple basic blocks in case of fallthru.
6559 2011-04-07 Tom de Vries <tom@codesourcery.com>
6562 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6564 (old_insns_match_p): Change return type. Replace return false/true
6565 with return dir_none/dir_both. Use can_replace_by.
6566 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6567 direction from dir_p. Register replacement direction in dir, last_dir
6568 and afterlast_dir. Handle new return type of old_insns_match_p using
6569 merge_dir. Return replacement direction in dir_p.
6570 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6571 return type of old_insns_match_p.
6572 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6573 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6574 flow_find_cross_jump.
6575 * basic-block.h (enum replace_direction): New type.
6576 (flow_find_cross_jump): Add parameter to declaration.
6578 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6580 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6581 (AVXMODEDCVTPS2DQ): Ditto.
6582 (VEC_FLOAT_MODE): Ditto.
6583 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6584 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6585 (<any_logic:code><mode>3): Use VF mode iterator.
6586 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6587 Use VF mode iterator.
6588 (copysign<mode>3): Use VF mode iterator.
6589 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6590 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6591 (*<any_logic:code><MODEF:mode>3): Merge with
6592 *avx_<any_logic:code><MODEF:mode>3.
6593 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6594 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6595 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6596 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6597 (sse2_cvtdq2ps): Use %v modifier.
6598 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6599 (avx_cvtps2dq<avxmodesuffix>): Remove.
6600 (sse2_cvtps2dq): Use %v modifier.
6601 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6602 (avx_cvttps2dq<avxmodesuffix>): Remove.
6603 (sse2_cvttps2dq): Use %v modifier.
6604 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6605 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6606 (sse2_cvtsd2siq): Fix insn template.
6607 (sse2_cvtsd2siq_2): Ditto.
6608 (sse2_cvttsd2siq): Ditto.
6609 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6610 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6612 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6614 * gcov-io.c: Use GCC Runtime Library Exception.
6616 2011-04-06 Jakub Jelinek <jakub@redhat.com>
6619 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6620 as base_reg whatever register reg has been eliminated to, instead
6621 of hardcoding STACK_POINTER_REGNUM.
6623 2011-04-06 Joseph Myers <joseph@codesourcery.com>
6625 * doc/tm.texi.in: Document C target hooks as separate from general
6627 * doc/tm.texi: Regenerate.
6628 * genhooks.c (struct hook_desc): Add docname field.
6629 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6631 (hook_array): Include c-target.def.
6632 (emit_documentation): Use docname field in output.
6633 (emit_init_macros): Take docname argument. Only emit definitions
6634 for hooks matching docname.
6635 (main): Expect additional arguments in all cases. Pass argument
6636 to emit_init_macros.
6637 * target.def: Move initial macro definitions and comments to
6638 target-hooks-macros.h.
6639 (gcc_targetcm): Move to c-family/c-target.def.
6640 * target.h (targetcm): Move declaration to c-family/c-target.h.
6641 * targhooks.c (default_handle_c_option): Move to
6643 * targhooks.h (default_handle_c_option): Move declaration to
6644 c-family/c-common.h.
6645 * target-hooks-macros.h: New file.
6646 * config.gcc (target_has_targetcm): Define and use to add to
6647 c_target_objs and cxx_target_objs.
6648 * config/default-c.c: New file.
6649 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6650 of target.h and target-def.h.
6651 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6652 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6653 darwin_check_cfstring_format_arg): Make static.
6654 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6655 TARGET_STRING_OBJECT_REF_TYPE_P,
6656 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6657 * config/darwin-protos.h (darwin_objc_construct_string,
6658 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6660 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6661 TARGET_STRING_OBJECT_REF_TYPE_P,
6662 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6663 * config/t-darwin (darwin-c.o): Update dependencies.
6664 * system.h (TARGET_HAS_TARGETCM): Poison.
6665 * Makefile.in (TARGET_H): Update.
6666 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6667 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6668 (default-c.o): New target.
6669 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6670 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6671 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6673 (build/genhooks.o): Update dependencies.
6675 2011-04-06 Richard Guenther <rguenther@suse.de>
6677 * ipa-inline.c (enum inlining_mode): Remove.
6678 (cgraph_flatten): Use some other token.
6679 (cgraph_edge_early_inlinable_p): New function, split out from ...
6680 (cgraph_perform_always_inlining): New function, split out from ...
6681 (cgraph_decide_inlining_incrementally): ... here.
6682 (cgraph_mark_inline_edge): Adjust.
6683 (cgraph_early_inlining): Re-structure.
6684 (pass_early_inline): Require SSA form.
6686 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
6687 Julian Brown <julian@codesourcery.com>
6688 Mark Shinwell <shinwell@codesourcery.com>
6690 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6691 LO_REGS only for Thumb-1.
6692 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6693 be used in short instructions when optimising for size on Thumb-2.
6695 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6697 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6698 associated with user returns to be preserved.
6700 2011-04-06 Tristan Gingold <gingold@adacore.com>
6702 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6703 symbol_queue_size, DBXOUT_DECR_NESTING,
6704 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6705 if XCOFF_DEBUGGING_INFO.
6707 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
6709 * config/i386/i386.md (attribute isa): New.
6710 (attribute enabled): New.
6711 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6712 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6713 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6714 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6715 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6716 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6717 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6718 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6720 * config/i386/sse.md (VF): New mode iterator.
6724 (SSEMODEF4): Remove.
6725 (attribute sse): Handle V8SF and V4DF modes.
6726 (<absneg:code><mode>2): Use VF mode iterator.
6727 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6729 (<plusminus_insn><mode>3): Use VF mode iterator.
6730 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6731 Use VF mode iterator.
6732 (<sse>_vm<plusminus_insn><mode>3): Merge with
6733 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6734 (mul<mode>3): Use VF mode iterator.
6735 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6736 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6738 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6739 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6740 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6741 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6743 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6744 Use VF1 mode iterator.
6745 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6746 (sqrt<VF2:mode>2): New expander.
6747 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6748 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6749 and sqrtv2df2. Use VF mode iterator.
6750 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6752 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6753 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6754 Use VF1 mode iterator.
6755 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6756 (<smaxmin:code><mode>3): Use VF mode iterator.
6757 (*<smaxmin:code><mode>3_finite): Merge with
6758 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6759 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6760 (<sse>_vm<smaxmin:code><mode>2): Merge with
6761 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6762 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6764 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6766 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6767 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6768 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6769 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6770 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6772 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6773 Use VF_128 mode iterator.
6774 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6776 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6777 VF_128 mode iterator.
6778 (vcond<mode>): Use VF mode iterator.
6779 * config/i386/predicates.md (sse_comparison_operator): Merge with
6780 avx_comparison_float_operator. Do not declare as special_predicate.
6781 * config/i386/i386.c (struct builtin_description): Update for renamed
6783 (ix86_expand_args_builtin): Ditto.
6784 (ix86_expand_sse_compare_mask): Ditto.
6786 2011-04-06 Richard Guenther <rguenther@suse.de>
6788 * tree-inline.c (estimate_num_insns): For calls simply account
6789 for all passed arguments and a used return value.
6791 2011-04-06 Richard Guenther <rguenther@suse.de>
6793 PR tree-optimization/47663
6794 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6795 call_stmt_time fields.
6796 (cgraph_edge_inlinable_p): Declare.
6797 (cgraph_edge_recursive_p): New inline function.
6798 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6799 (cgraph_clone_edge): Copy it.
6800 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6801 Account for call stmt time.
6802 (cgraph_estimate_time_after_inlining): Take edge argument.
6803 (cgraph_estimate_edge_growth): Account call stmt size.
6804 (cgraph_estimate_size_after_inlining): Take edge argument.
6805 (cgraph_mark_inline_edge): Adjust.
6806 (cgraph_check_inline_limits): Likewise.
6807 (cgraph_recursive_inlining_p): Remove.
6808 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6809 (cgraph_decide_recursive_inlining): Take edge argument and
6811 (cgraph_decide_inlining_of_small_functions): Do not avoid
6812 diags for recursive inlining here.
6813 (cgraph_flatten): Adjust.
6814 (cgraph_decide_inlining_incrementally): Likewise.
6815 (estimate_function_body_sizes): Remove call cost handling.
6816 (compute_inline_parameters): Initialize caller edge call costs.
6817 (cgraph_estimate_edge_growth): New function.
6818 (cgraph_estimate_growth): Use it.
6819 (cgraph_edge_badness): Likewise.
6820 (cgraph_check_inline_limits): Take an edge argument.
6821 (cgraph_decide_inlining_of_small_functions): Adjust.
6822 (cgraph_decide_inlining): Likewise.
6823 * tree-inline.c (estimate_num_insns): Only account for call
6824 return value if it is used.
6825 (expand_call_inline): Avoid diagnostics on recursive inline
6827 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6828 (input_edge): Input edge call costs.
6830 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6832 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6834 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6836 * doc/invoke.texi (Spec Files): Fix typo.
6838 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6840 * profile.c (branch_prob): Move declaration of local variable. Remove
6841 obsolete ??? comment. Expand the location explicitly instead of using
6842 the LOCATION_FILE and LOCATION_LINE macros.
6844 2011-04-06 Wei Guozhi <carrot@google.com>
6847 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6848 (arm_cond_branch): Likewise.
6849 (arm_cond_branch_reversed): Likewise.
6850 (arm_jump): Likewise.
6851 (push_multi): Likewise.
6852 * config/arm/constraints.md (Py): New constraint.
6854 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6857 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6859 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6860 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6861 #ifdef DBX_DEBUGGING_INFO.
6863 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6866 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6867 if old and new states differ.
6869 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6871 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6872 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6873 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6874 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6875 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6877 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6878 ColdFire options to -mcpu= options.
6880 2011-04-05 Jeff Law <law@redhat.com>
6882 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6883 check if BB is a successor of LOOP->header and return
6884 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6886 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6888 * cprop.c (struct reg_use): Remove.
6889 (reg_use_table): Make an array of RTX.
6890 (find_used_regs, constprop_register, local_cprop_pass,
6891 bypass_block): Simplify users of reg_use_table.
6892 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6893 on one of the uses found by find_used_regs.
6895 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6898 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6901 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6903 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6905 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6907 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6910 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6912 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6914 * combine.c: Include obstack.h.
6915 (struct insn_link): Define.
6916 (uid_log_links): Adjust type.
6917 (FOR_EACH_LOG_LINK): New macro.
6918 (insn_link_obstack): Declare.
6919 (alloc_insn_link): Define.
6920 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6921 type of link variables.
6922 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6923 (try_combine, record_promoted_values, distribute_notes): Likewise.
6924 (distribute_links): Likewise. Tweak prototype.
6925 (clear_log_links): Delete.
6926 (adjust_for_new_dest): Call alloc_insn_link.
6927 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6929 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6931 * gcse.c (modify_mem_list): Convert to an array of VECs.
6932 (canon_modify_mem_list, compute_transp): Tweak formatting.
6933 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6934 (load_killed_in_block_p): Likewise.
6935 (record_last_mem_set_info): Likewise.
6936 (clear_modify_mem_tables): Likewise.
6938 2011-04-05 Tom de Vries <tom@codesourcery.com>
6941 * function.c (emit_use_return_register_into_block): Only define if
6944 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6946 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6948 2011-04-05 Joseph Myers <joseph@codesourcery.com>
6950 * config/rx/rx-opts.h: New.
6951 * config/rx/rx.c (rx_cpu_type): Remove.
6952 (rx_handle_option): Don't assert that global structures are in
6953 use. Access variables via opts pointer. Defer most handling of
6954 OPT_mint_register_. Use error_at.
6955 (rx_option_override): Handle deferred OPT_mint_register_ here.
6956 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6957 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6958 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6959 (rx_cpu_types): New Enum and EnumValue entries.
6960 (mint-register=): Use Defer and use Var accordingly.
6962 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6964 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6965 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6966 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6968 (debug_free_queue, debug_nesting, symbol_queue_index):
6970 * dbxout.c: ...to here. Make static.
6972 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6974 * gcse.c (modify_pair): Define. Define a VEC of it.
6975 (canon_modify_mem_list): Convert to an array of VECs.
6976 (free_insn_expr_list_list): Delete.
6977 (clear_modify_mem_tables): Call VEC_free instead.
6978 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6979 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6980 (canon_list_insert, compute_transp): Likewise.
6982 2011-04-05 Tom de Vries <tom@codesourcery.com>
6985 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6988 2011-04-05 Tom de Vries <tom@codesourcery.com>
6991 * function.c (emit_use_return_register_into_block): New function.
6992 (thread_prologue_and_epilogue_insns): Use
6993 emit_use_return_register_into_block.
6995 2011-04-05 Tom de Vries <tom@codesourcery.com>
6998 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7001 2011-04-05 Tom de Vries <tom@codesourcery.com>
7003 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7005 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
7007 * config/arm/arm.md (define_constants for unspec): Replace with
7009 (define_constants for unspecv): Replace with define_c_enum.
7010 * config/arm/neon.md (define_constants for unspec): Replace with
7013 2011-04-04 Richard Henderson <rth@redhat.com>
7016 * dwarf2out.c (output_line_info): Always emit line info from
7017 at least one section.
7018 (dwarf2out_init): Create text_section_line_info here ...
7019 (set_cur_line_info_table): ... not here.
7021 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
7024 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7027 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7029 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
7031 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7032 (expr_equiv_p): Remove.
7033 (insert_set_in_table): Look at <dest, src> pair instead of expr.
7034 (hash_scan_set): Update call to insert_set_in_table.
7035 (dump_hash_table): Dump <dest, src> pair.
7036 (lookup_set): Simplify. Lookup <dest, src> pair.
7037 (compute_transp): Remove, fold heavily simplified code into...
7038 (compute_local_properties): ...here. Expect COMP and TRANSP
7040 (find_avail_set): Take set directly from struct expr.
7041 (find_bypass-set): Likewise.
7042 (bypass_block): Likewise.
7043 (cprop_insn): Likewise. Remove redundant INSN_P test.
7045 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7046 checks on form of COND from find_implicit_sets to here.
7047 (find_implicit_sets): Cleanup control flow. Split critical edges
7048 if it exposes implicit sets. Allocate/resize implicit_sets as
7050 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7051 changed something. Run df_analyze after find_implicit_sets if any
7052 edges were split. Do not allocate implicit_sets here.
7054 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7055 (gcse_obstack): Renamed to cprop_obstack.
7056 (GNEW, GNEWVEC, GNEWVAR): Remove.
7058 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7059 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7060 (gcse_alloc): Likewise, and rename to cprop_alloc.
7061 (alloc_gcse_men, free_gcse_mem): Remove.
7062 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7063 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7064 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7066 * cprop.c (oprs_not_set_p): Remove.
7067 (mark_set, mark_clobber): Remove.
7068 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7069 (reg_not_set_p): New function.
7070 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7071 (cprop_insn): Likewise.
7072 (cprop_jump): Use FOR_EACH_EDGE.
7074 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
7077 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7078 (rank_for_schedule): Use scheduled_insns vector instead of
7079 last_scheduled_insn.
7080 (ok_for_early_queue_removal): Likewise.
7081 (queue_to_ready): Search forward in nonscheduled_insns_begin if
7083 (choose_ready): Likewise.
7084 (commit_schedule): Use VEC_iterate.
7085 (schedule_block): Initialize nonscheduled_insns_begin. If we have
7086 a dbg_cnt, use it and ensure the first insn is in the ready list.
7087 (haifa_sched_init): Allocate scheduled_insns.
7088 (sched_extend_ready_list): Don't allocate it; reserve space.
7089 (haifa_sched_finish): Free it.
7091 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7093 * optc-gen.awk: Always remove type from Variable entry before
7094 recording in var_seen.
7096 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
7098 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7099 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7100 call to tidy_fallthru_edges.
7102 2011-04-04 Joseph Myers <joseph@codesourcery.com>
7104 * doc/options.texi (ToLower): Document.
7105 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7106 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7107 * opts.h (cl_option): Add cl_tolower field.
7108 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7109 arguments with lowercase strings.
7110 * config/rx/rx.opt (mcpu=): Add ToLower.
7111 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7114 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7116 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7118 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
7120 * config/vax/vax.c: Include reload.h.
7122 2011-04-04 Anatoly Sokolov <aesok@post.ru>
7124 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7125 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7126 (sparc_preferred_reload_class): New function.
7128 2011-04-04 Jakub Jelinek <jakub@redhat.com>
7131 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7132 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7134 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
7136 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7137 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7139 2011-04-03 Anatoly Sokolov <aesok@post.ru>
7141 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7142 (ASM_OUTPUT_ALIGNED_BSS): Define.
7144 2011-04-03 Michael Matz <matz@suse.de>
7146 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7147 and next_slot members.
7148 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7149 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7150 (lto_streamer_cache_append): Declare.
7151 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7152 unsigned index, remove offset parameter, ensure that we append
7153 or update existing entries.
7154 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7155 parameter, update next_slot for append.
7156 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7158 (lto_streamer_cache_insert_at): Likewise.
7159 (lto_streamer_cache_append): New function.
7160 (lto_streamer_cache_lookup): Use unsigned index.
7161 (lto_streamer_cache_get): Likewise.
7162 (lto_record_common_node): Don't test tree_node_can_be_shared.
7163 (preload_common_node): Adjust call to lto_streamer_cache_insert.
7164 (lto_streamer_cache_delete): Don't free offsets member.
7165 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7166 (lto_output_string_with_length): Use lto_output_data_stream.
7167 (lto_output_tree_header): Remove ix parameter, don't write it.
7168 (lto_output_builtin_tree): Likewise.
7169 (lto_write_tree): Adjust callers to above, don't track and write
7170 offset, write unsigned index.
7171 (output_unreferenced_globals): Don't emit all global vars.
7172 (write_global_references): Use unsigned indices.
7173 (lto_output_decl_state_refs): Likewise.
7174 (write_symbol): Likewise.
7175 * lto-streamer-in.c (lto_input_chain): Move earlier.
7176 (input_function): Use unsigned index.
7177 (input_alias_pairs): Don't read and then ignore all global vars.
7178 (lto_materialize_tree): Remove ix_p parameter, don't read index,
7179 don't pass it back, use lto_streamer_cache_append.
7180 (lto_register_var_decl_in_symtab): Use unsigned index.
7181 (lto_register_function_decl_in_symtab): Likewise.
7182 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7184 (lto_get_builtin_tree): Don't read index, use
7185 lto_streamer_cache_append.
7186 (lto_read_tree): Adjust call to lto_materialize_tree.
7188 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7189 don't use function calls in arguments to MIN.
7191 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7194 * gimple.c (gimple_type_leader_entry): Mark deletable.
7196 2011-04-03 Alan Modra <amodra@gmail.com>
7198 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7200 2011-04-03 Michael Matz <matz@suse.de>
7202 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7204 * tree.h (tree_decl_non_common.vindex): Adjust comment.
7206 2011-04-03 Michael Matz <matz@suse.de>
7208 * cgraphbuild.c (record_reference): Canonicalize constructor values.
7209 * gimple-fold.c (canonicalize_constructor_val): Accept being called
7210 without function context.
7211 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7212 current_function_decl and cfun.
7214 2011-04-03 Michael Matz <matz@suse.de>
7216 * tree.c (decl_init_priority_insert): Don't create entry for
7218 (decl_fini_priority_insert): Ditto.
7219 (fields_compatible_p, find_compatible_field): Remove.
7220 * tree.h (fields_compatible_p, find_compatible_field): Remove.
7221 * gimple.c (gimple_compare_field_offset): Adjust block comment.
7223 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
7225 * combine.c (try_combine): Remove useless local variable.
7227 2011-04-03 Richard Guenther <rguenther@suse.de>
7228 Ira Rosen <ira.rosen@linaro.org>
7230 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7231 non-variable offsets and compare the remaining bases of the two
7232 accesses instead of looking for exact same data-ref.
7234 2011-04-02 Kai Tietz <ktietz@redhat.com>
7237 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7239 * i386.c (ix86_is_msabi_thiscall): New helper function.
7240 (ix86_is_type_thiscall): New helper function.
7241 (ix86_comp_type_attributes): Handle thiscall for method-functions
7243 (init_cumulative_args): Likewise.
7244 (find_drap_reg): Likewise.
7245 (ix86_static_chain): Likewise.
7246 (x86_this_parameter): Likewise.
7247 (x86_output_mi_thunk): Likewise.
7249 2011-04-01 Olivier Hainque <hainque@adacore.com>
7250 Nicolas Setton <setton@adacore.com>
7251 Eric Botcazou <ebotcazou@adacore.com>
7253 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7254 (add_gnat_descriptive_type_attribute): New function.
7255 (gen_array_type_die): Call it.
7256 (gen_enumeration_type_die): Likewise.
7257 (gen_struct_or_union_type_die): Likewise.
7258 (modified_type_die): Likewise.
7259 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7260 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7261 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7263 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7266 * dwarf2out.c (resolve_addr): Don't call force_decl_die
7267 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7270 2011-03-17 Richard Guenther <rguenther@suse.de>
7273 * lto-cgraph.c (input_overwrite_node): Clear the abstract
7274 origin for decls in other ltrans units.
7275 (input_varpool_node): Likewise.
7277 2011-04-01 Jakub Jelinek <jakub@redhat.com>
7280 * expr.c (expand_assignment): Handle all possibilities
7281 if TO_RTX is CONCAT.
7282 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7283 (store_split_bit_field): If SUBREG_REG (op0) or
7284 op0 itself has smaller mode than word, return it
7285 for offset 0 and const0_rtx for out-of-bounds stores.
7286 If word is const0_rtx, skip it.
7288 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
7290 * config/h8300/h8300.c (print_operand_address): Rename to...
7291 (h8300_print_operand_address): ...this. Make static. Adjust comments.
7292 Call h8300_print_operand and h8300_print_operand_address instead of
7293 print_operand and print_operand_address. Declare.
7294 (print_operand): Renake to...
7295 (h8300_print_operand): ...this. Make static. Adjust comments.
7296 Call h8300_print_operand instead of print_operand. Declare.
7297 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7298 (h8300_register_move_cost): Likewise.
7299 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7300 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7301 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7302 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7303 * config/h8300/h8300-protos.h (print_operand): Delete.
7304 (print_operand_address): Delete.
7306 2011-04-01 Richard Henderson <rth@redhat.com>
7309 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7310 in strict mode before dwarf4. Re-order tests to early out
7311 before switching sections.
7313 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
7315 * config/h8300/constraints.md: New file.
7316 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
7317 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7318 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7319 * config/h8300/predicates.md (bit_operand): Likewise.
7320 (incdec_operand): Use satisfies_constraint_M and
7321 satisfies_constraint_O. Don't use C code block.
7322 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7323 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7324 (compute_mov_length): Use satisfies_constraint_G.
7325 (fix_bit_operand): Use satisfies_constraint_U.
7326 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7327 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7328 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7329 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7330 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7331 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7332 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7333 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7334 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7335 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7336 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7337 (EXTRA_MEMORY_CONSTRAINT): Delete.
7339 2011-04-01 Andrew Pinski <pinskia@gmail.com>
7340 Michael Meissner <meissner@linux.vnet.ibm.com>
7343 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7344 operands, as per the specifications.
7346 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7347 (vec_extract_evenv4sf): Ditto.
7348 (vec_extract_evenv8hi): Ditto.
7349 (vec_extract_evenv16qi): Ditto.
7350 (vec_extract_oddv4si): Ditto.
7352 2011-03-31 Mark Wielaard <mjw@redhat.com>
7354 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7355 high_pc attribute if the CU has no associated code. Only output
7356 DW_AT_entry_pc for CU if not generating strict dwarf and
7359 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
7361 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7362 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7364 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7365 * final.c (final_start_function): Call the new function rather
7366 than using a NULL argument for dwarf2out_frame_debug.
7368 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7369 that contains the prologue.
7371 * haifa-sched.c (queue_insn): New arg REASON. All callers
7372 changed. Print it in debugging output.
7374 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7376 * sched-ebb.c (begin_schedule_ready): Remove second argument.
7377 Split most of the code into...
7378 (begin_move_insn): ... here. New function.
7379 (ebb_sched_info): Add a pointer to it.
7380 * haifa-sched.c (scheduled_insns): New static variable.
7381 (sched_extend_ready_list): Allocate it.
7382 (schedule_block): Use it to record the order of scheduled insns.
7383 Perform RTL changes to move insns only after all scheduling
7384 decisions have been made.
7385 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7386 begin_move_insn field.
7387 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7388 * sched-int.h (struct haifa_sched_info): Remove second argument
7389 from begin_schedule_ready hook. Add new member begin_move_insn.
7390 * sched-rgn.c (begin_schedule_ready): Remove second argument.
7391 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7393 * haifa-sched.c (prune_ready_list): New function, broken out of
7395 (schedule_block): Use it.
7397 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7399 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7401 2011-04-01 Kai Tietz <ktietz@redhat.com>
7403 * config.gcc (*-*-mingw*): Allow as option the
7404 posix threading model.
7405 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
7406 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7408 (CPP_SPEC): Add pthread/no-pthread handling.
7409 (LIB_SPEC): Likewise.
7410 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7411 (LIB_SPEC): Likewise.
7412 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7413 flag to pass -pthread option for shared libgcc build.
7414 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7415 for shared libgcc build.
7416 * config/i386/t-mingw-pthread: New file.
7417 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7418 New define to enable use of library pthread by default.
7419 * config/i386/mingw.opt (pthread): New driver option.
7420 (no-pthread): New driver option.
7421 * config/i386/cygming.opt: Make sure trailing empty line is retained.
7422 * config/i386/mingw-w64.opt: Likewise.
7424 2011-04-01 Gary Funck <gary@intrepid.com>
7426 * c-decl.c (grokdeclarator): Fix formatting.
7428 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7430 * expr.c (emit_block_move_via_movmem): Use n_generator_args
7431 instead of n_operands.
7432 (set_storage_via_setmem): Likewise.
7433 * optabs.c (maybe_gen_insn): Likewise.
7434 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7435 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7436 (mips_expand_builtin_direct): Likewise.
7437 * config/spu/spu.c (expand_builtin_args): Likewise.
7439 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7441 * recog.h (insn_data_d): Add n_generator_args.
7442 * genoutput.c (data): Likewise.
7443 (output_insn_data): Print it.
7444 (max_opno, num_dups): Delete.
7445 (scan_operands): Just fill in "d->operand[...]".
7446 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7448 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7450 * gensupport.h (pattern_stats): New structure.
7451 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7452 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7453 (max_operand_1, max_operand_vec): Delete.
7454 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7456 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7458 * emit-rtl.c (emit_pattern_after_setloc): New function.
7459 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7460 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7461 (emit_pattern_after): New function.
7462 (emit_insn_after, emit_jump_insn_after): Call it.
7463 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7464 (emit_pattern_before_setloc): New function.
7465 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7466 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7468 (emit_pattern_before): New function.
7469 (emit_insn_before, emit_jump_insn_before): Call it.
7470 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7472 2011-03-31 Richard Henderson <rth@redhat.com>
7474 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7475 (dw_separate_line_info_entry): Remove.
7476 (enum dw_line_info_opcode): New.
7477 (dw_line_info_entry): Use it.
7478 (dw_line_info_table, dw_line_info_table_p): New.
7479 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7480 (line_info_table, line_info_label_num): Remove.
7481 (line_info_table_in_use): Remove.
7482 (separate_line_info_table): Remove.
7483 (separate_line_info_table_allocated): Remove.
7484 (separate_line_info_table_in_use): Remove.
7485 (LINE_INFO_TABLE_INCREMENT): Remove.
7486 (line_info_label_num): New.
7487 (cur_line_info_table): New.
7488 (text_section_line_info, cold_text_section_line_info): New.
7489 (separate_line_info): New.
7490 (SEPARATE_LINE_CODE_LABEL): Remove.
7491 (print_dwarf_line_table): Remove.
7492 (debug_dwarf): Don't dump it.
7493 (output_one_line_info_table): New.
7494 (output_line_info): Use it.
7495 (new_line_info_table): New.
7496 (set_cur_line_info_table): New.
7497 (dwarf2out_switch_text_section): Use it.
7498 (dwarf2out_begin_function): Likewise.
7499 (push_dw_line_info_entry): New.
7500 (dwarf2out_source_line): Rewrite for new line info tables.
7501 (dwarf2out_init): Remove dead initailizations.
7503 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7505 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7507 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7508 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7509 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7510 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7511 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7512 * opt-functions.awk (flag_init, switch_bit_fields): New.
7513 (switch_flags): Don't handle flags moved to bit-fields. Don't
7514 generate CL_MISSING_OK or CL_SAVE.
7515 * optc-gen.awk: Update to generate bit-field output as well as
7517 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7518 bit-field instead of CL_REJECT_DRIVER flag.
7519 * opts-common.c (generate_canonical_option,
7520 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7521 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7522 instead of CL_REJECT_NEGATIVE flag.
7523 * toplev.c (print_switch_values): Use cl_report bit-field instead
7526 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7528 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7529 a zero minimum index only if it is redundant.
7531 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7533 PR rtl-optimization/48381
7534 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7535 instead of ira_class_hard_reg_index for calculating conflicting
7538 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7540 * cprop.c: Clean up hash table building.
7541 (reg_avail_info): Remove.
7542 (oprs_available_p): Remove.
7543 (record_last_reg_set_info): Remove.
7544 (record_last_set_info): Remove.
7545 (reg_available_p): New function.
7546 (gcse_constant_p): Do not treat unfolded conditions as constants.
7547 (make_set_regs_unavailable): New function.
7548 (hash_scan_set): Simplify with new reg_available_p.
7549 (compute_hash_table_work): Traverse insns stream only once.
7550 Do not compute reg_avail_info. Traverse insns in reverse order.
7551 Record implicit sets after recording explicit sets from the block.
7553 2011-03-31 Michael Matz <matz@suse.de>
7555 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7557 2011-03-31 Anatoly Sokolov <aesok@post.ru>
7559 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7560 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7561 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7562 (h8300_mode_dependent_address_p): New function.
7563 (h8300_get_index): Make static.
7565 2011-03-31 Jeff Law <law@redhat.com>
7567 * reload1.c (elimination_effects): Fix typo in recent change.
7569 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7570 typo potentially leading to null pointer dereference.
7572 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7573 (setup_save_areas): Corresponding changes to avoid useless
7576 * jump.c (reversed_comparison_code_parts): Avoid successive return
7577 statements when REVERSE_CONDITION is defined.
7579 * expr.c (expand_assignment): Avoid useless assignments.
7580 (expand_expr_real_1): Likewise.
7581 (expand_expr_real_2): Avoid useless statements.
7583 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7585 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7587 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7590 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7592 2011-03-31 Joseph Myers <joseph@codesourcery.com>
7595 * doc/tm.texi.in (TARGET_VERSION): Remove.
7596 * doc/tm.texi: Regenerate.
7597 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7598 * collect2.c (main): Don't use TARGET_VERSION.
7599 * mips-tdump.c (main): Don't use TARGET_VERSION.
7600 * mips-tfile.c (main): Don't use TARGET_VERSION.
7601 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7602 * config/rs6000/vxworksae.h: Remove.
7603 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7604 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7605 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7606 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7607 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7608 * config/arm/arm.h (TARGET_VERSION): Remove.
7609 * config/arm/coff.h (TARGET_VERSION): Remove.
7610 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7611 * config/arm/elf.h (TARGET_VERSION): Remove.
7612 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7613 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7614 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7615 * config/arm/pe.h (TARGET_VERSION): Remove.
7616 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7617 * config/arm/semi.h (TARGET_VERSION): Remove.
7618 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7619 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7620 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7621 * config/avr/avr.h (TARGET_VERSION): Remove.
7622 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7623 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7624 * config/frv/frv.h (TARGET_VERSION): Remove.
7625 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7626 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7627 * config/i386/darwin.h (TARGET_VERSION): Remove.
7628 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7629 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7630 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7631 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7632 * config/i386/gnu.h (TARGET_VERSION): Remove.
7633 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7634 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7635 * config/i386/linux.h (TARGET_VERSION): Remove.
7636 * config/i386/linux64.h (TARGET_VERSION): Remove.
7637 * config/i386/lynx.h (TARGET_VERSION): Remove.
7638 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7639 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7640 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7641 * config/i386/netware.h (TARGET_VERSION): Remove.
7642 * config/i386/nto.h (TARGET_VERSION): Remove.
7643 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7644 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7645 * config/ia64/elf.h (TARGET_VERSION): Remove.
7646 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7647 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7648 * config/ia64/linux.h (TARGET_VERSION): Remove.
7649 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7650 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7651 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7652 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7653 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7654 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7655 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7656 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7657 * config/m68k/linux.h (TARGET_VERSION): Remove.
7658 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7659 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7660 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7661 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7662 * config/mep/mep.h (TARGET_VERSION): Remove.
7663 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7664 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7665 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7666 * config/mips/linux.h (TARGET_VERSION): Remove.
7667 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7668 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7669 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7670 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7671 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7672 * config/pa/pa.h (TARGET_VERSION): Remove.
7673 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7674 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7675 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7676 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7677 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7678 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7679 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7680 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7681 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7682 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7683 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7684 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7685 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7686 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7687 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7688 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7689 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7690 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7691 * config/s390/linux.h (TARGET_VERSION): Remove.
7692 * config/s390/s390.h (TARGET_VERSION): Remove.
7693 * config/s390/tpf.h (TARGET_VERSION): Remove.
7694 * config/score/score.h (TARGET_VERSION): Remove.
7695 * config/sh/linux.h (TARGET_VERSION): Remove.
7696 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7697 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7698 * config/sh/sh.h (TARGET_VERSION): Remove.
7699 * config/sh/sh64.h (TARGET_VERSION): Remove.
7700 * config/sh/superh.h (TARGET_VERSION): Remove.
7701 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7702 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7703 * config/sparc/linux.h (TARGET_VERSION): Remove.
7704 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7705 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7706 TARGET_NAME32, TARGET_NAME): Remove.
7707 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7708 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7709 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7710 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7711 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7712 * config/spu/spu.h (TARGET_VERSION): Remove.
7713 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7714 * config/v850/v850.h (TARGET_VERSION): Remove.
7715 * config/vax/linux.h (TARGET_VERSION): Remove.
7716 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7717 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7718 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7720 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7723 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7724 frame-related from frame-unrelated adjustments to the stack pointer.
7726 2011-03-31 Jakub Jelinek <jakub@redhat.com>
7728 * common.opt (fdebug-types-section): Move earlier.
7729 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7731 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
7733 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7736 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7738 * tree.h (CASE_CHAIN): Define.
7739 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7740 (gimple_redirect_edge_and_branch): Likewise.
7742 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7745 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7748 2011-03-30 Jeff Law <law@redhat.com>
7750 * PR bootstrap/48371
7751 * reload1.c (reload): Fix botch in last change.
7753 * reload.h (struct reload): Fix typo introduced in last change.
7755 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7757 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7758 Undocumented. Remove help text.
7759 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7762 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7764 * doc/options.texi (NegativeAlias): Document.
7765 (Alias): Mention NegativeAlias.
7766 * opt-functions.awk: Handle NegativeAlias.
7767 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
7768 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7769 * opts.h (CL_NEGATIVE_ALIAS): Define.
7770 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7771 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7773 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7775 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7776 mno-spe and mno-isel instead of mspe=no and -misel=no.
7778 2011-03-29 Mark Wielaard <mjw@redhat.com>
7780 * common.opt (fdebug-types-section): New flag.
7781 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7782 * dwarf2out.c (use_debug_types): New define.
7783 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7784 (print_die): Guard output of type unit signatures using
7786 (build_abbrev_table): Replace assert of dwarf_version >= 4
7787 with assert on use_debug_types.
7788 (size_of_die): Likewise.
7789 (unmark_dies): Likewise.
7790 (value_format): Decide AT_ref_external form on use_debug_types.
7791 (output_die): Replace dwarf_version version check guard with
7792 use_debug_types where appropriate.
7793 (modified_type_die): Likewise.
7794 (gen_reference_type_die): Likewise.
7795 (dwarf2out_start_source_file): Likewise.
7796 (dwarf2out_end_source_file): Likewise.
7797 (prune_unused_types_walk_attribs): Likewise.
7798 (dwarf2out_finish): Likewise.
7800 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7802 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7804 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7806 PR rtl-optimization/48332
7807 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7808 mode of input operand N and modeN to its actual mode.
7810 2011-03-30 Jeff Law <law@redhat.com>
7812 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7813 define accessor macro.
7814 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7815 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7816 (reg_equiv_init): Likewise.
7817 (reg_equivs_size): New variable.
7818 (reg_equiv_init_size): Remove.
7819 (allocate_initial_values): Move prototype to here from....
7820 * integrate.h (allocate_initial_values): Remove prototype.
7821 * integrate.c: Include reload.h.
7822 (allocate_initial_values): Corresponding changes.
7823 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7824 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7825 (update_equiv_regs): Corresponding changes.
7826 (ira): Corresponding changes.
7827 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7828 (push_secondary_reload): Corresponding changes.
7829 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7830 (make_memloc, find_reloads_address): Corresponding changes.
7831 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7832 (find_reloads_address_1): Corresponding changes.
7833 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7834 (refers_to_regno_for_reload_p): Corresponding changes.
7835 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7836 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7837 * reload1.c: Include ggc.h.
7838 (grow_reg_equivs): New function.
7839 (replace_pseudos_in, reload): Corresponding changes.
7840 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7841 (eliminate_regs_1, elimination_effects): Corresponding changes.
7842 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7843 (delete_output_reload): Likewise.
7844 * caller-save.c (mark_referenced_regs): Corresponding changes.
7845 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7846 * frv/predicates.md (frv_load_operand): Corresponding changes.
7847 * microblaze/microblaze.c (double_memory_operand): Corresponding
7849 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7850 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
7851 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
7852 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7853 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7855 * pa/pa.c (emit_move_sequence): Corresponding changes.
7856 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7858 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7861 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7862 structure modes. Don't check neon_vector_mem_operand for
7863 vector or structure modes.
7865 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7866 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7869 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7870 operand 1 and reshuffle the operands to match.
7871 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7873 2011-03-30 Christian Schüler <cschueler@gmx.de>
7876 * config/c.opt (F): Added 'Driver' to -F option.
7879 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7881 * config/darwin.opt: Added '-arch' option.
7883 2011-03-30 Nick Clifton <nickc@redhat.com>
7885 * config/rx/rx.md: Add peepholes and patterns to combine
7886 extending loads and simple arithmetic instructions.
7887 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
7888 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7889 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
7890 modes to use pre-decrement and post-increment addressing.
7891 (rx_is_restricted_memory_address): Add range checking of REG+INT
7893 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7894 (rx_memory_move_cost): Adjust cost of stores.
7895 (rx_adjust_insn_length): New function.
7897 2011-03-30 Jakub Jelinek <jakub@redhat.com>
7900 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7901 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7902 matching arg00/arg01 types.
7904 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7906 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7907 last_location to UNKNOWN_LOCATION.
7909 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7912 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7915 2011-03-30 Joseph Myers <joseph@codesourcery.com>
7916 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7919 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7921 (sparc_cpu): Likewise.
7922 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7925 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7929 PR rtl-optimization/48345
7930 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7931 hard regs for given mode from profitable regs when doing secondary
7934 2011-03-29 Jeff Law <law@redhat.com>
7937 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7938 do_not_duplicate field.
7939 (lookup_redirection_data): Corresponding changes.
7940 (create_duplicates): Always create a template block.
7941 (redirect_edges): Remove code which reused the original block
7942 when it was going to become unreachable code.
7943 (thread_block): Don't set do_not_duplicate field.
7945 2011-03-29 Joseph Myers <joseph@codesourcery.com>
7947 * lto-opts.c (register_user_option_p, lto_register_user_option):
7948 Make type argument unsigned.
7949 * lto-streamer.h (lto_register_user_option): Make type argument
7951 * opth-gen.awk: Make CL_* macros unsigned.
7952 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7953 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7954 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7955 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7956 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7957 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7958 (find_opt): Make lang_mask argument unsigned.
7960 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7962 PR rtl-optimization/48331
7963 PR rtl-optimization/48334
7964 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7965 for any used algorithm.
7967 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7969 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7972 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
7974 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7975 (alpha_option_override): Don't set alpha_sr_alias_set.
7976 (emit_frame_store_1): Use gen_frame_mem rather than calling
7978 (alpha_expand_epilogue): Ditto.
7980 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
7982 PR tree-optimization/48290
7983 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7984 vectorization, check that relevant phis in the basic block after
7985 the inner loop are really inner loop's exit phis.
7987 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7990 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7991 (cached_dw_loc_list_def): New structure.
7992 (cached_dw_loc_list): New typedef.
7993 (cached_dw_loc_list_table): New variable.
7994 (cached_dw_loc_list_table_hash): New function.
7995 (cached_dw_loc_list_table_eq): Likewise.
7996 (add_location_or_const_value_attribute): Take a bool cache_p.
7997 Cache the list when the parameter is true.
7998 (gen_formal_parameter_die): Update caller.
7999 (gen_variable_die): Likewise.
8000 (dwarf2out_finish): Likewise.
8001 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8002 while generating debug info for the decl.
8003 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8004 (dwarf2out_init): Initialize cached_dw_loc_list_table.
8005 (resolve_addr): Cache the result of resolving a chain of
8008 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
8010 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8011 conflict object hard regset nodes have intersecting hard reg sets.
8013 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8014 after regstat_init_n_sets_and_refs.
8016 * ira.c: Add more comments at the top.
8017 (setup_stack_reg_pressure_class, setup_pressure_classes):
8018 Add comments how we compute the register pressure classes.
8019 (setup_allocno_and_important_classes): Add more comments.
8020 (setup_class_translate_array, reorder_important_classes)
8021 (setup_reg_class_relations): Add comments.
8023 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
8026 * ira-color.c: Add 2011 to the Copyright line.
8027 (assign_hard_reg): Add more comments.
8028 (improve_allocation): Ditto.
8030 * ira-costs.c: Add 2011 to the Copyright line.
8031 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8033 (setup_regno_cost_classes_by_mode): Ditto.
8035 Initial patches from ira-improv branch:
8037 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8039 * ira-build.c (ira_create_object): Remove initialization of
8040 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
8041 (ira_create_allocno): Remove initialization of
8042 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8043 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8044 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8045 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8046 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8047 Initialize ALLOCNO_ADD_DATA.
8048 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8049 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8051 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
8052 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8054 * ira.c (ira_reallocate): Remove.
8055 (setup_pressure_classes): Call
8056 ira_init_register_move_cost_if_necessary. Use
8057 ira_register_move_cost instead of ira_get_register_move_cost.
8058 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8059 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8061 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8062 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8063 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8064 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8065 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8066 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8068 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8069 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8070 (struct allocno_color_data): New.
8071 (allocno_color_data_t): New typedef.
8072 (allocno_color_data): New definition.
8073 (ALLOCNO_COLOR_DATA): New macro.
8074 (struct object_color_data): New.
8075 (object_color_data_t): New typedef.
8076 (object_color_data): New definition.
8077 (OBJECT_COLOR_DATA): New macro.
8078 (update_copy_costs, calculate_allocno_spill_cost): Call
8079 ira_init_register_move_cost_if_necessary. Use
8080 ira_register_move_cost instead of ira_get_register_move_cost.
8081 (move_spill_restore, update_curr_costs): Ditto.
8082 (allocno_spill_priority): Make it inline.
8083 (color_pass): Allocate and free allocno_color_dat and object_color_data.
8084 (struct coalesce_data, coalesce_data_t): New.
8085 (allocno_coalesce_data): New definition.
8086 (ALLOCNO_COALESCE_DATA): New macro.
8087 (merge_allocnos, coalesced_allocno_conflict_p): Use
8088 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8089 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8090 (coalesce_allocnos): Ditto.
8091 (setup_coalesced_allocno_costs_and_nums): Ditto.
8092 (collect_spilled_coalesced_allocnos): Ditto.
8093 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8094 (setup_slot_coalesced_allocno_live_ranges): Ditto.
8095 (coalesce_spill_slots): Ditto.
8096 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
8097 free allocno_coalesce_data.
8099 * ira-conflicts.c: Fix formatting.
8100 (process_regs_for_copy): Call
8101 ira_init_register_move_cost_if_necessary. Use
8102 ira_register_move_cost instead of ira_get_register_move_cost.
8103 (build_object_conflicts): Optimize.
8105 * ira-costs.c (record_reg_classes): Optimize. Call
8106 ira_init_register_move_cost_if_necessary. Use
8107 ira_register_move_cost, ira_may_move_in_cost, and
8108 ira_may_move_out_cost instead of ira_get_register_move_cost and
8109 ira_get_may_move_cost.
8110 (record_address_regs): Ditto.
8111 (scan_one_insn): Optimize.
8112 (find_costs_and_classes): Optimize.
8113 (process_bb_node_for_hard_reg_moves): Call
8114 ira_init_register_move_cost_if_necessary. Use
8115 ira_register_move_cost instead of ira_get_register_move_cost.
8117 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8118 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8119 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8120 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8122 (ira_initiate_emit_data, ira_finish_emit_data)
8123 (create_new_allocno): New functions.
8124 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8125 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8126 Use ira_register_move_cost instead of ira_get_register_move_cost.
8128 * ira-int.h: Fix some comments.
8129 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8130 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8131 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8132 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
8134 (struct ira_allocno): Make mode and aclass a bitfield. Move other
8135 bitfield after mode. Make hard_regno a short int. Make
8136 hard_regno short. Remove first_coalesced_allocno and
8137 next_coalesced_allocno. Move mem_optimized_dest_p,
8138 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8139 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
8140 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8141 temp, colorable_p. Add new member add_data.
8142 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8143 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8144 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8145 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8146 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8147 (ALLOCNO_ADD_DATA): New macro.
8148 (ira_emit_data_t): New typedef.
8149 (struct ira_emit_data): New. Move mem_optimized_dest_p,
8150 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8151 from struct ira_allocno.
8152 (ALLOCNO_EMIT_DATA): New macro.
8153 (ira_allocno_emit_data, allocno_emit_reg): New.
8154 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8155 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8156 (OBJECT_ADD_DATA): New macro.
8157 (ira_reallocate): Remove.
8158 (ira_initiate_emit_data, ira_finish_emit_data): New.
8159 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8160 (ira_init_register_move_cost_if_necessary): New.
8161 (ira_object_conflict_iter_next): Merge into
8162 ira_object_conflict_iter_cond.
8163 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8165 * ira-live.c (process_single_reg_class_operands): Call
8166 ira_init_register_move_cost_if_necessary. Use
8167 ira_register_move_cost instead of ira_get_register_move_cost.
8169 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
8171 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8173 * ira-costs.c: Fix formatting.
8174 (cost_classes, cost_classes_num): Remove.
8175 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8176 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8177 (cost_classes_del, cost_classes_htab): New.
8178 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8179 (initiate_regno_cost_classes, setup_cost_classes): New.
8180 (setup_regno_cost_classes_by_aclass): New.
8181 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8182 (record_reg_classes): Use regno_cost_classes instead of
8183 cost_classes. Move checking opposite operand up.
8184 (record_address_regs): Use regno_cost_classes
8185 instead of cost_classes.
8186 (scan_one_insn): Ditto. Use always general register.
8187 (print_allocno_costs): Use regno_cost_classes instead of
8189 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
8190 (find_costs_and_classes): Set up cost classes for each registers.
8191 Use also their mode for this. Use regno_cost_classes instead of
8193 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8195 (free_ira_costs, ira_init_costs): Don't use cost_classes.
8196 (ira_costs, ira_set_pseudo_classes): Call
8197 initiate_regno_cost_classes and finish_regno_cost_classes.
8199 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8201 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8203 * target.def (ira_cover_classes): Remove.
8205 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8207 * doc/tm.texi.in: Ditto.
8209 * ira-conflicts.c: Remove mentioning cover classes from the file.
8210 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
8211 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
8213 * targhooks.c (default_ira_cover_classes): Remove.
8215 * targhooks.h (default_ira_cover_classes): Ditto.
8217 * haifa-sched.c: Remove mentioning cover classes from the file.
8218 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8219 ira_pressure_classes and ira_pressure_classes_num instead of
8220 ira_reg_class_cover_size and ira_reg_class_cover. Use
8221 sched_regno_pressure_class instead of sched_regno_cover_class.
8222 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8223 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8225 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
8226 classes from the file.
8227 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8228 (struct object_hard_regs, struct object_hard_regs_node): New.
8229 (struct ira_object): New members profitable_hard_regs,
8230 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8231 (struct ira_allocno): Rename cover_class to aclass. Rename
8232 cover_class_cost and updated_cover_class_cost to class_cost and
8233 updated_class_cost. Remove splay_removed_p and
8234 left_conflict_size. Add new members colorable_p.
8235 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8236 (ALLOCNO_COLORABLE_P): New macro.
8237 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8238 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8239 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8240 (OBJECT_...): Rename parameter C to O.
8241 (OBJECT_PROFITABLE_HARD_REGS): New macro.
8242 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8243 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8244 (struct target_ira_int): New members x_ira_max_memory_move_cost,
8245 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8246 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8247 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8248 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
8249 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
8250 x_ira_reg_class_subunion.
8251 (ira_max_memory_move_cost, ira_max_register_move_cost)
8252 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8253 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8254 (ira_important_class_nums, ira_reg_class_superunion): New macros.
8255 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8256 (ira_reg_class_union): Rename to ira_reg_class_subunion.
8257 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8258 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8259 (ira_tune_allocno_costs_and_cover_classes): Rename to
8260 ira_tune_allocno_costs.
8261 (ira_debug_hard_regs_forest): New.
8262 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8263 (ira_object_conflict_iter_next): Fix comments.
8264 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8265 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8266 cover_class to aclass.
8267 (ira_allocate_and_accumulate_costs): Ditto.
8268 (ira_allocate_and_set_or_copy_costs): Ditto.
8270 * opts.c (decode_options): Remove ira_cover_class check.
8272 * ira-color.c: Remove mentioning cover classes from the file. Use
8273 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8274 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8275 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8276 (splay-tree.h): Remove include.
8277 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8278 before copy_freq_compare_func.
8279 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8280 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8282 (hard_regs_roots, hard_regs_node_vec): Ditto.
8283 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8284 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8285 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8286 (create_new_object_hard_regs_node): Ditto.
8287 (add_new_object_hard_regs_node_to_forest): Ditto.
8288 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8289 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8291 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8292 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8293 (remove_unused_object_hard_regs_nodes): Ditto.
8294 (enumerate_object_hard_regs_nodes): Ditto.
8295 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8296 (object_hard_regs_subnode_t): Ditto.
8297 (struct object_hard_regs_subnode): Ditto.
8298 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8299 (setup_object_hard_regs_subnode_index): Ditto.
8300 (get_object_hard_regs_subnodes_num): Ditto.
8301 (form_object_hard_regs_nodes_forest): Ditto.
8302 (finish_object_hard_regs_nodes_tree): Ditto.
8303 (finish_object_hard_regs_nodes_forest): Ditto.
8304 (allocnos_have_intersected_live_ranges_p): Rename to
8305 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8306 (pseudos_have_intersected_live_ranges_p): Rename to
8307 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
8308 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8309 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8310 (update_copy_costs): Remove assert. Skip cost update if the hard
8311 reg does not belong the class.
8312 (assign_hard_reg): Process only profitable hard regs.
8313 (uncolorable_allocnos_num): Make it scalar.
8314 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8315 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8316 and ira_reg_class_max_nregs.
8317 (bucket_allocno_compare_func): Check frequency first.
8318 (sort_bucket): Add compare function as a parameter.
8319 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8320 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8321 (push_allocno_to_stack): Rewrite for checking new allocno
8323 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
8324 (push_only_colorable): Pass new parameter to sort_bucket.
8325 (push_allocno_to_spill): Remove.
8326 (allocno_spill_priority_compare): Make it inline and rewrite.
8327 (splay_tree_allocate, splay_tree_free): Remove.
8328 (allocno_spill_sort_compare): New function.
8329 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
8330 build and use splay tree. Choose first allocno in uncolorable
8331 allocno bucket to spill. Remove setting spill cost.
8332 (all_conflicting_hard_regs): Remove.
8333 (setup_allocno_available_regs_num): Check only profitable hard
8334 regs. Print info about hard regs nodes.
8335 (setup_allocno_left_conflicts_size): Remove.
8336 (put_allocno_into_bucket): Don't call
8337 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
8338 (improve_allocation): New.
8339 (color_allocnos): Call setup_profitable_hard_regs,
8340 form_object_hard_regs_nodes_forest, improve_allocation,
8341 finish_object_hard_regs_nodes_forest. Setup spill cost.
8342 (print_loop_title): Use pressure classes.
8343 (color_allocnso): Ditto.
8344 (do_coloring): Remove allocation and freeing splay_tree_node_pool
8345 and allocnos_for_spilling.
8346 (ira_sort_regnos_for_alter_reg): Don't setup members
8347 {first,next}_coalesced_allocno.
8348 (color): Remove allocating and freeing removed_splay_allocno_vec.
8349 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8350 prohibited_class_mode_regs.
8352 * ira-lives.c: Remove mentioning cover classes from the file. Fix
8354 (update_allocno_pressure_excess_length): Use pressure classes.
8355 (inc_register_pressure, dec_register_pressure): Check for pressure
8357 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8358 pressure class. Use ira_reg_class_nregs instead of
8359 ira_reg_class_max_nregs.
8360 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8361 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8362 (single_reg_class): Use ira_reg_class_nregs instead of
8363 ira_reg_class_max_nregs.
8364 (process_bb_node_lives): Use pressure classes.
8366 * ira-emit.c: Remove mentioning cover classes from the file. Use
8367 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
8368 (change_loop): Use pressure classes.
8369 (modify_move_list): Call ira_set_allocno_class instead of
8370 ira_set_allocno_cover_class.
8372 * ira-build.c: Remove mentioning cover classes from the file. Use
8373 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8374 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
8375 ALLOCNO_UPDATED_CLASS_COST instead of
8376 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
8377 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8378 (ira_create_allocno): Remove initialization of
8379 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
8380 ALLOCNO_COLORABLE_P.
8381 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8382 Update conflict regs for the objects.
8383 (create_cap_allocno): Remove assert. Don't propagate
8384 ALLOCNO_AVAILABLE_REGS_NUM.
8385 (ira_free_allocno_costs): New function.
8386 (finish_allocno): Change a part of code into call of
8387 ira_free_allocno_costs.
8388 (low_pressure_loop_node_p): Use pressure classes.
8389 (object_range_compare_func): Don't compare classes.
8390 (setup_min_max_conflict_allocno_ids): Ditto.
8392 * loop-invariant.c: Remove mentioning cover classes from the file.
8393 Use ira_pressure_classes and ira_pressure_classes_num instead of
8394 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
8395 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8396 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8397 Use reg_allocno_class instead of reg_cover_class.
8398 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8399 STACK_REG_COVER_CLASS.
8400 (get_regno_cover_class): Rename to get_regno_pressure_class.
8401 (move_loop_invariants): Initialize and finalize regstat.
8403 * ira.c: Remove mentioning cover classes from the file. Add
8404 comments about coloring without cover classes. Use ALLOCNO_CLASS
8405 instead of ALLOCNO_COVER_CLASS. Fix formatting.
8406 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8407 setup_class_subset_and_memory_move_costs.
8408 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8409 (setup_cover_and_important_classes): Rename to
8410 setup_allocno_and_important_classes.
8411 (setup_class_translate_array): New.
8412 (setup_class_translate): Call it for allocno and pressure classes.
8413 (cover_class_order): Rename to allocno_class_order.
8414 (comp_reg_classes_func): Use ira_allocno_class_translate instead
8415 of ira_class_translate.
8416 (reorder_important_classes): Set up ira_important_class_nums.
8417 (setup_reg_class_relations): Set up ira_reg_class_superunion.
8418 (print_class_cover): Rename to print_classes. Add parameter.
8419 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8420 Print pressure classes too.
8421 (find_reg_class_closure): Rename to find_reg_classes. Don't call
8422 setup_reg_subclasses.
8423 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8424 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8425 (setup_prohibited_class_mode_regs): Use
8426 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8427 (clarify_prohibited_class_mode_regs): New function.
8428 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8429 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8430 (ira_init_once): Initialize them.
8431 (free_register_move_costs): Process them.
8432 (ira_init): Move calls of find_reg_classes and
8433 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8434 Call clarify_prohibited_class_mode_regs.
8435 (ira_no_alloc_reg): Remove.
8436 (too_high_register_pressure_p): Use pressure classes.
8438 * sched-deps.c: Remove mentioning cover classes from the file.
8439 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
8440 ira_pressure_classes and ira_pressure_classes_num instead of
8441 ira_reg_class_cover_size and ira_reg_class_cover.
8442 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8443 sched_regno_pressure_class instead of sched_regno_cover_class.
8444 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
8445 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8447 * ira.h: Add 2010 to Copyright.
8448 (ira_no_alloc_reg): Remove external.
8449 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8450 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8451 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8452 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8453 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8454 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8455 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8456 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8457 x_ira_no_alloc_regs.
8458 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8459 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8460 ira_allocno_classes_num and ira_allocno_classes.
8461 (ira_class_translate): Rename to ira_allocno_class_translate.
8462 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8463 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8464 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8465 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8466 (ira_no_alloc_regs): New.
8468 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8469 classes from the file. Use ALLOCNO_CLASS instead of
8470 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8471 ALLOCNO_COVER_CLASS_COST.
8472 (regno_cover_class): Rename to regno_aclass.
8473 (record_reg_classes): Use ira_reg_class_subunion instead of
8474 ira_reg_class_union.
8475 (record_address_regs): Check overflow.
8476 (scan_one_insn): Ditto.
8477 (print_allocno_costs): Print total mem cost fore regional allocation.
8478 (print_pseudo_costs): Use REG_N_REFS.
8479 (find_costs_and_classes): Use classes intersected with them on the
8480 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8481 ira_reg_class_union. Use ira_allocno_class_translate and
8482 regno_aclass instead of ira_class_translate and regno_cover_class.
8483 Modify code for finding regno_aclass. Setup preferred classes for
8485 (setup_allocno_cover_class_and_costs): Rename to
8486 setup_allocno_class_and_costs. Use regno_aclass instead of
8487 regno_cover_class. Use ira_set_allocno_class instead of
8488 ira_set_allocno_cover_class.
8489 (init_costs, finish_costs): Use regno_aclass instead of
8491 (ira_costs): Use setup_allocno_class_and_costs instead of
8492 setup_allocno_cover_class_and_costs.
8493 (ira_tune_allocno_costs_and_cover_classes): Rename to
8494 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8495 by processing objects. Use ira_reg_class_max_nregs instead of
8496 ira_reg_class_nregs.
8498 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8500 * sched-int.h: Remove mentioning cover classes from the file.
8501 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8503 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8504 classes from the file.
8505 (struct reg_pref): Rename coverclass into allocnoclass.
8506 (reg_cover_class): Rename to reg_allocno_class.
8508 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8510 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8512 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8514 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8516 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8518 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8520 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8522 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8524 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8526 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8528 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8529 (i386_ira_cover_classes): Ditto.
8531 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8533 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8535 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8537 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8539 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8541 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8543 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8544 (mips_ira_cover_classes): Ditto.
8546 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8548 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8550 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8552 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8554 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8556 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8557 (IRA_COVER_CLASSES_VSX): Ditto.
8559 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8560 (rs6000_ira_cover_classes): Ditto.
8562 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8564 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8566 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8568 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8570 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8572 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8574 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8576 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8578 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8580 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8582 2011-03-29 Jakub Jelinek <jakub@redhat.com>
8585 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8586 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8587 dw_fde_unlikely_section_end_label, cold_in_std_section,
8588 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8589 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8591 (output_fde): Use dw_fde_second_{begin,end} if second is
8592 true, otherwise dw_fde_{begin,end}.
8593 (output_call_frame_info): Test dw_fde_second_begin != NULL
8594 instead of dw_fde_switched_sections.
8595 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8596 fields, initialize new fields. Initialize in_std_section
8597 unconditionally from the first partition.
8598 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8599 dw_fde_second_begin is non-NULL.
8600 (dwarf2out_switch_text_section): Stop initializing removed
8601 dw_fde_struct fields, initialize new fields, initialize
8602 also dw_fde_end here. Set dw_fde_switch_cfi even when
8603 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8604 (struct var_loc_list_def): Add last_before_switch field.
8605 (arange_table, arange_table_allocated, arange_table_in_use,
8606 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8607 (size_of_aranges): Count !in_std_section and !second_in_std_section
8608 hunks in fdes, instead of looking at arange_table_in_use.
8609 (output_aranges): Add aranges_length argument, don't call
8610 size_of_aranges here. Instead of using aranges_table*
8611 emit ranges for fdes when !in_std_section resp.
8612 !second_in_std_section.
8613 (dw_loc_list): Break ranges crossing section switch.
8614 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
8615 use dw_fde_second_end instead of dw_fde_end as end of last range.
8616 (gen_subprogram_die): Don't call add_arange. Use
8617 dw_fde_{begin,end} for first partition and if switched
8618 section dw_fde_second_{begin,end} for the second.
8619 (var_location_switch_text_section_1,
8620 var_location_switch_text_section): New functions.
8621 (dwarf2out_begin_function): Initialize cold_text_section even
8622 when function_section () isn't text_section.
8623 (prune_unused_types): Don't walk arange_table.
8624 (dwarf2out_finish): Don't needlessly test
8625 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8626 If info_section_emitted, call size_of_aranges and if it indicates
8627 non-empty .debug_aranges, call output_aranges with the computed
8628 size. Stop using removed dw_fde_struct fields, use
8629 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8633 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8634 create ENTRY_VALUE if incoming or address of incoming's MEM
8636 * dwarf2out.c (mem_loc_descriptor): Don't emit
8637 DW_OP_GNU_entry_value of DW_OP_fbreg.
8638 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8639 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8640 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8641 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8643 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8644 is a REG_P or MEM_P with REG_P address, compute hash directly
8645 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8646 (preserve_only_constants): Don't clear VALUES forwaring
8647 ENTRY_VALUE to some other VALUE.
8649 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8651 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8654 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8656 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8657 block before expanding the statement.
8658 (expand_gimple_stmt_1): Likewise. Set them here...
8659 (expand_gimple_stmt): ...and not here. Tidy.
8660 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8663 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8665 * Makefile.in: New rule for cprop.o.
8666 * gcse.c: Move constant/copy propagation to cprop.c.
8667 (compute_local_properties): Only handle expression tables.
8668 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8669 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8670 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8671 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8672 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8673 compute_cprop_data, find_used_regs, try_replace_reg,
8674 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8675 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8676 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8677 find_bypass_set, reg_killed_on_edge, bypass_block,
8678 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8679 execute_rtl_cprop, pass_rtl_cprop): Move to...
8680 * cprop.c: ...here. New file, constant/copy propagation for RTL
8681 moved from gcse.c to here with minor cleanups in duplicated code.
8683 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8685 * config/i386/i386.c (flag_opts): Fix a typo in
8686 -mavx256-split-unaligned-store.
8688 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8690 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8691 LIBCALL_VALUE): Remove macros.
8692 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8693 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8694 (h8300_function_value, h8300_libcall_value,
8695 h8300_function_value_regno_p): New functions.
8697 2011-03-28 Anatoly Sokolov <aesok@post.ru>
8699 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8701 2011-03-28 Jeff Law <law@redhat.com>
8703 * tree-ssa-threadupdate.c (redirect_edges): Call
8704 create_edge_and_update_destination_phis as needed.
8705 (create_edge_and_update_destination_phis): Accept new BB argument.
8706 All callers updated.
8707 (thread_block): Do not update the profile when threading around
8708 intermediate blocks.
8709 (thread_single_edge): Likewise.
8710 (determine_bb_domination_status): If BB is not a successor of the
8711 loop header, return NONDOMINATING.
8712 (register_jump_thread): Note when we register a jump thread around
8713 an intermediate block.
8714 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8715 (thread_across_edge): Use it.
8717 2011-03-28 Tristan Gingold <gingold@adacore.com>
8719 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8720 when for_return is 2.
8722 2011-03-28 Jeff Law <law@redhat.com>
8724 * var-tracking.c (canonicalize_values_mark): Delete unused
8726 (canonicalize_values_star, set_variable_part): Likewise.
8727 (clobber_variable_part, delete_variable_part): Likewise.
8729 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8731 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8733 2011-03-28 Martin Jambor <mjambor@suse.cz>
8735 * tree-inline.c (expand_call_inline): Do not check that destination
8737 (optimize_inline_calls): Assert that destination node is analyzed.
8738 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8739 not call tree_lowering_passes.
8740 * cgraph.h (cgraph_analyze_function): Declare.
8741 * cgraphunit.c (cgraph_analyze_function): Make public.
8743 2011-03-28 Joseph Myers <joseph@codesourcery.com>
8745 * config/sparc/sparc-opts.h: New.
8746 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8747 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8748 (sparc_option_override): Store processor_type enumeration rather
8749 than string in cpu_default. Remove name and enumeration from
8750 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8751 without using sparc_select. Use target_flags_explicit instead of
8753 * config/sparc/sparc.h (enum processor_type): Move to
8755 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8756 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8757 HeaderInclude entry.
8758 (mcpu=, mtune=): Use Var and Enum.
8759 (sparc_processor_type): New Enum and EnumValue entries.
8761 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8762 Iain Sandoe <iains@gcc.gnu.org>
8765 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8767 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8769 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8770 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8771 Insert new statements at it in lieu of STMT.
8772 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8773 * tree-vect-stmts.c (vectorizable_store): Likewise.
8774 (vectorizable_load): Likewise.
8776 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
8778 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8783 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8785 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8786 unaligned 256bit load/store.
8787 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8788 (*avx_movdqu<avxmodesuffix>): Likewise.
8790 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8793 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8794 * config/pa/pa.md (iordi3): Use new predicate in expander.
8797 2011-03-27 Anatoly Sokolov <aesok@post.ru>
8799 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
8800 FUNCTION_VALUE_REGNO_P): Remove macros.
8801 * config/mips/mips-protos.h (mips_function_value): Remove.
8802 * config/mips/mips.c (mips_function_value): Rename to...
8803 (mips_function_value_1): ... this. Make static. Handle receiving
8804 the function type in 'fn_decl_or_type' argument.
8805 (mips_function_value, mips_libcall_value,
8806 mips_function_value_regno_p): New function.
8807 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8808 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8810 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8812 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8813 and -mavx256-split-unaligned-store.
8814 (ix86_option_override_internal): Split 32-byte AVX unaligned
8815 load/store by default.
8816 (ix86_avx256_split_vector_move_misalign): New.
8817 (ix86_expand_vector_move_misalign): Use it.
8819 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8820 -mavx256-split-unaligned-store.
8822 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8823 256bit load/store. Generate unaligned store on misaligned memory
8825 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8827 (*avx_movdqu<avxmodesuffix>): Likewise.
8829 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8830 -mavx256-split-unaligned-store.
8832 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8835 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8838 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8840 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8841 opno arguments with an expand_operand. Use create_input_operand.
8842 (mips_prepare_builtin_target): Delete.
8843 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8845 (mips_expand_builtin_direct): Use create_output_operand and
8846 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8847 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8848 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8850 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
8852 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8854 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8856 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8858 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8859 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8860 basic blocks and call commit_edge_insertions directly.
8861 (fixup_abnormal_edges): Move from here to...
8862 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8863 on the edges and return whether some have actually been inserted.
8864 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8867 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
8869 PR rtl-optimization/48144
8870 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8871 (merge_expr_data): ... here.
8872 (av_set_intersect): Rename to av_set_code_motion_filter.
8873 Update all callers. Call merge_history_vect when an expression
8874 is found in both sets.
8875 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8877 2011-03-26 Alan Modra <amodra@gmail.com>
8879 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8880 cmodel medium addresses.
8881 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8882 64-bit gpr loads and stores.
8883 (rs6000_secondary_reload_ppc64): New function.
8884 * config/rs6000/rs6000-protos.h: Declare it.
8885 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8887 2011-03-26 Alan Modra <amodra@gmail.com>
8890 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8891 GNU Go in traceback table.
8893 2011-03-25 Richard Henderson <rth@redhat.com>
8895 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8896 if there are exactly 6 operands.
8897 (set_storage_via_setmem): Similarly.
8899 2011-03-25 Kai Tietz <ktietz@redhat.com>
8901 * collect2.c (write_c_file_stat): Handle backslash
8902 as right-hand directory separator.
8903 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8904 checking just for slash.
8905 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8906 instead of checking for trailing slash.
8907 * gcc.c (record_temp_file): Use filename_cmp instead
8909 (do_spec_1): Likewise.
8910 (replace_outfile_spec_function): Likewise.
8911 (is_directory): Use filename_ncmp instead of strncmp.
8912 (print_multilib_info): Likewise.
8913 * gcov.c (find_source): Use filename_cmp instead
8915 (make_gcov_file_name): Fix order of slash/backslash
8917 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8918 (add_standard_paths): Likewise.
8919 * mips-tfile.c (saber_stop): Handle backslash.
8920 * prefix.c (update_path): Use filename_ncmp instead of
8922 * profile.c (output_location): Use filename_cmp instead
8924 * read-md.c (handle_toplevel_file): Handle backslash.
8925 * tlink.c (frob_extension): Likewise.
8926 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8928 * tree-dump.c (dequeue_and_dump): Handle backslash.
8929 * tree.c (get_file_function_name): Likewise.
8930 * gengtype.c (read_input_list): Likewise.
8931 (get_file_realbasename): Likewise.
8932 (get_output_file_with_visibility): Use filename_cmp
8935 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8937 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8940 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8942 * fold-const.c (expr_location_or): New function.
8943 (fold_truth_not_expr): Call it.
8945 2011-03-25 Jeff Law <law@redhat.com>
8947 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8949 * c-family/c-common.c (def_fn_type): Likewise.
8950 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8951 * emit-rtl.c (gen_rtvec): Likewise.
8952 * lto/lto-lang.c (def_fn_type): Likewise.
8954 2011-03-25 Richard Guenther <rguenther@suse.de>
8956 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8957 also generate copies.
8958 (fini_copy_prop): Handle constant values properly.
8960 2011-03-25 Jakub Jelinek <jakub@redhat.com>
8962 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8963 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8964 (hash_loc_operands, compare_loc_operands): Handle
8965 DW_OP_GNU_entry_value.
8967 2011-03-25 Kai Tietz <ktietz@redhat.com>
8969 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8970 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8971 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8972 comment and use macro TARGET_64BIT_MS_ABI instead.
8973 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8974 and change default behavior for 32-bit MS_ABI.
8975 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8976 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8978 (ix86_cfun_abi): Likewise.
8979 (ix86_maybe_switch_abi): Adjust comment.
8980 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8981 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8982 instead of checking for SYSV_ABI.
8983 (ix86_nsaved_sseregs): Likewise.
8984 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8986 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8987 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8988 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8989 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8990 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8992 2011-03-25 Richard Guenther <rguenther@suse.de>
8994 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8995 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8996 (verify_gimple): Remove.
8997 * tree-cfg.c (verify_gimple_call): Merge verification
8999 (verify_gimple_phi): Merge verification from verify_stmts.
9000 (verify_gimple_label): New function.
9001 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9002 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9003 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9004 (verify_stmts): Rename to verify_gimple_in_cfg.
9005 (verify_gimple_in_cfg): New function.
9006 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9007 * tree-ssa.c (verify_ssa): Likewise.
9008 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9010 2011-03-25 Richard Guenther <rguenther@suse.de>
9012 * passes.c (init_optimization_passes): Add FRE pass after
9015 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
9016 Andrew Stubbs <ams@codesourcery.com>
9018 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9020 (arm_movdi_vfp_cortexa8): New pattern.
9021 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9022 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9023 instructions when tuning for Cortex-A8. Set attribute "arch".
9024 * config/arm/arm.md: Move include arm-tune.md up a bit.
9025 (define_attr "arch"): Add "onlya8" and "nota8" values.
9026 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9028 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9032 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9034 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9035 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9036 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9037 * passes.c (init_optimization_passes): Move
9038 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9040 2011-03-25 Kai Tietz <ktietz@redhat.com>
9042 * c-typeck.c (comptypes_internal): Replace target
9043 hook call of comp_type_attributes by version in tree.c file.
9044 * gimple.c (gimple_types_compatible_p_1): Likewise.
9045 * tree-ssa.c (useless_type_conversion_p): Likewise.
9046 * tree.c (build_type_attribute_qual_variant): Likewise.
9047 (attribute_value_equal): New static helper function.
9048 (comp_type_attributes): New function.
9049 (merge_attributes): Use attribute_value_equal for comparison.
9050 (attribute_list_contained): Likewise.
9051 * tree.h (comp_type_attributes): New prototype.
9053 2011-03-25 Richard Guenther <rguenther@suse.de>
9055 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9056 of complex types at -O0.
9057 (verify_gimple_assign_binary): Likewise.
9058 (verify_gimple_assign_ternary): Likewise.
9060 2011-03-24 Mark Wielaard <mjw@redhat.com>
9062 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9063 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9065 2011-03-24 Mark Wielaard <mjw@redhat.com>
9068 * dwarf2out.c (output_abbrev_section): Only write table when
9069 abbrev_die_table_in_use > 1.
9071 2011-02-24 Richard Henderson <rth@redhat.com>
9073 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9074 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9075 (alpha_expand_unaligned_load_words): Use extql.
9076 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9077 (emit_insxl): Handle all modes for consistency.
9079 2011-02-24 Richard Henderson <rth@redhat.com>
9081 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9082 (alpha_expand_unaligned_load): Likewise.
9083 (alpha_expand_unaligned_store): Likewise.
9084 (alpha_expand_unaligned_load_words): Likewise.
9085 (alpha_expand_unaligned_store_words): Likewise.
9086 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9087 (alpha_split_lock_test_and_set_12): Likewise.
9088 (print_operand, alpha_fold_builtin_extxx): Likewise.
9089 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9090 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9091 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9092 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9093 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9094 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9095 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9096 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9097 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9098 (extwl, extll, extql): Similarly.
9099 (inswh, inslh, insqh): Similarly.
9100 (mskbl, mskwl, mskll, mskql): Similarly.
9101 (mskwh, msklh, mskqh): Similarly.
9103 2011-02-24 Richard Henderson <rth@redhat.com>
9105 * config/alpha/alpha.md (attribute isa): Add er, ner.
9106 (attribute enabled): Handle them.
9107 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9109 2011-02-24 Richard Henderson <rth@redhat.com>
9111 * config/alpha/alpha.md (attribute isa): Add vms.
9112 (attribute enabled): Handle it.
9113 (*movsf): Merge *movsf_{nofix,fix,nofp}.
9114 (*movdf): Merge *movdf_{nofix,fix,nofp}.
9115 (*movtf): Rename from *movtf_internal for consistency.
9116 (*movsi): Merge with *movsi_nt_vms.
9117 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9118 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9119 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9120 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9122 2011-02-24 Richard Henderson <rth@redhat.com>
9124 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9125 (extendqisi2, extendhisi2): Likewise.
9126 (extendqidi2): Simplify BWX/non-BWX expansions.
9127 (extendhidi2): Similarly.
9129 2011-02-24 Richard Henderson <rth@redhat.com>
9131 * config/alpha/alpha.md (attribute isa): New.
9132 (attribute enabled): New.
9133 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9134 (zero_extendqisi2, zero_extendqidi2): Similarly.
9135 (zero_extendhisi2, zero_extendhidi2): Similarly.
9136 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9138 2011-02-24 Richard Henderson <rth@redhat.com>
9140 * config/alpha/predicates.md (input_operand): Revert last change;
9141 update comment to mention 32-bit VMS rather than Windows.
9143 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9145 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9146 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
9147 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9148 * passes.c (init_optimization_passes): Move
9149 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9151 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9153 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9155 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9157 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9160 2011-03-24 Jakub Jelinek <jakub@redhat.com>
9163 * simplify-rtx.c (simplify_const_unary_operation): Call
9164 real_convert when changing mode class with FLOAT_EXTEND.
9166 2011-03-24 Nick Clifton <nickc@redhat.com>
9168 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9169 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9170 * config/rx/rx.c (rx_option_override): Set align_jumps,
9171 align_loops and align_labels if not set by the user.
9172 (rx_align_for_label): New function.
9173 (rx_max_skip_for_label): New function.
9174 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9175 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9176 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9177 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9178 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9180 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9182 PR rtl-optimization/48263
9183 * optabs.c (expand_binop_directly): Reinstate convert_modes code
9184 and original commutative_p handling. Use maybe_gen_insn.
9186 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9188 * reload.c (find_reloads_subreg_address): Add address_reloaded
9189 parameter and return true there if the full address has been
9191 (find_reloads_toplev): Pass address_reloaded flag.
9192 (find_reloads_address_1): Don't use address_reloaded parameter.
9194 2011-03-24 Jeff Law <law@redhat.com>
9196 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9197 unused variable "ann".
9198 (remove_unused_locals): Likewise.
9200 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9203 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9206 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9208 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9209 for invalid symbolic addresses.
9210 (s390_secondary_reload): Don't use s390_check_symref_alignment for
9213 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9215 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9216 the argument in calls to fold_truth_not_expr.
9218 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9220 * tree.c (record_node_allocation_statistics): New function.
9221 (make_node_stat, copy_node_stat, build_string): Call it.
9222 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9223 (build1_stat, build_omp_clause): Likewise.
9225 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9227 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9230 2011-03-24 Richard Guenther <rguenther@suse.de>
9232 PR tree-optimization/48271
9233 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9234 blocks that still exist.
9236 2011-03-24 Richard Guenther <rguenther@suse.de>
9238 PR tree-optimization/48270
9239 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9240 not free datarefs before ddrs.
9242 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
9244 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9245 from the address built for a reference with variable offset.
9247 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
9250 * config/i386/i386.md (*movdf_internal_rex64): Do not split
9251 alternatives that can be handled with movq or movabsq insn.
9252 (*movdf_internal): Disable for !TARGET_64BIT.
9253 (*movdf_internal_nointeger): Ditto.
9254 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9256 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
9258 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9259 (FUNCTION_ARG_ADVANCE): Likewise.
9260 * tm.texi.in: Change references to them to hook references.
9261 * tm.texi: Regenerate.
9262 * targhooks.c (default_function_arg): Eliminate check for target macro.
9263 (default_function_incoming_arg): Likewise.
9264 (default_function_arg_advance): Likewise.
9265 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9266 (function_arg_advance): Likewise.
9267 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9269 2011-03-24 Richard Guenther <rguenther@suse.de>
9272 * tree-object-size.c (addr_object_size): Do not double-account
9273 for MEM_REF offsets.
9275 2011-03-24 Diego Novillo <dnovillo@google.com>
9277 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9278 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9279 (lto_input_data_block): Move from lto-opts.c. Make extern.
9281 (lto_input_string): Rename from input_string. Make extern.
9283 * lto-streamer-out.c (lto_output_string_with_length): Rename from
9284 output_string_with_length.
9285 Output 0 to indicate a non-NULL string. Update all callers to
9287 (lto_output_string): Rename from output_string. Make extern.
9289 (lto_output_decl_state_streams): Make extern.
9290 (lto_output_decl_state_refs): Make extern.
9291 * lto-streamer.h (lto_input_string): Declare.
9292 (lto_input_data_block): Declare.
9293 (lto_output_string): Declare.
9294 (lto_output_string_with_length): Declare.
9295 (lto_output_decl_state_streams): Declare.
9296 (lto_output_decl_state_refs): Declare.
9298 2011-03-24 Richard Guenther <rguenther@suse.de>
9300 PR tree-optimization/46562
9301 * tree.c (build_invariant_address): New function.
9302 * tree.h (build_invariant_address): Declare.
9303 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9304 a renamed function moved ...
9305 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9306 Take valueization callback parameter.
9307 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9308 * gimple-fold.h: New file.
9309 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9310 (ccp_fold, fold_const_aggregate_ref,
9311 fold_ctor_reference, fold_nonarray_ctor_reference,
9312 fold_array_ctor_reference, fold_string_cst_ctor_reference,
9313 get_base_constructor): Move ...
9314 * gimple-fold.c: ... here.
9315 (gimple_fold_stmt_to_constant_1): New function
9316 split out from ccp_fold. Take a valueization callback parameter.
9317 Valueize all operands.
9318 (gimple_fold_stmt_to_constant): New wrapper function.
9319 (fold_const_aggregate_ref_1): New function split out from
9320 fold_const_aggregate_ref. Take a valueization callback parameter.
9321 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9322 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9323 invariant POINTER_PLUS_EXPRs to invariant form.
9324 (vn_valueize): New function.
9325 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9326 * tree-vrp.c (vrp_valueize): New function.
9327 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9328 to fold statements to constants.
9329 * tree-ssa-pre.c (eliminate): Properly guard propagation of
9330 function declarations.
9331 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9332 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9334 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
9336 * config/h8300/predicates.md (jump_address_operand): Fix register
9339 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
9341 * doc/invoke.texi (max-stores-to-sink): Document.
9342 * params.h (MAX_STORES_TO_SINK): Define.
9343 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9344 if either vectorization or if-conversion is disabled.
9345 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9346 tree-vect-data-refs.c vect_equal_offsets.
9347 (dr_equal_offsets_p): New function.
9348 (find_data_references_in_bb): Remove static.
9349 * tree-data-ref.h (find_data_references_in_bb): Declare.
9350 (dr_equal_offsets_p): Likewise.
9351 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9352 (vect_drs_dependent_in_basic_block): Update calls to
9354 (vect_check_interleaving): Likewise.
9355 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9356 (cond_if_else_store_replacement): Rename to...
9357 (cond_if_else_store_replacement_1): ... this. Change arguments and
9359 (cond_if_else_store_replacement): New function.
9360 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9361 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9363 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
9366 * config/arm/arm.md (casesi): Use the gen_int_mode() function
9367 to subtract lower bound instead of GEN_INT().
9369 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
9374 * doc/extend.texi (Alignment): Move section to match order in TOC.
9375 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9376 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9378 2011-03-23 Jeff Law <law@redhat.com>
9380 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9381 before removing the edge.
9383 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9384 it may have been freed by redirect_branch_edge or
9385 redirect_edge_succ_nodup.
9387 2011-03-23 Richard Guenther <rguenther@suse.de>
9389 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9390 (check_va_list_escapes): Likewise.
9391 (check_all_va_list_escapes): Likewise.
9393 2011-03-23 Richard Guenther <rguenther@suse.de>
9395 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9396 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9397 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9398 (alias.o): Likewise.
9399 (ipa-type-escape.o): Remove.
9400 (ipa-struct-reorg.o): Likewise.
9401 (GTFILES): Remove ipa-struct-reorg.c.
9402 * alias.c: Do not include ipa-type-escape.h.
9403 * tree-ssa-alias.c: Likewise.
9404 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9405 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9406 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9407 and ipa-type-escape passes.
9408 * tree-pass.h (pass_ipa_type_escape): Remove.
9409 (pass_ipa_struct_reorg): Likewise.
9410 * ipa-struct-reorg.h: Remove.
9411 * ipa-struct-reorg.c: Likewise.
9412 * ipa-type-escape.h: Likewise.
9413 * ipa-type-escape.c: Likewise.
9414 * doc/invoke.texi (-fipa-struct-reorg): Remove.
9415 (--param struct-reorg-cold-struct-ratio): Likewise.
9416 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9417 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9418 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9420 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9422 * config/s390/2084.md: Enable all insn reservations also for z9_ec
9423 cpu attribute value.
9424 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9425 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9426 * config/s390/s390.c (processor_flags_table): New constant array.
9427 (s390_handle_arch_option): Remove.
9428 (s390_handle_option): Remove s390_handle_arch_option invocations
9429 and OPT_mwarn_framesize_ handling.
9430 (s390_option_override): Remove s390_handle_arch_option invocation.
9431 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9433 * config/s390/s390.md (cpu attribute): Add z9_ec value.
9434 * config/s390/s390.opt (s390_tune, s390_arch)
9435 (march=): Replace s390_arch_option enum and values with
9436 processor_type. Set variable name to s390_arch. Set
9437 initialization value.
9438 (mtune=): Replace s390_arch_option with processor_type. Set
9439 variable name to s390_tune. Set initialization value.
9441 2011-03-23 Julian Brown <julian@codesourcery.com>
9443 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9444 accesses which are not naturally aligned.
9446 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9449 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9451 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9453 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9454 parameter from "int" to "enum insn_code".
9455 (expand_operand_type): New enum.
9456 (expand_operand): New structure.
9457 (create_expand_operand): New function.
9458 (create_fixed_operand, create_output_operand): Likewise
9459 (create_input_operand, create_convert_operand_to): Likewise.
9460 (create_convert_operand_from, create_address_operand): Likewise.
9461 (create_integer_operand): Likewise.
9462 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9463 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9464 (expand_insn, expand_jump_insn): Likewise.
9465 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9466 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9467 (expand_movstr, expand_builtin___clear_cache): Likewise.
9468 (expand_builtin_lock_release): Likewise.
9469 * explow.c (allocate_dynamic_stack_space): Likewise.
9470 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9471 and use the default handling in that case.
9472 * expmed.c (check_predicate_volatile_ok): Delete.
9473 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9474 (emit_cstore): Likewise.
9475 * expr.c (emit_block_move_via_movmem): Likewise.
9476 (set_storage_via_setmem, expand_assignment): Likewise.
9477 (emit_storent_insn, try_casesi): Likewise.
9478 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9479 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9480 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9481 (expand_twoval_unop, expand_twoval_binop): Likewise.
9482 (expand_unop_direct, emit_indirect_jump): Likewise.
9483 (emit_conditional_move, vector_compare_rtx): Likewise.
9484 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9485 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9486 (expand_sync_lock_test_and_set): Likewise.
9487 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9488 (emit_unop_insn): Likewise.
9489 (expand_copysign_absneg): Change icode to an insn_code.
9490 (create_convert_operand_from_type): New function.
9491 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9492 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9493 (expand_insn, expand_jump_insn): Likewise.
9494 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9495 than const_int_operand for operand 2.
9497 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9499 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9502 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9504 * emit-rtl.c (emit_pattern_before_noloc): New function.
9505 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9506 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9507 (emit_pattern_after_noloc): New function.
9508 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9509 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9511 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9513 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9514 (__ffsDI2): Likewise.
9516 2011-03-22 Richard Henderson <rth@redhat.com>
9518 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9519 of !TARGET_ABI_OPEN_VMS.
9520 (alpha_trampoline_init, alpha_start_function): Likewise.
9521 (alpha_expand_epilogue, alpha_file_start): Likewise.
9522 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9523 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9524 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9525 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9526 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9530 * config/s390/s390-opts.h: New.
9531 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9532 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9533 s390_stack_guard): Remove.
9534 (s390_handle_arch_option): Return void. Take enum
9535 s390_arch_option value instead of string and searching array.
9536 (s390_handle_option): Don't assert that global structures are in
9537 use. Access variables via opts pointer. Use error_at. Don't use
9538 sscanf for -mstack-guard= or -mstack-size=. Update call to
9539 s390_handle_arch_option.
9540 (s390_option_override): Update call to s390_handle_arch_option.
9541 (s390_emit_prologue): Use %d format for s390_stack_size in
9542 diagnostic. Use %wd for HOST_WIDE_INT.
9543 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9544 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9545 * config/s390/s390.opt (config/s390/s390-opts.h): New
9546 HeaderInclude entry.
9547 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9548 s390_arch_flags, s390_warn_framesize): New Variable entries.
9549 (s390_arch_option): New Enum and EnumValue entries.
9550 (march=): Use Enum instead of Var.
9551 (mstack-guard=, mstack-size=): Use UInteger and Var.
9554 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9556 * config/score/score.c (score_handle_option): Don't assert that
9557 global structures are in use. Access target_flags via opts
9558 pointer. Use value of -march= option to determine target_flags
9560 * config/score/score.opt (march=): Use Enum.
9561 (score_arch): New Enum and EnumValue entries.
9563 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9565 * config/mep/mep.c (option_mtiny_specified): Remove.
9566 (mep_option_override): Move register handling for -mivc2 from
9567 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9568 instead of option_mtiny_specified.
9569 (mep_handle_option): Access target_flags via opts pointer. Don't
9570 assert that global structures are in use. Defer part of -mivc2
9571 handling and move it to mep_option_override.
9572 * config/mep/mep.opt (IVC2): New Mask entry.
9573 (mivc2): Use Var and Defer instead of Mask.
9575 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9577 * config/v850/v850-opts.h: New.
9578 * config/v850/v850.c (small_memory): Replace with
9579 small_memory_physical_max array. Make that array static const.
9580 (v850_handle_memory_option): Take integer value of argument. Take
9581 gcc_options pointer, option text and location. Return void.
9582 Update for changes to small memory structures.
9583 (v850_handle_option): Access target_flags via opts pointer. Don't
9584 assert that global structures are in use. Update calls to
9585 v850_handle_memory_option.
9586 (v850_encode_data_area): Update references to small memory settings.
9587 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9588 (enum small_memory_type): Move to v850-opts.h.
9589 * config/v850/v850.opt (config/v850/v850-opts.h): New
9590 HeaderInclude entry.
9591 (small_memory_max): New Variable entry.
9592 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9593 (mtda, mzda): Likewise.
9595 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9597 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9598 pointer. Don't assert that global structures are in use.
9600 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9602 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9603 via opts pointer. Don't assert that global structures are in use.
9605 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9607 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9608 (munix=93): Use Var.
9609 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9610 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9611 * config/pa/pa-opts.h: New.
9612 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9613 (pa_handle_option): Don't assert that global structures are in
9614 use. Access target_flags via opts pointer. Don't handle
9615 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9617 (pa_option_override): Handle deferred OPT_mfixed_range_.
9619 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9621 * config/mn10300/mn10300-opts.h: New.
9622 * config/mn10300/mn10300.c (mn10300_processor,
9623 mn10300_tune_string): Remove.
9624 (mn10300_handle_option): Don't assert that global structures are
9625 in use. Access mn10300_processor via opts pointer. Don't handle
9627 * config/mn10300/mn10300.h (enum processor_type): Move to
9629 (mn10300_processor): Remove.
9630 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9631 HeaderInclude entry.
9632 (mn10300_processor): New Variable entry.
9635 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9637 * config/microblaze/microblaze.c: Don't include opts.h.
9638 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9639 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9640 (mno-clearbss): Use Var and Warn.
9642 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9644 * config/m32r/m32r-opts.h: New.
9645 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9646 (m32r_handle_option): Don't assert that global structures are in
9647 use. Access target_flags and m32r_cache_flush_func via opts
9648 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9649 OPT_mno_flush_trap here.
9650 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9651 include of m32r-opts.h.
9652 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9653 HeaderInclude entry.
9654 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9655 (mmodel=): Use Enum and Var.
9656 (m32r_model): New Enum and EnumValue entries.
9657 (mno-flush-trap): Use Var.
9658 (msdata=): Use Enum and Var.
9659 (m32r_sdata): New Enum and EnumValue entries.
9661 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9663 * config/m32c/m32c.c: Don't include opts.h.
9664 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9665 m32c_handle_option): Remove.
9666 (m32c_option_override): Check global_options_set.x_target_memregs
9667 instead of target_memregs_set.
9668 * config/m32c/m32c.h (target_memregs): Remove.
9669 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9672 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9674 * config/iq2000/iq2000-opts.h: New.
9675 * config/iq2000/iq2000.c: Don't include opts.h.
9676 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9677 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9678 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9679 HeaderInclude entry.
9680 (iq2000_tune): New Variable entry.
9681 (march=): Add comment. Use Enum.
9682 (iq2000_arch): New Enum and EnumValue entries.
9683 (mcpu=): Use Enum and Var.
9684 (iq2000_tune): New Enum and EnumValue entries.
9686 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9688 * config/ia64/ia64-opts.h: New.
9689 * config/ia64/ia64.c (ia64_tune): Remove.
9690 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9692 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9693 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9694 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9695 HeaderInclude entry.
9696 (ia64_tune): New Variable entry.
9697 (mfixed-range=): Use Defer and Var.
9698 (mtune=): Use Enum and Var.
9699 (ia64_tune): New Enum and EnumValue entries.
9701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9703 * config/frv/frv-opts.h: New.
9704 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9706 (frv_cpu_type): Remove.
9707 * config/frv/frv.c: Don't include opts.h.
9708 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9709 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9710 (frv_cpu_type): New Variable entry.
9711 (frv_cpu): New Enum and EnumValue entries.
9713 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9715 * config/cris/cris.c (cris_handle_option): Access target_flags via
9716 opts pointer. Don't assert that global structures are in use.
9717 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9718 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9720 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9722 * config/bfin/bfin-opts.h: New.
9723 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9724 bfin_si_revision, bfin_workarounds): Remove.
9725 (bfin_cpus): Make static const.
9726 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9727 not bfin_lib_id_given.
9728 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9729 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9730 pointer. Use error_at. Don't assert that global structures are in use.
9731 * config/bfin/bfin.h: Include bfin-opts.h.
9732 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9733 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9734 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9735 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9738 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9740 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9741 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9742 or -msoft-float here.
9743 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9744 -msoft-float and -mhard-float.
9745 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9746 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9748 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9750 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9751 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9753 (LIBGCC_SPEC): Don't handle -msoft-float.
9754 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9756 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9758 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9759 -mfloat-abi=*, not -msoft-float and -mhard-float.
9760 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9762 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9763 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9764 mhard-float and msoft-float.
9765 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9766 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9767 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9768 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9770 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9771 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9773 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9775 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9778 2011-03-22 Richard Henderson <rth@redhat.com>
9780 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9781 TARGET_ABI_WINDOWS_NT.
9782 (alpha_output_function_end_prologue): Likewise.
9783 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9784 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9785 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9786 (trap, *movsi_nt_vms): Likewise.
9787 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9788 (*tablejump_osf_nt_internal): Remove.
9789 * config/alpha/predicates.md (input_operand): Only test Pmode.
9791 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9793 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9794 via opts pointer. Use error_at. Don't assert that global
9795 structures are in use.
9797 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9799 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9800 (ix86_handle_option): Access ix86_isa_flags and
9801 ix86_isa_flags_explicit via opts pointer. Don't assert that
9802 global structures are in use.
9803 (ix86_function_specific_save, ix86_function_specific_restore):
9804 Update ix86_isa_flags_explicit field name.
9805 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
9806 (ix86_isa_flags_explicit): Rename TargetSave entry to
9807 x_ix86_isa_flags_explicit.
9809 2011-03-22 Richard Henderson <rth@redhat.com>
9811 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9812 (alpha_option_override, direct_return): Likewise.
9813 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9814 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9815 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9816 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9817 (alpha_expand_epilogue, alpha_end_function): Likewise.
9818 (alpha_init_libfuncs): Likewise.
9819 (struct machine_function): Remove unicosmk members.
9820 (print_operand) ['t']: Remove.
9821 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9822 unicosmk_output_module_name, unicosmk_output_common,
9823 current_section_align, unicosmk_output_text_section_asm_op,
9824 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9825 unicosmk_section_type_flags, unicosmk_unique_section,
9826 unicosmk_asm_named_section, unicosmk_insert_attributes,
9827 unicosmk_output_align, unicosmk_defer_case_vector,
9828 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9829 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9830 unicosmk_output_ssib, unicosmk_add_call_info_word,
9831 unicosmk_extern_head, unicosmk_output_default_externs,
9832 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9833 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9834 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9835 * config/alpha/alpha-protos.h: Update.
9836 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9837 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9838 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9839 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9840 (*mulsi_se, mulvsi3): Likewise.
9841 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9842 (*divmodsi_internal, call, call_value, realign): Likewise.
9843 (moddi3, umoddi3): Likewise; remove duplicate expander.
9844 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9845 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9846 (*movdi_nofix): Remove r/U alternative.
9847 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9848 * config/alpha/constraints.md ("U"): Remove.
9849 * config/alpha/predicates.md (call_operand"): Don't test
9850 TARGET_ABI_UNICOSMK.
9852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9854 * target.def (handle_option): Take gcc_options and
9855 cl_decoded_option pointers and location_t.
9856 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9857 * doc/tm.texi: Regenerate.
9858 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9859 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9860 * lto-opts.c (lto_reissue_options): Generate option structure for
9861 targetm.handle_option call.
9862 * opts.c (target_handle_option): Update call to
9863 targetm.handle_option. Remove assertions about values now passed
9865 * targhooks.c (default_target_handle_option): New.
9866 * targhooks.h (default_target_handle_option): Declare.
9867 * config/alpha/alpha.c: Include opts.h.
9868 (alpha_handle_option): Update to new hook interface.
9869 * config/arm/arm.c: Include opts.h.
9870 (arm_handle_option): Update to new hook interface.
9871 * config/arm/t-arm (arm.o): Update dependencies.
9872 * config/bfin/bfin.c: Include opts.h.
9873 (bfin_handle_option): Update to new hook interface.
9874 * config/cris/cris.c: Include opts.h.
9875 (cris_handle_option): Update to new hook interface.
9876 * config/frv/frv.c: Include opts.h.
9877 (frv_handle_option): Update to new hook interface.
9878 * config/i386/i386.c: Include opts.h.
9879 (ix86_handle_option): Update to new hook interface.
9880 (ix86_valid_target_attribute_inner_p): Generate option structure
9881 for call to ix86_handle_option.
9882 * config/i386/t-i386 (i386.o): Update dependencies.
9883 * config/ia64/ia64.c: Include opts.h.
9884 (ia64_handle_option): Update to new hook interface.
9885 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9886 * config/iq2000/iq2000.c: Include opts.h.
9887 (iq2000_handle_option): Update to new hook interface.
9888 * config/m32c/m32c.c: Include opts.h.
9889 (m32c_handle_option): Update to new hook interface.
9890 * config/m32r/m32r.c: Include opts.h.
9891 (m32r_handle_option): Update to new hook interface.
9892 * config/m68k/m68k.c: Include opts.h.
9893 (m68k_handle_option): Update to new hook interface.
9894 * config/mep/mep.c: Include opts.h.
9895 (mep_handle_option): Update to new hook interface.
9896 * config/microblaze/microblaze.c: Include opts.h.
9897 (microblaze_handle_option): Update to new hook interface.
9898 * config/mips/mips.c: Include opts.h.
9899 (mips_handle_option): Update to new hook interface.
9900 * config/mn10300/mn10300.c: Include opts.h.
9901 (mn10300_handle_option): Update to new hook interface.
9902 * config/pa/pa.c: Include opts.h.
9903 (pa_handle_option): Update to new hook interface.
9904 * config/pdp11/pdp11.c: Include opts.h.
9905 (pdp11_handle_option): Update to new hook interface.
9906 * config/rs6000/rs6000.c: Include opts.h.
9907 (rs6000_handle_option): Update to new hook interface.
9908 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9909 * config/rx/rx.c: Include opts.h.
9910 (rx_handle_option): Update to new hook interface.
9911 * config/s390/s390.c: Include opts.h.
9912 (s390_handle_option): Update to new hook interface.
9913 * config/score/score.c: Include opts.h.
9914 (score_handle_option): Update to new hook interface.
9915 * config/sh/sh.c: Include opts.h.
9916 (sh_handle_option): Update to new hook interface.
9917 * config/sparc/sparc.c: Include opts.h.
9918 (sparc_handle_option): Update to new hook interface.
9919 * config/v850/v850.c: Include opts.h.
9920 (v850_handle_option): Update to new hook interface.
9922 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9924 * gcc.c (driver_unknown_option_callback): Only permit and save
9925 unknown -Wno- options.
9926 (driver_wrong_lang_callback): Save options directly instead of via
9927 driver_unknown_option_callback.
9929 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9931 * combine.c (simplify_set): Try harder to find the best CC mode when
9932 simplifying a nested COMPARE on the RHS.
9934 2011-03-22 Joseph Myers <joseph@codesourcery.com>
9936 * config/alpha/gnu.h: Remove.
9937 * config/arc: Remove directory.
9938 * config/arm/netbsd.h: Remove.
9939 * config/arm/t-pe: Remove.
9940 * config/crx: Remove directory.
9941 * config/i386/netbsd.h: Remove.
9942 * config/m68hc11: Remove directory.
9943 * config/m68k/uclinux-oldabi.h: Remove.
9944 * config/mcore/mcore-pe.h: Remove.
9945 * config/mcore/t-mcore-pe: Remove.
9946 * config/netbsd-aout.h: Remove.
9947 * config/rs6000/gnu.h: Remove.
9948 * config/sh/sh-symbian.h: Remove.
9949 * config/sh/symbian-base.c: Remove.
9950 * config/sh/symbian-c.c: Remove.
9951 * config/sh/symbian-cxx.c: Remove.
9952 * config/sh/symbian-post.h: Remove.
9953 * config/sh/symbian-pre.h: Remove.
9954 * config/sh/t-symbian: Remove.
9955 * config/svr3.h: Remove.
9956 * config/vax/netbsd.h: Remove.
9957 * config.build: Don't handle i[34567]86-*-pe.
9958 * config.gcc: Remove handling of deprecations for most deprecated
9960 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9961 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9962 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9963 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9964 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9965 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9967 * config.host: Don't handle i[34567]86-*-pe.
9968 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9969 (ASM_SPEC32): Don't handle -mcall-gnu.
9970 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9972 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9973 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9974 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9975 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9976 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9977 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9978 conditional on SYMBIAN.
9979 * configure.ac: Don't handle powerpc*-*-gnu*.
9980 * configure: Regenerate.
9981 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9982 * doc/install-old.texi (m6811, m6812): Don't mention.
9983 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9984 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9985 (m68k-uclinuxoldabi): Don't mention.
9986 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9988 (-mcall-gnu): Remove.
9989 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9990 families): Remove constraint documentation.
9992 2011-03-22 Marius Strobl <marius@FreeBSD.org>
9994 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9995 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9996 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9998 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10001 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10002 vector when peeking at the next token for vector, don't expand the
10005 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
10007 * config/avr/avr-protos.h (expand_epilogue): Change prototype
10008 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10009 * config/avr/avr.c (init_cumulative_args)
10010 (avr_function_arg_advance): Use it.
10011 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10013 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10014 (avr_function_ok_for_sibcall): ...this new function.
10015 (avr_lookup_function_attribute1): New static Function.
10016 (avr_naked_function_p, interrupt_function_p)
10017 (signal_function_p, avr_OS_task_function_p)
10018 (avr_OS_main_function_p): Use it.
10019 * config/avr/avr.md ("sibcall", "sibcall_value")
10020 ("sibcall_epilogue"): New expander.
10021 ("*call_insn", "*call_value_insn"): New insn.
10022 ("call_insn", "call_value_insn"): Remove
10023 ("call", "call_value", "epilogue"): Change expander to handle
10026 2011-03-21 Nick Clifton <nickc@redhat.com>
10028 * doc/invoke.texi (Overall Options): Move closing brace to end of
10030 (Optimization Options): Add missing @gol.
10031 (Directory Options): Likewise.
10032 (i386 and x86-64 Options): Likewise.
10033 (RS6000 and PowerPC Options): Likewise.
10034 (i386 and x86-64 Windows Options): Likewise.
10035 (V850 Options): Add text missing from descriptions.
10037 2011-03-22 Richard Henderson <rth@redhat.com>
10039 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10040 (avr_incoming_return_addr_rtx): New.
10041 (emit_push_byte): New.
10042 (expand_prologue): Use it. Remove incorrect dwarf annotation for
10043 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
10044 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
10045 (emit_pop_byte): New.
10046 (expand_epilogue): Use it. Pop frame pointer by bytes.
10047 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10048 (INCOMING_RETURN_ADDR_RTX): New.
10049 (INCOMING_FRAME_SP_OFFSET): New.
10050 (ARG_POINTER_CFA_OFFSET): New.
10051 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10052 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10055 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10057 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10059 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10060 (FUNCTION_ARG_ADVANCE): Likewise.
10061 * tm.texi.in: Change references to them to hook references.
10062 * tm.texi: Regenerate.
10063 * targhooks.c (default_function_arg): Eliminate check for target
10065 (default_function_incoming_arg): Likewise.
10066 (default_function_arg_advance): Likewise.
10067 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10068 (function_arg_advance): Likewise.
10069 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10071 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10073 * tree.c (build_call_1): New function.
10074 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10076 2011-03-22 Richard Guenther <rguenther@suse.de>
10078 PR tree-optimization/48228
10079 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10080 for single-arg PHIs.
10082 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
10084 PR rtl-optimization/48143
10085 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10086 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10087 sse2_cvtps2pd): Likewise.
10089 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10091 * recog.c (canonicalize_change_group): Use validate_unshare_change.
10093 2011-03-22 Richard Guenther <rguenther@suse.de>
10095 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10096 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10097 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10098 and REALIGN_LOAD_EXPR.
10099 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10100 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10101 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10102 DOT_PROD_EXPR case ...
10103 (expand_expr_real_2): ... here.
10104 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10105 and REALIGN_LOAD_EXPR.
10106 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10107 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10108 (vect_create_epilog_for_reduction): Likewise.
10109 (vectorizable_reduction): Likewise.
10110 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10111 * tree-vect-stmts.c (vectorizable_load): Likewise.
10113 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10115 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10117 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10119 * config/s390/s390.c (s390_delegitimize_address): Fix offset
10120 handling for PLTOFF/GOTOFF.
10122 2011-03-22 Nick Clifton <nickc@redhat.com>
10124 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10125 trailing backslash from the end of the macro definition.
10127 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10129 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10132 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
10134 * expr.h (prepare_operand): Move to...
10135 * optabs.h (prepare_operand): ...here and change the insn code
10136 parameter from "int" to "enum insn_code".
10137 (insn_operand_matches): Declare.
10138 * expr.c (init_expr_target): Use insn_operand_matches.
10139 (compress_float_constant): Likewise.
10140 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10141 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10142 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10143 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10145 (gen_cond_trap): Likewise.
10146 (prepare_operand): Likewise. Change icode to an insn_code.
10147 (insn_operand_matches): New function.
10148 * reload.c (find_reloads_address_1): Use insn_operand_matches.
10149 * reload1.c (gen_reload): Likewise.
10150 * targhooks.c (default_secondary_reload): Likewise.
10152 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10154 * config/alpha/alpha.md (unspec): New define_c_enum.
10157 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
10160 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10161 between a call and its CALL_ARG_LOCATION note.
10163 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
10165 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10167 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10171 * c-common.c (shorten_compare): If primopN is first sign-extended
10172 to opN and then zero-extended to result type, set primopN to opN.
10174 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
10176 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10177 for barrier handlers.
10179 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10181 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10182 UNSPEC constants to be in the unspec enumeration, and redefine
10183 all UNSPECV constants to be in the unspecv enumeration, so that
10184 dumps print which unspec/unspec_volatile this is.
10185 * config/rs6000/vector.md (UNSPEC_*): Ditto.
10186 * config/rs6000/paired.md (UNSPEC_*): Ditto.
10187 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10188 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10189 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10191 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10192 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10193 UNSPECV_LWSYNC, since these are used as unspec_volatile.
10194 * config/rs6000/sync.md (isync, lwsync): Ditto.
10196 2011-03-21 Richard Guenther <rguenther@suse.de>
10198 * params.def (lto-min-partition): Fix typo.
10200 2011-03-21 Richard Guenther <rguenther@suse.de>
10203 * c-decl.c (grokdeclarator): Drop to the main variant only
10204 for array types. Drop flag_gen_aux_info check.
10206 2011-03-21 Richard Guenther <rguenther@suse.de>
10208 PR translation/47911
10209 * params.def (lto-partitions): Fix typo.
10210 (lto-min-partition): Fix wording.
10212 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
10214 * config/rs6000/t-freebsd: Remove duplication from file.
10216 2011-03-21 Richard Guenther <rguenther@suse.de>
10218 PR middle-end/47661
10219 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10221 2011-03-21 Richard Guenther <rguenther@suse.de>
10224 * params.def (lto-partitions): Require at least 1 partition.
10226 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10228 * gthr-solaris.h: Remove.
10229 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10230 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10231 (LIB_SPEC): Likewise.
10232 * config/sol2.opt (threads): Remove.
10233 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10234 (sparc*-*-solaris2*): Likewise.
10235 * configure.ac (enable_threads): Enable solaris support.
10236 * configure: Regenerate.
10237 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10238 * doc/install.texi (Configuration, --enable-threads=lib): Remove
10241 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10243 * config.gcc: Obsolete *-*-solaris2.8*.
10244 * doc/install.texi (Specific, *-*-solaris2*): Document it.
10246 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10249 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10250 reference. Solaris 8 perl works.
10252 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10255 * doc/install.texi (Prerequisites): Move jar etc. up.
10256 Explain support library version requirements.
10258 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10261 * doc/install.texi (Prerequisites): Move Perl to build
10262 requirements. Always necessary on Solaris 2 with Sun ld.
10264 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10266 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10268 (Specific, i?86-*-solaris2.[89]): Likewise.
10269 (Specific, i?86-*-solaris2.10): Likewise.
10270 (Specific, mips-sgi-irix6): Likewise.
10271 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10272 Update for binutils 2.21.
10274 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10276 * configure.ac (gcc_cv_lto_plugin): Fix typo.
10277 Allow -fuse-linker-plugin for non-default plugin linker.
10278 * configure: Regenerate.
10280 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
10283 * gengtype.c (files_rules): Added rule for cp/parser.h.
10285 2011-03-21 Jakub Jelinek <jakub@redhat.com>
10288 * config/s390/s390.c (s390_delegitimize_address): Don't call
10289 lowpart_subreg if orig_x has BLKmode.
10291 2011-03-21 Kai Tietz <ktietz@redhat.com>
10294 * doc/plugins.texi: Adjust documentation for plugin register_callback.
10295 * tree.h (attribute_spec): Add new member affects_type_identity.
10296 * attribs.c (empty_attribute_table): Adjust attribute_spec
10298 * config/alpha/alpha.c: Likewise.
10299 * config/arc/arc.c: Likewise.
10300 * config/arm/arm.c: Likewise.
10301 * config/avr/avr.c: Likewise.
10302 * config/bfin/bfin.c: Likewise.
10303 * config/crx/crx.c: Likewise.
10304 * config/darwin.h: Likewise.
10305 * config/h8300/h8300.c: Likewise.
10306 * config/i386/cygming.h: Likewise.
10307 * config/i386/i386.c: Likewise.
10308 * config/ia64/ia64.c: Likewise.
10309 * config/m32c/m32c.c: Likewise.
10310 * config/m32r/m32r.c: Likewise.
10311 * config/m68hc11/m68hc11.c: Likewise.
10312 * config/m68k/m68k.c: Likewise.
10313 * config/mcore/mcore.c: Likewise.
10314 * config/mep/mep.c: Likewise.
10315 * config/microblaze/microblaze.c: Likewise.
10316 * config/mips/mips.c: Likewise.
10317 * config/rs6000/rs6000.c: Likewise.
10318 * config/rx/rx.c: Likewise.
10319 * config/sh/sh.c: Likewise.
10320 * config/sol2.h: Likewise.
10321 * config/sparc/sparc.c: Likewise.
10322 * config/spu/spu.c: Likewise.
10323 * config/stormy16/stormy16.c: Likewise.
10324 * config/v850/v850.c: Likewise.
10326 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
10328 * simplify-rtx.c (simplify_binary_operation_1): Handle
10329 (xor (and A B) C) case when B and C are both constants.
10331 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
10333 * tree-dfa.c (add_referenced_var): Fix typo in comment.
10335 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
10338 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10340 2011-03-20 Jakub Jelinek <jakub@redhat.com>
10342 PR rtl-optimization/48156
10343 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10344 assume df and df_lr are not NULL.
10346 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10349 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10350 between a call and its CALL_ARG_LOCATION note.
10352 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10355 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10356 between a call and its corresponding CALL_ARG_LOCATION note.
10358 2011-03-19 Anatoly Sokolov <aesok@post.ru>
10360 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10361 instead of loop. Use HARD_REGISTER_NUM_P predicate.
10362 * haifa-sched.c (setup_ref_regs): Ditto.
10363 * caller-save.c (add_used_regs_1): Ditto.
10364 * dse.c (look_for_hardregs): Ditto.
10365 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10366 * sched-rgn.c (check_live_1): Ditto.
10368 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10370 * c-decl.c (diagnose_mismatched_decls): Give an error for
10371 redefining a typedef with variably modified type.
10373 2011-03-18 Joseph Myers <joseph@codesourcery.com>
10375 * c-decl.c (grokfield): Don't allow typedefs for structures or
10376 unions with no tag by default.
10377 * doc/extend.texi (Unnamed Fields): Update.
10379 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
10381 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10382 Rewrite using indirect functions.
10383 (lwp_slwpcb): Ditto.
10384 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10385 (avx_vinsertf128<mode>): Ditto.
10387 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10389 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10392 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10394 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10395 splitting between a call and its corresponding CALL_ARG_LOCATION note.
10397 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10399 PR rtl-optimization/48170
10400 * gcse.c (hoist_code): Remove bogus asserts.
10402 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
10404 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10405 computation for prologue/epilogue.
10407 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10409 * Makefile.in (check-consistency): Remove.
10411 2011-03-18 Jakub Jelinek <jakub@redhat.com>
10414 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10415 arange_table_in_use is 0, but either text_section_used or
10416 cold_text_section_used is true. Don't call it if
10417 !info_section_emitted.
10419 2011-03-18 Anatoly Sokolov <aesok@post.ru>
10421 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10422 FUNCTION_VALUE_REGNO_P): Remove.
10423 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10425 * config/avr/avr.c (avr_ret_register): Make static inline.
10426 (avr_function_value_regno_p): New function.
10427 (avr_libcall_value): Make static. Add 'func' argument.
10428 (avr_function_value): Make static. Rename 'func' argument to
10429 'fn_decl_or_type', forward it to avr_libcall_value. Call
10430 avr_ret_register function instead of RET_REGISTER macro.
10431 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10433 2011-03-18 Jason Merrill <jason@redhat.com>
10436 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10438 2011-03-18 Richard Guenther <rguenther@suse.de>
10440 * doc/install.texi (--enable-gold): Remove.
10441 (--with-plugin-ld): Document.
10442 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10444 2011-03-18 Andrew Pinski <pinskia@gmail.com>
10446 PR middle-end/47790
10447 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10448 again after expansion changes.
10450 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10452 * combine.c (try_combine): Do simplification only call of
10453 subst() on i2 even when i1 is present. Update comments.
10455 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10457 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10458 and UNSPEC_PCREL_SYMOFF.
10460 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10462 * config/s390/s390.md: Use define_c_enum for the unspec constant
10465 2011-03-18 Richard Henderson <rth@redhat.com>
10466 Jakub Jelinek <jakub@redhat.com>
10469 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10470 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10472 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10474 PR middle-end/47725
10475 * combine.c (cant_combine_insn_p): Don't check zero/sign
10476 extended hard registers.
10478 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10480 PR middle-end/47725
10481 * combine.c (cant_combine_insn_p): Check zero/sign extended
10484 2011-03-17 Anatoly Sokolov <aesok@post.ru>
10486 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10487 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10488 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10489 Change return type to bool.
10490 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10492 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10495 * var-tracking.c (prepare_call_arguments): If CALL target
10496 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10497 pc instead of looking it up using cselib_lookup and use
10498 Pmode for it if x has VOIDmode.
10499 * dwarf2out.c (gen_subprogram_die): If also both first and
10500 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10503 * function.c (assign_parms): For data.passed_pointer parms
10504 use MEM of data.entry_parm instead of data.entry_parm itself
10505 as DECL_INCOMING_RTL.
10506 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10507 also when passed and declared mode is the same, DECL_RTL
10508 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10511 2011-03-16 Jeff Law <law@redhat.com>
10513 PR rtl-optimization/37273
10514 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10515 handle them like argument loads from stack slots. Do not double
10516 count memory for memory constants and argument loads from stack slots.
10518 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10521 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10523 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10526 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10528 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10531 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10533 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10534 Clear call_arg_locations and call_arg_loc_last always.
10536 PR middle-end/48152
10537 * var-tracking.c (prepare_call_arguments): If argument needs to be
10538 passed by reference, adjust argtype and mode.
10540 2011-03-17 Richard Guenther <rguenther@suse.de>
10542 PR middle-end/48134
10543 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10544 a value make sure to fold the statement.
10546 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10549 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10550 return condition with !cfun->calls_alloca.
10552 2011-03-17 Richard Guenther <rguenther@suse.de>
10555 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10556 origin for decls in other ltrans units.
10557 (input_varpool_node): Likewise.
10559 2011-03-17 Richard Guenther <rguenther@suse.de>
10561 PR middle-end/48165
10562 * tree-object-size.c (compute_object_offset): Properly return
10563 the offset operand of MEM_REFs as sizetype.
10565 2011-03-17 Jakub Jelinek <jakub@redhat.com>
10567 PR rtl-optimization/48141
10568 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10569 * dse.c: Include params.h.
10570 (active_local_stores_len): New variable.
10571 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10573 (record_store, check_mem_read_rtx): Decrease it when removing
10575 (scan_insn): Likewise. Increase it when adding to chain, if it
10576 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10577 set active_local_stores to NULL before the addition.
10578 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10580 PR rtl-optimization/48141
10581 * dse.c (record_store): If no positions are needed in an insn
10582 that cannot be deleted, at least unchain it from active_local_stores.
10584 2011-03-16 Dodji Seketeli <dodji@redhat.com>
10587 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10588 (lookup_type_die_strip_naming_typedef): ... here.
10589 (get_context_die): Use it.
10590 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10591 the anonymous struct named by the naming typedef.
10593 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10596 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10597 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10599 2011-03-16 Jeff Law <law@redhat.com>
10601 * tree-vrp.c (identify_jump_threads): Slightly simplify type
10602 check for operands of conditional. Allow type to be a pointer.
10604 2011-03-16 Richard Guenther <rguenther@suse.de>
10606 PR tree-optimization/48149
10607 * fold-const.c (fold_binary_loc): Fold
10608 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10610 2011-03-16 Richard Guenther <rguenther@suse.de>
10612 PR tree-optimization/26134
10613 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10614 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10615 (non_rewritable_mem_ref_base): Handle complex type component
10616 accesses, constrain offsets for vector and complex extracts
10619 2011-03-16 Richard Guenther <rguenther@suse.de>
10621 PR tree-optimization/48146
10622 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10623 operands avoiding the need for renaming.
10625 2011-03-16 Richard Guenther <rguenther@suse.de>
10627 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10628 constant folding. Move MEM_REF canonicalization first.
10629 Rely on fold_const_aggregate_ref for initializer folding.
10630 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10632 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10634 PR middle-end/48136
10635 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10636 arg0/arg1 or their arguments are always fold converted to matching
10639 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10642 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10645 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10646 Handle in-tree gold.
10647 (ld_vers): Extract binutils version for gold.
10648 (gcc_cv_ld_hidden): Handle gold here.
10649 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10650 * configure: Regenerate.
10651 * config.in: Regenerate.
10652 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10653 -fuse-linker-plugin otherwise.
10654 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10655 (LINK_COMMAND_SPEC): Use it.
10656 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10658 2011-03-16 Jakub Jelinek <jakub@redhat.com>
10660 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10661 * calls.c: Remove debug.h include.
10662 (emit_call_1): Don't call virtual_call_token debug hook.
10663 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10664 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10665 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10666 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10667 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10668 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10669 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10670 dwarf2out_virtual_call): Remove.
10671 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10672 copy_call_info and virtual_call hooks.
10673 (dwarf2out_init): Don't initialize vcall_insn_table,
10674 debug_dcall_section and debug_vcall_section.
10675 (prune_unused_types): Don't mark nodes from dcall_table.
10676 (dwarf2out_finish): Don't output dcall or vcall tables.
10677 * final.c (final_scan_insn): Don't call direct_call or
10678 virtual_call debug hooks.
10679 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10680 virtual_call_token, copy_call_info and virtual_call hooks.
10681 (debug_nothing_uid): Remove prototype.
10682 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10683 copy_call_info and virtual_call hooks.
10684 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10685 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10686 * debug.c (do_nothing_debug_hooks): Likewise.
10687 (debug_nothing_uid): Remove.
10688 * doc/invoke.texi (-fenable-icf-debug): Remove.
10689 * common.opt (-fenable-icf-debug): Likewise.
10691 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10692 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10693 call's MEM. Handle functions returning aggregate through a hidden
10694 first pointer. For virtual calls add clobbered pc to call arguments
10696 * dwarf2out.c (gen_subprogram_die): Emit
10697 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10701 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10702 * rtl.h (ENTRY_VALUE_EXP): Define.
10703 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10704 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10705 * print-rtl.c (print_rtx): Likewise.
10706 * gengtype.c (adjust_field_rtx_def): Likewise.
10707 * var-tracking.c (vt_add_function_parameter): Adjust
10708 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10709 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10710 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10711 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10712 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10714 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10715 Call var_location debug hook even on CALL_INSNs.
10716 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10717 * rtl.def (ENTRY_VALUE): New.
10718 * dwarf2out.c: Include cfglayout.h.
10719 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10720 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10721 (struct call_arg_loc_node): New type.
10722 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10723 tail_call_site_count): New variables.
10724 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10725 DW_TAG_GNU_call_site_parameter.
10726 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10727 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10728 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10729 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10730 and DW_AT_GNU_all_source_call_sites.
10731 (mem_loc_descriptor): Handle ENTRY_VALUE.
10732 (add_src_coords_attributes): Don't add enything if
10733 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10734 (dwarf2out_abstract_function): Save and clear call_arg_location,
10735 call_site_count and tail_call_site_count around dwarf2out_decl call.
10736 (gen_call_site_die): New function.
10737 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10738 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10739 (dwarf2out_function_decl): Clear call_arg_locations,
10740 call_arg_loc_last, set call_site_count and tail_call_site_count
10741 to -1 and free block_map.
10742 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10743 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10744 followed by any real instructions.
10745 (dwarf2out_begin_function): Set call_site_count and
10746 tail_call_site_count to 0.
10747 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10748 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10749 attempt to force a DIE for it and worst case remove the attribute.
10750 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10751 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10753 * var-tracking.c: Include tm_p.h.
10754 (vt_stack_adjustments): For calls call note_register_arguments.
10755 (argument_reg_set): New variable.
10756 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10757 ensure the VALUE is resolved.
10758 (call_arguments): New variable.
10759 (prepare_call_arguments): New function.
10760 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10761 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10762 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10763 always use the best expression.
10764 (vt_expand_loc): Add ignore_cur_loc argument.
10765 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10766 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10767 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10768 note for all calls.
10769 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10770 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10771 argument. Don't call cselib_preserve_only_values and
10772 cselib_reset_table.
10773 (note_register_arguments): New function.
10774 (vt_initialize): Compute argument_reg_set. Call
10775 vt_add_function_parameters before processing basic blocks instead of
10776 afterwards. For calls call prepare_call_arguments before calling
10777 cselib_process_insn.
10778 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10779 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10780 (var-tracking.o): Depend on $(TM_P_H).
10781 * cfglayout.h (insn_scope): New prototype.
10782 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10783 * cfglayout.c (insn_scope): No longer static.
10784 * insn-notes.def (CALL_ARG_LOCATION): New.
10785 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10786 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10787 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10788 nothing for DECL_EXTERNAL BLOCK_VARS.
10790 2011-03-16 Alan Modra <amodra@gmail.com>
10793 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10794 create invalid offset address for vsx splat insn.
10795 * config/rs6000/predicates.md (splat_input_operand): New.
10796 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10798 2011-03-15 Xinliang David Li <davidxl@google.com>
10801 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10802 (normalize_preds): New function.
10803 (is_use_properly_guarded): Normalize def predicates.
10805 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10808 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10809 in the output template.
10811 2011-03-15 Richard Guenther <rguenther@suse.de>
10813 PR middle-end/47650
10814 * tree-pretty-print.c (dump_function_declaration): Properly
10815 dump unprototyped and varargs function types.
10817 2011-03-15 Richard Guenther <rguenther@suse.de>
10819 PR tree-optimization/13954
10820 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10823 2011-03-15 Richard Guenther <rguenther@suse.de>
10825 PR tree-optimization/48037
10826 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10827 selects into BIT_FIELD_REFs.
10828 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10831 2011-03-15 Jakub Jelinek <jakub@redhat.com>
10833 PR tree-optimization/48129
10834 * builtins.c (fold_builtin_snprintf): Convert to type of
10835 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10836 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10838 2011-03-15 Richard Guenther <rguenther@suse.de>
10840 PR tree-optimization/41490
10841 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10842 value but with VUSE.
10843 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10845 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10846 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10847 * tree-tailcall.c (find_tail_calls): Ignore returns.
10849 2011-03-15 Richard Guenther <rguenther@suse.de>
10851 PR middle-end/48031
10852 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10853 or variable-indexed array accesses when in gimple form.
10855 2011-03-15 Richard Guenther <rguenther@suse.de>
10857 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
10859 2011-03-15 Alan Modra <amodra@gmail.com>
10862 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10863 presume symbol_refs without a symbol_ref_decl are suitably
10864 aligned, nor other trees we may see here. Handle anchor symbols.
10865 (legitimate_constant_pool_address_p): Comment. Add mode param.
10866 Check cmodel=medium addresses. Adjust all calls.
10867 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10868 creating cmodel=medium optimized access to locals.
10869 * config/rs6000/constraints.md (R): Pass QImode to
10870 legitimate_constant_pool_address_p.
10871 * config/rs6000/predicates.md (input_operand): Pass mode to
10872 legitimate_constant_pool_address_p.
10873 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10876 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10879 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10880 64-bit constants being loaded into registers other than GPRs such
10881 as loading 0 into a VSX register.
10883 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10885 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
10887 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10889 PR middle-end/47917
10890 * builtins.c (fold_builtin_snprintf): New function.
10891 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10892 (fold_builtin_4): Likewise.
10894 PR middle-end/38878
10895 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10896 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10897 and C - X == X also strip nops from +/-/p+ operand.
10898 When optimizing -X == C, fold C to arg0's type.
10901 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10902 emit it as add_AT_int instead of add_AT_unsigned.
10904 2011-03-14 Tom Tromey <tromey@redhat.com>
10906 * unwind-dw2.c: Include sys/sdt.h if it exists.
10907 (_Unwind_DebugHook): Use STAP_PROBE2.
10908 * config.in, configure: Rebuild.
10909 * configure.ac: Check for sys/sdt.h.
10911 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
10913 * config/i386/i386.md (ROUND_FLOOR): New constant.
10914 (ROUND_CEIL): Ditto.
10915 (ROUND_TRUNC): Ditto.
10916 (ROUND_MXCSR): Ditto.
10917 (ROUND_NO_EXC): Ditto.
10918 (rint<mode>2): Use new defines instead of numerical constants.
10919 (floor<mode>2): Ditto.
10920 (ceil<mode>2): Ditto.
10921 (btrunc<mode>2): Ditto.
10922 * config/i386/i386-builtin-types.def: Define ROUND function type
10924 * config/i386/i386.c (enum ix86_builtins): Add
10925 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10926 (struct builtin_description): Add
10927 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10928 (ix86_expand_sse_round): New static function.
10929 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10931 (ix86_builtin_vectorized_function): Handle
10932 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10934 2011-03-14 Tom Tromey <tromey@redhat.com>
10936 * c-parser.c (c_parser_asm_string_literal): Clear
10937 warn_overlength_strings.
10939 2011-03-14 Tom Tromey <tromey@redhat.com>
10941 * c-parser.c (disable_extension_diagnostics): Save
10942 warn_overlength_strings.
10943 (restore_extension_diagnostics): Restore warn_overlength_strings.
10945 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10947 * BASE-VER: Change to 4.7.0.
10949 2011-03-14 Richard Guenther <rguenther@suse.de>
10951 PR middle-end/48098
10952 * tree.c (build_vector_from_val): Adjust assert to requirements
10955 2011-03-14 Jakub Jelinek <jakub@redhat.com>
10958 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
10960 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
10962 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
10963 terms of target_flags_explicit. Adjust copyright year.
10965 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10966 * config/rs6000/t-freebsd: New file. Add override for
10969 2011-03-13 Chris Demetriou <cgd@google.com>
10971 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10972 (-fno-diagnostics-show-option): this, to reflect current default.
10973 (-Werror=): Update text about -fno-diagnostics-show-option.
10975 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10978 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10979 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10980 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10981 mode is not V2DImode or V2DFmode.
10982 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10983 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10984 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10986 (movdi_internal64): Likewise.
10988 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10990 PR tree-optimization/47127
10991 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10993 (set_cloog_options): Same.
10994 (scop_to_clast): Same.
10995 (print_clast_stmt): Do not call cloog_state_malloc and
10997 (print_generated_program): Same.
10999 * graphite-clast-to-gimple.h (cloog_state): Declared.
11000 (scop_to_clast): Adjust declaration.
11001 * graphite.c (cloog_state): Defined here.
11002 (graphite_initialize): Call cloog_state_malloc.
11003 (graphite_finalize): Call cloog_state_free.
11005 2011-03-11 Jason Merrill <jason@redhat.com>
11007 * attribs.c (lookup_attribute_spec): Take const_tree.
11010 2011-03-11 Joseph Myers <joseph@codesourcery.com>
11012 * config/sparc/sparc.c (sparc_option_override): Use
11013 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11015 2011-03-11 Richard Guenther <rguenther@suse.de>
11017 PR tree-optimization/48067
11018 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11019 multiplication result will be only used once on the target
11022 2011-03-11 Richard Guenther <rguenther@suse.de>
11024 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11026 2011-03-11 Richard Guenther <rguenther@suse.de>
11029 * tree.c (find_decls_types_r): Do not walk types only reachable
11030 from IDENTIFIER_NODEs.
11032 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11034 PR middle-end/48044
11035 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11036 all vnode->force_output nodes as needed.
11038 2011-03-11 Jason Merrill <jason@redhat.com>
11041 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11042 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11044 2011-03-11 Martin Jambor <mjambor@suse.cz>
11046 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11049 2011-03-11 Jakub Jelinek <jakub@redhat.com>
11051 PR tree-optimization/48063
11052 * ipa-inline.c (cgraph_decide_inlining): Don't try to
11053 inline functions called once if !tree_can_inline_p (node->callers).
11055 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
11057 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11059 * config/score/score3.c: Delete.
11060 * config/score/score3.h: Delete.
11061 * config/score/mul-div.S: Delete.
11062 * config/score/sfp-machine.h: Add new file.
11063 * config/score/constraints.md: Add new file.
11064 * config/score/t-score-softfp: Add new file.
11065 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11066 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11067 (score7_extra_constraint): Delete.
11068 (score7_option_override): Remove unused code.
11069 * config/score/score.c: Remove score3 and score5 define and code.
11070 * config/score/score.h: Remove score3 and score5 define and code.
11071 * config/score/score.md: Remove score3 template and unusual insn.
11072 * config/score/score.opt: Remove score3 and score5 options.
11074 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11076 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11077 when _HPUX_SOURCE is defined.
11078 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11080 2011-03-10 Jason Merrill <jason@redhat.com>
11083 * stor-layout.c (layout_type): Don't set structural equality
11084 on arrays of incomplete type.
11085 * tree.c (type_hash_eq): Handle comparing them properly.
11087 2011-03-10 Jakub Jelinek <jakub@redhat.com>
11090 * config/s390/s390.c (s390_delegitimize_address): Make sure the
11091 result mode matches original rtl mode.
11093 2011-03-10 Nick Clifton <nickc@redhat.com>
11095 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11096 (andsi3, andsi3_flags): Fix timings for three operand alternative.
11098 2011-03-09 Jakub Jelinek <jakub@redhat.com>
11100 PR rtl-optimization/47866
11101 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11102 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11103 if target wasn't scalar.
11104 * function.c (assign_stack_temp_for_type): Assert that neither
11105 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11106 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11108 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11110 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11112 * config/s390/s390-protos.h (s390_label_align): New prototype.
11113 * config/s390/s390.c (s390_label_align): New function.
11114 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11116 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11119 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11120 V2DI/V2DF constants. Only all 0's or all 1's are easy.
11121 (output_vec_const_move): Ditto.
11123 2011-03-08 Anatoly Sokolov <aesok@post.ru>
11125 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11126 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11127 * config/mips/mips.c (mips_preferred_reload_class): Make static.
11128 Change 'rclass' argument and result type to reg_class_t.
11129 (TARGET_PREFERRED_RELOAD_CLASS): Define.
11131 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
11133 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11134 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11135 (TARGET_MEMORY_MOVE_COST): Define.
11136 (avr_register_move_cost, avr_memory_move_cost): New Functions.
11138 2011-03-08 Jakub Jelinek <jakub@redhat.com>
11141 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11144 PR tree-optimization/48022
11145 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11148 2011-03-07 Jakub Jelinek <jakub@redhat.com>
11151 * var-tracking.c (find_use_val): Return NULL for
11152 cui->sets && cui->store_p BLKmode MEMs.
11154 2011-03-07 Anatoly Sokolov <aesok@post.ru>
11156 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11158 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11159 xstormy16_print_operand_address): Remove.
11160 * config/stormy16/stormy16.c (xstormy16_print_operand,
11161 xstormy16_print_operand_address): Make static.
11162 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11164 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
11167 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11168 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11171 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
11174 * cfgloopmanip.c (fix_bb_placements): Return immediately
11175 if FROM is BASE_LOOP's header.
11177 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
11179 * gimplify.c (gimplify_function_tree): Fix building calls
11180 to __builtin_return_address.
11182 2011-03-07 Alan Modra <amodra@gmail.com>
11184 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11185 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11186 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11187 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11189 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11190 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11191 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11192 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11193 * config/rs6000/rs6000.c
11194 (rs6000_elf_end_indicate_exec_stack): Rename to..
11195 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
11196 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
11197 (rs6000_file_start): ..here.
11198 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11199 file scope variables.
11200 (call_ABI_of_interest): New function.
11201 (init_cumulative_args): Set above vars when function return value
11202 is a float, vector, or small struct.
11203 (rs6000_function_arg_advance_1): Likewise for function args.
11204 (rs6000_va_start): Set rs6000_passes_float if variable arg function
11205 references float args.
11207 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
11209 * doc/cfg.texi: Remove "See" before @ref.
11210 * doc/invoke.texi: Likewise.
11212 2011-03-05 Jason Merrill <jason@redhat.com>
11214 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11216 2011-03-05 Anthony Green <green@moxielogic.com>
11218 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11220 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
11222 PR rtl-optimization/47899
11223 * cfgloopmanip.c (fix_bb_placements): Fix first argument
11224 to flow_loop_nested_p when moving the loop upward.
11226 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
11229 * arm.md (movhi_insn_arch4): Accept any immediate constant.
11231 2011-03-05 Jakub Jelinek <jakub@redhat.com>
11233 PR tree-optimization/47967
11234 * ipa-cp.c (build_const_val): Return NULL instead of creating
11235 VIEW_CONVERT_EXPR for mismatching sizes.
11236 (ipcp_create_replace_map): Return NULL if build_const_val failed.
11237 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11238 give up on versioning.
11240 2011-03-05 Alan Modra <amodra@gmail.com>
11243 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11244 full cmodel medium/large lo_sum + high addresses.
11246 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11248 * config/s390/s390.c (s390_decompose_address): Reject non-literal
11249 pool references in UNSPEC_LTREL_OFFSET.
11251 2011-03-04 Jan Hubicka <jh@suse.cz>
11254 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11255 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11256 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11258 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11259 cgraph_add_thunk): Add node pointers.
11260 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11261 associated to right node.
11262 (input_node): Update use of cgraph_same_body_alias
11263 and cgraph_add_thunk.
11265 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
11267 * config/i386/i386.opt (mprefer-avx128): New flag.
11268 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11269 modes when the flag -mprefer-avx128 is on.
11271 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
11273 * dwarf2out.c (compare_loc_operands): Fix address handling.
11275 2011-03-04 Alan Modra <amodra@gmail.com>
11277 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11279 2011-03-04 Richard Guenther <rguenther@suse.de>
11281 PR middle-end/47968
11282 * expmed.c (extract_bit_field_1): Prefer vector modes that
11283 vec_extract patterns can handle.
11285 2011-03-04 Richard Guenther <rguenther@suse.de>
11287 PR middle-end/47975
11288 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11290 2011-03-04 Richard Henderson <rth@redhat.com>
11292 * explow.c (emit_stack_save): Remove 'after' parameter.
11293 (emit_stack_restore): Likewise.
11294 * expr.h: Update to match.
11295 * builtins.c, calls.c, stmt.c: Likewise.
11296 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11297 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11298 * function.c (expand_function_end): Insert the emit_stack_save
11299 sequence before parm_birth_insn instead of after.
11301 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
11303 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11304 (ssse3_pmaddubsw128): Ditto.
11305 (ssse3_pmaddubsw): Ditto.
11307 2011-03-03 Steve Ellcey <sje@cup.hp.com>
11309 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11311 2011-03-03 Jakub Jelinek <jakub@redhat.com>
11314 * gimplify.c (omp_add_variable): Only call omp_notice_variable
11315 on TYPE_SIZE_UNIT if it is a DECL.
11318 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11319 first operand is not is_gimple_mem_ref_addr, try to fold it.
11320 If the operand still isn't is_gimple_mem_ref_addr, clear
11323 2011-03-03 Richard Guenther <rguenther@suse.de>
11325 PR middle-end/47283
11326 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11328 (refs_may_alias_p_1): For release branches return true if
11329 we are confused by our input.
11331 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11333 * config/s390/s390.c (s390_function_value): Rename to ...
11334 (s390_function_and_libcall_value): ... this.
11335 (s390_function_value): New function.
11336 (s390_libcall_value): New function.
11337 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11338 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11339 target macro definitions.
11340 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11342 2011-03-02 Joseph Myers <joseph@codesourcery.com>
11344 * config/i386/freebsd64.h (CC1_SPEC): Define.
11345 * config/i386/linux64.h (CC1_SPEC): Define.
11346 * config/i386/x86-64.h (CC1_SPEC): Don't define.
11348 2011-03-02 Anatoly Sokolov <aesok@post.ru>
11350 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11352 * config/stormy16/stormy16.c: Include reload.h.
11353 (xstormy16_memory_move_cost): New function.
11354 (TARGET_MEMORY_MOVE_COST): Define.
11356 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
11358 PR rtl-optimization/47925
11359 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11360 with side effects. Remove the more-specific check for volatile asms.
11362 2011-03-02 Alan Modra <amodra@gmail.com>
11365 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11366 toc relative addresses for valid offsets.
11368 2011-03-01 Richard Guenther <rguenther@suse.de>
11370 PR tree-optimization/47890
11371 * tree-vect-loop.c (get_initial_def_for_induction): Set
11372 related stmt properly.
11374 2011-03-01 Richard Guenther <rguenther@suse.de>
11377 * lto-streamer.c (lto_record_common_node): Also register
11378 the canonical type.
11380 2011-03-01 Richard Guenther <rguenther@suse.de>
11383 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11384 Do not stream DECL_ABSTRACT_ORIGIN.
11385 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11386 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11387 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11388 Do not stream DECL_ABSTRACT_ORIGIN.
11389 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11390 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11392 2011-02-28 Anatoly Sokolov <aesok@post.ru>
11394 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11395 FUNCTION_VALUE_REGNO_P): Remove.
11396 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11397 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11398 Add 'outgoing' argument.
11399 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11401 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11402 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11404 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
11407 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11408 (lookup_filename): Likewise.
11409 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11411 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
11412 Jakub Jelinek <jakub@redhat.com>
11414 PR middle-end/47893
11415 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11416 (assign_stack_local_1): Change last argument type to int.
11417 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11418 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
11419 don't record padding space into frame_space_list nor use those areas.
11420 (assign_stack_local): Adjust caller.
11421 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11422 of assign_stack_local, pass 0 as last argument.
11423 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11426 2011-02-28 Jakub Jelinek <jakub@redhat.com>
11429 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11430 Use target address_mode and pointer_mode hooks instead of hardcoded
11431 Pmode and ptr_mode. Handle some simple cases of extending if
11432 POINTERS_EXTEND_UNSIGNED < 0.
11433 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11434 Call convert_debug_memory_address.
11435 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11436 convert_debug_memory_address.
11438 PR middle-end/46790
11439 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11440 * configure: Regenerated.
11441 * config.in: Regenerated.
11442 * varasm.c (default_function_section): Return NULL
11443 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11445 2011-02-28 Martin Jambor <mjambor@suse.cz>
11447 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11448 the description to match the printed values.
11450 2011-02-28 Richard Guenther <rguenther@suse.de>
11452 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11453 of the copied scope tree.
11455 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11457 * doc/extend.texi (Function Attributes): Avoid deeply (and
11458 wrongly) nested tables.
11460 2011-02-27 Jakub Jelinek <jakub@redhat.com>
11462 PR middle-end/47903
11463 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11464 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11465 r isn't op0 nor op1.
11467 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11469 * config/avr/avr.md: Remove magic comment for emacs.
11471 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
11474 * config/avr/avr.c (avr_option_override): Use error on bad options.
11475 (avr_help): New function.
11476 (TARGET_HELP): Define.
11478 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
11481 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11482 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11484 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11486 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11487 (ARM Options): Ditto.
11488 (i386 and x86-64 Options): Ditto.
11489 (RX Options): Ditto.
11490 (SPARC Options): Ditto.
11492 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
11494 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11495 FreeBSD 6 and later. Generally use cpu generic.
11497 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11499 * doc/cpp.texi: Update copyright years.
11501 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
11504 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11506 2011-02-25 Jon Beniston <jon@beniston.com>
11509 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11510 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11511 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11512 (lm32_block_move_inline): Add type cast to remove warning.
11513 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11514 (gen_int_relational): Move declarations to start of function.
11516 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11518 PR tree-optimization/45470
11519 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11520 can throw internally only.
11521 * tree-vect-stmts.c (vectorizable_call): Likewise.
11523 2011-02-24 Anatoly Sokolov <aesok@post.ru>
11525 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11526 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11527 * config/stormy16/stormy16-protos.h
11528 (xstormy16_preferred_reload_class): Remove.
11529 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11530 static. Change 'rclass' argument and return type to reg_class_t.
11531 (TARGET_PREFERRED_RELOAD_CLASS,
11532 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11534 2011-02-24 Richard Guenther <rguenther@suse.de>
11536 * lto-streamer-in.c (input_bb): Do not find referenced vars
11537 in debug statements.
11539 2011-02-23 Jason Merrill <jason@redhat.com>
11541 * common.opt (fabi-version): Document v5 and v6.
11543 2011-02-23 Richard Guenther <rguenther@suse.de>
11545 PR tree-optimization/47849
11546 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11548 2011-02-23 Jie Zhang <jie@codesourcery.com>
11550 * opts-common.c (decode_cmdline_option): Print empty string
11551 argument as "" in decoded->orig_option_with_args_text.
11552 * gcc.c (execute): Print empty string argument as ""
11553 in the verbose output.
11554 (do_spec_1): Keep empty string argument.
11556 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11558 * config.gcc: Declare score-* and crx-* obsolete.
11560 2011-02-23 Jie Zhang <jie@codesourcery.com>
11562 PR rtl-optimization/47763
11563 * web.c (web_main): Ignore naked clobber when replacing register.
11565 2011-02-22 Anatoly Sokolov <aesok@post.ru>
11567 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11570 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11573 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11575 2011-02-22 Mike Stump <mikestump@comcast.net>
11577 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11579 * configure: Regenerate.
11581 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11583 PR rtl-optimization/46002
11584 * ira-color.c (update_copy_costs): Change class intersection
11585 test to reg_class_contents[] test of 'hard_regno'.
11587 2011-02-21 Joseph Myers <joseph@codesourcery.com>
11589 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11590 than Driver option.
11591 * config/hpux11.opt (mt): Likewise.
11592 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11593 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11594 * config/vax/elf.opt (mno-asm-pic): Likewise.
11595 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11597 2011-02-21 Mike Stump <mikestump@comcast.net>
11600 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11601 tree so we can get save the type.
11602 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11603 for CFString instead of trying to use past the end of the builtins.
11604 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11605 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11606 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11607 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11608 Rename to darwin_builtin_cfstring.
11609 (darwin_init_cfstring_builtins): Return the built type.
11611 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
11614 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11615 (_mm256_insert_epi64): Use _mm_insert_epi64.
11617 2011-02-21 Anatoly Sokolov <aesok@post.ru>
11619 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11620 * config/stormy16/stormy16-protos.h
11621 (xstormy16_mode_dependent_address_p): Remove.
11622 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11623 Make static. Change return type to bool. Change argument type to
11624 const_rtx. Remove dead code.
11625 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11627 2011-02-21 Richard Guenther <rguenther@suse.de>
11630 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11631 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11632 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11634 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11635 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11637 2011-02-20 Richard Guenther <rguenther@suse.de>
11640 * tree.c (free_lang_data_in_decl): Clean builtins from
11641 the TU decl BLOCK_VARS.
11643 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
11647 * haifa-sched.c (fix_tick_ready): Skip tick computation
11650 2011-02-19 Richard Guenther <rguenther@suse.de>
11653 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11654 Remove lazy BLOCK_VARS streaming.
11655 (lto_input_ts_block_tree_pointers): Likewise.
11656 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11658 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11660 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11662 2011-02-19 Joseph Myers <joseph@codesourcery.com>
11664 * config/i386/biarch32.h, config/i386/mach.h,
11665 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11667 2011-02-19 Jakub Jelinek <jakub@redhat.com>
11670 * config/i386/i386.md (peephole2 for shift and plus): Use
11671 operands[1] original mode in the first insn.
11673 2011-02-18 Mike Stump <mikestump@comcast.net>
11675 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11677 2011-02-18 Jan Hubicka <jh@suse.cz>
11679 PR middle-end/47788
11680 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11681 to zero when the function is not inlinable at all.
11683 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11685 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11686 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11687 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11688 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11689 * config/pa/t-pa64: Likewise.
11690 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11692 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11695 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11697 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11700 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11702 2011-02-18 Anatoly Sokolov <aesok@post.ru>
11704 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11705 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11706 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11707 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11708 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11709 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11710 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11711 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11712 m32r_legitimate_address_p): New functions.
11713 * config/m32r/constraints.md (constraint "S"): Don't use
11714 STORE_PREINC_PREDEC_P.
11715 (constraint "U"): Don't use LOAD_POSTINC_P.
11717 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11719 PR rtl-optimization/46178
11720 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11721 compute ira_hard_regno_cover_class[].
11723 2011-02-18 Richard Guenther <rguenther@suse.de>
11726 * lto-streamer.h (lto_global_var_decls): Declare.
11727 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11728 statics for global var processing.
11730 2011-02-18 Richard Guenther <rguenther@suse.de>
11732 PR tree-optimization/47737
11733 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11734 edge dominance check.
11736 2011-02-18 Jakub Jelinek <jakub@redhat.com>
11739 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11740 avoid invalid rtx sharing.
11742 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11744 * doc/cpp.texi (Obsolete Features): Add background on the
11745 origin of assertions.
11747 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11749 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11751 * config/darwin.c (output_objc_section_asm_op): Added support for
11753 (is_objc_metadata): New.
11754 (darwin_objc2_section): New.
11755 (darwin_objc1_section): New.
11756 (machopic_select_section): Added support for ABI v1 and v2.
11757 (darwin_emit_objc_zeroed): New.
11758 (darwin_output_aligned_bss): Detect objc metadata and treat it
11760 (darwin_asm_output_aligned_decl_common): Same.
11761 (darwin_asm_output_aligned_decl_local): Same.
11762 * config/darwin-sections.def: Updated for ABI v1 and v2.
11763 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11764 compiling Objective-C code for the NeXT runtime, default to using
11765 ABI version 0 for 32-bit, and version 2 for 64-bit.
11767 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11769 * common.opt (optimize_fast): New Variable.
11770 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11771 instead of local variable ofast.
11773 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11775 * doc/invoke.texi (fobjc-abi-version): Documented.
11776 (fobjc-nilcheck): Documented.
11777 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11780 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11783 * common.opt (export-dynamic): New Driver option.
11784 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11786 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11788 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11790 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
11791 Jan Hubicka <jh@suse.cz>
11795 * cfgexpand.c (account_used_vars_for_block): Remove.
11796 (estimated_stack_frame_size): Use referenced vars.
11797 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11798 that were referenced in the original function. Test src_fn
11799 rather than cfun. Drop redundant get_var_ann.
11800 (setup_one_parameter): Drop redundant get_var_ann.
11801 (declare_return_variable): Likewise.
11802 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11803 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11804 * ipa-inline.c (compute_inline_parameters): Do not compute
11805 disregard_inline_limits here.
11806 (compute_inlinable_for_current, pass_inlinable): New.
11807 (pass_inline_parameters): Require PROP_referenced_vars.
11808 * cgraphunit.c (cgraph_process_new_functions): Don't run
11809 compute_inline_parameters explicitly unless function is in SSA form.
11810 (cgraph_analyze_function): Set .disregard_inline_limits.
11811 * tree-sra.c (convert_callers): Compute inliner parameters
11812 only for functions already in SSA form.
11814 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11816 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11817 -mlittle-endian-data.
11819 2011-02-17 Joseph Myers <joseph@codesourcery.com>
11821 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11822 -mno-fpu, not -fpu and -no-fpu.
11823 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11824 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11826 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
11829 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11830 input reload with PLUS RTX.
11832 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11834 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11835 of InverseVar(MDMX).
11837 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11839 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11842 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11844 * config/mn10300/mn10300.opt (mno-crt0): New.
11846 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11848 * config/m68k/uclinux.opt (static-libc): New Driver option.
11850 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11852 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11854 2011-02-16 Joseph Myers <joseph@codesourcery.com>
11856 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11857 %{muser-extend-enabled}.
11859 2011-02-16 Richard Guenther <rguenther@suse.de>
11861 PR tree-optimization/47738
11862 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11863 the TODO from tree_predictive_commoning.
11865 2011-02-15 Jeff Law <law@redhat.com>
11868 2011-01-25 Jeff Law <law@redhat.com>
11870 PR rtl-optimization/37273
11871 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11872 handle them like argument loads from stack slots. Do not double
11873 count memory for memory constants and argument loads from stack slots.
11875 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11877 PR middle-end/47725
11878 * combine.c (cant_combine_insn_p): Revert the last change.
11880 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11883 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11884 mode for vector constants. Remove code that checks for TImode.
11886 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11890 * cgraph.h (compute_inline_parameters): Return void.
11891 * ipa-inline.c (compute_inline_parameters): Adjust.
11893 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11897 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11899 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11900 * ipa-inline.c (compute_inline_parameters): Adjust.
11902 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11906 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11907 Adjust all users. Pass FN to...
11908 * tree-flow-inline.h (first_referenced_var): ... this. Add
11910 * ipa-struct-reorg.c: Adjust.
11911 * tree-dfa.c: Adjust.
11912 * tree-into-ssa.c: Adjust.
11913 * tree-sra.c: Adjust.
11914 * tree-ssa-alias.c: Adjust.
11915 * tree-ssa-live.c: Adjust.
11916 * tree-ssa.c: Adjust.
11917 * tree-ssanames.c: Adjust.
11918 * tree-tailcall.c: Adjust.
11920 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
11924 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11925 Adjust all callers.
11926 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11927 * tree-flow-inline.h: Adjust.
11928 * gimple-pretty-print.c: Adjust.
11929 * tree-into-ssa.c: Adjust.
11930 * tree-ssa.c: Adjust.
11931 * cfgexpand.c: Adjust.
11933 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11935 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11936 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11937 (EXTRA_CONSTRAINT): Delete.
11938 * config/iq2000/constraints.md: New file.
11939 * config/iq2000/iq2000.md: Include it.
11940 (define_insn ""): Delete.
11941 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11942 unsupported constraint letters from patterns.
11943 (call_value, call_value_internal1): Likewise.
11944 (call_value_multiple_internal1): Likewise.
11946 2011-02-15 Nick Clifton <nickc@redhat.com>
11948 * config/mn10300/mn10300.c: Include tm-constrs.h.
11949 (struct liw_data): New data structure describing an LIW candidate
11951 (extract_bundle): Use struct liw_data. Allow small integer
11952 operands for some instructions.
11953 (check_liw_constraints): Use struct liw_data. Remove swapped
11954 parameter. Add comments describing the checks. Fix bug when
11955 assigning the source of liw1 to the source of liw2.
11956 (liw_candidate): Delete. Code moved into extract_bundle.
11957 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11959 * config/mn10300/predicates.md (liw_operand): New predicate.
11960 Allows registers and small integer constants.
11961 * config/mn10300/constraints.md (O): New constraint. Accetps
11962 integers in the range -8 to +7 inclusive.
11963 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11964 for moving a small integer into a register. Give this alternative
11966 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11967 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11968 using the J,K,L and M constraints,
11969 (liw): Remove SI mode on second operands to allow for HI and QI
11971 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11974 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11976 PR middle-end/47725
11977 * combine.c (cant_combine_insn_p): Check zero/sign extended
11980 2011-02-15 Richard Guenther <rguenther@suse.de>
11982 PR tree-optimization/47743
11983 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11984 for a non-type-compatible VN lookup bail out.
11986 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11988 * config/fr30/constraints.md: New file.
11989 * config/fr30/fr30.md: Include it.
11990 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11991 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11992 (EXTRA_CONSTRAINT): Delete.
11994 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11996 * config/frv/constraints.md: New file.
11997 * config/frv/predicates.md: Include it.
11998 * config/frv/frv.c (reg_class_from_letter): Delete.
11999 (frv_option_override): Don't initialize it.
12000 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12001 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12002 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12003 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12004 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12005 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12006 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12007 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12008 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12009 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12010 (REG_CLASS_FROM_CONSTRAINT): Delete.
12012 2011-02-15 Jakub Jelinek <jakub@redhat.com>
12014 PR middle-end/47581
12015 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12016 if frame size is 0 in a leaf function.
12018 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12021 * config/alpha/host-osf.c: New file.
12022 * config/alpha/x-osf: New file.
12023 * config.host (alpha*-dec-osf*): Use it.
12025 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12027 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12028 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12029 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12030 (rx_mode_dependent_address_p): ...this. Make static. Change argument
12032 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12034 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12036 * config/stormy16/constraints.md: New file.
12037 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12038 Use satisfies_constraint_Q and satisfies_constraint_R.
12039 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12041 (xstormy16_legitiamte_address_p): Declare.
12042 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12043 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12044 (EXTRA_CONSTRAINT): Delete.
12045 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12047 (xstormy16_extra_constraint_p): Delete.
12049 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
12051 PR tree-optimization/46494
12052 * loop-unroll.c (split_edge_and_insert): Adjust comment.
12053 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12054 (pass_rtl_loop_done): Add TODO_verify_flow.
12055 * fwprop.c (pass_rtl_fwprop): Likewise.
12056 * modulo-sched.c (pass_sms): Likewise.
12057 * tree-ssa-dom.c (pass_dominator): Likewise.
12058 * tree-ssa-loop-ch.c (pass_ch): Likewise.
12059 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12060 (pass_tree_loop_done): Likewise.
12061 * tree-ssa-pre.c (execute_pre): Likewise.
12062 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12063 * tree-ssa-sink.c (pass_sink_code): Likewise.
12064 * tree-vrp.c (pass_vrp): Likewise.
12066 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12068 * config/v850/constraints.md: New file.
12069 * config/v850/v850.md: Include it.
12070 * config/v850/predicates.md (reg_or_0_operand): Use
12071 satisfies_constraint_G.
12072 (special_symbolref_operand): Use satisfies_constraint_K.
12073 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12074 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12075 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12076 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12077 (EXTRA_CONSTRAINT): Delete.
12078 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12079 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12080 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12082 2011-02-14 Anatoly Sokolov <aesok@post.ru>
12085 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12088 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
12090 * config/mcore/constraints.md: New file.
12091 * config/mcore/mcore.md: Include it.
12092 * config/mcore/mcore.c (reg_class_from_letter): Delete.
12093 * config/mcore/mcore.h (reg_class_from_letter): Delete.
12094 (REG_CLASS_FROM_LETTER): Delete.
12095 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12096 insn_const_int_ok_for_constraint.
12097 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12098 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12099 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12100 (EXTRA_CONSTRAINT): Delete.
12102 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12105 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12106 (IS_SIGHANDLER): Define.
12107 (sparc64_is_sighandler): New function, split off from
12108 sparc64_fallback_frame_state.
12109 (sparc_is_sighandler): New function, split off from
12110 sparc_fallback_frame_state.
12111 (sparc64_fallback_frame_state): Merge with ...
12112 (sparc_fallback_frame_state): ... this into ...
12113 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12114 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
12115 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
12116 stack instead of hardcoded offsets.
12118 2011-02-14 Andriy Gapon <avg@freebsd.org>
12121 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12123 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12125 * configure: Regenerate.
12127 2011-02-12 Joseph Myers <joseph@codesourcery.com>
12130 * gcc.c (asm_options): Correct spec matching --target-help.
12132 2011-02-12 Martin Jambor <mjambor@suse.cz>
12134 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12135 to gimple call error.
12137 2011-02-12 Mike Stump <mikestump@comcast.net>
12139 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12140 comments in backslash regions.
12142 2011-02-12 Mike Stump <mikestump@comcast.net>
12143 Jakub Jelinek <jakub@redhat.com>
12144 Iain Sandoe <iains@gcc.gnu.org>
12147 * dwarf2out.c (output_cfa_loc): When required, apply the
12148 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12149 (output_loc_sequence): Likewise.
12150 (output_loc_operands_raw): Likewise.
12151 (output_loc_sequence_raw): Likewise.
12152 (output_cfa_loc): Likewise.
12153 (output_loc_list): Suppress register number adjustment when
12154 calling output_loc_sequence()
12155 (output_die): Likewise.
12157 2011-02-12 Anatoly Sokolov <aesok@post.ru>
12159 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12161 * config/xtensa/xtensa.c (xtensa_register_move_cost,
12162 xtensa_memory_move_cost): New functions.
12163 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12165 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
12168 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12169 in the current directory.
12170 * configure: Rebuilt.
12172 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12174 * config/darwin.c (darwin_override_options): Add a hunk missed
12175 from the commit of r168571. Trim comment line lengths and
12176 correct indents of the preceding block.
12178 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
12180 * gcc.c (driver_handle_option): Concatenate the argument to -F with
12183 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12185 * common.opt (nostartfiles): New Driver option.
12187 2011-02-11 Xinliang David Li <davidxl@google.com>
12189 PR tree-optimization/47707
12190 * tree-chrec.c (convert_affine_scev): Keep type precision.
12192 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
12194 PR tree-optimization/47420
12195 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12197 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
12199 PR rtl-optimization/47614
12200 * rtl.h (check_for_inc_dec): Declare.
12201 * dse.c (check_for_inc_dec): Externalize...
12202 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12203 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12205 2011-02-11 Joseph Myers <joseph@codesourcery.com>
12208 * gcc.c (main): Do not compile inputs if there were errors in
12210 * opts-common.c (read_cmdline_option): Check for wrong language
12211 after other error checks.
12213 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
12215 * cgraph.c: Fix comment typos.
12216 * cgraph.h: Likewise.
12217 * cgraphunit.c: Likewise.
12218 * ipa-cp.c: Likewise.
12219 * ipa-inline.c: Likewise.
12220 * ipa-prop.c: Likewise.
12221 * ipa-pure-const.c: Likewise.
12222 * ipa-ref.c: Likewise.
12223 * ipa-reference.c: Likewise.
12225 2011-02-11 Jakub Jelinek <jakub@redhat.com>
12228 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12230 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12233 * doc/sourcebuild.texi (Require Support): Document
12234 dg-require-ascii-locale.
12236 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
12238 * doc/lto.texi (Write summary): Fix missing parentheses.
12240 2011-02-10 DJ Delorie <dj@redhat.com>
12242 * config/m32c/m32c.c (m32c_option_override): Disable
12243 -fcombine-stack-adjustments until flag value tracking and compare
12244 optimization can be rewritten.
12246 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
12248 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12250 (PROCESSOR_DEFAULT64): Likewise.
12252 2011-02-10 Richard Henderson <rth@redhat.com>
12254 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12255 change from 2011-02-03.
12256 * config/rx/rx.c (flags_from_code): Likewise.
12257 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12258 is valid, n/pz otherwise.
12259 (rx_select_cc_mode): Return CCmode if Y is not zero.
12261 2011-02-10 Richard Guenther <rguenther@suse.de>
12263 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12265 2011-02-10 Richard Guenther <rguenther@suse.de>
12267 PR tree-optimization/47677
12268 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12270 2011-02-10 Jakub Jelinek <jakub@redhat.com>
12273 * combine.c (make_compound_operation): Only change shifts into
12274 multiplication for SCALAR_INT_MODE_P.
12276 2011-02-10 Jie Zhang <jie@codesourcery.com>
12280 2011-02-05 Jie Zhang <jie@codesourcery.com>
12282 * web.c (entry_register): Don't clobber the number of the
12283 first uninitialized reference in used[].
12285 2011-02-09 Richard Guenther <rguenther@suse.de>
12287 PR tree-optimization/47664
12288 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12291 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
12295 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12297 (PROCESSOR_DEFAULT64): Same.
12298 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12300 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12302 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12304 2011-02-09 Martin Jambor <mjambor@suse.cz>
12306 PR middle-end/45505
12307 * tree-sra.c (struct access): New flags grp_scalar_read and
12308 grp_scalar_write. Changed description of assignment read and write
12310 (dump_access): Dump new flags, reorder all of them.
12311 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12312 to detect multiple scalar reads.
12313 (analyze_access_subtree): Use the new scalar read write flags instead
12314 of the old flags. Adjusted comments.
12316 2011-02-08 DJ Delorie <dj@redhat.com>
12319 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12322 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12324 * config/m68k/uclinux.opt: New.
12325 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12327 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12329 * config/cris/elf.opt (sim): New Driver option.
12331 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12333 * config/xtensa/elf.opt: New.
12334 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12336 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12338 * config/vax/elf.opt: New.
12339 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12341 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12343 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12345 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12347 * config/gnu-user.opt: New.
12348 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12349 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12350 *-*-uclinux*): Use gnu-user.opt.
12352 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
12354 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12355 * config/i386/gnu.h (CPP_SPEC): Likewise.
12357 2011-02-08 Ian Lance Taylor <iant@google.com>
12359 * common.opt (fcx-limited-range): Add SetByCombined flag.
12360 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12361 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12362 (fassociative-math, freciprocal-math): Likewise.
12363 (funsafe-math-optimizations): Likewise.
12364 * opth-gen.awk: Handle SetByCombined.
12365 * optc-gen.awk: Likewise.
12366 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12367 (set_unsafe_math_optimizations_flags): Likewise.
12368 * doc/options.texi (Option properties): Document SetByCombined.
12370 2011-02-08 Joseph Myers <joseph@codesourcery.com>
12372 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12373 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12374 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12375 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12376 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12378 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
12380 PR tree-optimization/46834
12381 PR tree-optimization/46994
12382 PR tree-optimization/46995
12383 * graphite-sese-to-poly.c (used_outside_reduction): New.
12384 (detect_commutative_reduction): Call used_outside_reduction.
12385 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12386 translate_scalar_reduction_to_array only when at least one
12387 loop-phi/close-phi tuple has been detected.
12389 2011-02-08 Richard Guenther <rguenther@suse.de>
12391 PR middle-end/47639
12392 * tree-vect-generic.c (expand_vector_operations_1): Update
12394 (expand_vector_operations): ... not here. Cleanup EH info
12395 and the CFG if required.
12397 2011-02-08 Richard Guenther <rguenther@suse.de>
12399 PR tree-optimization/47641
12400 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12401 require type compatibility.
12403 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12405 * gimple-low.c (lower_function_body): Don't remove the location of
12406 the return statement here.
12407 (lower_gimple_return): Do it here instead but only if the return
12408 statement is actually used twice.
12410 2011-02-08 Richard Guenther <rguenther@suse.de>
12412 PR tree-optimization/47632
12413 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12414 unused up_to_stmt parameter, return whether cfg-cleanup is
12415 necessary, remove EH info properly.
12416 (forward_propagate_into_gimple_cond): Adjust caller.
12417 (forward_propagate_into_cond): Likewise.
12418 (forward_propagate_comparison): Likewise.
12419 (tree_ssa_forward_propagate_single_use_vars): Make
12420 forward_propagate_comparison case similar to the two others.
12422 2011-02-08 Nick Clifton <nickc@redhat.com>
12424 * config/mn10300/mn10300.opt (mliw): New command line option.
12425 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12426 (liw_bundling): New automaton.
12427 (liw): New attribute.
12428 (liw_op): New attribute.
12429 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12430 (movsi_internal): Add LIW attributes.
12431 (andsi3): Likewise.
12432 (iorsi3): Likewise.
12433 (xorsi3): Likewise.
12434 (addsi3): Separate register and immediate alternatives.
12435 Add LIW attributes.
12436 (subsi3): Likewise.
12438 (aslsi3): Likewise.
12439 (lshrsi3): Likewise.
12440 (ashrsi3): Likewise.
12441 (liw): New pattern.
12442 * config/mn10300/mn10300.c (liw_op_names): New
12443 (mn10300_print_operand): Handle 'W' operand descriptor.
12444 (extract_bundle): New function.
12445 (check_liw_constraints): New function.
12446 (liw_candidate): New function.
12447 (mn10300_bundle_liw): New function.
12448 (mn10300_reorg): New function.
12449 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12450 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12451 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12452 __LIW__ or __NO_LIW__.
12453 * doc/invoke.texi: Describe the -mliw command line option.
12455 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12457 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12458 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12459 pthread_mutex_unlock): Remove.
12460 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12461 * config/pa/t-pa64: Likewise.
12462 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12463 shared libc if not linking against libpthread.
12464 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12466 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12469 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12470 on 10.6 and later to ensure that we always use the unwinder from
12471 the system. Only add -no_compact_unwind when tarteting darwin
12474 2011-02-07 Steve Ellcey <sje@cup.hp.com>
12477 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12478 (vec_interleave_lowv2sf): Ditto.
12479 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12480 (vec_extract_oddv2sf): Ditto.
12482 2011-02-07 Mike Stump <mikestump@comcast.net>
12485 Add __ieee_divdc3 entry point.
12486 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12488 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12489 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12490 * config/darwin.c (darwin_rename_builtins): Add.
12491 * config/darwin-protos.h (darwin_rename_builtins): Add.
12493 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12496 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12499 2011-02-07 Mike Stump <mikestump@comcast.net>
12501 * config/darwin.opt (mmacosx-version-min): Update default OS version.
12503 2011-02-07 Denis Chertykov <chertykov@gmail.com>
12506 * config/avr/libgcc.S (exit): Move .endfunc
12508 2011-02-07 Richard Guenther <rguenther@suse.de>
12510 PR tree-optimization/47615
12511 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12512 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12513 (run_scc_vn): Initialize it.
12514 (visit_reference_op_load): Use it.
12515 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12517 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12519 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12520 DImode trapping arithmetic libfuncs.
12522 2011-02-07 Richard Guenther <rguenther@suse.de>
12524 PR tree-optimization/47621
12525 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12527 (execute_update_addresses_taken): ... here. Make it more
12528 conservative in what we accept.
12530 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12532 * config/sparc/freebsd.h (ASM_SPEC): Define.
12533 * config/sparc/vxworks.h (ASM_SPEC): Define.
12535 2011-02-06 Joseph Myers <joseph@codesourcery.com>
12537 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12539 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12541 * doc/invoke.texi: Remove reference to compiler internals from
12542 user documentation.
12544 * reg-notes.def: Remove REG_VALUE_PROFILE.
12545 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12547 2011-02-05 Jakub Jelinek <jakub@redhat.com>
12549 PR middle-end/47610
12550 * varasm.c (default_section_type_flags): If decl is NULL,
12551 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12553 2011-02-05 Jie Zhang <jie@codesourcery.com>
12556 * web.c (entry_register): Don't clobber the number of the
12557 first uninitialized reference in used[].
12559 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12561 PR tree-optimization/46194
12562 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12563 (build_classic_dist_vector_1): Do not represent classic distance
12564 vectors when the access functions are variating in different loops.
12566 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12568 * config/mips/iris6.opt: New.
12569 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12571 2011-02-04 Richard Henderson <rth@redhat.com>
12572 Steve Ellcey <sje@cup.hp.com>
12575 * config/ia64/predicates.md (mux1_brcst_element): New.
12576 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12577 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12578 (ia64_unpack_sign): New.
12579 (ia64_expand_unpack): Rewrite using new routines.
12580 (ia64_expand_widen_sum): Ditto.
12581 (ia64_expand_dot_prod_v8qi): Ditto.
12582 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12583 routines, add endian check.
12584 (pmpy2_even): Rename from pmpy2_r, add endian check.
12585 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12586 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12587 (vec_widen_smult_hi_v4hi): Ditto.
12588 (vec_widen_umult_lo_v4hi): Ditto.
12589 (vec_widen_umult_hi_v4hi): Ditto.
12590 (mulv2si3): Change endian checks.
12591 (sdot_prodv4hi): Rewrite with new calls.
12592 (udot_prodv4hi): New.
12593 (vec_pack_ssat_v4hi): Add endian check.
12594 (vec_pack_usat_v4hi): Ditto.
12595 (vec_pack_ssat_v2si): Ditto.
12596 (max1_even): Rename from max1_r, add endian check.
12597 (max1_odd): Rename from max1_l, add endian check.
12598 (*mux1_rev): Format change.
12599 (*mux1_mix): Ditto.
12600 (*mux1_shuf): Ditto.
12601 (*mux1_alt): Ditto.
12602 (*mux1_brcst_v8qi): Use new predicate.
12603 (vec_extract_evenv8qi): Remove endian check.
12604 (vec_extract_oddv8qi): Ditto.
12605 (vec_interleave_lowv4hi): Format change.
12606 (vec_interleave_highv4hi): Ditto.
12607 (mix2_even): Rename from mix2_r, add endian check.
12608 (mix2_odd): Rename from mux2_l, add endian check.
12609 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12610 (vec_extract_evenodd_helper): Format change.
12611 (vec_extract_evenv4hi): Remove endian check.
12612 (vec_extract_oddv4hi): Remove endian check.
12613 (vec_interleave_lowv2si): Format change.
12614 (vec_interleave_highv2si): Format change.
12615 (vec_initv2si): Remove endian check.
12616 (vecinit_v2si): Add endian check.
12617 (reduc_splus_v2sf): Add endian check.
12618 (reduc_smax_v2sf): Ditto.
12619 (reduc_smin_v2sf): Ditto.
12620 (vec_initv2sf): Remove endian check.
12621 (fpack): Add endian check.
12622 (fswap): Add endian check.
12623 (vec_interleave_highv2sf): Add endian check.
12624 (vec_interleave_lowv2sf): Add endian check.
12625 (fmix_lr): Add endian check.
12626 (vec_setv2sf): Format change.
12627 (*vec_extractv2sf_0_be): Use shift to extract operand.
12628 (*vec_extractv2sf_1_be): New.
12629 (vec_pack_trunc_v4hi): Add endian check.
12630 (vec_pack_trunc_v2si): Format change.
12632 2011-02-04 Jakub Jelinek <jakub@redhat.com>
12634 PR inline-asm/23200
12635 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
12636 do bb, locus and block comparison and disallow loads if it is not set.
12637 (stmt_is_replaceable_p): New function.
12638 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12640 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12641 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12643 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12645 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12647 * config/rs6000/xilinx.opt: New.
12648 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12650 2011-02-04 Joseph Myers <joseph@codesourcery.com>
12652 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12654 2011-02-03 Anatoly Sokolov <aesok@post.ru>
12656 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12657 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12658 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12659 secondary_reload_info, xtensa_secondary_reload): Remove.
12660 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12661 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12662 (xtensa_preferred_reload_class): Make static. Change return and
12663 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12664 Use CONST_DOUBLE_P predicate.
12665 (xtensa_preferred_output_reload_class): New function.
12666 (xtensa_secondary_reload): Make static.
12668 2011-02-03 Joseph Myers <joseph@codesourcery.com>
12670 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12671 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12672 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12674 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12676 PR middle-end/31490
12677 * output.h (SECTION_RELRO): Define.
12678 (SECTION_MACH_DEP): Adjust.
12679 (get_variable_section): New prototype.
12680 * varpool.c (varpool_finalize_named_section_flags): New function.
12681 (varpool_assemble_pending_decls): Call it.
12682 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12683 * cgraphunit.c (cgraph_output_in_order): Call
12684 varpool_finalize_named_section_flags.
12685 * varasm.c (get_section): Allow section flags conflicts between
12686 relro and read-only sections if the section hasn't been declared yet.
12687 Set SECTION_OVERRIDE after diagnosing section type conflict.
12688 (get_variable_section): No longer static.
12689 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12690 readonly sections that need relocations.
12691 (decl_readonly_section_1): New function.
12692 (decl_readonly_section): Use it.
12695 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
12696 Steve Ellcey <sje@cup.hp.com>
12698 PR middle-end/31490
12699 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12700 if section attribute used.
12702 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12704 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12705 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12706 (darwin_init_sections): Remove assertion.
12708 2011-02-03 Nick Clifton <nickc@redhat.com>
12710 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12712 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12713 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12714 instead of "n" and "pz".
12715 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12718 2011-02-03 Jakub Jelinek <jakub@redhat.com>
12721 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12722 fma, expand FMA_EXPR as fma{,f,l} call.
12725 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12726 copy them into a unsigned char variable and pass address of it to
12727 lto_output_data_stream.
12730 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12731 around backend_init_target and lang_dependent_init_target calls.
12732 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12733 (verify_cgraph_node): Don't call set_cfun here. Use
12734 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12735 Set error_found for incorrectly represented calls to thunks.
12737 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12740 PR rtl-optimization/43494
12741 * rtl.h (for_each_inc_dec_fn): New type.
12742 (for_each_inc_dec): Declare.
12743 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12744 (for_each_inc_dec_find_inc_dec): New fn.
12745 (for_each_inc_dec_find_mem): New fn.
12746 (for_each_inc_dec): New fn.
12747 * dse.c (struct insn_size): Remove.
12748 (replace_inc_dec, replace_inc_dec_mem): Remove.
12749 (emit_inc_dec_insn_before): New fn.
12750 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12751 (canon_address): Pass mem modes to cselib_lookup.
12752 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12753 (cselib_lookup_from_insn): Likewise.
12754 (cselib_subst_to_values): Likewise.
12755 * cselib.c (find_slot_memmode): New var.
12756 (cselib_find_slot): New fn. Use it instead of
12757 htab_find_slot_with_hash everywhere.
12758 (entry_and_rtx_equal_p): Use find_slot_memmode.
12759 (autoinc_split): New fn.
12760 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12761 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12762 Deal with autoinc. Special-case recursion into MEMs.
12763 (cselib_hash_rtx): Likewise.
12764 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12765 address and MEM modes.
12766 (cselib_subst_to_values): Add memmode, pass it on.
12768 (cselib_lookup): Add memmode argument, pass it on.
12769 (cselib_lookup_from_insn): Add memmode.
12770 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12771 (struct cselib_record_autoinc_data): New.
12772 (cselib_record_autoinc_cb): New fn.
12773 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12774 mode to cselib_lookup. Reset autoinced REGs here instead of...
12775 (cselib_process_insn): ... here.
12776 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12778 (add_uses): Likewise, also to cselib_subst_to_values.
12779 (add_stores): Likewise.
12780 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12781 cselib_subst_to_values.
12782 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12783 * gcse.c (do_local_cprop): Adjusted.
12784 * postreload.c (reload_cse_simplify_set): Adjusted.
12785 (reload_cse_simplify_operands): Adjusted.
12786 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12788 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
12790 PR tree-optimization/45122
12791 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12792 unsafe assumptions when there's more than one loop exit.
12794 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12797 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12798 Document using vector double with the load/store builtins, and
12799 that the load/store builtins always use Altivec instructions.
12801 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12802 to use altivec memory instructions, even on VSX.
12803 (vector_altivec_store_<mode>): Ditto.
12805 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12808 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12809 V2DF, V2DI support to load/store overloaded builtins.
12811 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12812 altivec load/store builtins for V2DF/V2DI types.
12814 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12815 set avoid indexed addresses on power6 if -maltivec.
12816 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12817 vector_altivec_load/vector_altivec_store builtins.
12818 (altivec_expand_st_builtin): Ditto.
12819 (altivec_expand_builtin): Add VSX memory builtins.
12820 (rs6000_init_builtins): Add V2DI types to internal types.
12821 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12822 load/store builtins.
12823 (rs6000_address_for_altivec): Insure memory address is appropriate
12826 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12827 vec_vsx_ld and vec_vsx_st.
12828 (vsx_store_<mode>): Ditto.
12830 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12831 variables to hold long long types for VSX vector memory builtins.
12832 (RS6000_BTI_unsigned_long_long): Ditto.
12833 (long_long_integer_type_internal_node): Ditti.
12834 (long_long_unsigned_type_internal_node): Ditti.
12836 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12837 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12838 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12840 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12842 (vec_vsx_st): Ditto.
12844 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12846 * config/pa/pa-hpux10.opt: New.
12847 * config/hpux11.opt (pthread): New Driver option.
12848 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12849 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12851 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12853 * config/ia64/vms.opt: New.
12854 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12856 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12859 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12860 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12861 generator functions.
12862 (vsx_floatuns<VSi><mode>2): Ditto.
12863 (vsx_fix_trunc<mode><VSi>2): Ditto.
12864 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12866 2011-02-02 Joseph Myers <joseph@codesourcery.com>
12868 * config/i386/djgpp.opt (posix): New Driver option.
12870 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12872 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12873 Move to the unsupported targets list.
12875 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12877 PR rtl-optimization/47525
12878 * df-scan.c: Update copyright years.
12879 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12880 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12882 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12884 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12885 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12886 (ASM_OUTPUT_ASCII): Remove.
12887 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12889 2011-02-02 Jeff Law <law@redhat.com>
12891 PR middle-end/47543
12892 * reload.c (find_reloads_address): Handle reg+d address where both
12893 components are invalid by reloading the entire address.
12895 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12896 Richard Guenther <rguenther@suse.de>
12898 PR tree-optimization/40979
12900 * passes.c (init_optimization_passes): After LIM call copy_prop
12901 and DCE to clean up.
12902 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12904 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12906 PR tree-optimization/47576
12907 PR tree-optimization/47555
12908 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12909 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12910 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12911 * tree-scalar-evolution.c (follow_ssa_edge): Use
12912 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12914 2011-02-02 Richard Guenther <rguenther@suse.de>
12916 PR tree-optimization/47566
12917 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12919 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12923 * tree-inline.c (declare_return_variable): Remove unused caller
12928 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12929 * cfgexpand.c (account_used_vars_for_block): Use them.
12930 * tree-nrv.c (tree_nrv): Likewise.
12931 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12932 (dump_scope_block): Likewise.
12933 (remove_unused_locals): Likewise.
12937 * tree-inline.c (declare_return_variable): Add result decl to
12938 local decls only once.
12939 * gimple-low.c (record_vars_into): Mark newly-created variables
12942 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
12948 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12950 (no_real_insns_p, schedule_block, set_priorities): Drop special
12951 treatment of boundary debug insns.
12952 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
12953 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12954 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12955 (BOUNDARY_DEBUG_INSN_P): Likewise.
12956 (SCHEDULE_DEBUG_INSN_P): Likewise.
12957 * sched-rgn.c (init_ready_list): Drop special treatment of
12958 boundary debug insns.
12959 * final.c (rest_of_clean_state): Clear notes' BB.
12961 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12963 * config/openbsd.opt (assert=): New Driver option.
12965 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12967 * config/i386/nto.opt: New.
12968 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12970 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12972 * config/i386/netware.opt: New.
12973 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12975 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12977 * config/interix.opt (posix): New Driver option.
12979 2011-02-01 DJ Delorie <dj@redhat.com>
12981 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12983 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12986 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12988 PR tree-optimization/47561
12989 * toplev.c (process_options): Print the Graphite flags. Add
12990 flag_loop_flatten to the list of options requiring Graphite.
12992 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12994 * config/i386/cygming.opt (posix): New Driver option.
12996 2011-02-01 Joseph Myers <joseph@codesourcery.com>
12998 * config/arm/vxworks.opt: New.
12999 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13001 2011-02-01 Joseph Myers <joseph@codesourcery.com>
13003 * config/alpha/elf.opt: New.
13004 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13005 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13007 2011-02-01 Richard Guenther <rguenther@suse.de>
13009 PR tree-optimization/47559
13010 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13011 store-motion on references that can throw.
13013 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
13015 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13016 * tree-pass.h (TDF_CSELIB): New macro.
13017 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13018 cselib_lookup): Check for it rather than for TDF_DETAILS.
13020 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
13023 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13024 is HOST_BIT_BUCKET.
13026 * opts.c (finish_options): Don't add x_aux_base_name if it is
13029 2011-02-01 Richard Guenther <rguenther@suse.de>
13031 PR tree-optimization/47555
13033 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
13035 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13037 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
13040 * config/lm32/t-lm32: Add multilib for all CPU options.
13042 2011-02-01 Richard Guenther <rguenther@suse.de>
13044 PR tree-optimization/47541
13045 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13046 sure to have a field at offset zero.
13048 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13050 * config/arc/arc.opt (EB, EL): New Driver options.
13052 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13054 * config/alpha/osf5.opt: New.
13055 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13057 2011-01-31 Joseph Myers <joseph@codesourcery.com>
13059 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13061 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
13063 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13064 -floop-interchange.
13065 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13066 is an alias of -floop-interchange and that it requires the
13067 Graphite infrastructure.
13068 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13069 flag_loop_interchange based on the value of flag_tree_loop_linear.
13071 2011-01-31 Jakub Jelinek <jakub@redhat.com>
13072 Richard Guenther <rguenther@suse.de>
13074 PR tree-optimization/47538
13075 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13076 type instead of r1type, except for comparisons. For right
13077 shifts and comparisons punt if there are mismatches in
13078 sizetype vs. non-sizetype types.
13080 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13082 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13085 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13087 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13089 * configure: Regenerate.
13091 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13093 * configure.ac (gcc_cv_ld_static_option): Define.
13094 (gcc_cv_ld_dynamic_option): Define.
13095 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13097 (HAVE_LD_STATIC_DYNAMIC): Update message.
13098 (LD_STATIC_OPTION): Define.
13099 (LD_DYNAMIC_OPTION): Define.
13100 * configure: Regenerate.
13101 * config.in: Regenerate.
13102 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13103 HAVE_LD_STATIC_DYNAMIC]: Use them.
13105 2011-01-31 Nick Clifton <nickc@redhat.com>
13107 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13108 registers inside interrupt handlers if the handler is not a leaf
13111 2011-01-31 Nick Clifton <nickc@redhat.com>
13113 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13114 reg_renumber returning an INVALID_REGNUM.
13116 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13119 * doc/install.texi: Document host options discarded when cross
13120 configuring target libraries.
13122 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
13125 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13128 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13130 (no_real_insns_p, schedule_block, set_priorities): Drop special
13131 treatment of boundary debug insns.
13132 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13133 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13134 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13135 (BOUNDARY_DEBUG_INSN_P): Likewise.
13136 (SCHEDULE_DEBUG_INSN_P): Likewise.
13137 * sched-rgn.c (init_ready_list): Drop special treatment of
13138 boundary debug insns.
13139 * final.c (rest_of_clean-state): Clear notes' BB.
13141 2011-01-31 Alan Modra <amodra@gmail.com>
13143 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13144 toc relative expressions as we do in print_operand_address.
13146 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
13148 * doc/extend.texi: Follow spelling conventions.
13149 * doc/invoke.texi: Fix a typo.
13151 2011-01-30 Joseph Myers <joseph@codesourcery.com>
13153 * config/hpux11.opt: New.
13154 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13155 ia64*-*-hpux*): Use hpux11.opt.
13157 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
13159 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13162 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13164 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13167 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13169 * doc/install.texi (Binaries): Remove outdated reference for
13170 Motorola 68HC11/68HC12 downloads.
13172 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
13174 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13177 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
13180 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13183 2011-01-28 Ahmad Sharif <asharif@google.com>
13185 * value-prof.c (check_counter): Corrected error message.
13187 2011-01-29 Jie Zhang <jie@codesourcery.com>
13189 * config/arm/arm.c (arm_legitimize_reload_address): New.
13190 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13191 arm_legitimize_reload_address.
13192 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13194 2011-01-28 Ian Lance Taylor <iant@google.com>
13196 * godump.c (go_define): Ignore macros whose definitions include
13197 two adjacent operands.
13199 2011-01-28 Jakub Jelinek <jakub@redhat.com>
13202 * varasm.c (force_const_mem): Store copy of x in desc->constant
13203 instead of x itself.
13204 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13205 itself into REG_EQUAL note.
13207 2011-01-28 Joseph Myers <joseph@codesourcery.com>
13209 * config/freebsd.opt (posix, rdynamic): New Driver options.
13211 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13213 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13214 -Bstatic/-Bdynamic.
13215 * configure: Regenerate.
13217 2011-01-27 Joseph Myers <joseph@codesourcery.com>
13219 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13220 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13222 2011-01-27 Anatoly Sokolov <aesok@post.ru>
13224 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13225 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13226 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13227 (s390_preferred_reload_class): Make static. Change return and
13228 'rclass' argument type to reg_class_t.
13230 2011-01-27 Jan Hubicka <jh@suse.cz>
13232 PR middle-end/46949
13233 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13234 (process_function_and_variable_attributes): Check defined weakrefs.
13236 2011-01-27 Martin Jambor <mjambor@suse.cz>
13238 PR tree-optimization/47228
13239 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13240 build_ref_for_offset.
13242 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13244 * config/spu/spu-elf.h (ASM_SPEC): Remove.
13246 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
13248 PR rtl-optimization/46856
13249 * postreload.c (reload_combine_recognize_const_pattern): Do not
13250 separate cc0 setter and user on cc0 targets.
13252 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
13255 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13256 passed a VOID_TYPE expression, immediately emit an error and
13257 return error_mark_node.
13259 2011-01-26 Jeff Law <law@redhat.com>
13261 PR rtl-optimization/47464
13262 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13263 rather than may_trap_p as needed.
13265 2011-01-26 DJ Delorie <dj@redhat.com>
13267 PR rtl-optimization/46878
13268 * combine.c (insn_a_feeds_b): Check for the implicit cc0
13269 setter/user dependency as well.
13271 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
13273 PR rtl-optimization/44469
13274 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13275 after removing trivially dead basic blocks.
13277 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13279 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13280 * config/frv/frv.h (LINK_SPEC): Likewise.
13281 * config/i386/netware.h (LINK_SPEC): Likewise.
13282 * config/m68k/linux.h (ASM_SPEC): Likewise.
13283 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13284 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13285 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13286 * config/sparc/linux.h (ASM_SPEC): Likewise.
13287 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13288 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13290 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13292 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13293 * config/frv/frv.h (ASM_SPEC): Likewise.
13294 * config/m68k/linux.h (ASM_SPEC): Likewise.
13295 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13296 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13297 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13298 * config/sparc/linux.h (ASM_SPEC): Likewise.
13299 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13300 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13302 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13304 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13305 * config/frv/frv.h (LINK_SPEC): Likewise.
13306 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13308 2011-01-26 Joseph Myers <joseph@codesourcery.com>
13310 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13311 * config/frv/frv.h (ASM_SPEC): Likewise.
13312 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13313 * config/m68k/linux.h (ASM_SPEC): Likewise.
13314 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13315 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13316 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13317 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13318 * config/sparc/linux.h (ASM_SPEC): Likewise.
13319 * config/sparc/linux64.h (ASM_SPEC): Likewise.
13320 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13321 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13323 2011-01-26 Steve Ellcey <sje@cup.hp.com>
13326 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13328 (vec_extract_evenodd_help): Ditto.
13329 (vec_extract_evenv4hi): Ditto.
13330 (vec_extract_oddv4hi): Ditto.
13331 (vec_interleave_lowv2si): Ditto.
13332 (vec_interleave_highv2si): Ditto.
13333 (vec_extract_evenv2si): Ditto.
13334 (vec_extract_oddv2si: Ditto.
13335 (vec_pack_trunc_v2si): Ditto.
13337 2011-01-22 Jan Hubicka <jh@suse.cz>
13340 * cgraph.h (cgraph_local_info): New field can_change_signature.
13341 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13342 signature can change.
13343 (ipcp_estimate_growth): Call sequence simplify only if calle signature
13345 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13346 (cgraph_function_versioning): We can not change signature of functions
13347 that don't allow that.
13348 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13349 (lto_input_node): Likewise.
13350 * ipa-inline.c (compute_inline_parameters): Compute
13351 local.can_change_signature.
13352 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13353 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13354 functions that can not change signature.
13355 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13356 init_cumulative_args): Do not use local calling conventions
13357 for functions that can not change signature.
13359 2011-01-22 Jan Hubicka <jh@suse.cz>
13361 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13363 2011-01-26 Richard Guenther <rguenther@suse.de>
13365 PR tree-optimization/47190
13366 * cgraphunit.c (process_common_attributes): New function.
13367 (process_function_and_variable_attributes): Use it.
13369 2011-01-26 Richard Guenther <rguenther@suse.de>
13372 * cgraphbuild.c (record_eh_tables): Record reference to personality
13375 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
13378 * sel-sched.c (moveup_expr): Don't let debug insns prevent
13379 non-debug insns from moving up.
13381 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13384 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13385 t-dlldir{,-x} fragment for build and add it to tmake_file.
13386 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13387 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13388 * config/i386/t-dlldir: New file.
13389 (SHLIB_DLLDIR): Define.
13390 * config/i386/t-dlldir-x: New file.
13391 (SHLIB_DLLDIR): Define.
13392 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13393 (SHLIB_INSTALL): Use it.
13395 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
13398 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13399 lower bound of the allowed Thumb-2 coprocessor load/store
13400 index range to -256. Add explaining comment.
13402 2011-01-25 Ian Lance Taylor <iant@google.com>
13404 * godump.c (go_define): Improve lexing of macro expansion to only
13405 accept expressions which match Go spec.
13407 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
13410 * tree.c (handle_dll_attribute): Handle it.
13411 * doc/extend.texi (@item dllexport): Mention it.
13412 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13414 2011-01-25 Ian Lance Taylor <iant@google.com>
13416 PR tree-optimization/26854
13417 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13418 (decl_jump_unsafe): Move higher in file, with no other change.
13419 (bind): Set has_jump_unsafe_decl if appropriate.
13420 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13421 (check_earlier_gotos): Likewise.
13422 (c_check_switch_jump_warnings): Likewise.
13424 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
13426 * doc/invoke.texi (Warning Options): Add missing hyphen.
13427 (-fprofile-dir): Minor grammatical fixes.
13428 (-fbranch-probabilities): Likewise.
13430 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
13434 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13436 (no_real_insns_p, schedule_block, set_priorities): Drop special
13437 treatment of boundary debug insns.
13438 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13439 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13440 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13441 (BOUNDARY_DEBUG_INSN_P): Likewise.
13442 (SCHEDULE_DEBUG_INSN_P): Likewise.
13443 * sched-rgn.c (init_ready_list): Drop special treatment of
13444 boundary debug insns.
13445 * final.c (rest_of_clean-state): Clear notes' BB.
13447 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13449 * Makefile.in (LAMBDA_H): Removed.
13450 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13451 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13452 lambda-trans.o, and tree-loop-linear.o.
13453 (lto-symtab.o): Remove dependence on LAMBDA_H.
13454 (tree-loop-linear.o): Remove rule.
13455 (lambda-mat.o): Same.
13456 (lambda-trans.o): Same.
13457 (lambda-code.o): Same.
13458 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13459 (tree-vect-slp.o): Same.
13460 * hwint.h (gcd): Moved here.
13461 (least_common_multiple): Same.
13462 * lambda-code.c: Removed.
13463 * lambda-mat.c: Removed.
13464 * lambda-trans.c: Removed.
13465 * lambda.h: Removed.
13466 * tree-loop-linear.c: Removed.
13467 * lto-symtab.c: Do not include lambda.h.
13468 * omega.c (gcd): Removed.
13469 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13470 * tree-data-ref.c (print_lambda_vector): Moved here.
13471 (lambda_vector_copy): Same.
13472 (lambda_matrix_copy): Same.
13473 (lambda_matrix_id): Same.
13474 (lambda_vector_first_nz): Same.
13475 (lambda_matrix_row_add): Same.
13476 (lambda_matrix_row_exchange): Same.
13477 (lambda_vector_mult_const): Same.
13478 (lambda_vector_negate): Same.
13479 (lambda_matrix_row_negate): Same.
13480 (lambda_vector_equal): Same.
13481 (lambda_matrix_right_hermite): Same.
13482 * tree-data-ref.h: Do not include lambda.h.
13483 (lambda_vector): Moved here.
13484 (lambda_matrix): Same.
13485 (dependence_level): Same.
13486 (lambda_transform_legal_p): Removed declaration.
13487 (lambda_collect_parameters): Same.
13488 (lambda_compute_access_matrices): Same.
13489 (lambda_vector_gcd): Same.
13490 (lambda_vector_new): Same.
13491 (lambda_vector_clear): Same.
13492 (lambda_vector_lexico_pos): Same.
13493 (lambda_vector_zerop): Same.
13494 (lambda_matrix_new): Same.
13495 * tree-flow.h (least_common_multiple): Removed declaration.
13496 * tree-parloops.c (lambda_trans_matrix): Moved here.
13497 (LTM_MATRIX): Same.
13498 (LTM_ROWSIZE): Same.
13499 (LTM_COLSIZE): Same.
13500 (LTM_DENOMINATOR): Same.
13501 (lambda_trans_matrix_new): Same.
13502 (lambda_matrix_vector_mult): Same.
13503 (lambda_transform_legal_p): Same.
13504 * tree-pass.h (pass_linear_transform): Removed declaration.
13505 * tree-ssa-loop.c (tree_linear_transform): Removed.
13506 (gate_tree_linear_transform): Removed.
13507 (pass_linear_transform): Removed.
13508 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13509 flag_loop_interchange.
13511 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13513 PR tree-optimization/47265
13514 PR tree-optimization/47443
13515 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13516 if name still has some uses.
13518 2011-01-25 Martin Jambor <mjambor@suse.cz>
13520 PR tree-optimization/47382
13521 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13522 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13524 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
13526 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13527 sjlj_except_unwind_info.
13529 2011-01-25 Richard Guenther <rguenther@suse.de>
13531 PR tree-optimization/47426
13532 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13533 visible functions results escape.
13535 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13538 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13539 (arm_get_frame_offsets): Use it.
13541 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13542 Jakub Jelinek <jakub@redhat.com>
13544 PR tree-optimization/47271
13545 * tree-if-conv.c (bb_postdominates_preds): New.
13546 (if_convertible_bb_p): Call bb_postdominates_preds.
13547 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13548 (predicate_scalar_phi): Call bb_postdominates_preds.
13550 2011-01-25 Nick Clifton <nickc@redhat.com>
13552 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13553 * config/rx/rx.c (rx_function_value): Likewise.
13554 (rx_promote_function_mode): Likewise.
13555 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13556 in order to make it legitimate.
13557 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13558 make sure that the first operand is the same as the result register.
13559 (addsi3_unspec): Delete.
13560 (subdi3): Do not accept immediate operands.
13561 (subdi3_internal): Likewise.
13563 2011-01-25 Jeff Law <law@redhat.com>
13565 PR rtl-optimization/37273
13566 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13567 handle them like argument loads from stack slots. Do not double
13568 count memory for memory constants and argument loads from stack slots.
13570 2011-01-25 Jakub Jelinek <jakub@redhat.com>
13572 PR tree-optimization/47427
13573 PR tree-optimization/47428
13574 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13575 coalesce if the new root var would be TREE_READONLY.
13577 2011-01-25 Richard Guenther <rguenther@suse.de>
13579 PR middle-end/47414
13580 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13581 correct type for TBAA.
13583 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13585 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13586 (close_phi_written_to_memory): Call for_each_index with
13587 dr_indices_valid_in_loop.
13589 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13591 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13592 when it is initialized.
13594 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13596 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13597 call to graphite_find_data_references_in_stmt.
13598 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13599 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13600 call to graphite_find_data_references_in_stmt.
13601 (analyze_drs_in_stmts): Same.
13602 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13603 in which the scalar analysis of indices is performed.
13604 (create_data_ref): Same. Update call to dr_analyze_indices.
13605 (find_data_references_in_stmt): Update call to create_data_ref.
13606 (graphite_find_data_references_in_stmt): Same.
13607 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13609 (create_data_ref): Same.
13610 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13611 call to create_data_ref.
13613 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13615 * graphite-sese-to-poly.c (build_poly_scop): Move
13616 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13618 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13620 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13621 VAR_DECL, PARM_DECL, and RESULT_DECL.
13623 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13625 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13626 in a reduction PBB.
13627 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13628 that have already been marked as PBB_IS_REDUCTION.
13630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13632 * graphite-scop-detection.c (same_close_phi_node): New.
13633 (remove_duplicate_close_phi): New.
13634 (make_close_phi_nodes_unique): New.
13635 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13637 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13639 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13640 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13641 of both data references to be the same.
13643 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13645 * graphite-dependences.c (build_lexicographical_constraint): Remove
13646 the gdim parameter.
13647 (build_lexicographical_constraint): Adjust call to
13648 ppl_powerset_is_empty.
13649 (dependence_polyhedron): Same.
13650 (graphite_legal_transform_dr): Same.
13651 (graphite_carried_dependence_level_k): Same.
13652 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13654 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13656 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13658 * graphite-sese-to-poly.c
13659 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13660 (close_phi_written_to_memory): New.
13661 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13664 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13666 * doc/install.texi: Update the expected version number of PPL to 0.11.
13667 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13668 #if PPL_VERSION_MINOR < 11.
13670 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13672 * graphite-dependences.c: Include graphite-cloog-util.h.
13673 (new_poly_ddr): Inlined into dependence_polyhedron.
13674 (free_poly_ddr): Moved close by new_poly_ddr.
13675 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13676 Early return NULL when ppl_powerset_is_empty returns true.
13677 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13678 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13679 (graphite_legal_transform_dr): Call new_poly_ddr.
13680 (graphite_carried_dependence_level_k): Same.
13681 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13682 (dot_transformed_deps_stmt_1): Removed.
13683 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13684 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13685 (dot_deps_1): Call dot_deps_2.
13686 * Makefile.in (graphite-dependences.o): Add missing dependence on
13687 graphite-cloog-util.h.
13689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13691 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13692 (build_lexicographical_constraint): Same.
13693 (dependence_polyhedron_1): Same.
13694 (graphite_legal_transform_dr): Same.
13695 (graphite_carried_dependence_level_k): Same.
13696 * graphite-ppl.c (ppl_powerset_is_empty): New.
13697 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13698 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13700 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13702 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13703 the "a followed by b" relation and document it.
13705 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13707 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13708 iteration when the bag of constraints is empty.
13710 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13712 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13714 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13716 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13717 nest and two loop depths as parameters.
13718 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13719 lst_perfect_nestify.
13721 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13723 * graphite-dependences.c (print_pddr): Call
13724 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13726 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13728 * graphite-ppl.c (debug_gmp_value): New.
13729 * graphite-ppl.h (debug_gmp_value): Declared.
13731 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13733 * doc/install.texi: Document availability of cloog-0.16.
13735 2011-01-25 Vladimir Kargov <kargov@gmail.com>
13737 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13738 invalid postdominance info.
13740 2011-01-24 Jan Hubicka <jh@suse.cz>
13743 * doc/extend.texi (weak pragma): Drop claim that it must
13744 appear before definition.
13745 * varasm.c (merge_weak, declare_weak): Only sanity check
13746 that DECL is not output at a time it is declared weak.
13748 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13750 * machmode.def: Fixed comments.
13752 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
13754 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13756 2011-01-24 Paul Koning <ni1d@arrl.net>
13758 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13761 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13764 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13765 (block_info): Add scanned and prev.
13766 (move_or_delete_vzeroupper_2): Return if the basic block
13767 has been scanned and the upper 128bit state is unchanged
13768 from the last scan.
13769 (move_or_delete_vzeroupper_1): Return true if the exit
13771 (move_or_delete_vzeroupper): Visit basic blocks using the
13772 work-list based algorithm based on vt_find_locations in
13775 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13777 2011-01-24 Nick Clifton <nickc@redhat.com>
13779 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13780 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13781 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13782 then define __v850e1__.
13783 * doc/invoke.texi: Document -mv850es.
13785 2011-01-24 Richard Henderson <rth@redhat.com>
13787 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13788 compound unordered comparisons.
13789 * config/rx/rx.c (rx_split_fp_compare): Remove.
13790 * config/rx/rx-protos.h: Update.
13791 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13792 (cbranchsf4): Don't call rx_split_fp_compare.
13793 (*cbranchsf4): Use rx_split_cbranch.
13794 (*cmpsf): Don't accept "i" constraint.
13795 (*conditional_branch): Only valid after reload.
13796 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13798 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13801 * config/rs6000/altivec.md (vector constant splitters): Add
13802 support for creating vector single precision constants if -mvsx is
13803 used and we would create the constant using Altivec primitives.
13805 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13806 Richard Sandiford <rdsandiford@googlemail.com>
13808 PR rtl-optimization/47166
13809 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13810 mechanism for PRE_MODIFY and POST_MODIFY.
13811 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13814 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13816 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
13818 2011-01-22 Jan Hubicka <jh@suse.cz>
13821 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13823 2011-01-22 Jan Hubicka <jh@suse.cz>
13825 PR tree-optimization/43884
13827 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
13828 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13830 2011-01-22 Anatoly Sokolov <aesok@post.ru>
13832 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13833 * config/s390/s390.c (s390_register_move_cost,
13834 s390_memory_move_cost): New.
13835 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13837 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13839 PR middle-end/47401
13840 * except.c (sjlj_assign_call_site_values): Move setting the
13841 crtl->uses_eh_lsda flag to ...
13842 (sjlj_mark_call_sites): ... here.
13843 (sjlj_emit_function_enter): Support NULL dispatch label.
13844 (sjlj_build_landing_pads): In a function with no landing pads
13845 that still has must-not-throw regions, generate code to register
13846 a personality function with empty LSDA.
13848 2011-01-21 Richard Henderson <rth@redhat.com>
13850 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13852 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13854 * compare-elim.c: New file.
13855 * Makefile.in (OBJS-common): Add it.
13856 (compare-elim.o): New.
13857 * common.opt (fcompare-elim): New.
13858 * opts.c (default_options_table): Add OPT_fcompare_elim.
13859 * tree-pass.h (pass_compare_elim_after_reload): New.
13860 * passes.c (init_optimization_passes): Add it.
13861 * recog.h: Protect against re-inclusion.
13862 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13863 * doc/invoke.texi (-fcompare-elim): Document it.
13864 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13865 * doc/tm.texi: Rebuild.
13867 2011-01-22 Nick Clifton <nickc@redhat.com>
13869 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13870 rx_split_fp_compare.
13872 2011-01-22 Nick Clifton <nickc@redhat.com>
13874 * config/rx/rx.md (UNSPEC_CONST): New.
13875 (deallocate_and_return): Wrap the amount popped off the stack in
13876 an UNSPEC_CONST in order to stop it being rejected by
13877 -mmax-constant-size.
13878 (pop_and_return): Add a "(return)" rtx.
13879 (call): Drop the immediate operand.
13880 (call_internal): Likewise.
13881 (call_value): Likewise.
13882 (call_value_internal): Likewise.
13883 (sibcall_internal): Likewise.
13884 (sibcall_value_internal): Likewise.
13885 (sibcall): Likewise. Generate an explicit call using
13887 (sibcall_value): Likewise.
13888 (mov<>): FAIL if a constant operand is not legitimate.
13889 (addsi3_unpsec): New pattern.
13891 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
13892 (ok_for_max_constant): New function.
13893 (gen_safe_add): New function.
13894 (rx_expand_prologue): Use gen_safe_add.
13895 (rx_expand_epilogue): Likewise.
13896 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13899 2011-01-21 Jeff Law <law@redhat.com>
13901 PR tree-optimization/47053
13902 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13903 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13904 statements are deleted.
13905 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13906 is nonempty, then purge dead edges and cleanup the CFG.
13908 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13911 Temporarily revert:
13912 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13914 * tree-dfa.c (create_var_ann): Mark variable as used.
13916 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13918 PR middle-end/45566
13919 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13920 notes from other section in hot/cold partitioning even if
13921 last_action is -3. Increment call_site_base.
13923 PR rtl-optimization/47366
13924 * fwprop.c (forward_propagate_into): Return bool. If
13925 any changes are made, -fnon-call-exceptions is used and
13926 REG_EH_REGION note is present, call purge_dead_edges
13927 and return true if it purged anything.
13928 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13929 any EH edges were purged.
13931 2011-01-21 Jeff Law <law@redhat.com>
13933 PR rtl-optimization/41619
13934 * caller-save.c (setup_save_areas): Break out code to determine
13935 which hard regs are live across calls by examining the reload chains
13936 so that it is always used.
13937 Eliminate code which checked REG_N_CALLS_CROSSED.
13939 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13941 PR tree-optimization/47355
13942 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13943 NOP has non-debug uses beyond PHIs in new_bb.
13945 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13948 * cfgexpand.c (account_used_vars_for_block): Only account vars
13949 that are annotated as used.
13950 (estimated_stack_frame_size): Don't set TREE_USED.
13951 * tree-dfa.c (create_var_ann): Mark variable as used.
13953 2011-01-21 Richard Guenther <rguenther@suse.de>
13955 PR middle-end/47395
13956 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13958 2011-01-21 Richard Guenther <rguenther@suse.de>
13960 PR tree-optimization/47365
13961 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13962 (vn_reference_lookup_pieces): Adjust.
13963 (vn_reference_lookup): Likewise.
13964 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13965 (vn_reference_lookup_3): Only look through kills if in
13966 VN_WALKREWRITE mode.
13967 (vn_reference_lookup_pieces): Adjust.
13968 (vn_reference_lookup): Likewise.
13969 (visit_reference_op_load): Likewise.
13970 (visit_reference_op_store): Likewise.
13971 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13972 (compute_avail): Likewise.
13973 (eliminate): Likewise.
13975 2011-01-21 Jakub Jelinek <jakub@redhat.com>
13977 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13978 DECL_IGNORED_P non-reg vars if they are used.
13980 PR tree-optimization/47391
13981 * varpool.c (const_value_known_p): Return false if
13984 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
13987 * config/i386/i386.c (ix86_local_alignment): Handle
13988 case for va_list_type_node is nil.
13989 (ix86_canonical_va_list_type): Likewise.
13991 2011-01-21 Alan Modra <amodra@gmail.com>
13993 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13994 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13996 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13998 * config/arm/arm.md (define_attr type): Rename f_load
13999 and f_store to f_fpa_load and f_fpa_store. Update.
14000 (write_conflict): Deal with rename fallout.
14001 (*push_fp_multi): Likewise.
14002 * config/arm/fpa.md (f_load): Use f_fpa_load.
14003 (f_store): Use f_fpa_store.
14004 (*movsf_fpa): Likewise.
14005 (*movdf_fpa): Likewise.
14006 (*movxf_fpa): Likewise.
14007 (*thumb2_movsf_fpa): Likewise.
14008 (*thumb2_movdf_fpa): Likewise.
14009 (*thumb2_movxf_fpa): Likewise.
14010 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14011 f_loadd and f_stored.
14012 (*thumb2_movdi_vfp): Likewise.
14013 (*thumb2_movsf_vfp): Fix attribute to f_loads.
14014 (*thumb2_movsi_vfp): Likewise.
14015 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14016 Use f_loads instead of f_load.
14017 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14019 2011-01-20 Anatoly Sokolov <aesok@post.ru>
14021 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14022 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14023 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14024 (xtensa_mode_dependent_address_p): New function.
14025 (constantpool_address_p): Make static. Change return type to bool.
14026 Change argument type to const_rtx. Use CONST_INT_P predicate.
14028 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
14031 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14033 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14036 * cfgexpand.c (expand_debug_expr): Instead of generating
14037 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14040 2011-01-20 Richard Guenther <rguenther@suse.de>
14042 PR middle-end/47370
14043 * tree-inline.c (remap_gimple_op_r): Recurse manually for
14044 the pointer operand of MEM_REFs.
14046 2011-01-20 Jakub Jelinek <jakub@redhat.com>
14048 PR tree-optimization/46130
14049 * ipa-split.c (consider_split): If return_bb contains non-virtual
14050 PHIs other than for retval or if split_function would not adjust it,
14053 2011-01-20 Richard Guenther <rguenther@suse.de>
14055 PR tree-optimization/47167
14056 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14057 Revert previous change, only avoid enumeral type changes.
14059 2011-01-19 Mike Stump <mikestump@comcast.net>
14061 * doc/tm.texi.in (BRANCH_COST): Englishify.
14062 * doc/tm.texi (BRANCH_COST): Likewise.
14064 2011-01-19 Dodji Seketeli <dodji@redhat.com>
14067 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14068 (gen_scheduled_generic_parms_dies): New functions.
14069 (gen_struct_or_union_type_die): Schedule template parameters DIEs
14070 generation for the end of CU compilation.
14071 (dwarf2out_finish): Generate template parameters DIEs here.
14073 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14076 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14077 debug bind stmt on merge edges.
14079 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14083 * function.c (instantiate_expr): Instantiate incoming rtl of
14084 implicit arguments, and recurse on VALUE_EXPRs.
14085 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14086 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14088 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
14090 * c-parser.c (c_parser_for_statement): Initialize
14091 collection_expression.
14093 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14095 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14097 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14099 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14100 (LINK_SHLIB_SPEC): Don't use %(link_path).
14101 (SUBTARGET_EXTRA_SPECS): Remove link_path.
14103 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14105 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14106 (NO_SHARED_LIB_SUPPORT): Remove.
14107 (LINK_SHLIB_SPEC): Remove one conditional definition.
14109 2011-01-19 Joseph Myers <joseph@codesourcery.com>
14111 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14113 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14114 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14115 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14116 %{call_shared} and conditionals on these options not being passed.
14117 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14120 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14122 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14125 * ipa-split.c: Spelling fixes.
14127 2011-01-19 Richard Henderson <rth@redhat.com>
14129 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14130 (*mulsi3): Likewise.
14132 * longlong.h [__mn10300__] (count_leading_zeros): New.
14133 [__mn10300__] (umul_ppmm, smul_ppmm): New.
14134 [__mn10300__] (add_ssaaaa, subddmmss): New.
14135 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14136 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14138 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14140 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14142 2011-01-19 Richard Henderson <rth@redhat.com>
14144 * config/mn10300/mn10300.md (addsi3_flags): New.
14145 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14146 (subsi3_flags, subc_internal, subdi3): New.
14147 (subdi3_internal, *subdi3_degenerate): New.
14148 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14150 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14151 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14152 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
14153 * config/mn10300/mn10300-protos.h: Update.
14154 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14155 (return_ret): Likewise. Rename from return_internal_regs.
14156 (return_internal): Remove.
14158 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14159 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14160 (mn10300_legitimate_constant_p): Likewise.
14161 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14162 (mn10300_frame_size): New.
14163 (mn10300_expand_prologue): Use it.
14164 (mn10300_expand_epilogue): Likewise.
14165 (mn10300_initial_offset): Likewise.
14166 * config/mn10300/mn10300-protos.h: Update.
14167 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14168 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14169 (prologue, epilogue, return_internal): Tidy output code.
14170 (mn10300_store_multiple_operation, return): Likewise.
14171 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14172 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14173 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14174 (load_pic, am33_load_pic): New.
14175 (mn10300_load_pic0, mn10300_load_pic1): New.
14177 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14178 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14179 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14180 (cc_flags_for_mode, cc_flags_for_code): New.
14181 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14182 overflow flag is not valid. Validate that the flags we need
14183 for the comparison are valid.
14184 (mn10300_output_cmp): Remove.
14185 (mn10300_output_add): New.
14186 (mn10300_select_cc_mode): Use cc_flags_for_code.
14187 (mn10300_split_cbranch): New.
14188 (mn10300_match_ccmode): New.
14189 (mn10300_split_and_operand_count): New.
14190 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14192 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14193 (addsi3): ... here. Use mn10300_output_add.
14194 (*addsi3_flags): New.
14195 (*am33_subsi3, *mn10300_subsi3): Merge...
14196 (subsi3): ... here. Use attribute isa.
14197 (*subsi3_flags): New.
14198 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
14200 (*am33_andsi3, *mn10300_andsi3): Merge...
14201 (andsi3): ... here.
14202 (*andsi3_flags): New.
14203 (andsi3 splitters): New.
14204 (*am33_iorsi3, *mn10300_iorsi3): Merge...
14205 (iorsi3): ... here.
14206 (*iorsi3_flags): New.
14207 (*am33_xorsi3, *mn10300_xorsi3): Merge...
14208 (xorsi3): ... here.
14209 (*xorsi3_flags): New.
14210 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14211 (one_cmplsi2): ... here.
14212 (*one_cmplsi2_flags): New.
14213 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
14214 instead of "dax" in constraints. Use mn10300_split_cbranch.
14215 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
14216 use matching constraints to eliminate a self-comparison.
14217 (*integer_conditional_branch): Rename from integer_conditional_branch.
14218 Use int_mode_flags to match CC_REG.
14219 (*cbranchsi4_btst, *btstsi): New.
14220 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
14221 mn10300_split_cbranch.
14222 (*am33_cmpsf): Rename from am33_cmpsf.
14223 (*float_conditional_branch): Rename from float_conditional_branch.
14224 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14225 (zero_extendqisi2): ... here.
14226 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14227 (zero_extendhisi2): ... here.
14228 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14229 (extendqisi2): ... here.
14230 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14231 (extendhisi2): ... here.
14232 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14233 (ashlsi3): ... here.
14234 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14235 (lshrsi3): ... here.
14236 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14237 (ashrsi3): ... here.
14238 (consecutive add peephole): Remove.
14239 * config/mn10300/predicates.md (label_ref_operand): New.
14240 (int_mode_flags): New.
14241 (CCZN_comparison_operator): New.
14243 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14244 (throughput_42_latency_43): New reservation.
14245 (mulsidi3, umulsidi3): New expanders.
14246 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
14247 the MDR register to allocation; separately allocate the low and
14248 high parts of the DImode result.
14249 (umulsidi3_internal): Similarly.
14250 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14251 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
14252 (udivsi3, umodsi3): Remove.
14253 (udivmodsi4, divmodsi4): New expanders.
14254 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
14255 (*divmodsi4): Simiarly.
14256 (ext_internal): New.
14258 * config/mn10300/constraints.md ("z"): New constraint.
14259 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14260 (FIXED_REGISTERS): Don't fix MDR.
14261 (CALL_USED_REGSITERS): Reformat nicely.
14262 (REG_ALLOC_ORDER): Add MDR.
14263 (enum regclass): Add MDR_REGS.
14264 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14265 (IRA_COVER_CLASSES): Add MDR_REGS.
14266 (REGNO_REG_CLASS): Handle MDR_REG.
14267 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14268 (mn10300_register_move_cost): Likewise.
14269 * config/mn10300/mn10300.md (MDR_REG): New.
14270 (*movsi_internal): Handle moves to/from MDR_REGS.
14272 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14274 (mn10300_secondary_reload): Tidy combination reload classes.
14275 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14276 addresses for AM33. Allow symbolic offsets for reg+imm.
14277 (mn10300_regno_in_class_p): New.
14278 (mn10300_legitimize_reload_address): New.
14279 * config/mn10300/mn10300.h (enum reg_class): Remove
14280 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14281 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
14282 SP_OR_GENERAL_REGS.
14283 (REG_CLASS_NAMES): Update to match.
14284 (REG_CLASS_CONTENTS): Likewise.
14285 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14286 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14287 (REGNO_IN_RANGE_P): Remove.
14288 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14289 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14290 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14291 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14292 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14293 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14294 (REGNO_GENERAL_P): New.
14295 (HAVE_POST_MODIFY_DISP): New.
14296 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14297 (LEGITIMIZE_RELOAD_ADDRESS): New.
14298 * config/mn10300/mn10300-protos.h: Update.
14300 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14301 DATA_REGS for AM33 stack-pointer destination.
14302 (mn10300_preferred_output_reload_class): Likewise.
14303 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14304 into a form appropriate for ...
14305 (TARGET_SECONDARY_RELOAD): New.
14306 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14307 * config/mn10300/mn10300-protos.h: Update.
14308 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14309 reload_insi; use the "A" constraint for the scratch; handle AM33
14310 moves of sp to non-address registers.
14312 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14313 (*movqi_internal): ... here.
14314 (*am33_movhi, *mn10300_movhi): Merge into...
14315 (*movhi_internal): ... here.
14316 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
14317 as the source/destination of moves from/to SP.
14318 (movsf): Only allow for AM33-2.
14319 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14320 any integer constant constraint. Only allow for AM33-2. Tidy
14321 all of the alternative outputs.
14322 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14323 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
14325 (udivsi3, umodsi3): New patterns for MN103 only.
14327 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
14329 * doc/tm.texi.in: Spell out that a lack of register class unions
14331 * doc/tm.texi: Regenerate.
14333 2011-01-19 Jakub Jelinek <jakub@redhat.com>
14335 PR rtl-optimization/47337
14336 * dce.c (check_argument_store): New function.
14337 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
14339 PR tree-optimization/47290
14340 * tree-eh.c (infinite_empty_loop_p): New function.
14341 (cleanup_empty_eh): Use it.
14343 2011-01-18 Steve Ellcey <sje@cup.hp.com>
14346 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14347 (a64_expand_widen_sum): Ditto.
14348 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14349 (vec_extract_evenodd_help): Ditto.
14350 (vec_extract_evenv4hi): Ditto.
14351 (vec_extract_oddv4hi): Ditto.
14352 (vec_extract_evenv2si): Ditto.
14353 (vec_extract_oddv2si): Ditto.
14354 (vec_extract_evenv2sf): Ditto.
14355 (vec_extract_oddv2sf): Ditto.
14356 (vec_pack_trunc_v4hi: Ditto.
14357 (vec_pack_trunc_v2si): Ditto.
14358 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14359 (vec_interleave_highv8qi): Ditto.
14361 (vec_extract_oddv8qi): Ditto.
14362 (vec_interleave_lowv4hi): Ditto.
14363 (vec_interleave_highv4hi): Ditto.
14364 (vec_interleave_lowv2si): Ditto.
14365 (vec_interleave_highv2si): Ditto.
14367 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14369 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14370 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14371 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
14372 (pa_c_mode_for_suffix): New.
14373 (TARGET_EXPAND_BUILTIN): Define.
14374 (TARGET_C_MODE_FOR_SUFFIX): Define.
14375 (pa_builtins): Define.
14376 (pa_init_builtins): Register __float128 type and init new support
14378 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14379 * config/pa/quadlib.c (_U_Qfcopysign): New.
14381 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
14383 PR middle-end/46894
14384 * explow.c (allocate_dynamic_stack_space): Do not assume more than
14385 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14388 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14390 PR tree-optimization/47179
14391 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14392 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14394 2011-01-18 Richard Guenther <rguenther@suse.de>
14396 PR rtl-optimization/47216
14397 * emit-rtl.c: Include tree-flow.h.
14398 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14399 of replicating it with different semantics.
14400 * Makefile.in (emit-rtl.o): Adjust.
14402 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14404 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14405 (cortex_a9_dp): Handle neon types correctly.
14407 2011-01-18 Jakub Jelinek <jakub@redhat.com>
14409 PR rtl-optimization/47299
14410 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14411 subtarget. Use normal multiplication if both operands are constants.
14412 * expmed.c (expand_widening_mult): Don't try to optimize constant
14413 multiplication if op0 has VOIDmode. Convert op1 constant to mode
14416 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14418 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
14419 spacing after 'e.g.', typos, comma, hyphenation.
14421 2011-01-17 Richard Henderson <rth@redhat.com>
14423 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14424 (rx_restricted_mem_operand): New.
14425 (rx_shift_operand): Use register_operand.
14426 (rx_source_operand, rx_compare_operand): Likewise.
14427 * config/rx/rx.md (addsi3_flags): New expander.
14428 (adddi3): Rewrite as expander.
14429 (adc_internal, *adc_flags, adddi3_internal): New patterns.
14430 (subsi3_flags): New expander.
14431 (subdi3): Rewrite as expander.
14432 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14434 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14435 (rx_init_builtins): Remove sat builtin.
14436 (rx_expand_builtin): Likewise.
14437 * config/rx/rx.md (ssaddsi3): New.
14438 (*sat): Rename from sat. Represent the CC_REG input.
14440 * config/rx/predicates.md (rshift_operator): New.
14441 * config/rx/rx.c (rx_expand_insv): Remove.
14442 * config/rx/rx-protos.h: Update.
14443 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
14444 operand to the canonical position.
14445 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14446 (*bitclr, *bitclr_in_memory): Similarly.
14447 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14448 (insv): Retain the zero_extract in the expansion.
14450 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14451 (bswaphi2, bitinvert, revw): Likewise.
14453 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14454 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14455 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14456 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14457 (bitset, bitset_in_memory): Likewise.
14458 (bitinvert, bitinvert_in_memory): Likewise.
14459 (bitclr, bitclr_in_memory): Likewise.
14460 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14461 (rx_strend, rx_cmpstrn): Likewise.
14462 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14463 (bitop peep2 patterns): Remove.
14465 * config/rx/rx.c (rx_match_ccmode): New.
14466 * config/rx/rx-protos.h: Update.
14467 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14468 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14469 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14470 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14471 (fix_truncsfsi2, floatsisf2): Likewise.
14472 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14473 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14474 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14475 (*subsi3_flags, *xorsi3_flags): New.
14477 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14479 * config/rx/rx.c (rx_print_operand): Remove workaround for
14480 unsplit comparison operations.
14482 * config/rx/rx.md (movsicc): Split after reload.
14483 (*movsicc): Merge *movsieq and *movsine via match_operator.
14484 (*stcc): New pattern.
14486 * config/rx/rx.c (rx_float_compare_mode): Remove.
14487 * config/rx/rx.h (rx_float_compare_mode): Remove.
14488 * config/rx/rx.md (cstoresi4): Split after reload.
14489 (*sccc): New pattern.
14491 * config/rx/predicates.md (label_ref_operand): New.
14492 (rx_z_comparison_operator): New.
14493 (rx_zs_comparison_operator): New.
14494 (rx_fp_comparison_operator): New.
14495 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14496 Validate that the flags are set properly for the comparison.
14497 (rx_gen_cond_branch_template): Remove.
14498 (rx_cc_modes_compatible): Remove.
14499 (mode_from_flags): New.
14500 (flags_from_code): Rename from flags_needed_for_conditional.
14501 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14502 (rx_select_cc_mode): Likewise.
14503 (rx_split_fp_compare): New.
14504 (rx_split_cbranch): New.
14505 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14506 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14507 (*cbranchsf4): Similarly.
14508 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14509 match_operator and rx_split_cbranch.
14510 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14511 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14512 (*cmpsi): Rename from cmpsi.
14513 (*tstsi): Rename from tstsi.
14514 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14515 (*conditional_branch): Rename from conditional_branch.
14516 (*reveresed_conditional_branch): Remove.
14517 (b<code>): Remove expander.
14518 * config/rx/rx-protos.h: Update.
14520 * config/rx/rx.c (rx_compare_redundant): Remove.
14521 * config/rx/rx.md (cmpsi): Don't use it.
14522 * config/rx/rx-protos.h: Update.
14524 * config/rx/rx-modes.def (CC_F): New mode.
14525 * config/rx/rx.c (rx_select_cc_mode): New.
14526 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14527 * config/rx/rx-protos.h: Update.
14529 2011-01-17 Richard Henderson <rth@redhat.com>
14531 * except.c (dump_eh_tree): Fix stray ; after for statement.
14533 2011-01-17 Richard Guenther <rguenther@suse.de>
14535 PR tree-optimization/47313
14536 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14537 handling before copying the body. Properly deal with
14538 by-reference result in SSA form.
14540 2011-01-17 Ian Lance Taylor <iant@google.com>
14543 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14544 (struct_value_alias_set): Don't define.
14545 (sparc_option_override): Don't set sparc_sr_alias_set and
14546 struct_value_alias_set.
14547 (save_or_restore_regs): Use gen_frame_mem rather than calling
14549 (sparc_struct_value_rtx): Likewise.
14551 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14554 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14555 (_mm_maskstore_pd): Likewise.
14556 (_mm_maskload_ps): Likewise.
14557 (_mm_maskstore_ps): Likewise.
14558 (_mm256_maskload_pd): Change mask to __m256i.
14559 (_mm256_maskstore_pd): Likewise.
14560 (_mm256_maskload_ps): Likewise.
14561 (_mm256_maskstore_ps): Likewise.
14563 * config/i386/i386-builtin-types.def: Updated.
14564 (ix86_expand_special_args_builtin): Likewise.
14566 * config/i386/i386.c (bdesc_special_args): Update
14567 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14568 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14569 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14570 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14572 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14573 Use <avxpermvecmode> on mask register.
14574 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14576 2011-01-17 Olivier Hainque <hainque@adacore.com>
14577 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14578 Eric Botcazou <ebotcazou@adacore.com>
14581 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14582 if <= USHRT_MAX in 32-bit mode.
14584 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14586 * doc/install.texi (Configuration, Specific): Wrap long
14587 lines in examples. Allow line wrapping in long options
14588 and URLs where beneficial for PDF output.
14590 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14592 * config/mips/mips.c (mips_classify_symbol): Don't return
14593 SYMBOL_PC_RELATIVE for nonlocal labels.
14595 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
14597 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14599 2011-01-15 Jan Hubicka <jh@suse.cz>
14601 PR tree-optimization/47276
14602 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14603 declarations as needed.
14605 2011-01-15 Martin Jambor <mjambor@suse.cz>
14607 * common.opt (fdevirtualize): New flag.
14608 * doc/invoke.texi (Option Summary): Document it.
14609 * opts.c (default_options_table): Add devirtualize flag.
14610 * ipa-prop.c (detect_type_change): Return immediately if
14611 devirtualize flag is not set.
14612 (detect_type_change_ssa): Likewise.
14613 (compute_known_type_jump_func): Likewise.
14614 (ipa_analyze_virtual_call_uses): Likewise.
14616 2011-01-14 Martin Jambor <mjambor@suse.cz>
14618 PR tree-optimization/45934
14619 PR tree-optimization/46302
14620 * ipa-prop.c (type_change_info): New type.
14621 (stmt_may_be_vtbl_ptr_store): New function.
14622 (check_stmt_for_type_change): Likewise.
14623 (detect_type_change): Likewise.
14624 (detect_type_change_ssa): Likewise.
14625 (compute_complex_assign_jump_func): Check for dynamic type change.
14626 (compute_complex_ancestor_jump_func): Likewise.
14627 (compute_known_type_jump_func): Likewise.
14628 (compute_scalar_jump_functions): Likewise.
14629 (ipa_analyze_virtual_call_uses): Likewise.
14630 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14632 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14634 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14635 * config/i386/i386.opt (msse5): New Alias.
14637 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14639 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14640 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14641 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14642 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14644 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14646 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14648 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14649 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14650 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14651 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14653 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14655 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14657 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14659 2011-01-14 Mike Stump <mikestump@comcast.net>
14661 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14662 * config/fr30/fr30.md: Likweise
14663 (movsi_push): Likewise.
14664 (movsi_pop): Likewise.
14665 (enter_func): Likewise.
14666 * config/moxie/moxie.md (movsi_push): Likewise.
14667 (movsi_pop): Likewise.
14669 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14671 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14672 %{no_archive} %{exact_version}.
14673 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14674 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14675 %{no_archive} %{exact_version}.
14676 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14677 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14678 * config/mips/vxworks.h: Likewise.
14680 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14682 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14684 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14686 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14687 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14689 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14691 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14694 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14696 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14698 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14699 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14701 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14702 Don't handle -shlib.
14704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14706 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14707 (CC1_SPEC): Don't handle -profile.
14709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14711 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14712 * config/mips/mips.h (CC1_SPEC): Likewise.
14714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14716 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14717 * config/mips/mips.h (CC1_SPEC): Likewise.
14719 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14721 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14722 * config/m32r/linux.h (LINK_SPEC): Likewise.
14723 * config/mips/linux.h (LINK_SPEC): Likewise.
14724 * config/mips/linux64.h (LINK_SPEC): Likewise.
14725 * config/sparc/linux.h (LINK_SPEC): Likewise.
14726 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14727 LINK_SPEC): Likewise.
14728 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14730 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14732 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14734 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14736 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14738 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14739 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14741 2011-01-14 Joseph Myers <joseph@codesourcery.com>
14743 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14745 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14747 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14748 supports -Bstatic/-Bdynamic.
14749 * configure: Regenerate.
14751 2011-01-14 Jan Hubicka <jh@suse.cz>
14752 Jack Howarth <howarth@bromo.med.uc.edu>
14755 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14756 when checking debug_info_level. Test write_symbols instead of
14757 debug_hooks->var_location when setting flag_var_tracking_uninit.
14759 2011-01-14 Richard Guenther <rguenther@suse.de>
14761 PR tree-optimization/47179
14762 * target.def (ref_may_alias_errno): New target hook.
14763 * targhooks.h (default_ref_may_alias_errno): Declare.
14764 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14765 (default_ref_may_alias_errno): New function.
14766 * target.h (struct ao_ref_s): Declare.
14767 * tree-ssa-alias.c: Include target.h.
14768 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14769 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14770 (targhooks.o): Likewise.
14771 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14772 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14774 2011-01-14 Richard Guenther <rguenther@suse.de>
14776 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14778 2011-01-14 Richard Guenther <rguenther@suse.de>
14780 PR tree-optimization/47280
14781 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14782 return CFG changes.
14783 (tree_ssa_forward_propagate_single_use_vars): Deal with
14784 CFG changes from associate_plusminus.
14786 2011-01-14 Richard Guenther <rguenther@suse.de>
14788 PR middle-end/47281
14790 2011-01-11 Richard Guenther <rguenther@suse.de>
14792 PR tree-optimization/46076
14793 * tree-ssa.c (useless_type_conversion_p): Conversions from
14794 unprototyped to empty argument list function types are useless.
14796 2011-01-14 Richard Guenther <rguenther@suse.de>
14798 PR tree-optimization/47286
14799 * tree-ssa-structalias.c (new_var_info): Register variables are global.
14801 2011-01-14 Martin Jambor <mjambor@suse.cz>
14803 PR middle-end/46823
14804 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14806 2011-01-13 Anatoly Sokolov <aesok@post.ru>
14808 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14809 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14810 * config/xtensa/xtensa.c (xtensa_libcall_value,
14811 xtensa_function_value_regno_p): New functions.
14812 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14814 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
14817 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14819 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14820 New function prototype.
14821 * config/i386/winnt.c (i386_pe_assemble_visibility):
14822 Warn only if attribute was specified by user.
14824 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14827 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14829 (floatunsdidf2_fcfidu): Ditto.
14831 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14833 * config/s390/s390.c (print_operand_address): Replace 'error' with
14834 'output_operand_lossage'.
14835 (print_operand): Likewise.
14837 2011-01-13 Jeff Law <law@redhat.com>
14839 PR rtl-optimization/39077
14840 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14841 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14842 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14843 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14844 * gcse.c (prune_insertions_deletions): New function.
14845 (compute_pre_data): Use it.
14847 2011-01-13 Dodji Seketeli <dodji@redhat.com>
14850 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14852 (prune_unused_types_mark): Use it.
14854 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
14856 PR rtl-optimization/45352
14857 * sel-sched.c: Update copyright years.
14858 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
14859 in the advancing loop when we have issued issue_rate insns.
14861 2011-01-12 Richard Henderson <rth@redhat.com>
14863 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14864 (TARGET_MD_ASM_CLOBBERS): New.
14866 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14867 (TARGET_DELEGITIMIZE_ADDRESS): New.
14869 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14870 (clzsi2, *bsch): New patterns.
14872 * config/mn10300/mn10300.md (INT): New mode iterator.
14873 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14875 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14876 flag_split_wide_types.
14878 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14879 (mn10300_trampoline_init): Rewrite without a template, an immediate
14880 load and a direct branch.
14881 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14883 2011-01-12 Anatoly Sokolov <aesok@post.ru>
14885 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14886 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14887 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14888 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14890 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
14893 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14896 2011-01-12 Jan Hubicka <jh@suse.cz>
14899 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14900 (PLUGIN_COND_CLOSE): New macro.
14901 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14903 2011-01-12 Richard Guenther <rguenther@suse.de>
14906 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14907 register variables in a MEM_REF.
14909 2011-01-12 Joseph Myers <joseph@codesourcery.com>
14911 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14912 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14913 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14914 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14915 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14916 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14917 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14918 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14919 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14920 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14921 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14922 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14923 * config/gnu-user.h: New. Copied from linux.h.
14924 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14925 GNU_USER_TARGET_STARTFILE_SPEC.
14926 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14927 GNU_USER_TARGET_ENDFILE_SPEC.
14928 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14929 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14930 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14931 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14932 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14933 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14934 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14935 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14936 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14937 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14938 * config/arm/linux-eabi.h (CC1_SPEC): Use
14939 GNU_USER_TARGET_CC1_SPEC.
14940 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14941 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14942 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14943 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14944 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14945 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14946 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14947 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14949 2011-01-12 Richard Guenther <rguenther@suse.de>
14952 * doc/invoke.texi (ffast-math): Document it is turned on
14955 2011-01-12 Jan Hubicka <jh@suse.cz>
14957 PR tree-optimization/47233
14958 * opts.c (common_handle_option): Disable ipa-reference with profile
14961 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14963 * c-parser.c (c_parser_objc_at_property_declaration): Improved
14966 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14968 * c-parser.c (c_lex_one_token): Updated and reindented some
14969 comments. No changes in code.
14971 2011-01-11 Ian Lance Taylor <iant@google.com>
14973 * godump.c (go_output_var): Don't output the variable if there is
14974 already a type with the same name.
14976 2011-01-11 Ian Lance Taylor <iant@google.com>
14978 * godump.c (go_format_type): Don't generate float80.
14980 2011-01-11 Richard Henderson <rth@redhat.com>
14982 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14983 declaration. Rewrite for both speed and size.
14984 (mn10300_address_cost_1): Remove.
14985 (mn10300_register_move_cost): New.
14986 (mn10300_memory_move_cost): New.
14987 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14988 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14989 extensions, shifts, BSWAP, CLZ.
14990 (mn10300_wide_const_load_uses_clr): Remove.
14991 (TARGET_REGISTER_MOVE_COST): New.
14992 (TARGET_MEMORY_MOVE_COST): New.
14993 * config/mn10300/mn10300-protos.h: Update.
14994 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14996 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14997 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14998 * config/mn10300/mn10300-protos.h: Update.
14999 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15000 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15001 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15002 (*test_int_bitfield, *test_byte_bitfield): Remove.
15003 (*bit_test, *subreg_bit_test): Remove.
15004 * config/mn10300/predicates.md (const_8bit_operand): Remove.
15006 * config/mn10300/constraints.md ("c"): Rename from "A".
15007 ("A", "D"): New constraint letters.
15008 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15009 (fmssf4, fnmasf4, fnmssf4): Likewise.
15011 * config/mn10300/mn10300.md (isa): New attribute.
15012 (enabled): New attribute.
15014 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15015 (abssf2, negsf2): Define only for hardware fp.
15016 (sqrtsf2): Reformat.
15017 (addsf3, subsf3, mulsf3): Merge expander and insn.
15019 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15020 (DEBUGGER_AUTO_OFFSET): Remove.
15021 (DEBUGGER_ARG_OFFSET): Remove.
15023 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15024 Emit register stores with the same offsets as the hardware.
15025 (mn10300_store_multiple_operation): Don't check that the register
15026 save offsets are monotonic.
15027 * config/mn10300/mn10300-protos.h: Update.
15029 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15031 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15032 in terms of the value on the stack, not the MDR register.
15034 2011-01-11 Jan Hubicka <jh@suse.cz>
15038 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15039 (symbol_alias_set_destroy, symbol_alias_set_contains,
15040 propagate_aliases_backward): Declare.
15041 * lto-streamer-out.c (struct sets): New sturcture.
15042 (trivally_defined_alias): New function.
15043 (output_alias_pair_p): Rewrite.
15044 (output_unreferenced_globals): Fix output of alias pairs.
15045 (produce_symtab): Likewise.
15046 * ipa.c (function_and_variable_visibility): Set weak alias destination
15048 * varasm.c (symbol_alias_set_t): Remove.
15049 (symbol_alias_set_destroy): Export.
15050 (propagate_aliases_forward, propagate_aliases_backward): New functions
15052 (compute_visible_aliases): ... this one; remove.
15053 (trivially_visible_alias): New
15054 (trivially_defined_alias): New.
15055 (remove_unreachable_alias_pairs): Rewrite.
15056 (finish_aliases_1): Reorganize code checking if alias is defined.
15057 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15060 2011-01-11 Richard Guenther <rguenther@suse.de>
15062 PR tree-optimization/46076
15063 * tree-ssa.c (useless_type_conversion_p): Conversions from
15064 unprototyped to empty argument list function types are useless.
15066 2011-01-11 Richard Guenther <rguenther@suse.de>
15068 PR middle-end/45235
15069 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15070 volatile MEMs as MEM_READONLY_P.
15072 2011-01-11 Richard Guenther <rguenther@suse.de>
15074 PR tree-optimization/47239
15075 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15077 2011-01-11 Jeff Law <law@redhat.com>
15079 PR tree-optimization/47086
15080 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15081 IVs from statements that might throw.
15083 2011-01-10 Jan Hubicka <jh@suse.cz>
15086 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15088 2011-01-10 Jan Hubicka <jh@suse.cz>
15091 * profile.c (read_profile_edge_counts): Ignore profile inconistency
15092 when correcting profile.
15094 2011-01-10 Jan Hubicka <jh@suse.cz>
15097 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15098 DECL_FINI_PRIORITY.
15099 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15100 Restore DECL_FINI_PRIORITY.
15102 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15104 * doc/gimple.texi: Fix quoting of multi-word return values in
15105 @deftypefn statements. Ensure presence of return value. Wrap
15106 overlong @deftypefn lines.
15107 (is_gimple_operand, is_gimple_min_invariant_address): Remove
15108 descriptions of removed functions.
15109 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15110 of multi-word return value in @deftypefn statement.
15112 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15114 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15115 (Conditional Expressions, Logical Operators)
15116 (Statement and operand traversals): Do not indent smallexample
15117 code. Fix duplicate function argument in example.
15119 2011-01-10 Jeff Law <law@redhat.com>
15121 PR tree-optimization/47141
15122 * ipa-split.c (split_function): Handle case where we are
15123 returning a value and the return block has a virtual operand phi.
15125 2011-01-10 Jan Hubicka <jh@suse.cz>
15127 PR tree-optimization/47234
15128 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15129 (pass_feedback_split_functions): Declare.
15130 * passes.c (init_optimization_passes): Add ipa-split as subpass of
15132 * ipa-split.c (gate_split_functions): Update comments; disable
15133 split-functions for profile_arc_flag and branch_probabilities.
15134 (gate_feedback_split_functions): New function.
15135 (execute_feedback_split_functions): New function.
15136 (pass_feedback_split_functions): New global var.
15138 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
15141 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15142 calling gimple_call_set_cannot_inline.
15144 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
15146 * config/darwin-sections.def: Remove unused section.
15148 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
15151 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15153 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
15156 * c-parser.c (c_parser_declaration_or_fndef): Improved
15159 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
15161 * config/i386/winnt.c (i386_pe_start_function): Make sure
15162 to switch back to function's section.
15164 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
15168 * plugin.c: Move include of dlfcn.h from here...
15169 * system.h: ... to here.
15171 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15173 * doc/cpp.texi (C++ Named Operators): Fix markup for header
15175 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15176 two extra empty pages in PDF output.
15178 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
15181 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15182 for error recovery purposes behave as if it was not specified so
15183 that the default type is usd.
15185 2011-01-07 Jan Hubicka <jh@suse.cz>
15187 PR tree-optmization/46469
15188 * ipa.c (function_and_variable_visibility): Clear needed flags on
15189 nodes with external decls; handle weakrefs merging correctly.
15191 2011-01-07 Joseph Myers <joseph@codesourcery.com>
15193 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15196 2011-01-07 Jan Hubicka <jh@suse.cz>
15198 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15199 and no longer claim that gold is required for linker plugin.
15200 * configure: Regenerate.
15201 * gcc.c (PLUGIN_COND): New macro.
15202 (LINK_COMMAND_SPEC): Use it.
15203 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15204 * config.in (HAVE_LTO_PLUGIN): New.
15205 * configure.ac (--with-lto-plugin): New parameter; autodetect
15208 2011-01-07 Jan Hubicka <jh@suse.cz>
15210 PR tree-optimization/46367
15211 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15212 when we can update original.
15213 (cgraph_mark_inline_edge): Sanity check.
15214 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15216 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15218 * config/spu/spu.h (ASM_COMMENT_START): Define.
15220 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
15223 * gcc.c (%>S): New.
15224 (SWITCH_KEEP_FOR_GCC): Likewise.
15225 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15226 (do_spec_1): Handle "%>".
15228 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15230 2011-01-07 Jakub Jelinek <jakub@redhat.com>
15233 * config/i386/i386.c (ix86_delegitimize_address): If
15234 simplify_gen_subreg fails, return orig_x.
15237 * value-prof.c (gimple_stringop_fixed_value): Handle
15238 lhs of the call properly.
15240 2011-01-07 Jan Hubicka <jh@suse.cz>
15243 * lto-opt.c (lto_reissue_options): Set flag_shlib.
15245 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15247 * target.def (function_switched_text_sections): New hook.
15248 * doc/tm.texi: Regenerated.
15249 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15250 * final.c (default_function_switched_text_sections): New.
15251 (final_scan_insn): Call function_switched_text_sections when a
15252 mid-function section change occurs.
15253 * output.h (default_function_switched_text_sections): Declare.
15254 * config/darwin-protos.h (darwin_function_switched_text_sections):
15256 * config/darwin.c (darwin_function_switched_text_sections): New.
15257 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15259 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
15261 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
15262 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
15263 the secondary code fragment when outputting for DWARF == 2.
15265 2011-01-07 Anatoly Sokolov <aesok@post.ru>
15267 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15268 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15270 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15271 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15273 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
15276 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15277 when it is not empty.
15279 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
15282 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15283 (case ${target}): Add btver1.
15284 * config/i386/driver-i386.c (host_detect_local_cpu): Let
15285 -march=native recognize btver1 processors.
15286 * config/i386/i386-c.c (ix86_target_macros_internal): Add
15287 btver1 def_and_undef
15288 * config/i386/i386.c (struct processor_costs btver1_cost): New
15290 (m_BTVER1): New definition.
15291 (m_AMD_MULTIPLE): Includes m_BTVER1.
15292 (initial_ix86_tune_features): Add btver1 tune.
15293 (processor_target_table): Add btver1 entry.
15294 (static const char *const cpu_names): Add btver1 entry.
15295 (software_prefetching_beneficial_p): Add btver1.
15296 (ix86_option_override_internal): Add btver1 instruction sets.
15297 (ix86_issue_rate): Add btver1.
15298 (ix86_adjust_cost): Add btver1.
15299 * config/i386/i386.h (TARGET_BTVER1): New definition.
15300 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15301 (enum processor_type): Add PROCESSOR_BTVER1.
15302 * config/i386/i386.md (define_attr "cpu"): Add btver1.
15304 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15307 * config/i386/i386.c (legitimize_tls_address)
15308 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15309 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15310 (tls_initial_exec_64_sun): New pattern.
15312 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
15314 * doc/invoke.texi (Overall Options): Improve wording and markup
15315 of the description of -wrapper.
15317 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15319 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15320 rdynamic, threads): New Driver options.
15322 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15325 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15326 if coming from .tdata.
15327 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15329 2011-01-06 Jan Hubicka <jh@suse.cz>
15332 * collect2.c (main): Do not enable LTOmode when plugin is active.
15334 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15337 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15338 --version output if supported.
15339 * configure: Regenerate.
15341 2011-01-06 Joseph Myers <joseph@codesourcery.com>
15343 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15346 2011-01-06 Jakub Jelinek <jakub@redhat.com>
15349 * c-convert.c (convert): When converting a complex expression
15350 other than COMPLEX_EXPR to a different complex type, ensure
15351 c_save_expr is called instead of save_expr, unless in_late_binary_op.
15352 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15353 when converting COMPLEX_TYPE.
15355 2011-01-06 Ira Rosen <irar@il.ibm.com>
15357 PR tree-optimization/47139
15358 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15359 only the last reduction value is used outside the loop. Update
15362 2011-01-05 Joseph Myers <joseph@codesourcery.com>
15364 * config/rtems.opt: New.
15365 * config.gcc (*-*-rtems*): Use rtems.opt.
15367 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
15369 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15370 processors do not support 3DNow instructions.
15372 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15374 * config/spu/spu.c (spu_option_override): Set parameter
15375 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15377 2011-01-05 Jan Hubicka <jh@suse.cz>
15379 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15380 at the command line.
15382 2011-01-05 Martin Jambor <mjambor@suse.cz>
15385 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15386 deltas on streamed outgoing edges.
15387 (output_node_opt_summary): Output info for outgoing edges only when
15388 the node is in new parameter set.
15389 (output_cgraph_opt_summary): New parameter set, passed to the two
15390 aforementioned functions. Update its forward declaration and its
15393 2011-01-05 Tom Tromey <tromey@redhat.com>
15395 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15396 operator to c_finish_omp_atomic.
15397 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15398 (build_unary_op): Update.
15399 (build_modify_expr): Update.
15400 (build_asm_expr): Update.
15402 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15404 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15405 newly inserted insns.
15406 (pad_bb): Likewise.
15407 (spu_emit_branch_hint): Likewise.
15408 (insert_hbrp_for_ilb_runout): Likewise.
15409 (spu_machine_dependent_reorg): Call df_finish_pass after
15410 schedule_insns returns.
15412 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15414 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15416 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
15418 PR tree-optimization/47005
15419 * tree-sra.c (struct access): Add 'non_addressable' bit.
15420 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15421 (decide_one_param_reduction): Return 0 if the parameter is passed by
15422 reference and one of the accesses in the group is non_addressable.
15424 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15426 PR tree-optimization/47056
15427 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15428 (mark_load): Likewise. Handle FUNCTION_DECL specially.
15429 (mark_store): Likewise. Pass STMT to ipa_record_reference.
15431 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
15433 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15434 initializer. Skip view conversions from aggregate types.
15436 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
15439 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15441 2011-01-04 Philipp Thomas <pth@suse.de>
15443 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15446 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15448 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15449 on empty epilogue sequences.
15451 2011-01-04 Joseph Myers <joseph@codesourcery.com>
15453 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15454 non-static): New Driver options.
15456 2011-01-04 Jie Zhang <jie@codesourcery.com>
15459 * gcc.c (default_compilers[]): Set combinable field to 0
15460 for all assembly languages.
15462 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15464 * config/mips/loongson3a.md: New file.
15465 * config/mips/mips.md: Include loongson3a.md.
15466 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15469 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15471 PR middle-end/47017
15472 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15473 instead of convert_memory_address_addr_space on the base expression.
15475 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15477 * config/spu/spu.c (spu_option_override): Update error text
15478 for bad -march= / -mtune= values.
15480 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15482 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15483 if branch-hint optimization will be performed.
15485 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15487 PR tree-optimization/47148
15488 * ipa-split.c (split_function): Convert arguments to
15489 DECL_ARG_TYPE if possible.
15491 PR tree-optimization/47155
15492 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15493 when computing uns.
15495 PR rtl-optimization/47157
15496 * combine.c (try_combine): If undobuf.other_insn becomes
15497 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15498 and set *new_direct_jump_p too.
15500 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15502 PR tree-optimization/47021
15503 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15505 2011-01-03 Jakub Jelinek <jakub@redhat.com>
15507 * gcc.c (process_command): Update copyright notice dates.
15508 * gcov.c (print_version): Likewise.
15509 * gcov-dump.c (print_version): Likewise.
15510 * mips-tfile.c (main): Likewise.
15511 * mips-tdump.c (main): Likewise.
15513 2011-01-03 Martin Jambor <mjambor@suse.cz>
15515 PR tree-optimization/46801
15516 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15517 aggregate fields start at byte boundary instead of the bit-field flag.
15519 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15522 * gcc.c (main): Revert revision 168407.
15524 2011-01-03 Martin Jambor <mjambor@suse.cz>
15526 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15528 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15530 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15531 vector optab to expand vector/scalar shift, update gimple to vector.
15533 2011-01-03 Martin Jambor <mjambor@suse.cz>
15535 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15538 2011-01-03 Martin Jambor <mjambor@suse.cz>
15540 PR tree-optimization/46984
15541 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15543 (cgraph_create_indirect_edge): Fixed line length.
15544 (cgraph_indirect_call_info): Declare.
15545 (cgraph_make_edge_direct) Update declaration.
15546 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15547 (cgraph_create_indirect_edge): Use it.
15548 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15550 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15551 the new thunk_delta representation.
15552 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15554 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15555 (ipa_read_indirect_edge_info): Likewise.
15556 * lto-cgraph.c (output_edge_opt_summary): New function.
15557 (output_node_opt_summary): Call it on all outgoing edges.
15558 (input_edge_opt_summary): New function.
15559 (input_node_opt_summary): Call it on all outgoing edges.
15561 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15564 * gcc.c (main): Don't check have_o when settting combine_inputs.
15566 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15568 * regrename.c: Add general comment describing the pass.
15569 (struct du_head): Remove 'length' field.
15570 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15571 (regrename_optimize): Do not sort chains. Rework comments, add others.
15572 Force renaming to the preferred class (if any) in the first pass and do
15573 not consider registers that belong to it in the second pass.
15574 (create_new_chain): Do not set 'length' field.
15575 (scan_rtx_reg): Likewise.
15577 2011-01-02 Jakub Jelinek <jakub@redhat.com>
15579 PR tree-optimization/47140
15580 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15581 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15582 to bit_value_binop.
15584 PR rtl-optimization/47028
15585 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15586 parm_birth_insn instead of at the beginning of first bb.
15588 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
15590 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15591 Remove the word "see" before "@pxref".
15592 * doc/rtl.texi: Remove the word "see" before "@pxref".
15594 2011-01-01 Jan Hubicka <jh@suse.cz>
15596 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15599 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
15602 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15605 Copyright (C) 2011 Free Software Foundation, Inc.
15607 Copying and distribution of this file, with or without modification,
15608 are permitted in any medium without royalty provided the copyright
15609 notice and this notice are preserved.